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 | updateMesh (const polyMesh &mesh) |
Update patch geometry and derived info for injection locations. More... | |
virtual void | setPositionAndCell (const polyMesh &mesh, cachedRandom &rnd, vector &position, label &cellOwner, label &tetFaceI, label &tetPtI) |
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... | |
scalar | patchArea_ |
Patch area - total across all processors. More... | |
vectorList | patchNormal_ |
Patch face normal directions. More... | |
labelList | cellOwners_ |
List of cell labels corresponding to injector positions. More... | |
faceList | triFace_ |
Decomposed patch faces as a list of triangles. More... | |
labelList | triToFace_ |
Addressing from per triangle to patch face. More... | |
scalarList | triCumulativeMagSf_ |
Cumulative triangle area per triangle face. More... | |
scalarList | sumTriMagSf_ |
Cumulative area fractions per processor. More... | |
Definition at line 61 of file patchInjectionBase.H.
patchInjectionBase | ( | const polyMesh & | mesh, |
const word & | patchName | ||
) |
Construct from mesh and patch name.
Definition at line 35 of file patchInjectionBase.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, mesh, and Foam::nl.
patchInjectionBase | ( | const patchInjectionBase & | pib | ) |
Copy constructor.
Definition at line 62 of file patchInjectionBase.C.
|
virtual |
Destructor.
Definition at line 78 of file patchInjectionBase.C.
|
virtual |
Update patch geometry and derived info for injection locations.
Definition at line 84 of file patchInjectionBase.C.
References DynamicList::append(), polyMesh::boundaryMesh(), DynamicList::clear(), f(), polyPatch::faceAreas(), polyPatch::faceCells(), forAll, Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::mag(), mesh, UPstream::myProcNo(), points, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), Foam::reduce(), Foam::sum(), DynamicList::transfer(), and triFace().
|
virtual |
Set the injection position and owner cell, tetFace and tetPt.
Definition at line 150 of file patchInjectionBase.C.
References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMesh::findCellFacePt(), forAllReverse, Foam::mag(), UPstream::master(), mesh, UPstream::myProcNo(), points, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), cachedRandom::position(), triangle::randomPoint(), Pstream::scatter(), and tf.
|
protected |
Patch name.
Definition at line 68 of file patchInjectionBase.H.
|
protected |
Patch ID.
Definition at line 71 of file patchInjectionBase.H.
|
protected |
Patch area - total across all processors.
Definition at line 74 of file patchInjectionBase.H.
|
protected |
Patch face normal directions.
Definition at line 77 of file patchInjectionBase.H.
|
protected |
List of cell labels corresponding to injector positions.
Definition at line 80 of file patchInjectionBase.H.
|
protected |
Decomposed patch faces as a list of triangles.
Definition at line 83 of file patchInjectionBase.H.
|
protected |
Addressing from per triangle to patch face.
Definition at line 86 of file patchInjectionBase.H.
|
protected |
Cumulative triangle area per triangle face.
Definition at line 89 of file patchInjectionBase.H.
|
protected |
Cumulative area fractions per processor.
Definition at line 92 of file patchInjectionBase.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.