Go to the documentation of this file.
44 inversePointDistanceDiffusivity,
52 Foam::inversePointDistanceDiffusivity::inversePointDistanceDiffusivity
73 label nPatchEdges = 0;
75 for (
const label patchi : patchSet)
77 nPatchEdges += bdry[patchi].nEdges();
84 int dummyTrackData = 0;
94 for (
const label patchi : patchSet)
100 for (
const label pointi : meshPoints)
102 if (!pointWallDist[pointi].valid(dummyTrackData))
110 seedPoints[nPatchEdges] = pointi;
111 pointWallDist[pointi] = seedInfo[nPatchEdges];
118 seedPoints.
setSize(nPatchEdges);
129 mesh().globalData().nTotalPoints(),
143 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
151 surfaceScalarField::Boundary& faceDiffusivityBf =
154 forAll(faceDiffusivityBf, patchi)
158 if (patchSet.found(patchi))
170 forAll(ownFaces, ownFacei)
176 if (cPoints.insert(
f[fp]))
178 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
182 dist /= cPoints.size();
199 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
virtual label start() const
Return start label of this patch in the polyMesh face list.
Wave propagation of information through grid. Every iteration information goes through one layer of e...
const cellList & cells() const
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
const fvMesh & mesh() const
Return reference to the mesh.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A patch is a list of labels that address the faces in the global face list.
void setSize(const label n)
Alias for resize()
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
virtual void correct()
Correct the motion diffusivity.
virtual const faceList & faces() const
Return raw faces.
const fvPatch & patch() const
Return patch.
const std::string patch
OpenFOAM patch number as a std::string.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
label nInternalFaces() const noexcept
Number of internal faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
virtual const labelUList & faceCells() const
Return faceCells.
A face is a list of labels corresponding to mesh vertices.
defineTypeNameAndDebug(combustionModel, 0)
A cell is defined as a list of faces with extra functionality.
Smooth ATC in cells next to a set of patches supplied by type.