dimensionSets Class Reference

Public Member Functions

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

Detailed Description

Definition at line 76 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.

Definition at line 216 of file dimensionSets.C.

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

Referenced by Foam::writeUnitSet().

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

Member Function Documentation

◆ units()

const PtrList<dimensionedScalar>& units ( ) const
inline

Return the units.

Definition at line 107 of file dimensionSets.H.

Referenced by dimensionSet::write().

Here is the caller graph for this function:

◆ valid()

bool valid ( ) const
inline

Is there a valid inverse of the selected unit.

Definition at line 113 of file dimensionSets.H.

References dimensionSets::coefficients(), Foam::dimensionSystems(), Foam::unitSet(), and Foam::writeUnitSet().

Referenced by dimensionSet::write().

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

◆ coefficients()

void coefficients ( scalarField exponents) const

(if valid) obtain set of coefficients of unitNames

Definition at line 260 of file dimensionSets.C.

References Foam::LUBacksubstitute().

Referenced by dimensionSets::valid(), and 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: