42 #ifndef patchInjectionBase_H 43 #define patchInjectionBase_H 125 const scalar fraction01,
146 label
whichProc(
const scalar fraction01)
const;
labelList triToFace_
Addressing from per triangle to patch face.
const word patchName_
Patch name.
label whichProc(const scalar fraction01) const
Return the processor that has the location specified by the fraction.
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 Foam::string.
scalarList sumTriMagSf_
Cumulative area fractions per processor.
const label patchId_
Patch ID.
scalarList triCumulativeMagSf_
Cumulative triangle area per triangle face.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
scalar patchArea_
Patch area - total across all processors.
label setPositionAndCell(const fvMesh &mesh, const scalar fraction01, Random &rnd, vector &position, label &cellOwner, label &tetFacei, label &tetPti)
Set the injection position and owner cell, tetFace and tetPt.
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()=default
Destructor.
faceList triFace_
Decomposed patch faces as a list of triangles.