Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
faceAreaIntersect Class Reference

Face intersection class. More...

Collaboration diagram for faceAreaIntersect:
Collaboration graph
[legend]

Public Types

enum  triangulationMode { tmFan, tmMesh }
 
typedef FixedList< point, 3 > triPoints
 

Public Member Functions

 faceAreaIntersect (const pointField &pointsA, const pointField &pointsB, const bool reverseB=false)
 Construct from components. More...
 
scalar calc (const face &faceA, const face &faceB, const vector &n, const triangulationMode &triMode)
 Return area of intersection of faceA with faceB. More...
 

Static Public Member Functions

static scalar & tolerance ()
 Fraction of local length scale to use as intersection tolerance. More...
 

Static Public Attributes

static const NamedEnum< triangulationMode, 2 > triangulationModeNames_
 

Detailed Description

Face intersection class.

- calculates intersection area by sub-dividing face into triangles and cutting

Source files

Definition at line 54 of file faceAreaIntersect.H.

Member Typedef Documentation

typedef FixedList<point, 3> triPoints

Definition at line 58 of file faceAreaIntersect.H.

Member Enumeration Documentation

Enumerator
tmFan 
tmMesh 

Definition at line 60 of file faceAreaIntersect.H.

Constructor & Destructor Documentation

faceAreaIntersect ( const pointField pointsA,
const pointField pointsB,
const bool  reverseB = false 
)

Construct from components.

Definition at line 314 of file faceAreaIntersect.C.

References faceAreaIntersect::calc().

Referenced by NamedEnum< Enum, nEnum >::names().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

Foam::scalar & tolerance ( )
inlinestatic

Fraction of local length scale to use as intersection tolerance.

Definition at line 113 of file faceAreaIntersectI.H.

Foam::scalar calc ( const face faceA,
const face faceB,
const vector n,
const triangulationMode triMode 
)

Return area of intersection of faceA with faceB.

Definition at line 329 of file faceAreaIntersect.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and face::triangles().

Referenced by faceAreaIntersect::faceAreaIntersect(), and faceAreaWeightAMI< SourcePatch, TargetPatch >::interArea().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const Foam::NamedEnum< Foam::faceAreaIntersect::triangulationMode, 2 > triangulationModeNames_
static

Definition at line 66 of file faceAreaIntersect.H.

Referenced by NamedEnum< Enum, nEnum >::names().


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