42#ifndef patchInjectionBase_H
43#define patchInjectionBase_H
125 const scalar fraction01,
146 label
whichProc(
const scalar fraction01)
const;
Mesh data needed to do the Finite Volume discretisation.
const word patchName_
Patch name.
const label patchId_
Patch ID.
virtual ~patchInjectionBase()=default
Destructor.
virtual void updateMesh(const polyMesh &mesh)
Update patch geometry and derived info for injection locations.
scalarList triCumulativeMagSf_
Cumulative triangle area per triangle face.
label whichProc(const scalar fraction01) const
Return the processor that has the location specified by the fraction.
scalar patchArea_
Patch area - total across all processors.
vectorList patchNormal_
Patch face normal directions.
scalarList sumTriMagSf_
Cumulative area fractions per processor.
labelList triToFace_
Addressing from per triangle to patch face.
labelList cellOwners_
List of cell labels corresponding to injector positions.
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.
faceList triFace_
Decomposed patch faces as a list of triangles.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.