4.8. Writing new styles — LAMMPS documentation

\(\renewcommand{\AA}{\text{Å}}\)

# 4.8. Writing new styles

The Modifying & extending LAMMPS section of the manual gives an overview of how LAMMPS can be extended by writing new classes that derive from existing parent classes in LAMMPS. Here, some specific coding details are provided for writing code for LAMMPS.

- 4.8.1. Writing new pair styles
- 4.8.2. Package and build system considerations
- 4.8.3. Case 1: a pairwise additive model
- 4.8.4. Case 2: a many-body potential
- 4.8.5. Case 3: a potential requiring communication
- 4.8.6. Case 4: potentials without a compute() function
- 4.8.7. Writing a new fix style
- 4.8.8. Writing a new command style
- 4.8.9. Case 1: Implementing the geturl command