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