cutCell Class Reference

Service routines for cutting a cell, celli, of an fvMesh, mesh_, at its intersection with a surface. More...

Inheritance diagram for cutCell:
[legend]

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...
 

Detailed Description

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)

Source files

Definition at line 59 of file cutCell.H.

Constructor & Destructor Documentation

◆ cutCell()

cutCell ( const fvMesh mesh)
explicit

Construct from fvMesh.

Definition at line 40 of file cutCell.C.

References fvMesh::C(), fvMesh::Cf(), fvMesh::magSf(), mesh, and fvMesh::V().

Here is the call graph for this function:

Member Function Documentation

◆ calcCellData()

void calcCellData ( const DynamicList< point > &  cutFaceCentres,
const DynamicList< vector > &  cutFaceAreas,
vector subCellCentre,
scalar &  subCellVolume 
)
staticprotected

Calculates volume and centre of the cutted cell.

Definition at line 55 of file cutCell.C.

References Foam::average(), forAll, Foam::mag(), Foam::max(), and Foam::Zero.

Here is the call graph for this function:

◆ calcGeomDataCutFace()

void calcGeomDataCutFace ( const DynamicList< DynamicList< point > > &  faceEdges,
const vector subCellCentre,
vector faceArea,
vector faceCentre 
)
staticprotected

Calculates area and centre of the cutting face.

Definition at line 94 of file cutCell.C.

References forAll, Foam::mag(), n, nPoints, p, Foam::sign(), UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ calcIsoFacePointsFromEdges()

void calcIsoFacePointsFromEdges ( const vector faceArea,
const vector faceCentre,
const DynamicList< DynamicList< point > > &  faceEdges,
DynamicList< point > &  facePoints 
)
staticprotected

Calculates the point of the cutting face.

Definition at line 164 of file cutCell.C.

References DynamicList< T, SizeMin >::append(), Foam::atan2(), DynamicList< T, SizeMin >::clear(), e, Foam::mag(), Vector< Cmpt >::normalise(), Foam::normalised(), p, UList< T >::size(), and Foam::sortedOrder().

Here is the call graph for this function:

Member Data Documentation

◆ debug

int debug = 0
static

Definition at line 95 of file cutCell.H.


The documentation for this class was generated from the following files: