Positional Restraints info
Posted: Wed May 17, 2017 1:13 pm
Hi there,
In my system, I’m using positional restraints by adding a Custom External Force like the following:
where the per particle parameters x0, y0 and z0 are taken from my starting structure positions. I’m performing a NVT simulation and my system crashes soon after started. I was able to track down the error which seems related to the fact that the whole system is translated during the NVT simulation while the x0, y0, and z0 per particle parameters are not. If I translate my original system to be centered at xc=box_x/2, yc=box_y/2, zc=box_z/2 (where box_x, box_y and box_z are my box size dimensions) prior to run the simulation, I do not have any crashes. I wonder if I’m making some mistakes or I must follow another procedure to apply positional restraints.
Thanks a lot
In my system, I’m using positional restraints by adding a Custom External Force like the following:
Code: Select all
openmm.CustomExternalForce('k_restr*( (x-x0)^2 + (y-y0)^2 + (z-z0)^2 )')
Thanks a lot