triangulatedPatch Class Reference

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...
 

Detailed Description

Performs a triangulation of a patch to return randomised point locations.

Definition at line 41 of file triangulatedPatch.H.

Constructor & Destructor Documentation

◆ triangulatedPatch() [1/2]

triangulatedPatch ( const polyPatch patch,
const scalar  perturbTol 
)

Constructors.

Construct from components

Definition at line 85 of file triangulatedPatch.C.

References update().

Here is the call graph for this function:

◆ triangulatedPatch() [2/2]

triangulatedPatch ( const polyMesh mesh,
const word patchName,
const scalar  perturbTol 
)

Construct from mesh and patch name.

Definition at line 101 of file triangulatedPatch.C.

◆ ~triangulatedPatch()

~triangulatedPatch ( )
default

Destructor.

Member Function Documentation

◆ randomLocalPoint()

bool randomLocalPoint ( Random rnd,
point result,
label &  facei,
label &  celli 
) const

Set a random point on the local patch.

Parameters
rndrandom number generator
resultthe random point
faceiindex associated with the random point
celliindex associated with the random point
Returns
true if point has been set

Definition at line 179 of file triangulatedPatch.C.

References Foam::constant::universal::c, and Random::position().

Here is the call graph for this function:

◆ randomGlobalPoint()

bool randomGlobalPoint ( Random rnd,
point result,
label &  facei,
label &  celli 
) const

Set a global random point on the patch.

Parameters
rndrandom number generator
resultthe random point
faceiindex associated with the random point
celliindex associated with the random point
Returns
true if point has been set

Definition at line 193 of file triangulatedPatch.C.

References forAll, UPstream::listGatherValues(), UPstream::myProcNo(), and UPstream::nProcs().

Here is the call graph for this function:

The documentation for this class was generated from the following files: