CoordinateDefinitionLeaf
, CoordinateDefinitionMolecule
, CoordinateDefinitionMoleculeVolumeFluctuation
public abstract class CoordinateDefinition
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
CoordinateDefinition.BasisCell |
|
protected static class |
CoordinateDefinition.SiteSource |
Modifier and Type | Field | Description |
---|---|---|
protected MoleculeActionTranslateTo |
atomActionTranslateTo |
|
protected Basis |
basis |
|
protected Box |
box |
|
protected CoordinateDefinition.BasisCell[] |
cells |
|
protected int |
coordinateDim |
|
protected BravaisLatticeCrystal |
lattice |
|
protected Primitive |
primitive |
|
protected AtomLeafAgentManager<Vector> |
siteManager |
|
protected Space |
space |
Constructor | Description |
---|---|
CoordinateDefinition(Box box,
int coordinateDim,
Primitive primitive,
Basis basis,
Space _space) |
|
CoordinateDefinition(Box box,
int coordinateDim,
Primitive primitive,
Space _space) |
Modifier and Type | Method | Description |
---|---|---|
void |
calcT(Vector k,
double[] realT,
double[] imaginaryT) |
Calculates the complex "T vector", which is collective coordinate given
by the Fourier sum (over atoms) of the generalized coordinate vector.
|
abstract double[] |
calcU(IMoleculeList molecules) |
Calculates the generalized coordinates for the given molecules in their
current position and orientation.
|
Basis |
getBasis() |
|
CoordinateDefinition.BasisCell[] |
getBasisCells() |
|
Box |
getBox() |
|
int |
getCoordinateDim() |
Returns the number of generalized coordinates associated with each
molecule.
|
Vector |
getLatticePosition(IAtom atom) |
|
Primitive |
getPrimitive() |
|
AtomLeafAgentManager<Vector> |
getSiteManager() |
|
void |
initializeCoordinates(int[] nCells) |
|
protected abstract void |
initNominalU(IMoleculeList molecules) |
Initializes the CoordinateDefinition for the given molecule and
associates the molecule with the given index.
|
abstract void |
setToU(IMoleculeList molecules,
double[] newU) |
Set all the molecules in a cell to a position and orientation that corresponds to the
given generalized coordinate.
|
protected final int coordinateDim
protected final Box box
protected AtomLeafAgentManager<Vector> siteManager
protected final BravaisLatticeCrystal lattice
protected final Primitive primitive
protected final Basis basis
protected final MoleculeActionTranslateTo atomActionTranslateTo
protected CoordinateDefinition.BasisCell[] cells
protected final Space space
public CoordinateDefinition(Box box, int coordinateDim, Primitive primitive, Space _space)
public void initializeCoordinates(int[] nCells)
public int getCoordinateDim()
public abstract double[] calcU(IMoleculeList molecules)
molecules
- The molecules of interest, which should be those forming a unit cell of the latticeprotected abstract void initNominalU(IMoleculeList molecules)
public abstract void setToU(IMoleculeList molecules, double[] newU)
molecules
- The molecules of interestnewU
- The generalized coordinate that defines the position and
orientation to which the molecules will be set by this method.public void calcT(Vector k, double[] realT, double[] imaginaryT)
k
- the wave vectorrealT
- outputs the real component of the T vectorimaginaryT
- outputs the imaginary component of the T vectorpublic Box getBox()
public CoordinateDefinition.BasisCell[] getBasisCells()
public Primitive getPrimitive()
public Basis getBasis()
public AtomLeafAgentManager<Vector> getSiteManager()