Units¶
Pre-defined units built on Pint. All units are instances of
pint.Unit from a shared UnitRegistry.
Pressure¶
GigaPascal– GPaMegaPascal– MPa
Length¶
Millimeter– mmMicrometer– umNanometer– nm
Temperature¶
Celsius– degCKelvin– K
Time¶
HourMinuteSecond
Other¶
gram_per_cm3– density (g/cm3)HV– Vickers hardnesspercent– %CelsiusPerMinute– heating/cooling rateRevolutionsPerMinute– RPMMegaPascalSquareRootMeter– fracture toughness (MPa*m^0.5)
Usage¶
from litxbench.core.units import MegaPascal, Celsius, Hour
Quantity(value=1250, unit=MegaPascal)
Quantity(value=900, unit=Celsius)
Quantity(value=2, unit=Hour)