44 nbrPatchIDs_(nbrPatchIDs),
57 for (
const label nbrPatchi : nbrPatchIDs_)
65 EdgeMap<label> nbrEdges(2*nBnd);
67 for (
const label nbrPatchi : nbrPatchIDs_)
69 const polyPatch& nbrPatch = patch_.
boundaryMesh()[nbrPatchi];
70 const labelList& nbrMp = nbrPatch.meshPoints();
74 label edgeI = nbrPatch.nInternalEdges();
75 edgeI < nbrPatch.nEdges();
79 const edge&
e = nbrPatch.edges()[edgeI];
80 const edge meshE = edge(nbrMp[
e[0]], nbrMp[
e[1]]);
81 nbrEdges.insert(meshE, nbrPatchi);
96 List<patchEdgeFaceInfo> allEdgeInfo(patch_.
nEdges());
101 DynamicList<label> initialEdges(2*nBndEdges);
102 DynamicList<patchEdgeFaceInfo> initialEdgesInfo(2*nBndEdges);
116 const edge&
e = patch_.
edges()[edgeI];
117 const edge meshE = edge(
mp[
e[0]],
mp[
e[1]]);
119 if (nbrEdges.found(meshE))
121 initialEdges.append(edgeI);
122 initialEdgesInfo.append
const Field< point_type > & localPoints() const
Return pointField of points in patch.
dimensionedScalar sqrt(const dimensionedScalar &ds)
label nInternalEdges() const
Number of internal edges.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
#define forAll(list, i)
Loop across all elements in list.
T & operator[](const label i)
Return element of UList.
const dimensionedScalar e
Elementary charge.
void setSize(const label n)
Alias for resize()
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundaryMesh reference.
const polyMesh & mesh() const noexcept
Return the mesh reference.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
label nEdges() const
Number of edges in patch.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/chef2/andy/OpenFOAM/release/v2406/OpenFOAM-v2406/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=clamp((rho - rholSat)/(rhovSat - rholSat), zero_one{});alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field...
patchPatchDist(const polyPatch &pp, const labelHashSet &nbrPatchIDs)
Construct from patch and neighbour patches.
virtual void correct()
Correct for mesh geom/topo changes.
const std::string patch
OpenFOAM patch number as a std::string.
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.
List< wallPoints > allFaceInfo(mesh_.nFaces())
const dimensionedScalar mp
Proton mass.