java.io.Serializable
CoordinateDefinitionLeafSuperBox
public class CoordinateDefinitionLeaf extends CoordinateDefinition implements java.io.Serializable
CoordinateDefinition.BasisCell, CoordinateDefinition.SiteSource
Modifier and Type | Field | Description |
---|---|---|
protected double[] |
u |
|
protected Vector |
workVector |
atomActionTranslateTo, basis, box, cells, coordinateDim, lattice, primitive, siteManager, space
Constructor | Description |
---|---|
CoordinateDefinitionLeaf(Box box,
Primitive primitive,
Basis basis,
Space space) |
|
CoordinateDefinitionLeaf(Box box,
Primitive primitive,
Space space) |
Modifier and Type | Method | Description |
---|---|---|
double[] |
calcU(IMoleculeList atoms) |
Assigns the given array u to be the current position of the atom minus its lattice position
|
void |
initNominalU(IMoleculeList molecules) |
Initializes the CoordinateDefinition for the given molecule and
associates the molecule with the given index.
|
void |
setToU(IMoleculeList atoms,
double[] newU) |
Sets the position of the atom to be its lattice position plus the offset u
|
calcT, getBasis, getBasisCells, getBox, getCoordinateDim, getLatticePosition, getPrimitive, getSiteManager, initializeCoordinates
protected final Vector workVector
protected final double[] u
public CoordinateDefinitionLeaf(Box box, Primitive primitive, Space space)
public double[] calcU(IMoleculeList atoms)
calcU
in class CoordinateDefinition
atoms
- The molecules of interest, which should be those forming a unit cell of the latticepublic void initNominalU(IMoleculeList molecules)
CoordinateDefinition
initNominalU
in class CoordinateDefinition
public void setToU(IMoleculeList atoms, double[] newU)
setToU
in class CoordinateDefinition
atoms
- The molecules of interestnewU
- The generalized coordinate that defines the position and
orientation to which the molecules will be set by this method.