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...
#include <cutCellIso.H>


Public Member Functions | |
| cutCellIso (const fvMesh &mesh, scalarField &f) | |
| Construct from fvMesh and a scalarField. | |
| label | calcSubCell (const label cellI, const scalar cutValue) |
| Sets internal values and returns face status. | |
| const point & | subCellCentre () const noexcept |
| Returns subCellCentre. | |
| scalar | subCellVolume () const noexcept |
| Returns subCellVolume. | |
| const DynamicList< point > & | facePoints () |
| Returns the points of the cutting PLICface. | |
| const point & | faceCentre () const noexcept |
| Returns the centre of the cutting PLICface. | |
| const vector & | faceArea () 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. | |
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)
Definition at line 72 of file cutCellIso.H.
| cutCellIso | ( | const fvMesh & | mesh, |
| scalarField & | f ) |
Construct from fvMesh and a scalarField.
Length of scalarField should equal number of mesh points
Definition at line 27 of file cutCellIso.C.
References clearStorage(), cutCell::cutCell(), f(), mesh, and Foam::Zero.

| Foam::label calcSubCell | ( | const label | cellI, |
| const scalar | cutValue ) |
Sets internal values and returns face status.
Definition at line 52 of file cutCellIso.C.
References Foam::average(), cutCell::calcCellData(), cutCell::calcGeomDataCutFace(), clearStorage(), cutValue(), Foam::mag(), and Foam::Zero.

|
inlinenoexcept |
|
inlinenoexcept |
| const Foam::DynamicList< Foam::point > & facePoints | ( | ) |
Returns the points of the cutting PLICface.
Definition at line 166 of file cutCellIso.C.
References cutCell::calcIsoFacePointsFromEdges().

|
inlinenoexcept |
Returns the centre of the cutting PLICface.
Definition at line 208 of file cutCellIso.H.
References Foam::noexcept.
|
inlinenoexcept |
Returns the area normal vector of the cutting PLICface.
Definition at line 216 of file cutCellIso.H.
References Foam::noexcept.
|
inlinenoexcept |
|
inlinenoexcept |
Returns volume of fluid value.
Definition at line 232 of file cutCellIso.H.
References Foam::noexcept.
|
inlinenoexcept |
Returns cutValue.
Definition at line 240 of file cutCellIso.H.
References Foam::noexcept.
Referenced by calcSubCell().

| void clearStorage | ( | ) |
Resets internal values.
Definition at line 184 of file cutCellIso.C.
References DynamicList< T, SizeMin >::clear(), and Foam::Zero.
Referenced by calcSubCell(), and cutCellIso().

