etomica.units
Class Pressure

java.lang.Object
  extended by etomica.units.Dimension
      extended by etomica.units.Pressure
All Implemented Interfaces:
Serializable

public final class Pressure
extends Dimension

Dimension for (3D) pressure.

See Also:
Serialized Form

Field Summary
static Dimension DIMENSION
          Singleton instance of this class.
static Unit SIM_UNIT
          Simulation unit of pressure is (D-A/ps^2)/A^2 = D/(A-ps^2).
 
Fields inherited from class etomica.units.Dimension
MIXED, N_BASE
 
Method Summary
static Dimension dimension(int D)
          Returns the Dimension instance for the "pressure" appropriate to the given dimension.
 Unit getUnit(UnitSystem unitSystem)
          Returns the unit of this dimension as derived in the given system of units.
 
Methods inherited from class etomica.units.Dimension
equals, introspect, signature, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIMENSION

public static final Dimension DIMENSION
Singleton instance of this class.


SIM_UNIT

public static final Unit SIM_UNIT
Simulation unit of pressure is (D-A/ps^2)/A^2 = D/(A-ps^2).

Method Detail

getUnit

public Unit getUnit(UnitSystem unitSystem)
Description copied from class: Dimension
Returns the unit of this dimension as derived in the given system of units. Default constructs a CompoundUnit using the base units of the unit system.

Overrides:
getUnit in class Dimension

dimension

public static Dimension dimension(int D)
Returns the Dimension instance for the "pressure" appropriate to the given dimension. In particular, for D = 3, returns Pressure.DIMENSION; for D = 2, returns Pressure2D.DIMENSION.

Throws:
IllegalArgumentException - if D is not equal to 2, or 3.