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 42 of file triangulatedPatch.H.
triangulatedPatch | ( | const polyPatch & | patch, |
const scalar | perturbTol | ||
) |
Constructors.
Construct from components
Definition at line 84 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 99 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 203 of file triangulatedPatch.C.
References Foam::constant::universal::c, Foam::min(), 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 225 of file triangulatedPatch.C.
References Pstream::broadcast(), Foam::constant::universal::c, UList< T >::find(), UPstream::listGatherValues(), UPstream::myProcNo(), UPstream::parRun(), and Random::sample01().