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...
Public Member Functions | |
cutCellIso (const fvMesh &mesh, scalarField &f) | |
label | calcSubCell (const label cellI, const scalar cutValue) |
const point & | subCellCentre () const noexcept |
scalar | subCellVolume () const noexcept |
const DynamicList< point > & | facePoints () |
const point & | faceCentre () const noexcept |
const vector & | faceArea () const noexcept |
label | cellStatus () const noexcept |
scalar | VolumeOfFluid () const noexcept |
scalar | cutValue () const noexcept |
void | clearStorage () |
![]() | |
cutCell (const fvMesh &mesh) | |
Additional Inherited Members | |
![]() | |
static int | debug = 0 |
![]() | |
static void | calcCellData (const DynamicList< point > &cutFaceCentres, const DynamicList< vector > &cutFaceAreas, vector &subCellCentre, scalar &subCellVolume) |
static void | calcGeomDataCutFace (const DynamicList< DynamicList< point >> &faceEdges, const vector &subCellCentre, vector &faceArea, vector &faceCentre) |
static void | calcIsoFacePointsFromEdges (const vector &faceArea, const vector &faceCentre, const DynamicList< DynamicList< point >> &faceEdges, DynamicList< point > &facePoints) |
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_.
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 | ||
) |
Definition at line 27 of file cutCellIso.C.
References cutCellIso::clearStorage().
Foam::label calcSubCell | ( | const label | cellI, |
const scalar | cutValue | ||
) |
Definition at line 53 of file cutCellIso.C.
References Foam::average(), Foam::constant::universal::c, Foam::mag(), and Foam::Zero.
|
inlinenoexcept |
Definition at line 146 of file cutCellIso.H.
Referenced by surfaceIteratorIso::subCellCentre().
|
inlinenoexcept |
Definition at line 152 of file cutCellIso.H.
Referenced by surfaceIteratorIso::subCellVolume().
const Foam::DynamicList< Foam::point > & facePoints | ( | ) |
Definition at line 166 of file cutCellIso.C.
Referenced by surfaceIteratorIso::facePoints().
|
inlinenoexcept |
Definition at line 161 of file cutCellIso.H.
Referenced by surfaceIteratorIso::surfaceCentre().
|
inlinenoexcept |
Definition at line 167 of file cutCellIso.H.
Referenced by surfaceIteratorIso::surfaceArea().
|
inlinenoexcept |
Definition at line 173 of file cutCellIso.H.
Referenced by surfaceIteratorIso::cellStatus().
|
inlinenoexcept |
Definition at line 179 of file cutCellIso.H.
Referenced by surfaceIteratorIso::VolumeOfFluid().
|
inlinenoexcept |
Definition at line 185 of file cutCellIso.H.
Referenced by surfaceIteratorIso::cutValue().
void clearStorage | ( | ) |
Definition at line 184 of file cutCellIso.C.
References Foam::Zero.
Referenced by cutCellIso::cutCellIso().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.