65 if (maxId < iter.key())
85 iter().lookupOrDefault<
word>
106 word lookupName = iter().lookupOrDefault<
word>
114 lookup.
insert(iter.key(), lookupName);
131 iter().lookupOrDefault<
word>(
"BoundaryType",
"patch")
148 if (iter().lookupOrDefault<word>(
"Label",
word::null) == name)
160 word bndType(
"patch");
201 Info<<
"no constant/boundaryRegion information available" <<
endl;
228 "persistent data for thirdParty mesh <-> OpenFOAM translation";
268 word oldName(iter().stream());
273 mapping.
insert(
id, iter().keyword());
281 Info<<
"rename patch: " << iter()
284 dict.
set(
"Label", iter());
~boundaryRegion()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
A class for handling file names.
void writeDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") const
Write constant/boundaryRegion for later reuse.
A list of keyword definitions, which are a keyword followed by any number of values (e...
label append(const dictionary &)
Append to the end, return index.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool headerOk()
Read and check header info.
A Map of objects of type <T> with automated input and output. Is a global object; i...
Operations on lists of strings.
boundaryRegion()
Construct null.
label findIndex(const word &name) const
Return index corresponding to patch 'name'.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
string & note()
Return non-constant access to the optional note.
void rename(const dictionary &)
Rename regions.
stressControl lookup("compactNormalStress") >> compactNormalStress
Map< word > boundaryTypes() const
Return a Map of (id => type)
A class for handling words, derived from string.
void clear()
Clear all entries from table.
static const word null
An empty word.
Map< word > names() const
Return a Map of (id => name)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
word boundaryType(const word &name) const
Return BoundaryType corresponding to patch 'name'.
void operator=(const boundaryRegion &)
Assignment.
word name(const complex &)
Return a string representation of a complex.
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
Read constant/boundaryRegion.
void set(entry *)
Assign a new entry, overwrite any existing entry.
bool writeHeader(Ostream &) const
Write header.
T & operator[](const Key &)
Find and return a hashedEntry.
Registry of regIOobjects.
The boundaryRegion persistent data saved as a Map<dictionary>.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
fileName objectPath() const
Return complete path + object name.
void operator=(const Map< T > &map)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A HashTable to objects of type <T> with a label key.