Public Member Functions | Private Attributes
dimensionSets Class Reference
Collaboration diagram for dimensionSets:
Collaboration graph
[legend]

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...
 

Private Attributes

PtrList< dimensionedScalarunits_
 Set of dimensions. More...
 
scalarSquareMatrix conversion_
 LU decomposition of dimensions. More...
 
labelList conversionPivots_
 See above. More...
 
bool valid_
 Is LU decomposition valid. 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.

(writing)

Definition at line 210 of file dimensionSets.C.

References dimensioned::dimensions(), forAll, Foam::LUDecompose(), and List::size().

Here is the call 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.

References dimensionSets::units_.

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::valid_.

Referenced by dimensionSet::write().

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 253 of file dimensionSets.C.

References dimensionSets::conversion_, dimensionSets::conversionPivots_, and Foam::LUBacksubstitute().

Referenced by dimensionSet::write().

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

Field Documentation

◆ units_

PtrList<dimensionedScalar> units_
private

Set of dimensions.

Definition at line 81 of file dimensionSets.H.

Referenced by dimensionSets::units().

◆ conversion_

scalarSquareMatrix conversion_
private

LU decomposition of dimensions.

Definition at line 84 of file dimensionSets.H.

Referenced by dimensionSets::coefficients().

◆ conversionPivots_

labelList conversionPivots_
private

See above.

Definition at line 87 of file dimensionSets.H.

Referenced by dimensionSets::coefficients().

◆ valid_

bool valid_
private

Is LU decomposition valid.

Definition at line 90 of file dimensionSets.H.

Referenced by dimensionSets::valid().


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