41 nbrPatchIndices_(nbrPatchIDs),
62 label nbrPatchi = iter.key();
73 label nbrPatchi = iter.key();
85 const edge meshE =
edge(nbrMp[
e[0]], nbrMp[
e[1]]);
86 nbrEdges.
insert(meshE, nbrPatchi);
94 patch_.boundaryMesh().mesh(),
105 label nBndEdges = patch_.nEdges() - patch_.nInternalEdges();
116 label edgei = patch_.nInternalEdges();
117 edgei < patch_.nEdges();
121 const edge&
e = patch_.edges()[edgei];
124 if (edgeFnd != nbrEdges.
end())
126 initialEdges.
append(edgei);
131 e.centre(patch_.localPoints()),
142 patch_.boundaryMesh().mesh(),
155 forAll(allFaceInfo, facei)
157 if (allFaceInfo[facei].
valid(calc.
data()))
159 operator[](facei) =
Foam::sqrt(allFaceInfo[facei].distSqr());
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
const TrackingData & data() const
Additional data to be passed into container.
label nEdges() const
Return 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. They are constructed.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Transport of nearest point location for use in PatchEdgeFaceWave.
virtual void correct()
Correct for mesh geom/topo changes.
virtual ~patchPatchDist()
Destructor.
patchPatchDist(const polyPatch &pp, const labelHashSet &nbrPatchIDs)
Construct from patch and neighbour patches.
A patch is a list of labels that address the faces in the global face list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
bool valid(const PtrList< ModelType > &l)
const dimensionedScalar mp
Proton mass.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar sqrt(const dimensionedScalar &ds)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
points setSize(newPointi)
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable