40 #ifndef patchInjectionBase_H 41 #define patchInjectionBase_H labelList triToFace_
Addressing from per triangle to patch face.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word patchName_
Patch name.
virtual void setPositionAndCell(const fvMesh &mesh, Random &rnd, vector &position, label &cellOwner, label &tetFacei, label &tetPti)
Set the injection position and owner cell, tetFace and tetPt.
patchInjectionBase(const polyMesh &mesh, const word &patchName)
Construct from mesh and patch name.
virtual void updateMesh(const polyMesh &mesh)
Update patch geometry and derived info for injection locations.
vectorList patchNormal_
Patch face normal directions.
A class for handling words, derived from string.
triFaceList triFace_
Decomposed patch faces as a list of triangles.
scalarList sumTriMagSf_
Cumulative area fractions per processor.
Base class for patch-based injection models.
const label patchId_
Patch ID.
scalarList triCumulativeMagSf_
Cumulative triangle area per triangle face.
scalar patchArea_
Patch area - total across all processors.
Mesh data needed to do the Finite Volume discretisation.
labelList cellOwners_
List of cell labels corresponding to injector positions.
Mesh consisting of general polyhedral cells.
virtual ~patchInjectionBase()
Destructor.