|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.action.BoxActionAdapter
etomica.action.BoxInflate
public class BoxInflate
Performs actions that cause volume of system to expand or contract, with molecule positions scaled to keep them in the same relative positions. Inflation can be isotropically or anisotropically.
| Field Summary | |
|---|---|
protected IVectorMutable |
dimVector
|
protected MoleculeChildAtomAction |
groupScaler
|
protected AtomPositionGeometricCenter |
moleculeCenter
|
protected IVectorMutable |
scaleVector
|
protected AtomActionTranslateBy |
translator
|
| Fields inherited from class etomica.action.BoxActionAdapter |
|---|
box |
| Constructor Summary | |
|---|---|
BoxInflate(IBox box,
ISpace space)
Constructs action ready to be performed on the given box. |
|
BoxInflate(ISpace space)
Constructs action with a default scale of 1.0. |
|
| Method Summary | |
|---|---|
void |
actionPerformed()
Performs boundary dimension change |
double |
getScale()
|
double |
getTargetDensity()
Returns the target density of the action. |
IVector |
getVectorScale()
Returns the current value of the inflation scale in each dimension. |
void |
setScale(double scale)
Sets the scale defining the amount of inflation. |
void |
setTargetDensity(double newTargetDensity)
Sets the action to change the box dimensions isotropically to achieve the given density. |
void |
setVectorScale(IVector scale)
Sets the scale defining the amount of inflation for each dimension. |
void |
undo()
Reverses the action of the inflation by performing the action with a scale given the by the reciprocal of the current scale. |
| Methods inherited from class etomica.action.BoxActionAdapter |
|---|
getBox, setBox |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AtomActionTranslateBy translator
protected final MoleculeChildAtomAction groupScaler
protected final IVectorMutable scaleVector
protected final IVectorMutable dimVector
protected final AtomPositionGeometricCenter moleculeCenter
| Constructor Detail |
|---|
public BoxInflate(ISpace space)
public BoxInflate(IBox box,
ISpace space)
| Method Detail |
|---|
public void setScale(double scale)
public double getScale()
public void setVectorScale(IVector scale)
public IVector getVectorScale()
public void setTargetDensity(double newTargetDensity)
public double getTargetDensity()
public void actionPerformed()
actionPerformed in interface IActionpublic void undo()
undo in interface Undoable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||