Service routines for cutting a cell, celli, of an fvMesh, mesh_, at its intersection with a surface. More...
Public Member Functions  
cutCell (const fvMesh &unused)  
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 47 of file cutCell.C.
References Foam::average(), forAll, Foam::mag(), Foam::max(), and Foam::Zero.

staticprotected 
Calculates area and centre of the cutting face.
Definition at line 85 of file cutCell.C.
References Foam::constant::universal::c, forAll, Foam::mag(), n, nPoints, p, Foam::constant::mathematical::pi(), Foam::sign(), and Foam::Zero.

staticprotected 
Calculates the point of the cutting face.
Definition at line 155 of file cutCell.C.
References DynamicList< T, SizeMin >::append(), Foam::atan2(), Foam::constant::electromagnetic::e, Foam::mag(), Vector< Cmpt >::normalise(), Foam::normalised(), p, Foam::constant::mathematical::pi(), and Foam::sortedOrder().