95 label nPatchEdges = 0;
99 nPatchEdges += bdry[iter.key()].nEdges();
117 const polyPatch& patch = bdry[iter.key()];
123 const label pointi = meshPoints[i];
125 if (!pointWallDist[pointi].
valid(pointEdgeData))
133 seedPoints[nPatchEdges] = pointi;
134 pointWallDist[pointi] = seedInfo[nPatchEdges];
141 seedPoints.
setSize(nPatchEdges);
156 mesh().globalData().nTotalPoints(),
162 for (
label facei=0; facei<mesh().nInternalFaces(); facei++)
164 const face&
f = mesh().faces()[facei];
170 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
174 faceDiffusivity[facei] = 1.0/dist;
191 const cell& ownFaces = mesh().cells()[faceCells[i]];
197 forAll(ownFaces, ownFacei)
199 const face&
f = mesh().faces()[ownFaces[ownFacei]];
205 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
209 dist /= cPoints.
size();
220 const face&
f = mesh().faces()[start+i];
226 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
235 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.
Class used to pass data into container.
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 indices 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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
dimensionedScalar sqrt(const dimensionedScalar &ds)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.