Code: Select all
<ForceField>
<AtomTypes>
<Type name="tip4pew-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip4pew-H" class="HW" element="H" mass="1.007947"/>
<Type name="tip4pew-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip4pew-O"/>
<Atom name="H1" type="tip4pew-H"/>
<Atom name="H2" type="tip4pew-H"/>
<Atom name="M" type="tip4pew-M"/>
<VirtualSite type="average3" siteName="M" atomName1="O" atomName2="H1" atomName3="H2" weight1="0.786646558" weight2="0.106676721" weight3="0.106676721"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<Script>
import simtk.openmm as mm
Force = mm.CustomNonbondedForce('(A/r^12)-(B/r^6)')
Force.setNonbondedMethod(NonbondedForce.CutoffPeriodic)
Force.setCutoffDistance(nonbondedCutoff)
Force.addPerParticleParameter('A')
Force.addPerParticleParameter('B')
Force.addPaticle([2.5104e-6, 2.55224e-3])
Force.addPaticle([0, 0])
Force.addPaticle([0, 0])
system.addForce(Force)
<Script>
</ForceField>