Go to the documentation of this file.
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);
119 if (nbrEdges.
found(meshE))
121 initialEdges.
append(edgeI);
154 forAll(allFaceInfo, facei)
156 if (allFaceInfo[facei].valid(calc.data()))
158 operator[](facei) =
Foam::sqrt(allFaceInfo[facei].distSqr());
points setSize(newPointi)
const dimensionedScalar mp
Proton mass.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label nEdges() const
Return number of edges in patch.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
virtual void correct()
Correct for mesh geom/topo changes.
#define forAll(list, i)
Loop across all elements in list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
A patch is a list of labels that address the faces in the global face list.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
const polyMesh & mesh() const
Return the mesh reference.
patchPatchDist(const polyPatch &pp, const labelHashSet &nbrPatchIDs)
Construct from patch and neighbour patches.
const Field< point_type > & localPoints() const
Return pointField of points in patch.
label nInternalEdges() const
Number of internal edges.
const std::string patch
OpenFOAM patch number as a std::string.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionedScalar e
Elementary charge.
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field.
bool found(const Key &key) const
Return true if hashed entry is found in table.
const labelList & meshPoints() const
Return labelList of mesh points in patch.