Performs a triangulation of a patch to return randomised point locations. More...
Public Member Functions | |
triangulatedPatch (const polyPatch &patch, const scalar perturbTol) | |
Constructors. More... | |
triangulatedPatch (const polyMesh &mesh, const word &patchName, const scalar perturbTol) | |
Construct from mesh and patch name. More... | |
~triangulatedPatch ()=default | |
Destructor. More... | |
bool | randomLocalPoint (Random &rnd, point &result, label &facei, label &celli) const |
Set a random point on the local patch. More... | |
bool | randomGlobalPoint (Random &rnd, point &result, label &facei, label &celli) const |
Set a global random point on the patch. More... | |
Performs a triangulation of a patch to return randomised point locations.
Definition at line 41 of file triangulatedPatch.H.
triangulatedPatch | ( | const polyPatch & | patch, |
const scalar | perturbTol | ||
) |
Constructors.
Construct from components
Definition at line 85 of file triangulatedPatch.C.
References update().
triangulatedPatch | ( | const polyMesh & | mesh, |
const word & | patchName, | ||
const scalar | perturbTol | ||
) |
Construct from mesh and patch name.
Definition at line 101 of file triangulatedPatch.C.
|
default |
Destructor.
Set a random point on the local patch.
rnd | random number generator |
result | the random point |
facei | index associated with the random point |
celli | index associated with the random point |
Definition at line 179 of file triangulatedPatch.C.
References Foam::constant::universal::c, and Random::position().
Set a global random point on the patch.
rnd | random number generator |
result | the random point |
facei | index associated with the random point |
celli | index associated with the random point |
Definition at line 193 of file triangulatedPatch.C.
References forAll, UPstream::listGatherValues(), UPstream::myProcNo(), and UPstream::nProcs().