IPotential, IPotentialMolecularpublic class PRotConstraint extends PotentialMolecular
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
constraintAngle |
|
protected int |
counter |
|
protected boolean |
onSwitch |
nBody, space| Constructor | Description |
|---|---|
PRotConstraint(Space space,
CoordinateDefinitionNitrogen coordinateDefinition,
Box box) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the range over which the potential applies.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setConstraintAngle(double angle) |
|
void |
setSwitch(boolean switchOn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected double constraintAngle
protected int counter
protected boolean onSwitch
public PRotConstraint(Space space, CoordinateDefinitionNitrogen coordinateDefinition, Box box)
public double energy(IMoleculeList molecules)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic void setBox(Box box)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic void setConstraintAngle(double angle)
public void setSwitch(boolean switchOn)