surfaceIteratorPLIC Class Reference

Finds the cutValue that matches the volume fraction. More...

Public Member Functions

 surfaceIteratorPLIC (const fvMesh &mesh, const scalar tol)
 Construct from fvMesh and a scalarField. More...
 
bool isASurfaceCell (const scalar alpha1) const
 Determine if a cell is a surface cell. More...
 
label vofCutCell (const label celli, const scalar alpha1, const scalar tol, const label maxIter, vector normal)
 Finds matching cutValue for the given value fraction. More...
 
const pointsubCellCentre () const
 The centre point of cutted volume. More...
 
scalar subCellVolume () const
 The volume of cutted volume. More...
 
const pointsurfaceCentre () const
 The centre of cutting isosurface. More...
 
const vectorsurfaceArea () const
 The area vector of cutting isosurface. More...
 
scalar VolumeOfFluid () const
 Volume of Fluid for cellI (subCellVolume_/mesh_.V()[cellI]) More...
 
scalar cutValue () const
 The cutValue. More...
 
label cellStatus ()
 The cellStatus. More...
 
const DynamicList< point > & facePoints ()
 The points of the cutting isosurface in sorted order. More...
 

Detailed Description

Finds the cutValue that matches the volume fraction.

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

Author Johan Roenby, DHI, all rights reserved. Modified Henning Scheufler, DLR

Source files

Definition at line 66 of file surfaceIteratorPLIC.H.

Constructor & Destructor Documentation

◆ surfaceIteratorPLIC()

surfaceIteratorPLIC ( const fvMesh mesh,
const scalar  tol 
)

Construct from fvMesh and a scalarField.

Length of scalarField should equal number of mesh points

Definition at line 33 of file surfaceIteratorPLIC.C.

Member Function Documentation

◆ isASurfaceCell()

bool isASurfaceCell ( const scalar  alpha1) const
inline

Determine if a cell is a surface cell.

Definition at line 94 of file surfaceIteratorPLIC.H.

References alpha1.

◆ vofCutCell()

Foam::label vofCutCell ( const label  celli,
const scalar  alpha1,
const scalar  tol,
const label  maxIter,
vector  normal 
)

Finds matching cutValue for the given value fraction.

Returns
the cellStatus

Definition at line 47 of file surfaceIteratorPLIC.C.

References alpha1, e, Foam::endl(), f(), UList< T >::first(), forAll, UList< T >::last(), Foam::LUsolve(), M, Foam::mag(), Foam::max(), Foam::min(), Foam::nl, Vector< Cmpt >::normalise(), Foam::pow(), Foam::pow3(), Foam::sign(), UList< T >::size(), Foam::sortedOrder(), Foam::sqr(), and WarningInFunction.

Referenced by plicRDF::plicRDF().

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

◆ subCellCentre()

const point & subCellCentre ( ) const
inline

The centre point of cutted volume.

Definition at line 115 of file surfaceIteratorPLIC.H.

References cutCellPLIC::subCellCentre().

Here is the call graph for this function:

◆ subCellVolume()

scalar subCellVolume ( ) const
inline

The volume of cutted volume.

Definition at line 121 of file surfaceIteratorPLIC.H.

References cutCellPLIC::subCellVolume().

Here is the call graph for this function:

◆ surfaceCentre()

const point & surfaceCentre ( ) const
inline

The centre of cutting isosurface.

Definition at line 127 of file surfaceIteratorPLIC.H.

References cutCellPLIC::faceCentre().

Referenced by plicRDF::plicRDF().

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

◆ surfaceArea()

const vector & surfaceArea ( ) const
inline

The area vector of cutting isosurface.

Definition at line 133 of file surfaceIteratorPLIC.H.

References cutCellPLIC::faceArea().

Referenced by plicRDF::plicRDF().

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

◆ VolumeOfFluid()

scalar VolumeOfFluid ( ) const
inline

Volume of Fluid for cellI (subCellVolume_/mesh_.V()[cellI])

Definition at line 139 of file surfaceIteratorPLIC.H.

References cutCellPLIC::VolumeOfFluid().

Here is the call graph for this function:

◆ cutValue()

scalar cutValue ( ) const
inline

The cutValue.

Definition at line 145 of file surfaceIteratorPLIC.H.

References cutCellPLIC::cutValue().

Here is the call graph for this function:

◆ cellStatus()

label cellStatus ( )
inline

The cellStatus.

Definition at line 151 of file surfaceIteratorPLIC.H.

References cutCellPLIC::cellStatus().

Referenced by plicRDF::plicRDF().

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

◆ facePoints()

const DynamicList< point > & facePoints ( )
inline

The points of the cutting isosurface in sorted order.

Definition at line 157 of file surfaceIteratorPLIC.H.

References cutCellPLIC::facePoints().

Here is the call graph for this function:

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