patchInjectionBase Class Reference

Base class for patch-based injection models. More...

Inheritance diagram for patchInjectionBase:
Collaboration diagram for patchInjectionBase:

Public Member Functions

 patchInjectionBase (const polyMesh &mesh, const word &patchName)
 Construct from mesh and patch name. More...
 
 patchInjectionBase (const patchInjectionBase &pib)
 Copy constructor. More...
 
virtual ~patchInjectionBase ()
 Destructor. More...
 
virtual void topoChange (const polyMesh &mesh)
 Update patch geometry and derived info for injection locations. More...
 
virtual void setPositionAndCell (const fvMesh &mesh, Random &rnd, barycentric &coordinates, label &celli, label &tetFacei, label &tetPti, label &facei)
 Set the injection position and owner cell, tetFace and tetPt. More...
 

Protected Attributes

const word patchName_
 Patch name. More...
 
const label patchId_
 Patch ID. More...
 
scalarList sumProcArea_
 Cumulative sum of the total patch areas in each process. More...
 
scalarList sumFaceArea_
 Cumulative sum of the face areas in the patch. More...
 
scalarListList sumFaceTriArea_
 Cumulative sum of the triangle areas in each patch face. More...
 

Detailed Description

Base class for patch-based injection models.

Class handles injecting at a random point adjacent to the patch faces to provide a more stochastic view of the injection process. Patch faces are triangulated, and area fractions accumulated. The fractional areas are then applied to determine across which face a parcel is to be injected.

Source files

Definition at line 64 of file patchInjectionBase.H.

Constructor & Destructor Documentation

◆ patchInjectionBase() [1/2]

patchInjectionBase ( const polyMesh mesh,
const word patchName 
)

◆ patchInjectionBase() [2/2]

Copy constructor.

Definition at line 61 of file patchInjectionBase.C.

◆ ~patchInjectionBase()

~patchInjectionBase ( )
virtual

Destructor.

Definition at line 73 of file patchInjectionBase.C.

Member Function Documentation

◆ topoChange()

void topoChange ( const polyMesh mesh)
virtual

Update patch geometry and derived info for injection locations.

Definition at line 79 of file patchInjectionBase.C.

References polyMesh::boundaryMesh(), polyPatch::faceCells(), forAll, UPstream::nProcs(), PtrList< T >::resize(), and polyPatch::start().

Referenced by patchInjectionBase::patchInjectionBase(), PatchFlowRateInjection< CloudType >::topoChange(), and PatchInjection< CloudType >::topoChange().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPositionAndCell()

void setPositionAndCell ( const fvMesh mesh,
Random rnd,
barycentric coordinates,
label celli,
label tetFacei,
label tetPti,
label facei 
)
virtual

Member Data Documentation

◆ patchName_

const word patchName_
protected

Patch name.

Definition at line 71 of file patchInjectionBase.H.

Referenced by patchInjectionBase::patchInjectionBase().

◆ patchId_

const label patchId_
protected

Patch ID.

Definition at line 74 of file patchInjectionBase.H.

Referenced by patchInjectionBase::patchInjectionBase().

◆ sumProcArea_

scalarList sumProcArea_
protected

Cumulative sum of the total patch areas in each process.

Definition at line 77 of file patchInjectionBase.H.

◆ sumFaceArea_

scalarList sumFaceArea_
protected

Cumulative sum of the face areas in the patch.

Definition at line 80 of file patchInjectionBase.H.

◆ sumFaceTriArea_

scalarListList sumFaceTriArea_
protected

Cumulative sum of the triangle areas in each patch face.

Definition at line 83 of file patchInjectionBase.H.


The documentation for this class was generated from the following files: