Loading...
Searching...
No Matches
triangulatedPatch Class Reference

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.

Detailed Description

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

Definition at line 42 of file triangulatedPatch.H.

Constructor & Destructor Documentation

◆ triangulatedPatch() [1/2]

triangulatedPatch ( const polyPatch & patch,
const scalar perturbTol )

Constructors.

Construct from components

Definition at line 83 of file triangulatedPatch.C.

References update().

Referenced by triangulatedPatch().

Here is the call graph for this function:
Here is the caller 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 98 of file triangulatedPatch.C.

References mesh, and triangulatedPatch().

Here is the call graph for this function:

◆ ~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 202 of file triangulatedPatch.C.

References VectorSpace< Form, Cmpt, Ncmpts >::min, and Random::position().

Referenced by randomGlobalPoint().

Here is the call graph for this function:
Here is the caller 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 224 of file triangulatedPatch.C.

References UPstream::broadcast, UList< T >::find(), UPstream::listGatherValues(), UPstream::myProcNo(), UPstream::parRun(), randomLocalPoint(), and Random::sample01().

Here is the call graph for this function:

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