| vecPairOrientPot |
index |
The energy of each restraint is where cos(θ) = v̂1⋅ v̂2
and v̂ denotes unit vector in the direction of
v. The vectors v1 and v2 are
defined as vi = qi2 − qi1,
i = 1, 2, where qi1 and
qi2 are the average positions in the selections
seli1 and seli2.
Energy term to restrain angles between vectors defined by two pair of atom
selections.
Constructor:
VecPairOrientPot(instanceName,
restraintString="",
simulation=None)
instanceName is a user-specified identifier. The restraintString argument
is an optional XPLOR-style restraint table. simulation is an optional
simulation.Simulation specification. If not specified, the
simulation.currentSimulation() is used.
calcEnergy() - calc energy, returns the energy value.
calcEnergyAndDerivs(derivs) - calc energy, derivs, returns the energy value.
rms() - return the rms of the restriants' diff() values.
numRestraints() - return the number of restraints defined for this term.
violations() - return number of violations
restraints() - return the list of restraints. See the description of the
Restraint class below. Restraint properties can thus be
queried and modified.
readRestraints(restraintString,
verbose=False) - add restraints specified in restraintString.
addRestraint(abbrevString,
ensIndex1=-1,
ensIndex2=-1,
verbose=False) -add the specified XPLOR-style restraint.
The abbrevString format is the same as the
format below, but with the leading ASSIgn
keyword omitted. This method can be used to
add restraints between different ensemble
members in an ensembleSimulation
calculation, where ensIndex1 and
ensIndex2 specify indices of the
respective EnsembleMemberSimulations.
VecPairOrient_Restraint Class
These are created by the VecPairOrientPot's readRestraints orr
addRestraint methods.
methods:
name() - the restraint name
comment() - the restraint comment (entered after the ! in the PRE table)
calcd() - calculated value of vector pair angle (in degrees) -
θ
in the equations below.
target() - target angle value (in degrees) - θ0
in the equations below.
err() - allowed deviation of the angle (in degrees) -
Δθ
in the equations below.
setTarget(val) - set the target value (θ0
).
setErr(val) - set the err value (Δθ
).
energy() - energy associated with this restraint (see below).
sel11() - atomSel.AtomSel object defining
q11
sel12() - atomSel.AtomSel object defining
q12
sel21() - atomSel.AtomSel object defining
q21
sel22() - atomSel.AtomSel object defining
q22
v1() - The vector v1
below.
v2() - The vector v2
below.
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||