|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.energy.EnergyElement
meshi.symmetryComplex.energy.cylinder.CylinderEnergyElement
public class CylinderEnergyElement
Responsible for energy and forces calculations of the Cylinder
energy function on a single atom.
The atom's cartesian coordinates are transformed to
Cylindrical Coordinates
and forces are transformed back to cartesian coordinates.
| Field Summary | |
|---|---|
protected Atom |
atom
The atom which is kept in the cylinder. |
protected double |
atomHeight
The atom's cylindrical coordinates. |
protected double |
atomR
The atom's cylindrical coordinates. |
protected double |
atomTheta
The atom's cylindrical coordinates. |
protected double |
force
Force constants. |
protected double |
force2
Force constants. |
protected double |
height
The cylinder's dimensions. |
protected double |
innerR
The cylinder's dimensions. |
protected double |
outerR
The cylinder's dimensions. |
protected double |
weight
|
| Fields inherited from class meshi.energy.EnergyElement |
|---|
atoms, dFormatSrt, dFormatStd, DX, frozen, relativeDiffTolerance, VERY_SMALL, XYZ |
| Constructor Summary | |
|---|---|
CylinderEnergyElement(Atom atom,
CylinderParameters parameters,
double weight)
Constructs an energy elements for the given atom. |
|
| Method Summary | |
|---|---|
double |
evaluate()
Calculates the cylinder energy and updates forces on the atom. |
static boolean |
isPointInCylinder(Coordinates coordinates,
double outerR,
double innerR,
double height)
For loops building. |
void |
setAtoms()
|
private void |
updateCylindricalCoors()
Updates the cylindrical coordinates according to the cartesian coordinates. |
private void |
updateForces(double forceOnR,
double forceOnHeight)
Updates the forces on the atom. |
| Methods inherited from class meshi.energy.EnergyElement |
|---|
atoms, evaluateAtoms, frozen, test, updateFrozen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Atom atom
protected final double weight
protected final double innerR
protected final double outerR
protected final double height
protected double atomR
protected double atomTheta
protected double atomHeight
protected final double force
protected final double force2
| Constructor Detail |
|---|
public CylinderEnergyElement(Atom atom,
CylinderParameters parameters,
double weight)
| Method Detail |
|---|
private void updateCylindricalCoors()
public void setAtoms()
setAtoms in class EnergyElementpublic double evaluate()
evaluate in class EnergyElement
private void updateForces(double forceOnR,
double forceOnHeight)
public static boolean isPointInCylinder(Coordinates coordinates,
double outerR,
double innerR,
double height)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||