Go to the documentation of this file.
48 readDict(registry,
name, instance);
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")
160 word bndType(
"patch");
165 operator[](
id).readIfPresent<
word>(
"BoundaryType", bndType);
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()
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Map< word > boundaryTypes() const
Return a Map of (id => type)
A class for handling words, derived from string.
A class for handling file names.
word boundaryType(const word &name) const
Return BoundaryType corresponding to patch 'name'.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
void rename(const dictionary &)
Rename regions.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Registry of regIOobjects.
fileName objectPath() const
Return complete path + object name.
bool headerOk()
Read and check header info.
bool writeHeader(Ostream &) const
Write header.
~boundaryRegion()
Destructor.
void operator=(const boundaryRegion &)
Assignment.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
Read constant/boundaryRegion.
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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.
Operations on lists of strings.
Map< word > names() const
Return a Map of (id => name)
label append(const dictionary &)
Append to the end, return index.
boundaryRegion()
Construct null.
word name(const complex &)
Return a string representation of a complex.
timeIndices insert(timeIndex, timeDirs[timeI].value())
string & note()
Return non-constant access to the optional note.
stressControl lookup("compactNormalStress") >> compactNormalStress
void set(entry *)
Assign a new entry, overwrite any existing entry.
A Map of objects of type <T> with automated input and output.