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;
155 forAll(faceDiffusivity_.boundaryField(), patchI)
159 if (patchSet.found(patchI))
171 forAll(ownFaces, ownFaceI)
177 if (cPoints.insert(f[fp]))
179 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
183 dist /= cPoints.size();
200 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
dimensionedScalar sqrt(const dimensionedScalar &ds)
const pointField & points
Uniform uniform finite volume mesh motion diffusivity.
Mesh data needed to do the Finite Volume discretisation.
A cell is defined as a list of faces with extra functionality.
const fvPatch & patch() const
Return patch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
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.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void correct()
Correct the motion diffusivity.
const cellList & cells() const
virtual const labelUList & faceCells() const
Return faceCells.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A face is a list of labels corresponding to mesh vertices.
void setSize(const label)
Reset size of List.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
Macros for easy insertion into run-time selection tables.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
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.
label nInternalFaces() const
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Wave propagation of information through grid. Every iteration information goes through one layer of e...
virtual const faceList & faces() const
Return raw faces.
label start() const
Return start label of this patch in the polyMesh face list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
defineTypeNameAndDebug(combustionModel, 0)
virtual ~inversePointDistanceDiffusivity()
Destructor.