Go to the documentation of this file.
30 #include "PatchTools.H"
45 int main(
int argc,
char *argv[])
56 Info<<
"Mesh read in = "
57 << runTime.cpuTimeIncrement()
87 changedEdges.
append(fEdges[i]);
112 Info<<
"Time now = " << runTime.timeName() <<
endl;
126 label faceRegion = allFaceInfo[faceI].regions()[fp];
130 if (currentRegion[pointI] == -1)
132 currentRegion[pointI] = faceRegion;
134 else if (currentRegion[pointI] != faceRegion)
136 if (duplicateRegion[pointI] == -1)
138 Pout<<
"Multi region point:"
140 <<
" with region:" << currentRegion[pointI]
141 <<
" and region:" << faceRegion
143 duplicateRegion[pointI] = currentRegion[pointI];
static SLList< string > validArgs
A list of valid (mandatory) arguments.
label findPatchID(const word &patchName) const
Find patch index given a name.
A class for handling words, derived from string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
int main(int argc, char *argv[])
#define forAll(list, i)
Loop across all elements in list.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label nEdges() const
Return number of edges in patch.
void calc(const argList &args, const Time &runTime, const fvMesh &mesh)
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Foam::primitivePatch.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelListList & faceEdges() const
Return face-edge addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Transport of regions for use in PatchEdgeFaceWave.
A patch is a list of labels that address the faces in the global face list.
label nPoints() const
Return number of points supporting patch faces.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
A face is a list of labels corresponding to mesh vertices.
Foam::argList args(argc, argv)
const word & name() const
Return name.
Pair< label > labelPair
Label pair.
label toGlobal(const label i) const
From local to global.