69 if (!dict.
found(
"unitSet"))
72 <<
"Cannot find unitSet in dictionary " << dict.
name()
78 if (!dict.
found(unitSetCoeffs))
81 <<
"Cannot find " << unitSetCoeffs <<
" in dictionary " 91 if (iter().keyword() !=
"writeUnits")
94 const bool ok =
unitSetPtr_->insert(iter().keyword(), dt);
98 <<
"Duplicate unit " << iter().keyword()
99 <<
" in DimensionSets dictionary" 116 if (writeUnitNames.
size() != 0 && writeUnitNames.
size() != 7)
119 <<
"Cannot find entry \"writeUnits\" in " << unitDict.
name()
120 <<
" or it is not a wordList of size 7" 180 units_(unitNames.
size()),
181 conversion_(unitNames.
size()),
182 conversionPivots_(unitNames.
size()),
197 if (unitNames.
size() == 7)
202 for (
label rowI = 0; rowI < conversion_.m(); rowI++)
204 scalar* row = conversion_[rowI];
206 for (
label columnI = 0; columnI < conversion_.n(); columnI++)
213 conversionPivots_.setSize(conversion_.m());
const dimensionSet dimViscosity
const dimensionSet dimLuminousIntensity
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet dimCompressibility
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimArea
const dimensionSet dimPower
errorManipArg< error, int > exit(error &err, const int errNo=1)
dictionary & switchSet(const char *subDictName, dictionary *&subDictPtr)
Internal function to lookup a sub-dictionary from controlDict.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void LUDecompose(scalarSquareMatrix &matrix, labelList &pivotIndices)
LU decompose the matrix with pivoting.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimPressure
void size(const label)
Override size to be inconsistent with allocated storage.
HashTable< dimensionedScalar > * unitSetPtr_(nullptr)
const dimensionSet dimless
dimensionSets(const HashTable< dimensionedScalar > &, const wordList &unitNames)
Construct from all units and set of units to use for inversion.
const dimensionSet dimLength
dimensionSets * writeUnitSetPtr_(nullptr)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const HashTable< dimensionedScalar > & unitSet()
Set of all dimensions.
const dimensionSet dimTime
Dimension set for the base types.
const dimensionSet dimSpecificHeatCapacity
const fileName & name() const
Return the dictionary name.
const dimensionSet dimCurrent
const dimensionSet dimAcceleration
A class for handling words, derived from string.
const dimensionSet dimVol
const dimensionSet dimFlux
const dimensionSet dimDensity
const dimensionSet dimDynamicViscosity
const dimensionSet dimForce
An STL-conforming hash table.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
dictionary & dimensionSystems()
Top level dictionary.
const dimensionSet dimVelocity
const dimensionSet dimEnergy
const dimensionSet dimMass
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimMassFlux
const dimensionSet dimMoles
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const dimensionSet dimVolume
const dimensionSets & writeUnitSet()
Set of units.
dictionary * dimensionSystemsPtr_(nullptr)
void coefficients(scalarField &) const
(if valid) obtain set of coefficients of unitNames
const dimensionSet dimGasConstant
const dimensionSet dimTemperature
void LUBacksubstitute(const scalarSquareMatrix &luMmatrix, const labelList &pivotIndices, List< Type > &source)
LU back-substitution with given source, returning the solution.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.