61 if (maxId < iter.key())
81 iter().getOrDefault<word>
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);
197 Info<<
"no constant/boundaryRegion information available" <<
endl;
224 "persistent data for thirdParty mesh <-> OpenFOAM translation";
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());
277 Info<<
"rename patch: " << iter()
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
A Map of objects of type <T> with automated input and output. Is a global object; i....
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const string & note() const noexcept
Return the optional note.
fileName objectPath() const
The complete path + object name.
bool writeHeader(Ostream &os) const
Write header with current type()
A HashTable to objects of type <T> with a label key.
void operator=(const this_type &rhs)
Copy assignment.
Output to file stream, using an OSstream.
The boundaryRegion persistent data saved as a Map<dictionary>.
word boundaryType(const word &name) const
Return BoundaryType corresponding to patch 'name'.
label findIndex(const word &name) const
Return index corresponding to patch 'name'.
boundaryRegion()
Construct null.
Map< word > boundaryTypes() const
Return a Map of (id => type)
Map< word > names() const
Return a Map of (id => name)
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
Read constant/boundaryRegion.
void rename(const dictionary &)
Rename regions.
void operator=(const boundaryRegion &)
Assignment.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
Foam::dictionary writeDict() const
Write to dictionary.
Registry of regIOobjects.
Lookup type of boundary radiation properties.
bool headerOk()
Read and check header info. Does not check the headerClassName.
bool append() const noexcept
True if output format uses an append mode.
A List of wordRe with additional matching capabilities.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
label findIndex(const ListType &input, typename ListType::const_reference val, const label start=0)
Deprecated(2017-10) search for first occurrence of the given element.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.