cutFace Class Reference

Base class for cutting a face, faceI, of an fvMesh, mesh_, at its intersections. More...

Inheritance diagram for cutFace:
[legend]

Public Member Functions

 cutFace (const fvMesh &mesh)
 Construct from fvMesh. More...
 

Static Public Attributes

static int debug = 0
 

Protected Member Functions

void calcSubFace (const label faceI, const scalarList &pointStatus, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea)
 
void calcSubFace (const label faceI, const scalarList &pointStatus, const scalarList &weights, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea)
 
void calcSubFaceCentreAndArea (DynamicList< point > &subFacePoints, vector &subFaceCentre, vector &subFaceArea)
 Calculates centre and normal of the face. More...
 
void calcSubFace (const face &f, const pointField &points, const scalarList &pointStatus, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea)
 

Detailed Description

Base class for cutting a face, faceI, of an fvMesh, mesh_, at its intersections.

Original code supplied by Johan Roenby, DHI (2016) Henning Scheufler, DLR (2019)

Source files

Definition at line 59 of file cutFace.H.

Constructor & Destructor Documentation

◆ cutFace()

cutFace ( const fvMesh mesh)
explicit

Construct from fvMesh.

Definition at line 331 of file cutFace.C.

Member Function Documentation

◆ calcSubFace() [1/3]

void calcSubFace ( const label  faceI,
const scalarList pointStatus,
label  firstFullySubmergedPoint,
DynamicList< point > &  subFacePoints,
DynamicList< point > &  surfacePoints,
label &  faceStatus,
vector subFaceCentre,
vector subFaceArea 
)
protected

Calculate cut points along edges of face with pointStatus, pointfield and computes geometric information and the face status where:

  • -1: faceStatus is fully below the isosurface

0: faceStatus is cut (has values larger and smaller than isoValue)

  • +1: faceStatus is fully above the isosurface

Definition at line 38 of file cutFace.C.

References DynamicList< T, SizeMin >::append(), cutFace::calcSubFaceCentreAndArea(), f(), polyMesh::faces(), p, points, polyMesh::points(), UList< T >::size(), and Foam::Zero.

Referenced by cutFaceIso::calcSubFace(), cutFaceAdvect::calcSubFace(), and cutFacePLIC::calcSubFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcSubFace() [2/3]

void calcSubFace ( const label  faceI,
const scalarList pointStatus,
const scalarList weights,
label  firstFullySubmergedPoint,
DynamicList< point > &  subFacePoints,
DynamicList< point > &  surfacePoints,
label &  faceStatus,
vector subFaceCentre,
vector subFaceArea 
)
protected

Calculate cut points along edges of face with pointStatus, pointfield, weights and computes geometric information and the face status where:

  • -1: faceStatus is fully below the isosurface

0: faceStatus is cut (has values larger and smaller than isoValue)

  • +1: faceStatus is fully above the isosurface

Definition at line 115 of file cutFace.C.

References DynamicList< T, SizeMin >::append(), f(), p, points, UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ calcSubFaceCentreAndArea()

void calcSubFaceCentreAndArea ( DynamicList< point > &  subFacePoints,
vector subFaceCentre,
vector subFaceArea 
)
protected

Calculates centre and normal of the face.

Definition at line 264 of file cutFace.C.

References Foam::mag(), n, nPoints, UList< T >::size(), and Foam::Zero.

Referenced by cutFace::calcSubFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcSubFace() [3/3]

void calcSubFace ( const face f,
const pointField points,
const scalarList pointStatus,
label  firstFullySubmergedPoint,
DynamicList< point > &  subFacePoints,
DynamicList< point > &  surfacePoints,
label &  faceStatus,
vector subFaceCentre,
vector subFaceArea 
)
protected

Calculate cut points along edges of face with pointStatus, pointfield and computes geometric information and the face status where:

  • -1: faceStatus is fully below the isosurface

0: faceStatus is cut (has values larger and smaller than isoValue)

  • +1: faceStatus is fully above the isosurface

Definition at line 190 of file cutFace.C.

References DynamicList< T, SizeMin >::append(), f(), p, points, UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

Member Data Documentation

◆ debug

int debug = 0
static

Definition at line 134 of file cutFace.H.


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