etomica.action
Class BoxScaleMomenta

java.lang.Object
  extended by 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.


Field Summary
protected  IBox box
           
protected  IVectorMutable momentum
           
protected  double temperature
           
 
Constructor Summary
BoxScaleMomenta(IBox box, ISpace space)
           
 
Method Summary
 void actionPerformed()
          Completes the action defined by the class implementing this interface.
 IBox getBox()
           
 double getTemperature()
           
 void setTemperature(double newTemperature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

box

protected final IBox box

momentum

protected final IVectorMutable momentum

temperature

protected double temperature
Constructor Detail

BoxScaleMomenta

public BoxScaleMomenta(IBox box,
                       ISpace space)
Method Detail

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