"vscode:/vscode.git/clone" did not exist on "f2e0735fa1e94efbf7e9d81194a7f00328a3ac75"
Commit 6bdf834a authored by jchodera's avatar jchodera
Browse files

Include numerical value of pi

parent 38ea6054
......@@ -910,6 +910,7 @@ class CharmmPsfFile(object):
energy_function = 'k*dtheta_torus^2;'
energy_function += 'dtheta_torus = dtheta - floor(dtheta/(2*pi)+0.5)*(2*pi);'
energy_function += 'dtheta = theta - theta0;'
energy_function += 'pi = %f;' % pi
force = mm.CustomTorsionForce(energy_function)
force.addPerTorsionParameter('k')
force.addPerTorsionParameter('theta0')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment