cutFaceIso Class Reference

Class for cutting a face, faceI, of an fvMesh, mesh_, at its intersection with an isosurface defined by the mesh point values f_ and the isovalue, cutValue. More...

Inheritance diagram for cutFaceIso:
[legend]
Collaboration diagram for cutFaceIso:
[legend]

Public Member Functions

 cutFaceIso (const fvMesh &mesh, scalarField &f)
 Construct from fvMesh and a scalarField. More...
 
label calcSubFace (const label faceI, const scalar cutValue)
 Calculate cut points along edges of faceI. More...
 
const pointsubFaceCentre () const noexcept
 Returns centre of cutted face. More...
 
const vectorsubFaceArea () const noexcept
 Returns area vector of cutted face. More...
 
const DynamicList< point > & subFacePoints () const noexcept
 Returns the cut edge of the cutted face. More...
 
const DynamicList< point > & surfacePoints () const noexcept
 Returns point of the face in sorted of cutted face. More...
 
void clearStorage ()
 Resets internal variables. More...
 
- Public Member Functions inherited from cutFace
 cutFace (const fvMesh &mesh)
 Construct from fvMesh. More...
 

Additional Inherited Members

- Static Public Attributes inherited from cutFace
static int debug = 0
 
- Protected Member Functions inherited from cutFace
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

Class for cutting a face, faceI, of an fvMesh, mesh_, at its intersection with an isosurface defined by the mesh point values f_ and the isovalue, cutValue.

Reference:

    Roenby, J., Bredmose, H. and Jasak, H. (2016).
    A computational method for sharp interface advection
    Royal Society Open Science, 3
    doi 10.1098/rsos.160405

Original code supplied by Johan Roenby, DHI (2016)

Source files

Definition at line 68 of file cutFaceIso.H.

Constructor & Destructor Documentation

◆ cutFaceIso()

cutFaceIso ( const fvMesh mesh,
scalarField f 
)

Construct from fvMesh and a scalarField.

length of scalarField should equal number of mesh points

Definition at line 34 of file cutFaceIso.C.

References cutFaceIso::clearStorage().

Here is the call graph for this function:

Member Function Documentation

◆ calcSubFace()

Foam::label calcSubFace ( const label  faceI,
const scalar  cutValue 
)

Calculate cut points along edges of faceI.

Definition at line 53 of file cutFaceIso.C.

References cutFace::calcSubFace(), f(), forAll, Foam::mag(), UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ subFaceCentre()

const point & subFaceCentre ( ) const
inlinenoexcept

Returns centre of cutted face.

Definition at line 126 of file cutFaceIso.H.

◆ subFaceArea()

const vector & subFaceArea ( ) const
inlinenoexcept

Returns area vector of cutted face.

Definition at line 132 of file cutFaceIso.H.

◆ subFacePoints()

const DynamicList< point > & subFacePoints ( ) const
inlinenoexcept

Returns the cut edge of the cutted face.

Definition at line 138 of file cutFaceIso.H.

◆ surfacePoints()

const DynamicList< point > & surfacePoints ( ) const
inlinenoexcept

Returns point of the face in sorted of cutted face.

Definition at line 144 of file cutFaceIso.H.

◆ clearStorage()

void clearStorage ( )

Resets internal variables.

Definition at line 114 of file cutFaceIso.C.

References Foam::Zero.

Referenced by cutFaceIso::cutFaceIso().

Here is the caller graph for this function:

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