40void Foam::schemesLookup::clear()
43 d2dt2Schemes_.clear();
44 interpSchemes_.clear();
47 lnGradSchemes_.clear();
48 snGradSchemes_.clear();
49 laplacianSchemes_.clear();
55void Foam::schemesLookup::checkSteady()
57 ITstream& is = ddtSchemes_.fallback();
60 if (is.peek().isWord())
68 schemeName ==
"steady"
69 || schemeName ==
"steadyState"
76 ddtSchemes_.populate(
dict,
"none");
77 d2dt2Schemes_.populate(
dict,
"none");
78 interpSchemes_.populate(
dict,
"linear");
79 divSchemes_.populate(
dict,
"",
true);
80 gradSchemes_.populate(
dict,
"",
true);
81 lnGradSchemes_.populate(
dict,
"corrected");
82 snGradSchemes_.populate(
dict,
"corrected");
83 laplacianSchemes_.populate(
dict,
"",
true);
85 const dictionary* fluxDictPtr =
dict.
findDict(
"fluxRequired");
88 fluxRequired_.
merge(*fluxDictPtr);
90 if (fluxRequired_.found(
"default"))
92 Switch sw(fluxRequired_.lookup(
"default").peek());
96 fluxRequiredDefault_ =
bool(sw);
130 ddtSchemes_(
"ddtSchemes", objectPath()),
131 d2dt2Schemes_(
"d2dt2Schemes", objectPath()),
132 interpSchemes_(
"interpolationSchemes", objectPath()),
133 divSchemes_(
"divSchemes", objectPath()),
134 gradSchemes_(
"gradSchemes", objectPath()),
135 lnGradSchemes_(
"lnGradSchemes", objectPath()),
136 snGradSchemes_(
"snGradSchemes", objectPath()),
137 laplacianSchemes_(
"laplacianSchemes", objectPath()),
139 fluxRequired_(objectPath() +
".fluxRequired"),
140 fluxRequiredDefault_(false),
202 return ddtSchemes_.lookup(
name);
209 return d2dt2Schemes_.lookup(
name);
216 return interpSchemes_.lookup(
name);
223 return divSchemes_.lookup(
name);
230 return gradSchemes_.lookup(
name);
237 return lnGradSchemes_.lookup(
name);
244 return snGradSchemes_.lookup(
name);
251 return laplacianSchemes_.lookup(
name);
258 fluxRequired_.add(
name,
true,
true);
265 return (fluxRequired_.found(
name) || fluxRequiredDefault_);
271 ddtSchemes_.writeEntryOptional(
os);
272 d2dt2Schemes_.writeEntryOptional(
os);
273 interpSchemes_.writeEntryOptional(
os);
274 divSchemes_.writeEntry(
os);
275 gradSchemes_.writeEntry(
os);
276 lnGradSchemes_.writeEntryOptional(
os);
277 snGradSchemes_.writeEntryOptional(
os);
278 laplacianSchemes_.writeEntry(
os);
280 if (!fluxRequired_.empty())
282 fluxRequired_.writeEntry(
os);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
readOption
Enumeration defining the read options.
An input stream of tokens.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
bool merge(const dictionary &dict)
Merge entries from the given dictionary.
Abstract base class for finite area calculus div schemes.
Abstract base class for finite area calculus gradient schemes.
Abstract base class for finite area calculus laplacian schemes.
Abstract base class for lnGrad schemes.
Abstract base class for finite volume d2dt2 schemes.
Abstract base class for ddt schemes.
tmp< multivariateSurfaceInterpolationScheme< Type > > interpolationScheme() const
Abstract base class for runtime selected snGrad surface normal gradient schemes.
Registry of regIOobjects.
Lookup type of boundary radiation properties.
bool headerOk()
Read and check header info. Does not check the headerClassName.
virtual void addWatch()
Add file watch on object (if registered and READ_IF_MODIFIED)
virtual bool read()
Read object.
Selector class for finite area/finite volume differencing schemes.
void setFluxRequired(const word &name) const
Get flux-required for given name, or default.
const dictionary & schemesDict() const
The current schemes dictionary, respects the "select" keyword.
void writeDicts(Ostream &os) const
Write dictionary (possibly modified) settings.
static int debug
Debug switch.
const dictionary & fluxRequired() const noexcept
Access to flux required dictionary.
bool read()
Read schemes from IOdictionary, respects the "select" keyword.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
const word dictName("faMeshDefinition")
#define DebugInfo
Report an information message using Foam::Info.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
bool read(const char *buf, int32_t &val)
Same as readInt32.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.