Library
Types
Dimensionless.DimBasis
— TypeDimBasis(basis_vectors...) -> DimBasis
Create a dimensional basis for a number of basis_vectors
(quantities, units or dimensions). A string identifier can optionally be added to each basis vector.
Functions
Dimensionless.dim_matrix
— Functiondim_matrix(basis_dims, all_values...)
Return the dimensional matrix for a set of basis dimensions basis_dims
and all_values
, a set of quantities, units or dimensions.
Dimensionless.num_of_dims
— Functionnum_of_dims(all_vars...)
Return the number of unique dimensions for the given variables all_vars
.
Dimensionless.num_of_dimless
— Functionnum_of_dimless(all_vars...)
Return the number of dimensionless numbers that can be constructed for a problem characterized by the variables all_vars
.
Dimensionless.fac_dimful
— Functionfac_dimful(unit, basis)
Return the scalar, dimensionless factor that a dimensionless value has to be multiplied with in order to translate it into the given unit
in the specified basis
.
Dimensionless.dimless
— Functiondimless(quantity, basis)
Make a quantity
dimensionless using a dimensional basis
.
Dimensionless.dimful
— Functiondimful(value, unit, basis)
Restore the unit
s of a dimensionless value
using a dimensional basis
.
Dimensionless.change_basis
— Functionchange_basis(var, basis, new_basis)
Transform the specified quantity or unit var
from a current basis
to a new_basis
.
Dimensionless.print_dimless
— Functionprint_dimless([io, ]named_dim_vector, basis)
Print the dimensionless number that can be constructed using named_dim_vector
in the specified dimensional basis
.