Skip to content

Commit

Permalink
box stabilisation
Browse files Browse the repository at this point in the history
  • Loading branch information
JLittlef committed May 30, 2024
1 parent 0712235 commit a29bd84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/openmmMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ def md_nvt(simulation, csvname: str, totalsteps: int, reprate: int, pdbname, int
simulation.context.setVelocitiesToTemperature(300*kelvin)
simulation.reporters.append(app.PDBReporter(pdbname, reprate))
simulation.reporters.append(app.StateDataReporter(stdout, reprate, step=True, potentialEnergy=True, temperature=True, volume=True))
prepdf = {'Step':[], 'Potential Energy (kJ/mole)':[], 'Temperature (K)':[], 'Box Volume (nm^3)':[], 'Pressure (kPa)':[]}
prepdf = {'Step':[], 'Potential Energy (kJ/mole)':[], 'Temperature (K)':[], 'Box Volume (nm^3)':[]}
inidf = pd.DataFrame(prepdf)
inidf.to_csv(csvname, index=False)
simulation.reporters.append(app.StateDataReporter(csvname, reprate, step=True,
potentialEnergy=True, temperature=True, volume=True, density=True, pressure=True, append=True))
potentialEnergy=True, temperature=True, volume=True, append=True))
simulation.step(totalsteps)
final_state = simulation.context.getState(getEnergy=True, getPositions=True)
final_pe = final_state.getPotentialEnergy().value_in_unit(kilocalories_per_mole)
Expand Down

0 comments on commit a29bd84

Please sign in to comment.