49 Info<<
" Reading mesh boundaries" <<
endl;
52 IOPtrList<entry> boundaryPatchList
67 PtrList<entry> boundaryPatchListNew;
68 forAll(boundaryPatchList, patchI)
70 const dictionary&
dict = boundaryPatchList[patchI].dict();
71 const word pType =
dict.
get<word>(
"type");
87 boundaryPatchListNew.append(boundaryPatchList[patchI].clone());
91 boundaryPatchList.transfer(boundaryPatchListNew);
93 return boundaryPatchList;
108 names_.setSize(boundaryDict_.size());
109 types_.setSize(boundaryDict_.size());
110 constraint_.setSize(boundaryDict_.size(),
false);
111 groups_.setSize(boundaryDict_.size());
113 forAll(boundaryDict_, patchI)
115 const dictionary&
dict = boundaryDict_[patchI].dict();
117 names_[patchI] =
dict.dictName();
118 dict.readEntry(
"type", types_[patchI]);
119 if (polyPatch::constraintType(types_[patchI]))
121 constraint_[patchI] =
true;
124 if (
dict.readIfPresent(
"inGroups", groups_[patchI]))
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();
A PtrList of objects of type <T> with automated input and output.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
Class to interrogate the polyMesh/boundary file to provide mesh patching information,...
void write() const
Write the boundary dictionary.
const wordList & types() const
Patch types.
const List< wordList > & groups() const
Groups.
const wordList & names() const
Patch names.
const boolList & constraint() const
Constraint flag.
const wordHashSet & allGroupNames() const
Set of all group names.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
virtual topoSetSource::sourceType setType() const
The source category is a cellSet.
#define defineTemplateTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
Foam::word regionName(Foam::polyMesh::defaultRegion)
const labelList nFaces(UPstream::listGatherValues< label >(aMesh.nFaces()))
bool match(const UList< wordRe > &patterns, const std::string &text)
Return true if text matches one of the regular expressions.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
regExpCxx regExp
Selection of preferred regular expression implementation.
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.