etomica.data
defines a Data class
which holds a DataInfo instance describing the Data; part of the information given in DataInfo
is a Dimension instance which specifies the physical dimensions of the data.
Dimension subclasses are defined for the fundamental dimensions and commonly encountered derived dimensions. These classes have names such as Length, Time, Volume, Energy, and so on. These classes all define static singleton instances with the field name DIMENSION; the field SIM_UNIT in each class gives an instance of Unit that corresponds to the unit derived from simulation units for that dimension. Other dimensions can be defined by constructing instances of CompoundDimension.
SimpleUnit is a basic class that holds a conversion factor, a Dimension instance and other descriptive information for implementing a basic Unit. Many specific units are defined by extending this class; examples include Kelvin, Bar, Joule, etc.
A PrefixedUnit class takes a Unit instance and a Prefix, which can be used to construct units such as kilograms (combining Prefix.KILO with Gram.UNIT).
Derived units that are not already defined can be constructed using the CompoundUnit class.
The package etomica.units.systems
defines constructs that
can collect the units defined by conventional unit systems, such as SI, cgs, English, etc.
Interface | Description |
---|---|
Unit |
Interface used to specify the physical units to be used when inputting or
outputting a quantity.
|
Class | Description |
---|---|
Ampere |
The ampere unit of electrical current.
|
Angstrom | |
Bar |
The bar unit of pressure, equal to 10^5 N/m^2.
|
Barye |
The barye unit of pressure, equal to 1 dyn/cm^2.
|
BohrRadius |
The Borh Radius unit of length, corresponding to the size of a Hydrogen
atom's electron cloud.
|
Calorie |
The Joule unit of energy, equal to 1 N-m or 1 kg-m^2/s^2.
|
Candela |
The candela is the luminous intensity, in a given direction, of a source that
emits monochromatic radiation of frequency 540 x 1012 hertz and that has a
radiant intensity in that direction of 1/683 watt per steradian.
|
CompoundUnit |
Unit formed from other units raised to specified powers.
|
Coulomb |
The Coulomb unit of electrical charge.
|
Count |
Unit class for the number, or quantity, of something.
|
CubicCentimeter |
The cubic centimeter unit of volume, cm^3.
|
CubicMeter |
The cubic meter unit of volume, m^3.
|
Dalton | |
Debye |
The debye unit of electrical dipole moment, equal to 10^-18 statC-cm,
or 3.33564e-30 C-m.
|
Decimal |
Decimal representation of something that represents the fractional
amount of a whole (e.g., mole fraction) as a decimal value typically
between 0 and 1.
|
Degree |
Standard degree angular unit, such that for example a right angle is 90 degrees.
|
Dyne |
The dyne unit of force, equal to 1 g-cm/s^2.
|
Electron |
Unit of charge equal to the magnitude of the charge on an electron.
|
ElectronVolt |
The electronVolt unit of energy, equal to approximately 1.602e-19 Joules.
|
Erg |
The erg unit of energy, equal to 1 dyn-cm or 1 g-cm^2/s^2.
|
Gram | |
Hartree | |
Hertz |
The Hertz unit of frequency, equal to 1/second.
|
Joule |
The Joule unit of energy, equal to 1 N-m or 1 kg-m^2/s^2.
|
Kelvin | |
Liter |
The liter unit of volume, equal to 1000 cm^3 or 0.001 m^3 or 10^27 A^3.
|
Meter |
The meter unit of length, equal to 10^10 angstroms.
|
Mole |
The mole unit of quantity, approximately equal to 6.022e23 simulation units.
|
Newton |
The Newton unit of force, equal to 1 kg-m/s^2.
|
Pascal |
The Pascal unit of pressure, equal to 1 N/m^2.
|
Percent |
Decimal representation of something that represents the fractional
amount of a whole (e.g., mole fraction) as a percentage value typically
between 0 and 100.
|
Picosecond |
Simulation unit of time.
|
Pixel |
Unit converting between simulation unit of length and pixels rendered in an
image.
|
Poise |
The Poise unit of viscosity, equal to 1 gram/(cm-sec).
|
PrefixedUnit |
Implementation of the Unit interface formed from a base Unit (e.
|
Radian |
Simulation unit for the measure of an angle.
|
Second | |
SimpleUnit |
Superclass for all base unit classes.
|
Statcoulomb |
The statcoulomb unit of electrical charge, which is the
standard unit of charge in the CGS unit system.
|
UnitRatio |
Class for constructing units forms as ratios of other units.
|
Volt |
The Volt unit of electric potential.
|
Watt |
The Watt unit of power, equal to 1 J/s or 1 kg-m^2/s^3.
|
Enum | Description |
---|---|
Prefix |
Base class for all unit prefixes, such as kilo, micro, nano, etc.
|