129 if (masterPatchID_ == -1)
138 masterPatchID_ = patchi;
143 if (masterPatchID_ != -1 && masterPatchID_ > 0)
146 <<
" first patch. Generally the first patch should be an"
147 <<
" overset patch to guarantee consistent operation." <<
endl;
151 return index() == masterPatchID_;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
const polyBoundaryMesh & pbm
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Patch for indicating interpolated boundaries (in overset meshes).
bool master() const
Am I master patch? The master is responsible for doing all.
oversetPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
virtual ~oversetPolyPatch()
Destructor.
label index() const noexcept
The index of this patch in the boundaryMesh.
void addGroup(const word &name)
Add (unique) group for the patch.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
A patch is a list of labels that address the faces in the global face list.
friend class polyBoundaryMesh
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundaryMesh reference.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
label start() const noexcept
Return start label of this patch in the polyMesh face list.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define WarningInFunction
Report a warning using Foam::Warning.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.