Finds the cutValue that matches the volume fraction. More...
#include <surfaceIteratorPLIC.H>
Public Member Functions | |
| surfaceIteratorPLIC (const fvMesh &mesh, const scalar tol) | |
| Construct from fvMesh and a scalarField. | |
| bool | isASurfaceCell (const scalar alpha1) const |
| Determine if a cell is a surface cell. | |
| label | vofCutCell (const label celli, const scalar alpha1, const scalar tol, const label maxIter, vector normal) |
| Finds matching cutValue for the given value fraction. | |
| const point & | subCellCentre () const |
| The centre point of cutted volume. | |
| scalar | subCellVolume () const |
| The volume of cutted volume. | |
| const point & | surfaceCentre () const |
| The centre of cutting isosurface. | |
| const vector & | surfaceArea () const |
| The area vector of cutting isosurface. | |
| scalar | VolumeOfFluid () const |
| Volume of Fluid for cellI (subCellVolume_/mesh_.V()[cellI]). | |
| scalar | cutValue () const |
| The cutValue. | |
| label | cellStatus () |
| The cellStatus. | |
| const DynamicList< point > & | facePoints () |
| The points of the cutting isosurface in sorted order. | |
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
Definition at line 62 of file surfaceIteratorPLIC.H.
| 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 26 of file surfaceIteratorPLIC.C.
References mesh.
|
inline |
Determine if a cell is a surface cell.
Definition at line 102 of file surfaceIteratorPLIC.H.
References alpha1.
| 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.
Definition at line 40 of file surfaceIteratorPLIC.C.
References alpha1, C, 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(), pi(), Foam::pow(), Foam::pow3(), Foam::sign(), UList< T >::size(), Foam::sortedOrder(), Foam::sqr(), and WarningInFunction.

|
inline |
The centre point of cutted volume.
Definition at line 128 of file surfaceIteratorPLIC.H.
|
inline |
The volume of cutted volume.
Definition at line 136 of file surfaceIteratorPLIC.H.
|
inline |
The centre of cutting isosurface.
Definition at line 144 of file surfaceIteratorPLIC.H.
|
inline |
The area vector of cutting isosurface.
Definition at line 152 of file surfaceIteratorPLIC.H.
|
inline |
Volume of Fluid for cellI (subCellVolume_/mesh_.V()[cellI]).
Definition at line 160 of file surfaceIteratorPLIC.H.
|
inline |
The cutValue.
Definition at line 168 of file surfaceIteratorPLIC.H.
|
inline |
The cellStatus.
Definition at line 176 of file surfaceIteratorPLIC.H.
|
inline |
The points of the cutting isosurface in sorted order.
Definition at line 184 of file surfaceIteratorPLIC.H.