42 inverseFaceDistanceDiffusivity,
95 label nPatchFaces = 0;
103 patchSet.insert(pID);
104 nPatchFaces += bdry[pID].
size();
115 const polyPatch& patch = bdry[iter.key()];
121 changedFaces[nPatchFaces] = patch.
start() + patchFacei;
123 faceDist[nPatchFaces] =
wallPoint(fc[patchFacei], 0);
129 changedFaces.
setSize(nPatchFaces);
136 mesh().globalData().nTotalCells()+1
144 const scalar dist = faceInfo[facei].distSqr();
146 faceDiffusivity[facei] = 1.0/
sqrt(dist);
149 surfaceScalarField::Boundary& faceDiffusivityBf =
158 if (patchSet.found(
patchi))
162 const scalar dist = cellInfo[faceCells[i]].distSqr();
163 bfld[i] = 1.0/
sqrt(dist);
172 const scalar dist = faceInfo[start+i].distSqr();
173 bfld[i] = 1.0/
sqrt(dist);
178 return tfaceDiffusivity;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
inverseFaceDistanceDiffusivity(const fvMesh &mesh, Istream &mdData)
Construct for the given fvMesh and data Istream.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual label start() const
Return start label of this patch in the polyMesh face list.
label nInternalFaces() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
T & ref() const
Return non-const reference or generate a fatal error.
virtual ~inverseFaceDistanceDiffusivity()
Destructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual tmp< surfaceScalarField > operator()() const
Return diffusivity field.
label findPatchID(const word &patchName) const
Find patch index given a name.
const dimensionSet dimless
Holds information regarding type of cell. Used in inside/outside determination in cellClassification...
Pre-declare related SubField type.
Macros for easy insertion into run-time selection tables.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
virtual const labelUList & faceCells() const
Return faceCells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Abstract base class for cell-centre mesh motion diffusivity.
defineTypeNameAndDebug(combustionModel, 0)
Holds information regarding nearest wall point. Used in wall distance calculation.
const List< Type > & allCellInfo() const
Get allCellInfo.
label size() const
Return the number of elements in the UPtrList.
const fvPatch & patch() const
Return patch.
void setSize(const label)
Reset size of List.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const vectorField::subField faceCentres() const
Return face centres.