Public Member Functions | List of all members
cutCellPLIC Class Reference

Class for cutting a cell, cellI, of an fvMesh, mesh_, at its intersection with an surface defined by a normal and cutValue_ (defined as distance to the cell centre). More...

Inheritance diagram for cutCellPLIC:
Inheritance graph
[legend]
Collaboration diagram for cutCellPLIC:
Collaboration graph
[legend]

Public Member Functions

 cutCellPLIC (const fvMesh &mesh)
 
label calcSubCell (const label celli, const scalar cutValue, const vector &normal)
 
const pointsubCellCentre () const noexcept
 
scalar subCellVolume () const noexcept
 
const DynamicList< point > & facePoints ()
 
const pointfaceCentre () const noexcept
 
const vectorfaceArea () const noexcept
 
label cellStatus () const noexcept
 
scalar VolumeOfFluid () const noexcept
 
scalar cutValue () const noexcept
 
void clearStorage ()
 
- Public Member Functions inherited from cutCell
 cutCell (const fvMesh &mesh)
 

Additional Inherited Members

- Static Public Attributes inherited from cutCell
static int debug = 0
 
- Static Protected Member Functions inherited from cutCell
static void calcCellData (const DynamicList< point > &cutFaceCentres, const DynamicList< vector > &cutFaceAreas, vector &subCellCentre, scalar &subCellVolume)
 
static void calcGeomDataCutFace (const DynamicList< DynamicList< point >> &faceEdges, const vector &subCellCentre, vector &faceArea, vector &faceCentre)
 
static void calcIsoFacePointsFromEdges (const vector &faceArea, const vector &faceCentre, const DynamicList< DynamicList< point >> &faceEdges, DynamicList< point > &facePoints)
 

Detailed Description

Class for cutting a cell, cellI, of an fvMesh, mesh_, at its intersection with an surface defined by a normal and cutValue_ (defined as distance to the cell centre).

Reference:

    Henning Scheufler, Johan Roenby,
    Accurate and efficient surface reconstruction from volume
    fraction data on general meshes,
    Journal of Computational Physics, 2019,
    doi 10.1016/j.jcp.2019.01.009

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 67 of file cutCellPLIC.H.

Constructor & Destructor Documentation

◆ cutCellPLIC()

cutCellPLIC ( const fvMesh mesh)
explicit

Definition at line 27 of file cutCellPLIC.C.

References cutCellPLIC::clearStorage().

Here is the call graph for this function:

Member Function Documentation

◆ calcSubCell()

Foam::label calcSubCell ( const label  celli,
const scalar  cutValue,
const vector normal 
)

Definition at line 53 of file cutCellPLIC.C.

References Foam::average(), Foam::constant::universal::c, Foam::mag(), and Foam::Zero.

Referenced by reconstructionSchemes::surface().

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

◆ subCellCentre()

const point& subCellCentre ( ) const
inlinenoexcept

Definition at line 145 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::subCellCentre().

Here is the caller graph for this function:

◆ subCellVolume()

scalar subCellVolume ( ) const
inlinenoexcept

Definition at line 151 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::subCellVolume().

Here is the caller graph for this function:

◆ facePoints()

const Foam::DynamicList< Foam::point > & facePoints ( )

Definition at line 168 of file cutCellPLIC.C.

Referenced by surfaceIteratorPLIC::facePoints(), and reconstructionSchemes::surface().

Here is the caller graph for this function:

◆ faceCentre()

const point& faceCentre ( ) const
inlinenoexcept

Definition at line 160 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::surfaceCentre().

Here is the caller graph for this function:

◆ faceArea()

const vector& faceArea ( ) const
inlinenoexcept

Definition at line 166 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::surfaceArea().

Here is the caller graph for this function:

◆ cellStatus()

label cellStatus ( ) const
inlinenoexcept

Definition at line 172 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::cellStatus().

Here is the caller graph for this function:

◆ VolumeOfFluid()

scalar VolumeOfFluid ( ) const
inlinenoexcept

Definition at line 178 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::VolumeOfFluid().

Here is the caller graph for this function:

◆ cutValue()

scalar cutValue ( ) const
inlinenoexcept

Definition at line 184 of file cutCellPLIC.H.

Referenced by surfaceIteratorPLIC::cutValue().

Here is the caller graph for this function:

◆ clearStorage()

void clearStorage ( )

Definition at line 186 of file cutCellPLIC.C.

References Foam::Zero.

Referenced by cutCellPLIC::cutCellPLIC().

Here is the caller graph for this function:

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