Loading...
Searching...
No Matches
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...

#include <cutCellPLIC.H>

Inheritance diagram for cutCellPLIC:
Collaboration diagram for cutCellPLIC:

Public Member Functions

 cutCellPLIC (const fvMesh &mesh)
 Construct from fvMesh.
label calcSubCell (const label celli, const scalar cutValue, const vector &normal)
 Sets internal values and returns face status.
const pointsubCellCentre () const noexcept
 Returns subCellCentre.
scalar subCellVolume () const noexcept
 Returns subCellVolume.
const DynamicList< point > & facePoints ()
 Returns the points of the cutting PLICface.
const pointfaceCentre () const noexcept
 Returns the centre of the cutting PLICface.
const vectorfaceArea () const noexcept
 Returns the area normal vector of the cutting PLICface.
label cellStatus () const noexcept
 Returns cellStatus.
scalar VolumeOfFluid () const noexcept
 Returns volume of fluid value.
scalar cutValue () const noexcept
 Returns cutValue.
void clearStorage ()
 Resets internal values.
Public Member Functions inherited from cutCell
 cutCell (const fvMesh &mesh)
 Construct from fvMesh.

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)
 Calculates volume and centre of the cutted cell.
static void calcGeomDataCutFace (const DynamicList< DynamicList< point > > &faceEdges, const vector &subCellCentre, vector &faceArea, vector &faceCentre)
 Calculates area and centre of the cutting face.
static void calcIsoFacePointsFromEdges (const vector &faceArea, const vector &faceCentre, const DynamicList< DynamicList< point > > &faceEdges, DynamicList< point > &facePoints)
 Calculates the point of the cutting face.

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

Construct from fvMesh.

Definition at line 27 of file cutCellPLIC.C.

References clearStorage(), cutCell::cutCell(), mesh, and Foam::Zero.

Here is the call graph for this function:

Member Function Documentation

◆ calcSubCell()

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

Sets internal values and returns face status.

Definition at line 52 of file cutCellPLIC.C.

References Foam::average(), cutCell::calcCellData(), cutCell::calcGeomDataCutFace(), clearStorage(), cutValue(), 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

Returns subCellCentre.

Definition at line 185 of file cutCellPLIC.H.

References Foam::noexcept.

◆ subCellVolume()

scalar subCellVolume ( ) const
inlinenoexcept

Returns subCellVolume.

Definition at line 193 of file cutCellPLIC.H.

References Foam::noexcept.

◆ facePoints()

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

Returns the points of the cutting PLICface.

Definition at line 168 of file cutCellPLIC.C.

References cutCell::calcIsoFacePointsFromEdges().

Referenced by reconstructionSchemes::surface().

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

◆ faceCentre()

const point & faceCentre ( ) const
inlinenoexcept

Returns the centre of the cutting PLICface.

Definition at line 206 of file cutCellPLIC.H.

References Foam::noexcept.

◆ faceArea()

const vector & faceArea ( ) const
inlinenoexcept

Returns the area normal vector of the cutting PLICface.

Definition at line 214 of file cutCellPLIC.H.

References Foam::noexcept.

◆ cellStatus()

label cellStatus ( ) const
inlinenoexcept

Returns cellStatus.

Definition at line 222 of file cutCellPLIC.H.

References Foam::noexcept.

◆ VolumeOfFluid()

scalar VolumeOfFluid ( ) const
inlinenoexcept

Returns volume of fluid value.

Definition at line 230 of file cutCellPLIC.H.

References Foam::noexcept.

◆ cutValue()

scalar cutValue ( ) const
inlinenoexcept

Returns cutValue.

Definition at line 238 of file cutCellPLIC.H.

References Foam::noexcept.

Referenced by calcSubCell().

Here is the caller graph for this function:

◆ clearStorage()

void clearStorage ( )

Resets internal values.

Definition at line 186 of file cutCellPLIC.C.

References DynamicList< T, SizeMin >::clear(), and Foam::Zero.

Referenced by calcSubCell(), and cutCellPLIC().

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

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