narupatools.core.units

Core unit conversion system.

Module Attributes

second

The second (\(\text{s}\)), the SI unit of time.

meter

The meter (\(\text{m}\)), the SI unit of length.

dalton

The dalton (\(\text{Da}\)) unit of mass.

amu

The atomic mass unit (\(\text{amu}\)) unit of mass.

gram

The gram (\(\text{g}\)), the SI unit of mass.

elementary_charge

The elementary charge (\(\text{e}\)) as a unit of charge.

coulomb

The coulomb (\(\text{C}\)), the SI unit of charge.

kelvin

The kelvin (\(\text{K}\)), the SI unit of absolute temperature.

radian

The radian (\(\text{rad}\)), the natural unit of angle.

degree

The degree (\(^{\circ}\)) unit of angle.

joule

The joule (\(\text{J}\)), the SI unit of energy defined as \(1 \text{J} = 1 \text{kg} \text{m}^2 \text{s}^{-2}\).

mole

The mole (\(\text{mol}\)) unit of quantity, equal to Avogadro’s constant.

angstrom

The angstrom (\(\text{\AA}\)) unit of length.

electronvolt

The electronvolt (\(\text{eV}\)) unit of energy.

calorie

The (gram) calorie (\(\text{cal}\)) unit of energy.

newton

The newton (\(\text{N}\)), the SI unit of force defined as \(1 \text{N} = 1 \text{kg} \text{m} \text{s}^{-2}\).

pascal

The pascal (\(\text{Pa}\)), the SI unit of pressure defined as \(1 \text{N} = 1 \text{kg} \text{m}^{-1} \text{s}^{-2}\).

bar

The bar (\(\text{bar}\)) unit of pressure.

atmosphere

The atmosphere (\(\text{atm}\)) unit of pressure.

bohr

The Bohr radius (\(\text{a_0}\)) unit of length.

hartree

The Hartree (\(\text{Ha}\)) unit of energy.

statcoulomb

The statcoulomb (\(\text{statC}\)) unit of charge.

volt

The volt (\(\text{V}\)) unit of electric field.

statvolt

The statvolt (\(\text{statV}\)) unit of electric field.

esu

The electrostatic unit of charge (\(\text{esu}\)) unit of charge

dyne

The dyne (\(\text{dyn}\)) unit of force.

debye

The debye (\(\text{D}\)) unit of pressure.

poise

The poise (\(\text{P}\)) unit of dynamic viscosity.

atomic_time_unit

The atomic time unit of time.

amp

The ampere (\(\text{A}\)) unit of current.

erg

The erg (\(\text{erg}\)) unit of energy.

UnitsNarupa

Unit system used by Narupa/narupatools.

Classes

Prefix(value)

Represents a prefix that can be applied to a unit.

UnfinishedUnitOrQuantity(prefix, prepend)

Partially assembled quantity consisting of values, units and prefixes.

Unit(value, int, narupatools.core.units.Unit])

Physical unit defined in terms of the units of Narupa.

UnitConversion(a, b)

Conversion between two distinct unit systems.

UnitSystem(**kwargs, …)

System of units which can be converted between each other.