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)
98 const labelList& meshPoints = patch.meshPoints();
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());
147 faceDiffusivity_[facei] = 1.0/dist;
152 faceDiffusivity_.boundaryFieldRef();
154 forAll(faceDiffusivityBf, patchi)
158 if (patchSet.
found(patchi))
170 forAll(ownFaces, ownFacei)
178 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
182 dist /= cPoints.
size();
199 dist +=
sqrt(pointWallDist[
f[fp]].distSqr());
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
bool found(const Key &key) const
Return true if hashed entry is found in table.
label size() const noexcept
The number of elements in table.
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 setSize(const label n)
Alias for resize()
Wave propagation of information through grid. Every iteration information goes through one layer of e...
void size(const label n)
Older name for setAddressableSize.
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.
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.
const fvPatch & patch() const
Return patch.
Inverse distance to the given patches motion diffusivity.
virtual void correct()
Correct the motion diffusivity.
Abstract base class for cell-centre mesh motion diffusivity.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
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 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 noexcept
Number of internal faces.
const cellList & cells() const
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const labelList nEdges(UPstream::listGatherValues< label >(aMesh.nEdges()))
dimensionedScalar sqrt(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.