3. Modifying & extending LAMMPSΒΆ

LAMMPS is designed in a modular fashion and to be easy to modify or extend with new functionality. In fact, about 95% of its source code are optional. The following pages give basic instructions on what is required when adding new styles of different kinds to LAMMPS.

If you add a new feature to LAMMPS and think it will be of general interest to other users, we encourage you to submit it for inclusion in LAMMPS as a pull request on our GitHub site, after reading about how to prepare your code for submission and the style requirements and recommendations.