xotl.tools.dim.base - The base physical quantities

The standard physical quantities.

class xotl.tools.dim.base.Length[source]

The Length base quantity.

metre

The canonical unit.

m

An alias of metre

Other attributes:

kilometre
km
centimetre
cm
millimetre
mm
nanometre
nm
class xotl.tools.dim.base.Time[source]

The Time base quantity.

second

The canonical unit.

s

An alias of second

Other attributes:

millisecond
ms
nanosecond
ns
minute
hour
class xotl.tools.dim.base.Mass[source]

The Mass base quantity.

kilogram

The canonical unit.

kg

An alias of kilogram

Other attributes:

gram
class xotl.tools.dim.base.ElectricCurrent[source]

The electrical current base quantity.

ampere

The canonical unit.

A

An alias of ampere

class xotl.tools.dim.base.Temperature[source]

The thermodynamic temperature base quantity.

kelvin

The canonical unit.

K

An alias of kelvin

classmethod from_celcius(val)[source]

Convert val ºC to K

classmethod from_fahrenheit(val)[source]

Convert val ºF to K

class xotl.tools.dim.base.Substance[source]

The amount of substance.

mole
mol

An alias of mole.

class xotl.tools.dim.base.Luminosity[source]

The luminous intensity base quantity.

candela

Aliases

class xotl.tools.dim.base.L

An alias of Length

class xotl.tools.dim.base.T

An alias of Time

class xotl.tools.dim.base.M

An alias of Mass

class xotl.tools.dim.base.I

An alias of ElectricCurrent

class xotl.tools.dim.base.O

An alias of Temperature. We can’t really use the Greek Theta Θ

class xotl.tools.dim.base.N

An alias of Substance

class xotl.tools.dim.base.J

An alias of Luminosity

Derived quantities

class xotl.tools.dim.base.Area

Defined as L**2.

metre_squared

The canonical unit.

class xotl.tools.dim.base.Volume

Defined as L**3.

metre_cubic

The canonical unit.

class xotl.tools.dim.base.Frequency

Defined as T**-1 (which is the same as 1/T).

unit_per_second

The canonical unit.

Aliases of the canonical unit:

Hz
class xotl.tools.dim.base.Force

Defined as L * M * T**-2.

metre_kilogram_per_second_squared

The canonical unit.

Aliases of the canonical unit:

N
Newton
class xotl.tools.dim.base.Pressure

Defined as L**-1 * M * T**-2.

kilogram_per_metre_per_second_squared

Aliases of the canonical unit:

pascal
Pa

Changed in version 2.1.11: Corrected the name from ‘Presure’ to ‘Pressure’. You can still import the mistyped name.

class xotl.tools.dim.base.Velocity

Defined as L * T**-1.

metre_per_second

The canonical unit.

class xotl.tools.dim.base.Acceleration

Defined as L * T**-2.

metre_per_second_squared

The canonical unit.

On the automatically created names for derived quantities

We automatically create the name of the canonical unit of quantities derived from others by simple rules:

  • A * B joins the canonical unit names together with a low dash ‘_’ in-between. Let’s represent it as a_b, where a stands for the name of the canonical unit of A and b, the canonical unit of B.

    For the case, A * A the unit name is a_squared.

  • A/B gets the name a_per_b. 1/A gets the name unit_per_a

  • A**n; when n=1 this is the same as A; when n=2 this is the same as A * A; for other positive values of n, the canonical unit name is a_pow_n; for negative values of n is the same as 1/A**n; for n=0 this is the Scalar quantity.