Go to the documentation of this file.
50 readDict(registry,
name, instance);
61 if (maxId < iter.key())
81 iter().getOrDefault<word>
95 const wordRes& patterns
102 const word lookupName = iter().getOrDefault<word>
108 if (patterns.match(lookupName))
110 lookup.insert(iter.key(), lookupName);
127 iter().getOrDefault<word>(
"BoundaryType",
"patch")
156 word bndType(
"patch");
161 operator[](
id).readIfPresent<word>(
"BoundaryType", bndType);
170 const objectRegistry& registry,
172 const fileName& instance
178 IOMap<dictionary> ioObj
191 if (ioObj.headerOk())
197 Info<<
"no constant/boundaryRegion information available" <<
endl;
204 const objectRegistry& registry,
206 const fileName& instance
210 IOMap<dictionary> ioObj
224 "persistent data for thirdParty mesh <-> OpenFOAM translation";
226 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
228 OFstream
os(ioObj.objectPath());
229 ioObj.writeHeader(
os);
262 for (
const entry& dEntry : mapDict)
264 const word oldName(dEntry.stream());
266 const label
id = this->
findIndex(oldName);
269 mapping.insert(
id, dEntry.keyword());
275 dictionary&
dict = operator[](iter.key());
277 Info<<
"rename patch: " << iter()
278 <<
" <- " <<
dict.
get<word>(
"Label") <<
nl;
A keyword and a list of tokens is an 'entry'.
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Map< word > boundaryTypes() const
A class for handling words, derived from Foam::string.
A class for handling file names.
word boundaryType(const word &name) const
void rename(const dictionary &)
void operator=(const this_type &rhs)
The boundaryRegion persistent data saved as a Map<dictionary>.
A HashTable to objects of type <T> with a label key.
Ostream & endl(Ostream &os)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
entry * set(entry *entryPtr)
bool match(const std::string &text, bool literal=false) const
Registry of regIOobjects.
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
label findIndex(const ListType &input, typename ListType::const_reference val, const label start=0)
Lookup type of boundary radiation properties.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label findIndex(const word &name) const
OBJstream os(runTime.globalPath()/outputName)
Output to file stream, using an OSstream.
const word & name() const noexcept
const string & note() const noexcept
forAllConstIters(mixture.phases(), phase)
A List of wordRe with additional matching capabilities.
void writeDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") const
word name(const expressions::valueTypeCode typeCode)
bool writeHeader(Ostream &os) const
Map< word > names() const
fileName objectPath() const
label append(const dictionary &)
A Map of objects of type <T> with automated input and output. Is a global object; i....