java.io.Serializable
public class CoordinateDefinitionNitrogen extends CoordinateDefinitionMolecule implements java.io.Serializable
Modifier and Type | Class | Description |
---|---|---|
protected static class |
CoordinateDefinitionNitrogen.OrientationAgentSource |
CoordinateDefinition.BasisCell, CoordinateDefinition.SiteSource
CoordinateDefinitionMolecule.MoleculeSiteSource
Modifier and Type | Field | Description |
---|---|---|
protected MoleculeChildAtomAction |
atomGroupAction |
|
protected MoleculeChildAtomAction |
atomGroupActionTranslate |
|
protected Vector |
axis |
|
protected Configuration |
configuration |
|
boolean |
isAlpha |
|
boolean |
isBeta |
|
boolean |
isBetaHCP |
|
boolean |
isBetaLatticeSum |
|
boolean |
isDoLatticeSum |
|
boolean |
isGamma |
|
protected MoleculeAgentManager<Vector[]> |
orientationManager |
|
protected Vector |
orientVector |
|
protected Vector[] |
positionVector |
|
protected IRandom |
random |
|
protected RotationTensor3D |
rotationTensor |
|
int |
rotDim |
|
protected Tensor3D |
tensor |
|
protected AtomActionTranslateBy |
translateBy |
|
protected Tensor[] |
xzOrientationTensor |
|
protected Tensor[] |
yOrientationTensor |
atomActionTranslateTo, basis, box, cells, coordinateDim, lattice, primitive, siteManager, space
inflate, initVolume, moleculeSiteManager, positionDefinition, rScale, sim, u, work1
Constructor | Description |
---|---|
CoordinateDefinitionNitrogen(Simulation sim,
Box box,
Primitive primitive,
Basis basis,
Space _space) |
|
CoordinateDefinitionNitrogen(Simulation sim,
Box box,
Primitive primitive,
Basis basis,
Space _space,
int rotDim) |
Modifier and Type | Method | Description |
---|---|---|
double[] |
calcU(IMoleculeList molecules) |
Calculates the generalized coordinates for the given molecules in their
current position and orientation.
|
Vector[] |
getMoleculeOrientation(IMolecule molecule) |
|
Tensor[] |
getXzOrientationTensor() |
|
Tensor[] |
getyOrientationTensor() |
|
void |
initializeCoordinates(int[] nCells) |
|
void |
initNominalU(IMoleculeList molecules) |
Override if nominal U is more than the lattice position of the molecule
Number of molecules equals to basis atoms
|
void |
setBetaPositionAndOrientation(IMoleculeList molecules) |
|
void |
setConfiguration(Configuration configuration) |
|
void |
setIsAlpha() |
|
void |
setIsBeta() |
|
void |
setIsBetaHCP() |
|
void |
setIsBetaLatticeSum() |
|
void |
setIsDoLatticeSum() |
|
void |
setIsGamma() |
|
void |
setNominalReference(IMoleculeList molecules) |
|
void |
setOrientationVectorAlpha(Space space) |
|
void |
setOrientationVectorBeta(Space space) |
|
void |
setOrientationVectorBetaInitial(Space space) |
|
void |
setOrientationVectorBetaLatticeSum(Space space,
double density,
double[][] param) |
|
void |
setOrientationVectorGamma(Space space) |
|
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.
|
void |
setToUMoleculei(int moleculei,
double[] newU) |
calcT, getBasis, getBasisCells, getBox, getCoordinateDim, getLatticePosition, getPrimitive, getSiteManager
getLatticePosition, getPositionDefinition, setInitVolume, setPositionDefinition
protected final RotationTensor3D rotationTensor
protected final Tensor[] xzOrientationTensor
protected final Tensor[] yOrientationTensor
protected final Tensor3D tensor
protected final Vector axis
protected final Vector orientVector
protected final MoleculeChildAtomAction atomGroupAction
public boolean isAlpha
public boolean isGamma
public boolean isBeta
public boolean isBetaHCP
public boolean isBetaLatticeSum
public boolean isDoLatticeSum
public int rotDim
protected Vector[] positionVector
protected Configuration configuration
protected MoleculeAgentManager<Vector[]> orientationManager
protected AtomActionTranslateBy translateBy
protected MoleculeChildAtomAction atomGroupActionTranslate
protected IRandom random
public CoordinateDefinitionNitrogen(Simulation sim, Box box, Primitive primitive, Basis basis, Space _space)
public CoordinateDefinitionNitrogen(Simulation sim, Box box, Primitive primitive, Basis basis, Space _space, int rotDim)
public void initializeCoordinates(int[] nCells)
initializeCoordinates
in class CoordinateDefinitionMolecule
public void setBetaPositionAndOrientation(IMoleculeList molecules)
public void setNominalReference(IMoleculeList molecules)
public void setConfiguration(Configuration configuration)
public void setOrientationVectorGamma(Space space)
public void setOrientationVectorAlpha(Space space)
public void setOrientationVectorBetaInitial(Space space)
public void setOrientationVectorBeta(Space space)
public void setOrientationVectorBetaLatticeSum(Space space, double density, double[][] param)
public Tensor[] getXzOrientationTensor()
public Tensor[] getyOrientationTensor()
public double[] calcU(IMoleculeList molecules)
CoordinateDefinition
calcU
in class CoordinateDefinitionMolecule
molecules
- The molecules of interest, which should be those forming a unit cell of the latticepublic void initNominalU(IMoleculeList molecules)
initNomial is the method to define the initial orientation of the molecule
initNominalU
in class CoordinateDefinitionMolecule
public void setIsGamma()
public void setIsAlpha()
public void setIsBeta()
public void setIsBetaHCP()
public void setIsBetaLatticeSum()
public void setIsDoLatticeSum()
public void setToU(IMoleculeList molecules, double[] newU)
CoordinateDefinition
setToU
in class CoordinateDefinitionMolecule
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 setToUMoleculei(int moleculei, double[] newU)