40 "DimensionedConstants",
48 const char*
const group,
58 if (!dict.
found(
"unitSet"))
60 std::cerr<<
"Cannot find unitSet in dictionary " << dict.
name()
66 if (!dict.
found(unitSetCoeffs))
68 std::cerr<<
"Cannot find " << unitSetCoeffs <<
" in dictionary " 83 const char*
const group,
95 if (unitDict.found(group))
98 if (groupDict.
found(name))
103 defaultValue.dimensions(),
109 groupDict.
add(name, defaultValue);
116 unitDict.subDict(group).add(name, defaultValue);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
dictionary & switchSet(const char *subDictName, dictionary *&subDictPtr)
Internal function to lookup a sub-dictionary from controlDict.
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
dictionary & dimensionedConstants()
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const HashTable< dimensionedScalar > & unitSet()
Set of all dimensions.
Dimension set for the base types.
const fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
dimensionedScalar dimensionedConstant(const char *const group, const char *name, const dimensionSet &dimensions)
static const dictionary null
Null dictionary.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary * dimensionedConstantsPtr_(nullptr)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.