Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Q: What do you call it when Batman skips church?

Find the answer somewhere in the codes!

Lee-Ping's jokes are bad.
7 changes: 7 additions & 0 deletions run_openmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
# Add a Monte Carlo barostat to the system for pressure control
system.addForce(mm.MonteCarloBarostat(1*unit.atmospheres, 300*unit.kelvin, 25))

# Add a custom bonded force
custom_bond = mm.CustomBondForce("0.5*k*(r-r0)^2")
custom_bond.addGlobalParameter("k", 20)
custom_bond.addGlobalParameter("r0", 2.5)
custom_bond.addBond(1, 273)
system.addForce(custom_bond)

# Use the CPU platform
platform = mm.Platform.getPlatformByName('CPU')

Expand Down