Library

Types

Dimensionless.DimBasisType
DimBasis(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_matrixFunction
dim_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_dimsFunction
num_of_dims(all_vars...)

Return the number of unique dimensions for the given variables all_vars.

Dimensionless.num_of_dimlessFunction
num_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_dimfulFunction

fac_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.dimlessFunction
dimless(quantity, basis)

Make a quantity dimensionless using a dimensional basis.

Dimensionless.dimfulFunction
dimful(value, unit, basis)

Restore the units of a dimensionless value using a dimensional basis.

Dimensionless.change_basisFunction
change_basis(var, basis, new_basis)

Transform the specified quantity or unit var from a current basis to a new_basis.

Dimensionless.print_dimlessFunction
print_dimless([io, ]named_dim_vector, basis)

Print the dimensionless number that can be constructed using named_dim_vector in the specified dimensional basis.