Summary
In this chapter, we have illustrated some custom fixes to apply user-defined forces, including a directed force on individual atoms, a force dependent on bonded atoms, a wall force, and a force applied to atoms that satisfy criteria regarding energy that is obtained from a separate compute. Altogether, these examples provide guidelines to help you write your own fixes that can manipulate forces exerted on a system.
In the next and last chapter, we will create custom fixes to perform a variety of simulation manipulations that may be required for user-specified applications.