Class for cutting a cell, cellI, of an fvMesh, mesh_, at its intersection with an surface defined by a normal and cutValue_ (defined as distance to the cell centre). More...
Public Member Functions | |
cutCellPLIC (const fvMesh &mesh) | |
Construct from fvMesh. More... | |
label | calcSubCell (const label celli, const scalar cutValue, const vector &normal) |
Sets internal values and returns face status. More... | |
const point & | subCellCentre () const |
Returns subCellCentre. More... | |
scalar | subCellVolume () const |
Returns subCellVolume. More... | |
const DynamicList< point > & | facePoints () |
Returns the points of the cutting PLICface. More... | |
const point & | faceCentre () const |
Returns the centre of the cutting PLICface. More... | |
const vector & | faceArea () const |
Returns the area normal vector of the cutting PLICface. 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... | |
Class for cutting a cell, cellI, of an fvMesh, mesh_, at its intersection with an surface defined by a normal and cutValue_ (defined as distance to the cell centre).
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 Henning Scheufler, DLR (2019)
Definition at line 71 of file cutCellPLIC.H.
|
explicit |
Construct from fvMesh.
Definition at line 34 of file cutCellPLIC.C.
References cutCellPLIC::clearStorage().
Foam::label calcSubCell | ( | const label | celli, |
const scalar | cutValue, | ||
const vector & | normal | ||
) |
Sets internal values and returns face status.
Definition at line 60 of file cutCellPLIC.C.
References Foam::average(), Foam::constant::universal::c, Foam::mag(), and Foam::Zero.
Referenced by reconstructionSchemes::surface().
const Foam::point & subCellCentre | ( | ) | const |
Returns subCellCentre.
Definition at line 175 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::subCellCentre().
Foam::scalar subCellVolume | ( | ) | const |
Returns subCellVolume.
Definition at line 181 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::subCellVolume().
const Foam::DynamicList< Foam::point > & facePoints | ( | ) |
Returns the points of the cutting PLICface.
Definition at line 187 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::facePoints(), and reconstructionSchemes::surface().
const Foam::point & faceCentre | ( | ) | const |
Returns the centre of the cutting PLICface.
Definition at line 205 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::surfaceCentre().
const Foam::vector & faceArea | ( | ) | const |
Returns the area normal vector of the cutting PLICface.
Definition at line 211 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::surfaceArea().
Foam::label cellStatus | ( | ) | const |
Returns cellStatus.
Definition at line 223 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::cellStatus().
Foam::scalar VolumeOfFluid | ( | ) | const |
Returns volume of fluid value.
Definition at line 217 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::VolumeOfFluid().
Foam::scalar cutValue | ( | ) | const |
Returns cutValue.
Definition at line 229 of file cutCellPLIC.C.
Referenced by surfaceIteratorPLIC::cutValue().
void clearStorage | ( | ) |
Resets internal values.
Definition at line 235 of file cutCellPLIC.C.
References Foam::Zero.
Referenced by cutCellPLIC::cutCellPLIC().