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(),
170 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
174 faceDiffusivity[facei] = 1.0/dist;
197 forAll(ownFaces, ownFacei)
205 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
209 dist /= cPoints.
size();
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 patch set corresponding to the given names.
virtual const faceList & faces() const
Return raw faces.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
label nInternalFaces() const
const cellList & cells() const
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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)
const dimensionSet dimless
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.