Go to the documentation of this file.
44 inverseFaceDistanceDiffusivity,
52 Foam::inverseFaceDistanceDiffusivity::inverseFaceDistanceDiffusivity
79 label nPatchFaces = 0;
81 for (
const word& patchName : patchNames_)
87 patchSet.insert(patchi);
88 nPatchFaces += bdry[patchi].size();
97 for (
const label patchi : patchSet)
105 changedFaces[nPatchFaces] =
patch.start() + patchFacei;
107 faceDist[nPatchFaces] =
wallPoint(fc[patchFacei], 0);
113 changedFaces.
setSize(nPatchFaces);
120 mesh().globalData().nTotalCells()+1
128 scalar dist = faceInfo[facei].distSqr();
130 faceDiffusivity_[facei] = 1.0/
sqrt(dist);
133 surfaceScalarField::Boundary& faceDiffusivityBf =
134 faceDiffusivity_.boundaryFieldRef();
136 forAll(faceDiffusivityBf, patchi)
142 if (patchSet.found(patchi))
147 bfld[i] = 1.0/
sqrt(dist);
156 scalar dist = faceInfo[start+i].distSqr();
157 bfld[i] = 1.0/
sqrt(dist);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Holds information regarding nearest wall point. Used in wall distance calculation.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
A class for handling words, derived from Foam::string.
virtual void correct()
Correct the motion diffusivity.
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.
label nInternalFaces() const
Number of internal faces.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual ~inverseFaceDistanceDiffusivity()
Destructor.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
SubField is a Field obtained as a section of another Field.
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.
label findPatchID(const word &patchName, const bool allowNotFound=true) const
Find patch index given a name, return -1 if not found.
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification.
const fvPatch & patch() const
Return patch.
const std::string patch
OpenFOAM patch number as a std::string.
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)
virtual const labelUList & faceCells() const
Return faceCells.
void setSize(const label newSize)
Alias for resize(const label)
defineTypeNameAndDebug(combustionModel, 0)
Smooth ATC in cells next to a set of patches supplied by type.
const List< Type > & allCellInfo() const
Get allCellInfo.