Performs a triangulation of a patch to return randomised point locations. More...
#include <triangulatedPatch.H>
Public Member Functions | |
| triangulatedPatch (const polyPatch &patch, const scalar perturbTol) | |
| Constructors. | |
| triangulatedPatch (const polyMesh &mesh, const word &patchName, const scalar perturbTol) | |
| Construct from mesh and patch name. | |
| ~triangulatedPatch ()=default | |
| Destructor. | |
| bool | randomLocalPoint (Random &rnd, point &result, label &facei, label &celli) const |
| Set a random point on the local patch. | |
| bool | randomGlobalPoint (Random &rnd, point &result, label &facei, label &celli) const |
| Set a global random point on the patch. | |
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 83 of file triangulatedPatch.C.
References update().
Referenced by triangulatedPatch().


Construct from mesh and patch name.
Definition at line 98 of file triangulatedPatch.C.
References mesh, and triangulatedPatch().

|
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 202 of file triangulatedPatch.C.
References VectorSpace< Form, Cmpt, Ncmpts >::min, and Random::position().
Referenced by randomGlobalPoint().


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 224 of file triangulatedPatch.C.
References UPstream::broadcast, UList< T >::find(), UPstream::listGatherValues(), UPstream::myProcNo(), UPstream::parRun(), randomLocalPoint(), and Random::sample01().
