Service routines for cutting a cell, celli, of an fvMesh, mesh_, at its intersection with a surface. More...
Public Member Functions | |
cutCell (const fvMesh &mesh) | |
Construct from fvMesh. More... | |
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. 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... | |
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)
|
staticprotected |
Calculates volume and centre of the cutted cell.
Definition at line 49 of file cutCell.C.
References Foam::fac::average(), forAll, Foam::mag(), Foam::max(), and Foam::Zero.
|
staticprotected |
Calculates area and centre of the cutting face.
Definition at line 88 of file cutCell.C.
References Foam::constant::universal::c, forAll, Foam::mag(), n, nPoints, p, Foam::constant::mathematical::pi(), Foam::sign(), UList< T >::size(), and Foam::Zero.
|
staticprotected |
Calculates the point of the cutting face.
Definition at line 158 of file cutCell.C.
References DynamicList< T, SizeMin >::append(), Foam::atan2(), DynamicList< T, SizeMin >::clear(), Foam::constant::electromagnetic::e, Foam::mag(), Foam::normalised(), p, Foam::constant::mathematical::pi(), and Foam::sortedOrder().