43 #ifndef Foam_patchInjectionBase_H 44 #define Foam_patchInjectionBase_H 125 const scalar fraction01,
146 label
whichProc(
const scalar fraction01)
const;
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.
List< labelledTri > triFace_
The polyPatch faces as triangles, the index of each corresponds to the undecomposed patch face index...
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 (processor-local)
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.