44 nbrPatchIDs_(nbrPatchIDs),
57 for (
const label nbrPatchi : nbrPatchIDs_)
67 for (
const label nbrPatchi : nbrPatchIDs_)
80 const edge meshE =
edge(nbrMp[
e[0]], nbrMp[
e[1]]);
81 nbrEdges.
insert(meshE, nbrPatchi);
89 patch_.boundaryMesh().mesh(),
100 label
nBndEdges = patch_.nEdges() - patch_.nInternalEdges();
107 const labelList& mp = patch_.meshPoints();
111 label edgeI = patch_.nInternalEdges();
112 edgeI < patch_.nEdges();
116 const edge&
e = patch_.edges()[edgeI];
119 if (nbrEdges.
found(meshE))
121 initialEdges.
append(edgeI);
126 e.centre(patch_.localPoints()),
141 patch_.boundaryMesh().mesh(),
154 forAll(allFaceInfo, facei)
156 if (allFaceInfo[facei].valid(calc.data()))
158 operator[](facei) =
Foam::sqrt(allFaceInfo[facei].distSqr());
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
Map from edge (expressed as its endpoints) to value. For easier forward declaration it is currently i...
bool found(const Key &key) const
Return true if hashed entry is found in table.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label nEdges() const
Number of edges in patch.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
label nInternalEdges() const
Number of internal edges.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Like wallDist but calculates on a patch the distance to nearest neighbouring patches....
virtual void correct()
Correct for mesh geom/topo changes.
A patch is a list of labels that address the faces in the global face list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
const labelList nBndEdges(UPstream::listGatherValues< label >(aMesh.nBoundaryEdges() - nLocalProcEdges))
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field.
dimensionedScalar sqrt(const dimensionedScalar &ds)
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
points setSize(newPointi)
#define forAll(list, i)
Loop across all elements in list.