Go to the documentation of this file.
65 ddtSchemes_.
set(
"default",
"none");
70 ddtSchemes_.found(
"default")
71 &&
word(ddtSchemes_.lookup(
"default")) !=
"none"
74 defaultDdtScheme_ = ddtSchemes_.lookup(
"default");
77 word(defaultDdtScheme_)
89 d2dt2Schemes_.
set(
"default",
"none");
94 d2dt2Schemes_.found(
"default")
95 &&
word(d2dt2Schemes_.lookup(
"default")) !=
"none"
98 defaultD2dt2Scheme_ = d2dt2Schemes_.lookup(
"default");
104 interpolationSchemes_ =
dict.
subDict(
"interpolationSchemes");
106 else if (!interpolationSchemes_.found(
"default"))
108 interpolationSchemes_.
add(
"default",
"linear");
113 interpolationSchemes_.found(
"default")
114 &&
word(interpolationSchemes_.lookup(
"default")) !=
"none"
117 defaultInterpolationScheme_ =
118 interpolationSchemes_.lookup(
"default");
126 divSchemes_.found(
"default")
127 &&
word(divSchemes_.lookup(
"default")) !=
"none"
130 defaultDivScheme_ = divSchemes_.
lookup(
"default");
138 gradSchemes_.found(
"default")
139 &&
word(gradSchemes_.lookup(
"default")) !=
"none"
142 defaultGradScheme_ = gradSchemes_.
lookup(
"default");
150 else if (!snGradSchemes_.found(
"default"))
152 snGradSchemes_.
add(
"default",
"corrected");
157 snGradSchemes_.found(
"default")
158 &&
word(snGradSchemes_.lookup(
"default")) !=
"none"
161 defaultSnGradScheme_ = snGradSchemes_.lookup(
"default");
165 laplacianSchemes_ =
dict.
subDict(
"laplacianSchemes");
169 laplacianSchemes_.found(
"default")
170 &&
word(laplacianSchemes_.lookup(
"default")) !=
"none"
173 defaultLaplacianScheme_ = laplacianSchemes_.
lookup(
"default");
183 fluxRequired_.found(
"default")
184 &&
word(fluxRequired_.lookup(
"default")) !=
"none"
187 defaultFluxRequired_ =
Switch(fluxRequired_.lookup(
"default"));
205 obr.readOpt() ==
IOobject::MUST_READ
206 || obr.readOpt() ==
IOobject::READ_IF_PRESENT
217 objectPath() +
".ddtSchemes",
223 ddtSchemes_.
name() +
".default",
230 objectPath() +
".d2dt2Schemes",
236 d2dt2Schemes_.
name() +
".default",
239 interpolationSchemes_
243 objectPath() +
".interpolationSchemes",
247 defaultInterpolationScheme_
249 interpolationSchemes_.
name() +
".default",
256 objectPath() +
".divSchemes",
262 divSchemes_.
name() +
".default",
269 objectPath() +
".gradSchemes",
275 gradSchemes_.
name() +
".default",
282 objectPath() +
".snGradSchemes",
288 snGradSchemes_.
name() +
".default",
295 objectPath() +
".laplacianSchemes",
299 defaultLaplacianScheme_
301 laplacianSchemes_.
name() +
".default",
308 objectPath() +
".fluxRequired",
312 defaultFluxRequired_(false),
367 if (ddtSchemes_.found(
name) || defaultDdtScheme_.empty())
369 return ddtSchemes_.lookup(
name);
373 const_cast<ITstream&
>(defaultDdtScheme_).rewind();
374 return const_cast<ITstream&
>(defaultDdtScheme_);
386 if (d2dt2Schemes_.found(
name) || defaultD2dt2Scheme_.empty())
388 return d2dt2Schemes_.lookup(
name);
392 const_cast<ITstream&
>(defaultD2dt2Scheme_).rewind();
393 return const_cast<ITstream&
>(defaultD2dt2Scheme_);
402 Info<<
"Lookup interpolationScheme for " <<
name <<
endl;
407 interpolationSchemes_.found(
name)
408 || defaultInterpolationScheme_.empty()
411 return interpolationSchemes_.lookup(
name);
415 const_cast<ITstream&
>(defaultInterpolationScheme_).rewind();
416 return const_cast<ITstream&
>(defaultInterpolationScheme_);
428 if (divSchemes_.found(
name) || defaultDivScheme_.empty())
430 return divSchemes_.lookup(
name);
434 const_cast<ITstream&
>(defaultDivScheme_).rewind();
435 return const_cast<ITstream&
>(defaultDivScheme_);
447 if (gradSchemes_.found(
name) || defaultGradScheme_.empty())
449 return gradSchemes_.lookup(
name);
453 const_cast<ITstream&
>(defaultGradScheme_).rewind();
454 return const_cast<ITstream&
>(defaultGradScheme_);
466 if (snGradSchemes_.found(
name) || defaultSnGradScheme_.empty())
468 return snGradSchemes_.lookup(
name);
472 const_cast<ITstream&
>(defaultSnGradScheme_).rewind();
473 return const_cast<ITstream&
>(defaultSnGradScheme_);
485 if (laplacianSchemes_.found(
name) || defaultLaplacianScheme_.empty())
487 return laplacianSchemes_.lookup(
name);
491 const_cast<ITstream&
>(defaultLaplacianScheme_).rewind();
492 return const_cast<ITstream&
>(defaultLaplacianScheme_);
504 fluxRequired_.add(
name,
true,
true);
515 if (fluxRequired_.found(
name))
521 return defaultFluxRequired_;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
dictionary snGradSchemes_
ITstream defaultDdtScheme_
ITstream & ddtScheme(const word &name) const
bool read(const char *, int32_t &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool read()
Read object.
ITstream & divScheme(const word &name) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool read()
Read the fvSchemes.
Registry of regIOobjects.
bool headerOk()
Read and check header info.
ITstream defaultGradScheme_
static int debug
Debug switch.
void setFluxRequired(const word &name) const
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
readOption readOpt() const
ITstream defaultDivScheme_
ITstream & gradScheme(const word &name) const
const dictionary & schemesDict() const
ITstream defaultInterpolationScheme_
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream defaultD2dt2Scheme_
ITstream defaultSnGradScheme_
ITstream & snGradScheme(const word &name) const
bool fluxRequired(const word &name) const
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
SteadyState implicit/explicit ddt which returns 0.
dictionary laplacianSchemes_
ITstream & interpolationScheme(const word &name) const
void clear()
Clear the dictionaries and streams before reading.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fvSchemes(const fvSchemes &)
Disallow default bitwise copy construct.
void clear()
Clear the list, i.e. set size to zero.
ITstream & d2dt2Scheme(const word &name) const
dictionary interpolationSchemes_
ITstream & laplacianScheme(const word &name) const
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
ITstream defaultLaplacianScheme_
void clear()
Clear the dictionary.
int system(const std::string &command)
Execute the specified command.
word name(const complex &)
Return a string representation of a complex.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
stressControl lookup("compactNormalStress") >> compactNormalStress
void set(entry *)
Assign a new entry, overwrite any existing entry.