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< dimensionedScalar > | units_ |
Set of dimensions. More... | |
scalarSquareMatrix | conversion_ |
LU decomposition of dimensions. More... | |
labelList | conversionPivots_ |
See above. More... | |
bool | valid_ |
Is LU decomposition valid. More... | |
Definition at line 76 of file dimensionSets.H.
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().
|
inline |
Return the units.
Definition at line 107 of file dimensionSets.H.
References dimensionSets::units_.
Referenced by dimensionSet::write().
|
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().
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().
|
private |
Set of dimensions.
Definition at line 81 of file dimensionSets.H.
Referenced by dimensionSets::units().
|
private |
LU decomposition of dimensions.
Definition at line 84 of file dimensionSets.H.
Referenced by dimensionSets::coefficients().
|
private |
See above.
Definition at line 87 of file dimensionSets.H.
Referenced by dimensionSets::coefficients().
|
private |
Is LU decomposition valid.
Definition at line 90 of file dimensionSets.H.
Referenced by dimensionSets::valid().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.