Chapter 10: Modifying Force Applications
In this chapter, we will write custom fixes that are able to apply non-pairwise forces on selected groups of atoms during a simulation run. Starting with existing fixes, we will make modifications that produce new fixes to exert custom forces to the atoms in the system. These forces generally represent agents that are not adequately incorporated into the MD simulation by atoms or potentials, such as self-propelling active forces.
We will cover the following topics in this chapter:
- Writing a fix to apply a 2D spring force
- Writing a fix to apply an active force in a molecular chain
- Writing a fix to apply a custom wall force
- Writing a fix to apply a bond-boost potential
By the end of this chapter, you ...
Get Extending and Modifying LAMMPS Writing Your Own Source Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.