40 #ifndef patchInjectionBase_H 41 #define patchInjectionBase_H labelList triToFace_
Addressing from per triangle to patch face.
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.
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.
virtual void topoChange(const polyMesh &mesh)
Update patch geometry and derived info for injection locations.
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.