meld.system.restraints.TorsionRestraint
- class meld.system.restraints.TorsionRestraint(system, scaler, ramp, atom1, atom2, atom3, atom4, phi, delta_phi, k)[source]
Bases:
SelectableRestraint
A Torsion restraint between four atoms
- __init__(system, scaler, ramp, atom1, atom2, atom3, atom4, phi, delta_phi, k)[source]
Initialize a TorsionRestraint
- Parameters
system (
ISystem
) – the system this restraint belongs toscaler (
Optional
[RestraintScaler
]) – scale the force with alpharamp (
Optional
[TimeRamp
]) – ramp up the force over timeatom1 (
AtomIndex
) – index of first atomatom2 (
AtomIndex
) – index of second atomatom3 (
AtomIndex
) – index of third atomatom4 (
AtomIndex
) – index of fourth atomphi (
Quantity
) – equilibrium angle in degreesdelta_phi (
Quantity
) – flat within delta_phi, degreesk (
Quantity
) – force constant in \(kJ/mol/deg^2\)
Methods
__init__
(system, scaler, ramp, atom1, atom2, ...)Initialize a TorsionRestraint