Service routines for cutting a cell, celli, of an fvMesh, mesh_, at its intersection with a surface. More...
#include <cutCell.H>

Public Member Functions | |
| cutCell (const fvMesh &mesh) | |
| Construct from fvMesh. | |
Static Public Attributes | |
| static int | debug = 0 |
Static Protected Member Functions | |
| 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. | |
Service routines for cutting a cell, celli, of an fvMesh, mesh_, at its intersection with a surface.
Original code supplied by Johan Roenby, DHI (2016) Henning Scheufler, DLR (2019)
|
explicit |
Construct from fvMesh.
Definition at line 33 of file cutCell.C.
References mesh.
Referenced by cutCellIso::cutCellIso(), and cutCellPLIC::cutCellPLIC().

|
staticprotected |
Calculates volume and centre of the cutted cell.
Definition at line 48 of file cutCell.C.
References Foam::average(), forAll, Foam::mag(), Foam::max(), and Foam::Zero.
Referenced by cutCellIso::calcSubCell(), and cutCellPLIC::calcSubCell().


|
staticprotected |
Calculates area and centre of the cutting face.
Definition at line 87 of file cutCell.C.
References forAll, Foam::mag(), n, nPoints, p, pi(), Foam::sign(), UList< T >::size(), and Foam::Zero.
Referenced by cutCellIso::calcSubCell(), and cutCellPLIC::calcSubCell().


|
staticprotected |
Calculates the point of the cutting face.
Definition at line 157 of file cutCell.C.
References DynamicList< T, SizeMin >::append(), Foam::atan2(), DynamicList< T, SizeMin >::clear(), e, Foam::mag(), Vector< Cmpt >::normalise(), Foam::normalised(), p, pi(), UList< T >::size(), and Foam::sortedOrder().
Referenced by cutCellIso::facePoints(), and cutCellPLIC::facePoints().

