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 ()=default |
Destructor. More... | |
virtual void | updateMesh (const polyMesh &mesh) |
Update patch geometry and derived info for injection locations. More... | |
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. More... | |
virtual label | setPositionAndCell (const fvMesh &mesh, Random &rnd, vector &position, label &cellOwner, label &tetFacei, label &tetPti) |
Set the injection position and owner cell, tetFace and tetPt. More... | |
label | whichProc (const scalar fraction01) const |
Return the processor that has the location specified by the fraction. 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... | |
List< labelledTri > | triFace_ |
The polyPatch faces as triangles, the index of each corresponds to the undecomposed patch face index. More... | |
scalarList | triCumulativeMagSf_ |
Cumulative triangle area per triangle face (processor-local) More... | |
scalarList | sumTriMagSf_ |
Cumulative area fractions per processor. More... | |
Definition at line 62 of file patchInjectionBase.H.
patchInjectionBase | ( | const polyMesh & | mesh, |
const word & | patchName | ||
) |
Construct from mesh and patch name.
Definition at line 33 of file patchInjectionBase.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, mesh, and Foam::nl.
patchInjectionBase | ( | const patchInjectionBase & | pib | ) |
Copy constructor.
Definition at line 59 of file patchInjectionBase.C.
|
virtualdefault |
Destructor.
|
virtual |
Update patch geometry and derived info for injection locations.
Definition at line 74 of file patchInjectionBase.C.
References Pstream::allGatherList(), polyMesh::boundaryMesh(), DynamicList< T, SizeMin >::clear(), DynamicList< T, SizeMin >::emplace_back(), f(), forAll, Foam::mag(), mesh, UPstream::myProcNo(), UPstream::nProcs(), Foam::foamVersion::patch, points, Foam::reduce(), Foam::sum(), and FixedList< T, N >::transfer().
Foam::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.
Supply the fraction used to determine the location on the patch Returns the seed patch face index
Definition at line 155 of file patchInjectionBase.C.
References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMeshTetDecomposition::cellTetIndices(), polyMesh::findCellFacePt(), polyMesh::findTetFacePt(), forAll, forAllReverse, UList< T >::last(), Foam::mag(), mesh, UPstream::myProcNo(), Foam::foamVersion::patch, points, Random::position(), Random::sample01(), UList< T >::size(), fvMesh::V(), and Foam::Zero.
|
virtual |
Set the injection position and owner cell, tetFace and tetPt.
Returns the seed patch face index
Definition at line 269 of file patchInjectionBase.C.
References Random::globalSample01(), and mesh.
Foam::label whichProc | ( | const scalar | fraction01 | ) | const |
Return the processor that has the location specified by the fraction.
Definition at line 293 of file patchInjectionBase.C.
References forAllReverse.
|
protected |
Patch name.
Definition at line 71 of file patchInjectionBase.H.
|
protected |
Patch ID.
Definition at line 76 of file patchInjectionBase.H.
|
protected |
Patch area - total across all processors.
Definition at line 81 of file patchInjectionBase.H.
|
protected |
Patch face normal directions.
Definition at line 86 of file patchInjectionBase.H.
|
protected |
List of cell labels corresponding to injector positions.
Definition at line 91 of file patchInjectionBase.H.
|
protected |
The polyPatch faces as triangles, the index of each corresponds to the undecomposed patch face index.
Definition at line 97 of file patchInjectionBase.H.
|
protected |
Cumulative triangle area per triangle face (processor-local)
Definition at line 102 of file patchInjectionBase.H.
|
protected |
Cumulative area fractions per processor.
Definition at line 107 of file patchInjectionBase.H.