mdpy.unit.BaseDimension#
- class mdpy.unit.BaseDimension(length_dimension=0, time_dimension=0, mass_dimension=0, temperature_dimension=0, charge_dimension=0, mol_dimension=0)[source]#
- __init__(length_dimension=0, time_dimension=0, mass_dimension=0, temperature_dimension=0, charge_dimension=0, mol_dimension=0) None [source]#
- Parameters:
length_dimension (int, optional) – dimension of length, by default 0
time_dimension (int, optional) – dimension of time, by default 0
mass_dimension (int, optional) – dimension of mass, by default 0
temperature_dimension (int, optional) – dimension of temperature, by default 0
charge_dimension (int, optional) – dimension of charge, by default 0
mol_dimension (int, optional) – dimension of amount of substance, by default 0
Methods
__init__
([length_dimension, time_dimension, ...])- param length_dimension:
dimension of length, by default 0
is_dimension_less
()is_dimension_less judges wether
self
is a dimensionlesssqrt
()sqrt returns square root of Quantity
Attributes
charge_dimension
charge_dimension gets the dimension of charge
dimension_dict
length_dimension
length_dimension gets the dimension of length
mass_dimension
mass_dimension gets the dimension of mass
mol_dimension
mol_dimension gets the dimension of amount of substance
name
name gets the name of
self
temperature_dimension
temperature_dimension gets the dimension of temperature
time_dimension
time_dimension gets the dimension of time