Skip to content

Instantly share code, notes, and snippets.

@hainm
Created November 14, 2016 20:05
Show Gist options
  • Save hainm/cfa667853fc84c81df5d32e2135a184e to your computer and use it in GitHub Desktop.
Save hainm/cfa667853fc84c81df5d32e2135a184e to your computer and use it in GitHub Desktop.
import sander
import parmed
options = sander.pme_input()
options.cut = 8.0
options.ntr = 1
options.refc = '../ubiquitin/inpcrd'
options.restraintmask = '!:WAT'
options.restraint_wt = 1.
rst = parmed.load_file('../ubiquitin/inpcrd')
with sander.setup("../ubiquitin/prmtop", rst.coordinates, rst.box, options):
e, f = sander.energy_forces()
print(e.tot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment