66#ifndef Foam_schemesLookup_H
67#define Foam_schemesLookup_H
100 const fileName& parentDictPath
113 ITstream& lookup(
const word&
name)
const;
119 const word& defaultName,
120 const bool mandatory =
false
124 void writeEntry(Ostream&
os)
const;
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_;
183 schemesLookup(
const schemesLookup&) =
delete;
186 void operator=(
const schemesLookup&) =
delete;
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_;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
readOption
Enumeration defining read preferences.
An input stream of tokens.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dictionary()
Default construct, a top-level empty dictionary.
void writeEntry(Ostream &os) const
Write sub-dictionary with its dictName as its header.
void clear()
Clear the dictionary.
word dictName() const
The local dictionary name (final part of scoped name).
A class for handling file names.
Registry of regIOobjects.
Lookup type of boundary radiation properties.
Selector class for finite area/finite volume differencing schemes.
ITstream & ddtScheme(const word &name) const
Get ddt scheme for given name, or default.
ITstream & d2dt2Scheme(const word &name) const
Get d2dt2 scheme for given name, or default.
bool steady() const noexcept
True if default ddt scheme is steady-state.
const dictionary & interpolationSchemes() const noexcept
Access interpolation schemes dictionary.
void setFluxRequired(const word &name) const
Set flux-required for given name (mutable).
const dictionary & gradSchemes() const noexcept
Access grad schemes dictionary.
ITstream & lnGradScheme(const word &name) const
Get (finiteArea) lnGrad scheme for given name, or default.
ITstream & divScheme(const word &name) const
Get div scheme for given name, or default.
ITstream & snGradScheme(const word &name) const
Get (finiteVolume) snGrad scheme for given name, or default.
const dictionary & ddtSchemes() const noexcept
Access ddt schemes dictionary.
bool transient() const noexcept
True if default ddt scheme is not steady-state.
const dictionary & d2dt2Schemes() const noexcept
Access d2dt2 schemes dictionary.
dictionary & ddtSchemes() noexcept
Access ddt schemes dictionary.
const dictionary & schemesDict() const
The entire dictionary or the optional "select" sub-dictionary.
dictionary & divSchemes() noexcept
Access div schemes dictionary.
const dictionary & divSchemes() const noexcept
Access div schemes dictionary.
const dictionary & laplacianSchemes() const noexcept
Access laplacian schemes dictionary.
dictionary & gradSchemes() noexcept
Access grad schemes dictionary.
dictionary & d2dt2Schemes() noexcept
Access d2dt2 schemes dictionary.
dictionary & fluxRequired() noexcept
Access flux-required dictionary.
const dictionary & lnGradSchemes() const noexcept
Access lnGrad schemes dictionary (finiteArea).
void writeDicts(Ostream &os) const
Write dictionary (possibly modified) settings.
static int debug
Debug switch.
dictionary & laplacianSchemes() noexcept
Access laplacian schemes dictionary.
ITstream & laplacianScheme(const word &name) const
Get laplacian scheme for given name, or default.
dictionary & interpolationSchemes() noexcept
Access interpolation schemes dictionary.
const dictionary & fluxRequired() const noexcept
Access flux-required dictionary.
ITstream & interpolationScheme(const word &name) const
Get interpolation scheme for given name, or default.
dictionary & snGradSchemes() noexcept
Access snGrad schemes dictionary (finiteVolume).
ITstream & gradScheme(const word &name) const
Get grad scheme for given name, or default.
bool read()
Read schemes from IOdictionary, respects the "select" keyword.
dictionary & lnGradSchemes() noexcept
Access lnGrad schemes dictionary (finiteArea).
const dictionary & snGradSchemes() const noexcept
Access snGrad schemes dictionary (finiteVolume).
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Trait for specifying global vs. local IOobject file types.