meld.system.restraints.TorsProfileRestraint
- class meld.system.restraints.TorsProfileRestraint(system, scaler, ramp, atom1, atom2, atom3, atom4, atom5, atom6, atom7, atom8, n_bins, spline_params, scale_factor)[source]
Bases:
SelectableRestraint
A spline-based restraint between two torsions over eight atoms
- __init__(system, scaler, ramp, atom1, atom2, atom3, atom4, atom5, atom6, atom7, atom8, n_bins, spline_params, scale_factor)[source]
Initialize a TorsProfileRestraint
- Parameters
system (
ISystem
) – the system this restraint belongs toscaler (
Optional
[RestraintScaler
]) – scale the force with alpharamp (
Optional
[TimeRamp
]) – ramp the strength of the force over timeatom1 (
AtomIndex
) – first atom of first torsionatom2 (
AtomIndex
) – second atom of first torsionatom3 (
AtomIndex
) – third atom of first torsionatom4 (
AtomIndex
) – fourth atom of first torsionatom5 (
AtomIndex
) – first atom of second torsionatom6 (
AtomIndex
) – second atom of second torsionatom7 (
AtomIndex
) – third atom of second torsionatom8 (
AtomIndex
) – fourth atom of second torsionn_bins (
int
) – number of bins in lookupspline_params (
ndarray
) – the spline coefficient lookup table, shape(n_bins, 16)scale_factor (
Quantity
) – scale the energy
Methods
__init__
(system, scaler, ramp, atom1, atom2, ...)Initialize a TorsProfileRestraint