cutCellIso Class Reference

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

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

Public Member Functions

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

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

Detailed Description

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

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

    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 Johan Roenby, DHI (2016)

Source files

Definition at line 76 of file cutCellIso.H.

Constructor & Destructor Documentation

◆ cutCellIso()

cutCellIso ( 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 cutCellIso.C.

References cutCellIso::clearStorage().

Here is the call graph for this function:

Member Function Documentation

◆ calcSubCell()

Foam::label calcSubCell ( const label  cellI,
const scalar  cutValue 
)

Sets internal values and returns face status.

Definition at line 60 of file cutCellIso.C.

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

Here is the call graph for this function:

◆ subCellCentre()

const Foam::point & subCellCentre ( ) const

Returns subCellCentre.

Definition at line 173 of file cutCellIso.C.

Referenced by surfaceIteratorIso::subCellCentre().

Here is the caller graph for this function:

◆ subCellVolume()

Foam::scalar subCellVolume ( ) const

Returns subCellVolume.

Definition at line 179 of file cutCellIso.C.

Referenced by surfaceIteratorIso::subCellVolume().

Here is the caller graph for this function:

◆ facePoints()

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

Returns the points of the cutting isoface.

Definition at line 185 of file cutCellIso.C.

Referenced by surfaceIteratorIso::facePoints().

Here is the caller graph for this function:

◆ faceCentre()

const Foam::point & faceCentre ( ) const

Returns the centre of the cutting isoface.

Definition at line 203 of file cutCellIso.C.

Referenced by surfaceIteratorIso::surfaceCentre().

Here is the caller graph for this function:

◆ faceArea()

const Foam::vector & faceArea ( ) const

Returns the area normal vector of the cutting isoface.

Definition at line 209 of file cutCellIso.C.

Referenced by surfaceIteratorIso::surfaceArea().

Here is the caller graph for this function:

◆ cellStatus()

Foam::label cellStatus ( ) const

Returns cellStatus.

Definition at line 215 of file cutCellIso.C.

Referenced by surfaceIteratorIso::cellStatus().

Here is the caller graph for this function:

◆ VolumeOfFluid()

Foam::scalar VolumeOfFluid ( ) const

Returns volume of fluid value.

Definition at line 221 of file cutCellIso.C.

Referenced by surfaceIteratorIso::VolumeOfFluid().

Here is the caller graph for this function:

◆ cutValue()

Foam::scalar cutValue ( ) const

Returns cutValue.

Definition at line 227 of file cutCellIso.C.

Referenced by surfaceIteratorIso::cutValue().

Here is the caller graph for this function:

◆ clearStorage()

void clearStorage ( )

Resets internal values.

Definition at line 233 of file cutCellIso.C.

References Foam::Zero.

Referenced by cutCellIso::cutCellIso().

Here is the caller graph for this function:

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