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
selfis a dimensionlesssqrt()sqrt returns square root of Quantity
Attributes
charge_dimensioncharge_dimension gets the dimension of charge
dimension_dictlength_dimensionlength_dimension gets the dimension of length
mass_dimensionmass_dimension gets the dimension of mass
mol_dimensionmol_dimension gets the dimension of amount of substance
namename gets the name of
selftemperature_dimensiontemperature_dimension gets the dimension of temperature
time_dimensiontime_dimension gets the dimension of time