unitsSI#

This is the base class for SI units.

class samson.SBQuantity.unitsSI(*args, **kwargs)#

Bases: pybind11_object

Units system, serves as a wrapper between SBQuantity and Python

Overloaded function.

  1. __init__(self: samson.SBQuantity.unitsSI) -> None

Constructs the zero dimensionless unit

  1. __init__(self: samson.SBQuantity.unitsSI, v: float) -> None

Constructs the dimensionless unit with the given value v

  1. __init__(self: samson.SBQuantity.unitsSI, value: float, scale: list[int], exponent: list[int]) -> None

Construct the physical unit with value, scale and exponent

  1. __init__(self: samson.SBQuantity.unitsSI, u: samson.SBQuantity.unitsSI) -> None

Constructs the physical unit from the given physical unit u

__add__(*args, **kwargs)#

Overloaded function.

  1. __add__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __add__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__eq__(*args, **kwargs)#

Overloaded function.

  1. __eq__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __eq__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __eq__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__ge__(*args, **kwargs)#

Overloaded function.

  1. __ge__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __ge__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __ge__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__gt__(*args, **kwargs)#

Overloaded function.

  1. __gt__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __gt__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __gt__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__iadd__(*args, **kwargs)#

Overloaded function.

  1. __iadd__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __iadd__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__imul__(*args, **kwargs)#

Overloaded function.

  1. __imul__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __imul__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__isub__(*args, **kwargs)#

Overloaded function.

  1. __isub__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __isub__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__itruediv__(*args, **kwargs)#

Overloaded function.

  1. __itruediv__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __itruediv__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__le__(*args, **kwargs)#

Overloaded function.

  1. __le__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __le__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __le__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__lt__(*args, **kwargs)#

Overloaded function.

  1. __lt__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __lt__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __lt__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__mul__(*args, **kwargs)#

Overloaded function.

  1. __mul__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __mul__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__ne__(*args, **kwargs)#

Overloaded function.

  1. __ne__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  2. __ne__(self: samson.SBQuantity.unitsSI, arg0: float) -> bool

  3. __ne__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> bool

__neg__(self: samson.SBQuantity.unitsSI) samson.SBQuantity.unitsSI#
__radd__(self: samson.SBQuantity.unitsSI, arg0: float) samson.SBQuantity.unitsSI#
__rmul__(self: samson.SBQuantity.unitsSI, arg0: float) samson.SBQuantity.unitsSI#
__rsub__(self: samson.SBQuantity.unitsSI, arg0: float) samson.SBQuantity.unitsSI#
__rtruediv__(self: samson.SBQuantity.unitsSI, arg0: float) samson.SBQuantity.unitsSI#
__sub__(*args, **kwargs)#

Overloaded function.

  1. __sub__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __sub__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

__truediv__(*args, **kwargs)#

Overloaded function.

  1. __truediv__(self: samson.SBQuantity.unitsSI, arg0: float) -> samson.SBQuantity.unitsSI

  2. __truediv__(self: samson.SBQuantity.unitsSI, arg0: samson.SBQuantity.unitsSI) -> samson.SBQuantity.unitsSI

static fromLinearInterpolation(q0: samson.SBQuantity.unitsSI, q1: samson.SBQuantity.unitsSI, alpha: float) samson.SBQuantity.unitsSI#

Returns a linear interpolation between two physical quantities q0 and q1 for a parameter alpha in the closed unit interval [0, 1].

setZero(self: samson.SBQuantity.unitsSI) None#

Sets the value to zero

str(self: samson.SBQuantity.unitsSI, fullName: bool = False) str#

Converts the physical quantity to a string (with a full unit name when fullName is True.)

toDebugString(self: samson.SBQuantity.unitsSI) str#
property A#

quantity in ampere

property Da#

convert to dalton

property Eh#

convert to hartree

property GHz#

quantity in gigahertz

property Hz#

quantity in hertz

property J#

convert to joule

property JPerMol#

convert to joulePerMole

property JPerMolToEh#

convert to hartree

property JPerMolToeV#

convert to electronvolt

property JperMolTokcalPerMol#

convert to kilocaloriePerMole

property K#

quantity in kelvin

property MHz#

quantity in megahertz

property N#

quantity in newton

property a0#

convert to a0

property aA#

quantity in attoampere

property aK#

quantity in attokelvin

property acd#

quantity in attocandela

property ag#

quantity in attogram

property am#

quantity in attometer

property amol#

quantity in attomole

property ampere#

quantity in ampere

property angstrom#

quantity in angstrom

property as#

quantity in attosecond

property attoampere#

quantity in attoampere

property attocandela#

quantity in attocandela

property attogram#

quantity in attogram

property attokelvin#

quantity in attokelvin

property attometer#

quantity in attometer

property attomole#

quantity in attomole

property attosecond#

quantity in attosecond

property auAction#

convert to auAction

property auCharge#

convert to auCharge

property auMass#

convert to auMass

property auTime#

convert to auTime

property bohr#

convert to bohr

property cA#

quantity in centiampere

property cK#

quantity in centikelvin

property candela#

quantity in candela

property ccd#

quantity in centicandela

property cd#

quantity in candela

property centiampere#

quantity in centiampere

property centicandela#

quantity in centicandela

property centigram#

quantity in centigram

property centikelvin#

quantity in centikelvin

property centimeter#

quantity in centimeter

property centimole#

quantity in centimole

property centisecond#

quantity in centisecond

property cg#

quantity in centigram

property cm#

quantity in centimeter

property cmol#

quantity in centimole

property cs#

quantity in centisecond

property dA#

quantity in deciampere

property dK#

quantity in decikelvin

property daA#

quantity in decaampere

property daK#

quantity in decakelvin

property dacd#

quantity in decacandela

property dag#

quantity in decagram

property dalton#

convert to dalton

property dam#

quantity in decameter

property damol#

quantity in decamole

property dcd#

quantity in decicandela

property decaampere#

quantity in decaampere

property decacandela#

quantity in decacandela

property decagram#

quantity in decagram

property decakelvin#

quantity in decakelvin

property decameter#

quantity in decameter

property decamole#

quantity in decamole

property deciampere#

quantity in deciampere

property decicandela#

quantity in decicandela

property decigram#

quantity in decigram

property decikelvin#

quantity in decikelvin

property decimeter#

quantity in decimeter

property decimole#

quantity in decimole

property decisecond#

quantity in decisecond

property dg#

quantity in decigram

property dm#

quantity in decimeter

property dmol#

quantity in decimole

property ds#

quantity in decisecond

property eV#

convert to electronvolt

property electronCharge#

convert to electronCharge

property electronMass#

convert to electronMass

property electronvolt#

convert to electronvolt

property fA#

quantity in femtoampere

property fK#

quantity in femtokelvin

property fcd#

quantity in femtocandela

property femtoampere#

quantity in femtoampere

property femtocandela#

quantity in femtocandela

property femtogram#

quantity in femtogram

property femtokelvin#

quantity in femtokelvin

property femtometer#

quantity in femtometer

property femtomole#

quantity in femtomole

property femtosecond#

quantity in femtosecond

property fg#

quantity in femtogram

property fm#

quantity in femtometer

property fmol#

quantity in femtomole

property fs#

quantity in femtosecond

property g#

quantity in gram

property gigahertz#

quantity in gigahertz

property gram#

quantity in gram

property hA#

quantity in hectoampere

property hBar#

convert to hBar

property hK#

quantity in hectokelvin

property hartree#

convert to hartree

property hcd#

quantity in hectocandela

property hectoampere#

quantity in hectoampere

property hectocandela#

quantity in hectocandela

property hectogram#

quantity in hectogram

property hectokelvin#

quantity in hectokelvin

property hectometer#

quantity in hectometer

property hectomole#

quantity in hectomole

property hertz#

quantity in hertz

property hg#

quantity in hectogram

property hm#

quantity in hectometer

property hmol#

quantity in hectomole

property isDimensionless#

Returns True if the unit is dimensionless

property joule#

convert to joule

property joulePerMole#

convert to joulePerMole

property joulePerMoleToElectronvolt#

convert to electronvolt

property joulePerMoleToHartree#

convert to hartree

property joulePerMoleToKilocaloriePerMole#

convert to kilocaloriePerMole

property kA#

quantity in kiloampere

property kHz#

quantity in kilohertz

property kJ#

quantity in kilojoule

property kK#

quantity in kilokelvin

property kcalPerMol#

convert to kilocaloriePerMole

property kcd#

quantity in kilocandela

property kelvin#

quantity in kelvin

property kg#

quantity in kilogram

property kiloampere#

quantity in kiloampere

property kilocaloriePerMole#

convert to kilocaloriePerMole

property kilocandela#

quantity in kilocandela

property kilogram#

quantity in kilogram

property kilohertz#

quantity in kilohertz

property kilojoule#

quantity in kilojoule

property kilokelvin#

quantity in kilokelvin

property kilometer#

quantity in kilometer

property kilomole#

quantity in kilomole

property km#

quantity in kilometer

property kmol#

quantity in kilomole

property m#

quantity in meter

property mA#

quantity in milliampere

property mK#

quantity in millikelvin

property mcd#

quantity in millicandela

property megahertz#

quantity in megahertz

property meter#

quantity in meter

property mg#

quantity in milligram

property microampere#

quantity in microampere

property microcandela#

quantity in microcandela

property microgram#

quantity in microgram

property microkelvin#

quantity in microkelvin

property micrometer#

quantity in micrometer

property micromole#

quantity in micromole

property microsecond#

quantity in microsecond

property milliampere#

quantity in milliampere

property millicandela#

quantity in millicandela

property milligram#

quantity in milligram

property millikelvin#

quantity in millikelvin

property millimeter#

quantity in millimeter

property millimole#

quantity in millimole

property millisecond#

quantity in millisecond

property mm#

quantity in millimeter

property mmol#

quantity in millimole

property mol#

quantity in mole

property mole#

quantity in mole

property ms#

quantity in millisecond

property nA#

quantity in nanoampere

property nK#

quantity in nanokelvin

property nN#

quantity in nanonewton

property nanoampere#

quantity in nanoampere

property nanocandela#

quantity in nanocandela

property nanogram#

quantity in nanogram

property nanokelvin#

quantity in nanokelvin

property nanometer#

quantity in nanometer

property nanomole#

quantity in nanomole

property nanonewton#

quantity in nanonewton

property nanosecond#

quantity in nanosecond

property ncd#

quantity in nanocandela

property newton#

quantity in newton

property ng#

quantity in nanogram

property nm#

quantity in nanometer

property nmol#

quantity in nanomole

property ns#

quantity in nanosecond

property pA#

quantity in picoampere

property pK#

quantity in picokelvin

property pN#

quantity in piconewton

property pcd#

quantity in picocandela

property pg#

quantity in picogram

property picoampere#

quantity in picoampere

property picocandela#

quantity in picocandela

property picogram#

quantity in picogram

property picokelvin#

quantity in picokelvin

property picometer#

quantity in picometer

property picomole#

quantity in picomole

property piconewton#

quantity in piconewton

property picosecond#

quantity in picosecond

property pm#

quantity in picometer

property pmol#

quantity in picomole

property ps#

quantity in picosecond

property s#

quantity in second

property second#

quantity in second

property sizeOfUnitSystem#
property uA#

quantity in microampere

property uK#

quantity in microkelvin

property ucd#

quantity in microcandela

property ug#

quantity in microgram

property um#

quantity in micrometer

property umol#

quantity in micromole

property us#

quantity in microsecond

property value#

Returns value of the unit

property yA#

quantity in yoctoampere

property yK#

quantity in yoctokelvin

property ycd#

quantity in yoctocandela

property yg#

quantity in yoctogram

property ym#

quantity in yoctometer

property ymol#

quantity in yoctomole

property yoctoampere#

quantity in yoctoampere

property yoctocandela#

quantity in yoctocandela

property yoctogram#

quantity in yoctogram

property yoctokelvin#

quantity in yoctokelvin

property yoctometer#

quantity in yoctometer

property yoctomole#

quantity in yoctomole

property yoctosecond#

quantity in yoctosecond

property ys#

quantity in yoctosecond

property zA#

quantity in zeptoampere

property zJ#

quantity in zeptojoule

property zK#

quantity in zeptokelvin

property zcd#

quantity in zeptocandela

property zeptoampere#

quantity in zeptoampere

property zeptocandela#

quantity in zeptocandela

property zeptogram#

quantity in zeptogram

property zeptojoule#

quantity in zeptojoule

property zeptokelvin#

quantity in zeptokelvin

property zeptometer#

quantity in zeptometer

property zeptomole#

quantity in zeptomole

property zeptosecond#

quantity in zeptosecond

property zg#

quantity in zeptogram

property zm#

quantity in zeptometer

property zmol#

quantity in zeptomole

property zs#

quantity in zeptosecond