40 "DimensionedConstants",
46 void Foam::registerDimensionedConstant::lookup()
53 if (!dict.
found(
"unitSet"))
55 std::cerr<<
"Cannot find unitSet in dictionary " << dict.
name()
61 if (!dict.
found(unitSetCoeffs))
63 std::cerr<<
"Cannot find " << unitSetCoeffs <<
" in dictionary " 79 void Foam::registerDimensionedConstantWithDefault::lookup()
86 if (unitDict.found(group_))
96 default_.dimensions(),
103 groupDict.
add(
name(), default_);
104 dimensionedScalar::operator=(default_);
110 unitDict.subDict(group_).add(
name(), default_);
111 dimensionedScalar::operator=(default_);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
friend Ostream & operator(Ostream &, const dimensioned< Type > &)
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...
static const dictionary null
Null dictionary.
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 fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
const HashTable< dimensionedScalar > & unitSet()
Set of all dimensions.
word name(const complex &)
Return a string representation of a complex.
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.