32Foam::schemesLookup::lookupDetail::lookupDetail
35 const fileName& parentDictPath
42 if (parentDictPath.empty())
46 else if (name_.empty())
48 dict_.name() = parentDictPath;
49 name_ = dict_.dictName();
53 dict_.name() = parentDictPath +
"." + name_;
55 default_.name() = dict_.name() +
".default";
61void Foam::schemesLookup::lookupDetail::clear()
70 ITstream& is =
const_cast<ITstream&
>(default_);
81 if (dict_.found(name) || default_.empty())
92void Foam::schemesLookup::lookupDetail::populate
94 const dictionary&
dict,
95 const word& defaultName,
99 if (mandatory ||
dict.found(name_))
103 dict_ =
dict.subDict(name_);
105 else if (!defaultName.empty() && !dict_.found(
"default"))
107 dict_.add(
"default", defaultName);
113 !dict_.found(
"default")
114 || dict_.lookup(
"default").peek() ==
"none"
122 default_ = dict_.lookup(
"default");
127void Foam::schemesLookup::lookupDetail::writeEntry(Ostream&
os)
const
129 dict_.writeEntry(
os);
133void Foam::schemesLookup::lookupDetail::writeEntryOptional(Ostream&
os)
const
137 dict_.writeEntry(
os);
An input stream of tokens.
virtual void rewind()
Rewind the stream so that it may be read again.
Lookup type of boundary radiation properties.
lookup(const dictionary &dict, const polyPatch &pp)
Construct from components.
OBJstream os(runTime.globalPath()/outputName)
const word dictName("faMeshDefinition")