Closed pipitoludovico closed 1 month ago
Since you didn't include your complete code, I can only guess at it. I gather you have some sort of a restraint force that defines a global parameter k
? If you want the saved state to include the values of parameters, you should specify getParameters=True
in the call to getState()
. Since you didn't, the state doesn't include parameters and the call to loadState()
doesn't change them. The parameter k
still has whatever the default value was that you specified when you created the restraint force.
If you're ever in doubt about what the value of a parameter is, you can just print out simulation.context.getParameter('k')
.
Everything sorted. Thank you!
OpenMM version: 8.0.0 Python V: 3.10
Hi! A quick check: given this equilibration
`def Equilibrate(simulation_eq, parameters) -> None: protocolSteps = int((parameters['protocolTime'] * 10 * 6) / parameters['eqIntegrator']) print('\nEquilibrating with restraints and temperature for ', protocolSteps, " steps.") equilibrationSteps = int((parameters['equilibrationTime'] 10 ** 6) / parameters['eqIntegrator'])
I want to run the production with no restraints at all. The xml file should have no global parameters saved and therefore when called the new simulation should be restraint free. Is this correct?
Ideally it should have the global parameter 'k' inherited to 0, but it seems that the RMSD of my system is very low and I'm afraid it has not removed the restraints at all.
Thanks