Go to the documentation of this file.
48 Info<<
" Reading mesh boundaries" <<
endl;
67 forAll(boundaryPatchList, patchI)
71 bool procPatch = pType == processorPolyPatch::typeName;
86 boundaryPatchListNew.
append(boundaryPatchList[patchI].clone());
90 boundaryPatchList.transfer(boundaryPatchListNew);
92 return boundaryPatchList;
100 boundaryDict_(readBoundaryDict(runTime,
regionName)),
107 names_.setSize(boundaryDict_.size());
108 types_.setSize(boundaryDict_.size());
109 constraint_.setSize(boundaryDict_.size(),
false);
110 groups_.setSize(boundaryDict_.size());
112 forAll(boundaryDict_, patchI)
118 if (polyPatch::constraintType(types_[patchI]))
120 constraint_[patchI] =
true;
126 allGroupNames_.insert(groups_[patchI]);
160 return allGroupNames_;
166 if (constraint_[patchI])
178 if (condition ==
"wall")
180 types_[patchI] = condition;
184 types_[patchI] =
"patch";
187 dictionary& patchDict = boundaryDict_[patchI].dict();
188 patchDict.
add(
"type", types_[patchI],
true);
194 boundaryDict_.write();
const word dictName() const
Return the local dictionary name (final part of scoped name)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const wordList & names() const
Patch names.
A class for handling words, derived from string.
void append(T *)
Append an element at the end of the list.
A PtrList of objects of type <T> with automated input and output.
#define forAll(list, i)
Loop across all elements in list.
const boolList & constraint() const
Constraint flag.
const List< wordList > & groups() const
Groups.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
A wordRe is a word, but can also have a regular expression for matching words.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
const wordHashSet & allGroupNames() const
Set of all group names.
void setType(const label patchI, const word &condition)
Set the patch type based on the condition.
IOPtrList< entry > readBoundaryDict(const Time &runTime, const word ®ionName) const
Read the boundary dict.
wordList names_
Patch names.
A list of keyword definitions, which are a keyword followed by any number of values (e....
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
Return the location of "dir" containing the file "name".
boundaryInfo(const Time &runTime, const word ®ionName)
Constructor.
const wordList & types() const
Patch types.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label readLabel(Istream &is)
defineTemplateTypeNameAndDebug(IOPtrList< ensightPart >, 0)
void write() const
Write the boundary dictionary.
bool add(entry *, bool mergeEntry=false)
Add a new entry.