Go to the documentation of this file.
50 readDict(registry,
name, instance);
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()
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,...
const word & name() const
Return name.
Map< word > boundaryTypes() const
Return a Map of (id => type)
A class for handling words, derived from Foam::string.
A class for handling file names.
word boundaryType(const word &name) const
Return BoundaryType corresponding to patch 'name'.
void rename(const dictionary &)
Rename regions.
void operator=(const this_type &rhs)
Copy assignment.
The boundaryRegion persistent data saved as a Map<dictionary>.
A HashTable to objects of type <T> with a label key.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
Registry of regIOobjects.
void operator=(const boundaryRegion &)
Assignment.
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
Read constant/boundaryRegion.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
const cellModel * lookup(const word &modelName)
Deprecated(2017-11) equivalent to cellModel::ptr static method.
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.
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
Return index corresponding to patch 'name'.
Output to file stream, using an OSstream.
const string & note() const
Return the optional note.
forAllConstIters(mixture.phases(), phase)
A List of wordRe with additional matching capabilities.
static const word null
An empty word.
void writeDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") const
Write constant/boundaryRegion for later reuse.
bool writeHeader(Ostream &os) const
Write header.
Map< word > names() const
Return a Map of (id => name)
fileName objectPath() const
The complete path + object name.
label append(const dictionary &)
Append to the end, return index.
boundaryRegion()
Construct null.
bool headerOk()
Read and check header info.
A Map of objects of type <T> with automated input and output. Is a global object; i....