42 inversePointDistanceDiffusivity,
95 label nPatchEdges = 0;
99 nPatchEdges += bdry[iter.key()].nEdges();
106 int dummyTrackData = 0;
118 const polyPatch& patch = bdry[iter.key()];
124 const label pointi = meshPoints[i];
126 if (!pointWallDist[pointi].valid(dummyTrackData))
134 seedPoints[nPatchEdges] = pointi;
135 pointWallDist[pointi] = seedInfo[nPatchEdges];
142 seedPoints.
setSize(nPatchEdges);
153 mesh().globalData().nTotalPoints(),
167 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
171 faceDiffusivity[facei] = 1.0/dist;
175 surfaceScalarField::Boundary& faceDiffusivityBf =
182 if (patchSet.found(
patchi))
194 forAll(ownFaces, ownFacei)
200 if (cPoints.insert(f[fp]))
202 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
206 dist /= cPoints.size();
223 dist +=
sqrt(pointWallDist[f[fp]].distSqr());
232 return tfaceDiffusivity;
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.
virtual label start() const
Return start label of this patch in the polyMesh face list.
label nInternalFaces() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
T & ref() const
Return non-const reference or generate a fatal error.
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.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const cellList & cells() const
const dimensionSet dimless
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...
virtual tmp< surfaceScalarField > operator()() const
Return diffusivity field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Abstract base class for cell-centre mesh motion diffusivity.
defineTypeNameAndDebug(combustionModel, 0)
const fvPatch & patch() const
Return patch.
void setSize(const label)
Reset size of List.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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 class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
inversePointDistanceDiffusivity(const fvMesh &mesh, Istream &mdData)
Construct for the given fvMesh and data Istream.
Wave propagation of information through grid. Every iteration information goes through one layer of e...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...