Go to the documentation of this file.
41 inverseFaceDistanceDiffusivity,
76 label nPatchFaces = 0;
85 nPatchFaces += bdry[pID].
size();
96 const polyPatch& patch = bdry[iter.key()];
102 changedFaces[nPatchFaces] = patch.
start() + patchFaceI;
104 faceDist[nPatchFaces] =
wallPoint(fc[patchFaceI], 0);
110 changedFaces.
setSize(nPatchFaces);
117 mesh().globalData().nTotalCells()+1
125 scalar dist = faceInfo[faceI].distSqr();
127 faceDiffusivity_[faceI] = 1.0/
sqrt(dist);
130 forAll(faceDiffusivity_.boundaryField(), patchI)
136 if (patchSet.
found(patchI))
140 scalar dist =
cellInfo[faceCells[i]].distSqr();
141 bfld[i] = 1.0/
sqrt(dist);
150 scalar dist = faceInfo[start+i].distSqr();
151 bfld[i] = 1.0/
sqrt(dist);
Holds information regarding nearest wall point. Used in wall distance calculation.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
label findPatchID(const word &patchName) const
Find patch index given a name.
inverseFaceDistanceDiffusivity(const inverseFaceDistanceDiffusivity &)
Disallow default bitwise copy construct.
virtual void correct()
Correct the motion diffusivity.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Pre-declare related SubField type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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 nInternalFaces() const
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
void setSize(const label)
Reset size of List.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification.
const fvPatch & patch() const
Return patch.
const vectorField::subField faceCentres() const
Return face centres.
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)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label start() const
Return start label of this patch in the polyMesh face list.
label size() const
Return the number of elements in the PtrList.
bool insert(const Key &key)
Insert a new entry.
virtual const labelUList & faceCells() const
Return faceCells.
defineTypeNameAndDebug(combustionModel, 0)
const List< Type > & allCellInfo() const
Get allCellInfo.