Loading...
Searching...
No Matches
cutCell Class Reference

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

#include <cutCell.H>

Inheritance diagram for cutCell:

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.

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 55 of file cutCell.H.

Constructor & Destructor Documentation

◆ cutCell()

cutCell ( const fvMesh & mesh)
explicit

Construct from fvMesh.

Definition at line 33 of file cutCell.C.

References mesh.

Referenced by cutCellIso::cutCellIso(), and cutCellPLIC::cutCellPLIC().

Here is the caller 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 48 of file cutCell.C.

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

Referenced by cutCellIso::calcSubCell(), and cutCellPLIC::calcSubCell().

Here is the call graph for this function:
Here is the caller 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 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().

Here is the call graph for this function:
Here is the caller 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 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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ debug

int debug = 0
static

Definition at line 97 of file cutCell.H.


The documentation for this class was generated from the following files:
  • src/transportModels/geometricVoF/cellCuts/cutCell/cutCell.H
  • src/transportModels/geometricVoF/cellCuts/cutCell/cutCell.C