etomica.units.systems
Class LJ
java.lang.Object
etomica.units.systems.UnitSystem
etomica.units.systems.LJ
- All Implemented Interfaces:
- Serializable
public class LJ
- extends UnitSystem
- implements Serializable
Lennard-Jones system of units, such that all quantities are made
dimensionless with respect to a characteristic size (sigma), energy (epsilon)
and mass. Values of sigma, epsilon and mass reside with the instance of
the LJ unit system, to which each unit refers when making its conversion.
Thus any changes in sigma, epsilon, or mass are immediately recognized
by the unit conversions.
Values of sigma, epsilon, and mass are specified in simulation units.
Default values are each 1.0.
- See Also:
- Serialized Form
|
Field Summary |
protected double |
epsilon
|
protected double |
mass
|
protected double |
sigma
|
|
Constructor Summary |
LJ()
Constructs LJ unit system with default values of sigma, epsilon and mass each equal to unity. |
LJ(double sigma,
double epsilon,
double mass,
boolean unicodeSymbols)
Constructs LJ unit system with given values of sigma, epsilon, mass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sigma
protected double sigma
epsilon
protected double epsilon
mass
protected double mass
LJ
public LJ()
- Constructs LJ unit system with default values of sigma, epsilon and mass each equal to unity.
Default uses unicode for symbols
LJ
public LJ(double sigma,
double epsilon,
double mass,
boolean unicodeSymbols)
- Constructs LJ unit system with given values of sigma, epsilon, mass.
- Parameters:
unicodeSymbols - if true, Unit symbols will be constructed using unicode
expressions for sigma and epsilon and other symbols; otherwise
substitutes are used.
getSigma
public double getSigma()
setSigma
public void setSigma(double s)
getEpsilon
public double getEpsilon()
setEpsilon
public void setEpsilon(double e)
getMass
public double getMass()
setMass
public void setMass(double m)
quantity
public Unit quantity()
- Specified by:
quantity in class UnitSystem
fraction
public Unit fraction()
- Specified by:
fraction in class UnitSystem
mass
public Unit mass()
- Specified by:
mass in class UnitSystem
length
public Unit length()
- Specified by:
length in class UnitSystem
time
public Unit time()
- Specified by:
time in class UnitSystem
angle
public Unit angle()
- Specified by:
angle in class UnitSystem
charge
public Unit charge()
- Specified by:
charge in class UnitSystem
current
public Unit current()
- Specified by:
current in class UnitSystem
dipole
public Unit dipole()
- Specified by:
dipole in class UnitSystem
force
public Unit force()
- Specified by:
force in class UnitSystem
energy
public Unit energy()
- Specified by:
energy in class UnitSystem
temperature
public Unit temperature()
- Specified by:
temperature in class UnitSystem
pressure
public Unit pressure()
- Specified by:
pressure in class UnitSystem
volume
public Unit volume()
- Specified by:
volume in class UnitSystem
area
public Unit area()
- Specified by:
area in class UnitSystem
viscosity
public Unit viscosity()
- Specified by:
viscosity in class UnitSystem