Skip to content

Commit

Permalink
leaving out "ramping" for now until more severe stability issues are …
Browse files Browse the repository at this point in the history
…resolved
  • Loading branch information
loeflerm committed Jun 10, 2024
1 parent 6301597 commit 9bfb520
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions transformato/bin/drude_openmm_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,28 +166,28 @@
else:
simulation.context.setVelocitiesToTemperature(inputs.gen_temp)

## Do some additional pre-equilibration when using Drude particles
print("Doing a first equilibration run")
simulation.step(100_000)

print("Doing a second equilibration run")
simulation.integrator.setStepSize(0.0002 * picoseconds)
simulation.context.reinitialize(preserveState=True)
simulation.step(100_000)

print("Doing a third equilibration run")
simulation.integrator.setStepSize(0.0003 * picoseconds)
simulation.context.reinitialize(preserveState=True)
simulation.step(100_000)

print("Doing a fourth equilibration run")
simulation.integrator.setStepSize(0.0004 * picoseconds)
simulation.context.reinitialize(preserveState=True)
simulation.step(100_000)

print("Starting the actual simulation")
simulation.integrator.setStepSize(0.0005 * picoseconds)
simulation.context.reinitialize(preserveState=True)
# ## Do some additional pre-equilibration when using Drude particles
# print("Doing a first equilibration run")
# simulation.step(100_000)

# print("Doing a second equilibration run")
# simulation.integrator.setStepSize(0.0002 * picoseconds)
# simulation.context.reinitialize(preserveState=True)
# simulation.step(100_000)

# print("Doing a third equilibration run")
# simulation.integrator.setStepSize(0.0003 * picoseconds)
# simulation.context.reinitialize(preserveState=True)
# simulation.step(100_000)

# print("Doing a fourth equilibration run")
# simulation.integrator.setStepSize(0.0004 * picoseconds)
# simulation.context.reinitialize(preserveState=True)
# simulation.step(100_000)

# print("Starting the actual simulation")
# simulation.integrator.setStepSize(0.0005 * picoseconds)
# simulation.context.reinitialize(preserveState=True)

# Production
print("\nMD run: %s steps" % inputs.nstep)
Expand Down

0 comments on commit 9bfb520

Please sign in to comment.