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(),
159 for (
label facei=0; facei<mesh().nInternalFaces(); facei++)
161 const face&
f = mesh().faces()[facei];
167 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
171 faceDiffusivity[facei] = 1.0/dist;
188 const cell& ownFaces = mesh().cells()[faceCells[i]];
194 forAll(ownFaces, ownFacei)
196 const face&
f = mesh().faces()[ownFaces[ownFacei]];
202 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
206 dist /= cPoints.
size();
217 const face&
f = mesh().faces()[start+i];
223 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
232 return tfaceDiffusivity;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricBoundaryField class.
Generic GeometricField class.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
bool insert(const Key &key)
Insert a new entry.
label size() const
Return number of elements in table.
bool found(const Key &) const
Return true if hashedEntry is found in table.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
Wave propagation of information through grid. Every iteration information goes through one layer of e...
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
Mesh data needed to do the Finite Volume discretisation.
virtual label start() const
Return start label of this patch in the polyMesh face list.
virtual const labelUList & faceCells() const
Return faceCells.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const fvPatch & patch() const
Return patch.
Inverse distance to the given patches motion diffusivity.
virtual ~inversePointDistanceDiffusivity()
Destructor.
virtual tmp< surfaceScalarField > operator()() const
Return diffusivity field.
inversePointDistanceDiffusivity(const fvMesh &mesh, Istream &mdData)
Construct for the given fvMesh and data Istream.
Abstract base class for cell-centre mesh motion diffusivity.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
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.
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
bool valid(const PtrList< ModelType > &l)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimless
dimensionedScalar sqrt(const dimensionedScalar &ds)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)