41 inversePointDistanceDiffusivity,
49 Foam::inversePointDistanceDiffusivity::inversePointDistanceDiffusivity
76 label nPatchEdges = 0;
80 nPatchEdges += bdry[iter.key()].nEdges();
87 int dummyTrackData = 0;
99 const polyPatch& patch = bdry[iter.key()];
105 label pointi = meshPoints[i];
107 if (!pointWallDist[pointi].valid(dummyTrackData))
115 seedPoints[nPatchEdges] = pointi;
116 pointWallDist[pointi] = seedInfo[nPatchEdges];
123 seedPoints.
setSize(nPatchEdges);
134 mesh().globalData().nTotalPoints(),
148 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
152 faceDiffusivity_[facei] = 1.0/dist;
156 surfaceScalarField::Boundary& faceDiffusivityBf =
157 faceDiffusivity_.boundaryFieldRef();
163 if (patchSet.found(
patchi))
175 forAll(ownFaces, ownFacei)
181 if (cPoints.insert(f[fp]))
183 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
187 dist /= cPoints.size();
204 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A face is a list of labels corresponding to mesh vertices.
label nInternalFaces() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void correct()
Correct the motion diffusivity.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const cellList & cells() const
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
Macros for easy insertion into run-time selection tables.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
virtual const labelUList & faceCells() const
Return faceCells.
virtual const faceList & faces() const
Return raw faces.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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/ubuntu/OpenFOAM-6/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()
defineTypeNameAndDebug(combustionModel, 0)
const fvPatch & patch() const
Return patch.
void setSize(const label)
Reset size of List.
label start() const
Return start label of this patch in the polyMesh face list.
A cell is defined as a list of faces with extra functionality.
Mesh data needed to do the Finite Volume discretisation.
virtual ~inversePointDistanceDiffusivity()
Destructor.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
A patch is a list of labels that address the faces in the global face list.
Wave propagation of information through grid. Every iteration information goes through one layer of e...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...