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.
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.
Other attributes:
-
millisecond
¶
-
ms
¶
-
nanosecond
¶
-
ns
¶
-
minute
¶
-
hour
¶
-
-
class
xotl.tools.dim.base.
Mass
[source]¶ The Mass base quantity.
-
kilogram
¶ The canonical unit.
Other attributes:
-
gram
¶
-
-
class
xotl.tools.dim.base.
ElectricCurrent
[source]¶ The electrical current base quantity.
-
ampere
¶ The canonical unit.
-
-
class
xotl.tools.dim.base.
Temperature
[source]¶ The thermodynamic temperature base quantity.
-
kelvin
¶ The canonical unit.
-
Aliases¶
-
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.
J
¶ An alias of
Luminosity
Derived quantities¶
-
class
xotl.tools.dim.base.
Frequency
¶ Defined as
T
**-1
(which is the same as1/T
).-
unit_per_second
¶ The canonical unit.
Aliases of the canonical unit:
-
Hz
¶
-
-
class
xotl.tools.dim.base.
Force
¶ -
-
metre_kilogram_per_second_squared
¶ The canonical unit.
Aliases of the canonical unit:
-
N
¶
-
Newton
¶
-
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 ofA
and b, the canonical unit ofB
.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_aA**n
; whenn=1
this is the same asA
; whenn=2
this is the same asA * A
; for other positive values ofn
, the canonical unit name is a_pow_n; for negative values ofn
is the same as1/A**n
; forn=0
this is theScalar
quantity.