Constant Force

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Jumin Lee
Posts: 14
Joined: Tue Dec 10, 2013 9:12 am

Constant Force

Post by Jumin Lee » Wed May 16, 2018 8:10 am

Hi,

Is there a way to apply constant force in x direction using CustomExternalForce?

Best,
Jumin

User avatar
Peter Eastman
Posts: 2563
Joined: Thu Aug 09, 2007 1:25 pm

Re: Constant Force

Post by Peter Eastman » Wed May 16, 2018 10:11 am

Set the energy expression to "-f*x", where f is the force you want to apply.

Peter

User avatar
Jumin Lee
Posts: 14
Joined: Tue Dec 10, 2013 9:12 am

Re: Constant Force

Post by Jumin Lee » Wed May 16, 2018 11:02 am

Thank you very much!

Best,
Jumin

POST REPLY