BioSimSpace.Units¶
The Units package provides a set of common physical units required by BioSimSpace. This provides convenient, short-hand access to BioSimSpace.Types.
Some examples:
import BioSimSpace as BSS
# Create a length of 14.3 Angstrom.
length = BSS.Types.Length(14.3, "Angstrom") # Long-winded way.
length = 14.3*BSS.Units.Length.angstrom # Simplified way.
# Create an area by multiplying two lengths.
area = 3.6*BSS.Units.Length.nanometer * 12*BSS.Units.Length.angstrom
# Create a time of 100 milliseconds.
time = 100*BSS.Units.Time.millisecond
Length units¶
A length in meters. |
|
A length in Angstrom. |
|
A length in nanometers. |
|
A length in picometers. |
Area units¶
An area in square meters. |
|
An area in square Angstrom. |
|
An area in square nanometers. |
|
An area in square picometers. |
Angle units¶
An angle in radians. |
|
An angle in degrees. |
Volume units¶
A volume in cube meters. |
|
A volume in cube Angstrom. |
|
A volume in cube nanometers. |
|
A volume in cube picometers. |
Charge units¶
A charge in electron charge. |
|
A charge in Coulomb. |
Energy units¶
An energy in kcal per mol. |
|
An energy in kJ per mol. |
|
An energy in KT. |
Pressure units¶
A pressure in atmosphere. |
|
A pressure in bar. |
Temperature units¶
A temperature in Kelvin. |
|
A temperature in Celsius. |
|
A temperature in Fahrenheit. |
Time units¶
A time in days. |
|
A time in hours. |
|
A time in minutes. |
|
A time in seconds. |
|
A time in milliseconds. |
|
A time in nanoseconds. |
|
A time in picoseconds. |
|
A time in femtoseconds. |