etomica.action
Class BoxScaleMomenta
java.lang.Object
etomica.action.BoxScaleMomenta
- All Implemented Interfaces:
- IAction
public class BoxScaleMomenta
- extends Object
- implements IAction
Scales the momenta of all the leaf atoms in an IBox such that the kinetic
temperature matches some value. The net momentum is also subtracted off so
that there is no net momentum.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
box
protected final IBox box
momentum
protected final IVectorMutable momentum
temperature
protected double temperature
BoxScaleMomenta
public BoxScaleMomenta(IBox box,
ISpace space)
setTemperature
public void setTemperature(double newTemperature)
getTemperature
public double getTemperature()
getBox
public IBox getBox()
actionPerformed
public void actionPerformed()
- Description copied from interface:
IAction
- Completes the action defined by the class implementing this interface.
- Specified by:
actionPerformed in interface IAction