41 nbrPatchIDs_(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);
122 const edge meshE =
edge(mp[e[0]], mp[e[1]]);
124 if (edgeFnd != nbrEdges.
end())
126 initialEdges.
append(edgeI);
159 forAll(allFaceInfo, faceI)
161 if (allFaceInfo[faceI].valid(
calc.data()))
dimensionedScalar sqrt(const dimensionedScalar &ds)
void calc(const argList &args, const Time &runTime, const fvMesh &mesh)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
virtual ~patchPatchDist()
Destructor.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
static void syncEdgeMap(const polyMesh &, EdgeMap< T > &edgeValues, const CombineOp &cop, const TransformOp &top)
Synchronize values on selected edges.
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/dm2/henry/OpenFOAM/OpenFOAM-3.0.x/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H"1{alphav=max(min((rho-rholSat)/(rhovSat-rholSat), scalar(1)), scalar(0));alphal=1.0-alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const dimensionedScalar mp
Proton mass.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A patch is a list of labels that address the faces in the global face list.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Type & operator[](const label)
Return element of UList.
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...
const double e
Elementary charge.
void setSize(const label)
Reset size of List.
patchPatchDist(const polyPatch &pp, const labelHashSet &nbrPatchIDs)
Construct from patch and neighbour patches.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
label nInternalEdges() const
Number of internal edges.
const polyMesh & mesh() const
Return the mesh reference.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Addressing for a faceList slice.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
virtual void correct()
Correct for mesh geom/topo changes.
label nEdges() const
Return number of edges in patch.