Loading...
Searching...
No Matches
dimensionSets Class Reference

Construction of unit sets. More...

#include <dimensionSets.H>

Public Member Functions

 dimensionSets (const HashTable< dimensionedScalar > &, const wordList &unitNames)
 Construct from all units and set of units to use for inversion (writing).
const PtrList< dimensionedScalar > & units () const noexcept
 Return the units.
bool good () const noexcept
 Is there a valid inverse of the selected unit.
bool valid () const noexcept
 Is there a valid inverse of the selected unit.
void coefficients (scalarField &exponents) const
 (if valid) obtain set of coefficients of unitNames

Detailed Description

Construction of unit sets.

Definition at line 89 of file dimensionSets.H.

Constructor & Destructor Documentation

◆ dimensionSets()

dimensionSets ( const HashTable< dimensionedScalar > & units,
const wordList & unitNames )

Construct from all units and set of units to use for inversion (writing).

Definition at line 219 of file dimensionSets.C.

References dimensioned< Type >::dimensions(), forAll, Foam::LUDecompose(), UList< T >::size(), and units().

Here is the call graph for this function:

Member Function Documentation

◆ units()

const PtrList< dimensionedScalar > & units ( ) const
inlinenoexcept

Return the units.

Definition at line 133 of file dimensionSets.H.

References Foam::noexcept.

Referenced by dimensionSets(), and dimensionSet::write().

Here is the caller graph for this function:

◆ good()

bool good ( ) const
inlinenoexcept

Is there a valid inverse of the selected unit.

Definition at line 141 of file dimensionSets.H.

References Foam::noexcept.

Referenced by dimensionSet::write().

Here is the caller graph for this function:

◆ valid()

bool valid ( ) const
inlinenoexcept

Is there a valid inverse of the selected unit.

Definition at line 146 of file dimensionSets.H.

References Foam::noexcept.

◆ coefficients()

void coefficients ( scalarField & exponents) const

(if valid) obtain set of coefficients of unitNames

Definition at line 263 of file dimensionSets.C.

References Foam::LUBacksubstitute().

Referenced by dimensionSet::write().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: