66 #ifndef Foam_schemesLookup_H 67 #define Foam_schemesLookup_H 100 const fileName& parentDictPath
110 ITstream& fallback()
const;
119 const word& defaultName,
120 const bool mandatory =
false 127 void writeEntryOptional(Ostream&
os)
const;
134 lookupDetail ddtSchemes_;
137 lookupDetail d2dt2Schemes_;
140 lookupDetail interpSchemes_;
143 lookupDetail divSchemes_;
146 lookupDetail gradSchemes_;
149 lookupDetail lnGradSchemes_;
152 lookupDetail snGradSchemes_;
155 lookupDetail laplacianSchemes_;
159 bool fluxRequiredDefault_;
222 bool transient()
const noexcept {
return !steady_; }
266 return ddtSchemes_.dict_;
272 return d2dt2Schemes_.dict_;
278 return interpSchemes_.dict_;
284 return divSchemes_.dict_;
290 return gradSchemes_.dict_;
296 return lnGradSchemes_.dict_;
302 return snGradSchemes_.dict_;
308 return laplacianSchemes_.dict_;
314 return fluxRequired_;
323 return ddtSchemes_.dict_;
329 return d2dt2Schemes_.dict_;
335 return interpSchemes_.dict_;
341 return divSchemes_.dict_;
347 return gradSchemes_.dict_;
353 return lnGradSchemes_.dict_;
359 return snGradSchemes_.dict_;
365 return laplacianSchemes_.dict_;
371 return fluxRequired_;
392 struct is_globalIOobject<schemesLookup> : std::true_type {};
void writeEntry(Ostream &os) const
Write sub-dictionary with its dictName as its header.
word dictName() const
The local dictionary name (final part of scoped name)
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return an entry data stream. FatalIOError if not found, or not a stream. ...
ITstream & ddtScheme(const word &name) const
Get ddt scheme for given name, or default.
const dictionary & interpolationSchemes() const noexcept
Access interpolation schemes dictionary.
const dictionary & gradSchemes() const noexcept
Access grad schemes dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const dictionary & d2dt2Schemes() const noexcept
Access d2dt2 schemes dictionary.
const dictionary & divSchemes() const noexcept
Access div schemes dictionary.
void writeDicts(Ostream &os) const
Write dictionary (possibly modified) settings.
ITstream & d2dt2Scheme(const word &name) const
Get d2dt2 scheme for given name, or default.
const dictionary & fluxRequired() const noexcept
Access flux-required dictionary.
void setFluxRequired(const word &name) const
Set flux-required for given name (mutable)
ITstream & interpolationScheme(const word &name) const
Get interpolation scheme for given name, or default.
const dictionary & lnGradSchemes() const noexcept
Access lnGrad schemes dictionary (finiteArea)
const dictionary & laplacianSchemes() const noexcept
Access laplacian schemes dictionary.
dictionary()
Default construct, a top-level empty dictionary.
A class for handling words, derived from Foam::string.
ITstream & gradScheme(const word &name) const
Get grad scheme for given name, or default.
const dictionary & schemesDict() const
The entire dictionary or the optional "select" sub-dictionary.
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
Selector class for finite area/finite volume differencing schemes.
OBJstream os(runTime.globalPath()/outputName)
ITstream & lnGradScheme(const word &name) const
Get (finiteArea) lnGrad scheme for given name, or default.
ITstream & laplacianScheme(const word &name) const
Get laplacian scheme for given name, or default.
ITstream & snGradScheme(const word &name) const
Get (finiteVolume) snGrad scheme for given name, or default.
ITstream & divScheme(const word &name) const
Get div scheme for given name, or default.
bool steady() const noexcept
True if default ddt scheme is steady-state.
Registry of regIOobjects.
static int debug
Debug switch.
const dictionary & ddtSchemes() const noexcept
Access ddt schemes dictionary.
bool read()
Read schemes from IOdictionary, respects the "select" keyword.
const dictionary & snGradSchemes() const noexcept
Access snGrad schemes dictionary (finiteVolume)
readOption
Enumeration defining read preferences.