47 #ifndef Foam_schemesLookup_H 48 #define Foam_schemesLookup_H 100 const word& defaultName,
101 const bool mandatory =
false 108 void writeEntryOptional(
Ostream&
os)
const;
115 lookupDetail ddtSchemes_;
118 lookupDetail d2dt2Schemes_;
121 lookupDetail interpSchemes_;
124 lookupDetail divSchemes_;
127 lookupDetail gradSchemes_;
130 lookupDetail lnGradSchemes_;
133 lookupDetail snGradSchemes_;
136 lookupDetail laplacianSchemes_;
140 bool fluxRequiredDefault_;
247 return ddtSchemes_.dict_;
253 return d2dt2Schemes_.dict_;
259 return interpSchemes_.dict_;
265 return divSchemes_.dict_;
271 return gradSchemes_.dict_;
277 return lnGradSchemes_.dict_;
283 return snGradSchemes_.dict_;
289 return laplacianSchemes_.dict_;
295 return fluxRequired_;
304 return ddtSchemes_.dict_;
310 return d2dt2Schemes_.dict_;
316 return interpSchemes_.dict_;
322 return divSchemes_.dict_;
328 return gradSchemes_.dict_;
334 return lnGradSchemes_.dict_;
340 return snGradSchemes_.dict_;
346 return laplacianSchemes_.dict_;
352 return fluxRequired_;
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.
A class for handling file names.
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 to flux required dictionary.
void setFluxRequired(const word &name) const
Get flux-required for given name, or default.
ITstream & interpolationScheme(const word &name) const
Get interpolation scheme for given name, or default.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
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 current schemes dictionary, respects the "select" keyword.
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 ddtScheme is steady-state.
Registry of regIOobjects.
static int debug
Debug switch.
const dictionary & ddtSchemes() const noexcept
Access ddt schemes dictionary.
An input stream of tokens.
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.