Implementation of temporary restraints
Posted: Mon Sep 02, 2024 10:13 am
Greetings, I'm an open-mm rookie and I have another question.
The system I'm attempting to run is a liquid crystal simulation. The beginning of the simulation requires position restraints on the molecules and restraints on the molecular orientation while the simulation comes to equilibrium.
From the documentation, it looks like I can use CustomExternalForce to implement these restraints. However, I'm not certain how I would turn these forces off again once I reach the equilibrium point for beginning the production simulation. How do I turn on and off these sorts of forces depending on the phase of the simulation? Should I literally do it as two separate simulations where I reload the force field without the restraint force on the final geometry (and velocities) of the previous simulation? Forgive my naivety.
Thanks!
Greg Smith
The system I'm attempting to run is a liquid crystal simulation. The beginning of the simulation requires position restraints on the molecules and restraints on the molecular orientation while the simulation comes to equilibrium.
From the documentation, it looks like I can use CustomExternalForce to implement these restraints. However, I'm not certain how I would turn these forces off again once I reach the equilibrium point for beginning the production simulation. How do I turn on and off these sorts of forces depending on the phase of the simulation? Should I literally do it as two separate simulations where I reload the force field without the restraint force on the final geometry (and velocities) of the previous simulation? Forgive my naivety.
Thanks!
Greg Smith