refinementParameters Class Reference

Simple container to keep together refinement specific information. More...

Classes

class  cellSelectionPoints
 Class to hold the points to select cells inside and outside. More...
 

Public Member Functions

 refinementParameters (const dictionary &dict)
 Construct from dictionary - new syntax. More...
 
 refinementParameters (const refinementParameters &)=delete
 Disallow default bitwise copy construction. More...
 
label maxGlobalCells () const
 Total number of cells. More...
 
label maxLocalCells () const
 Per processor max number of cells. More...
 
label minRefineCells () const
 When to stop refining. More...
 
scalar curvature () const
 Curvature. More...
 
scalar planarAngle () const
 Angle when two intersections are considered to be planar. More...
 
label nBufferLayers () const
 Number of layers between different refinement levels. More...
 
const cellSelectionPointsselectionPoints () const
 Return the points to select cells inside and outside. More...
 
bool allowFreeStandingZoneFaces () const
 Are zone faces allowed only in between different cell zones. More...
 
bool useTopologicalSnapDetection () const
 Use old topology based problem-cell removal. More...
 
scalar maxLoadUnbalance () const
 Allowed load unbalance. More...
 
bool handleSnapProblems () const
 
labelList findCells (const polyMesh &) const
 Checks that cells are in mesh. Returns cells they are in. More...
 
void operator= (const refinementParameters &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Simple container to keep together refinement specific information.

Source files

Definition at line 54 of file refinementParameters.H.

Constructor & Destructor Documentation

◆ refinementParameters() [1/2]

refinementParameters ( const dictionary dict)

Construct from dictionary - new syntax.

Definition at line 33 of file refinementParameters.C.

References refinementParameters::cellSelectionPoints::cellSelectionPoints(), Foam::cos(), Foam::degToRad(), and dictionary::lookup().

Referenced by refinementParameters::cellSelectionPoints::outside().

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

◆ refinementParameters() [2/2]

Disallow default bitwise copy construction.

Member Function Documentation

◆ maxGlobalCells()

label maxGlobalCells ( ) const
inline

Total number of cells.

Definition at line 145 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ maxLocalCells()

label maxLocalCells ( ) const
inline

Per processor max number of cells.

Definition at line 151 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ minRefineCells()

label minRefineCells ( ) const
inline

When to stop refining.

Definition at line 157 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ curvature()

scalar curvature ( ) const
inline

Curvature.

Definition at line 163 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ planarAngle()

scalar planarAngle ( ) const
inline

Angle when two intersections are considered to be planar.

Definition at line 169 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ nBufferLayers()

label nBufferLayers ( ) const
inline

Number of layers between different refinement levels.

Definition at line 175 of file refinementParameters.H.

References refinementParameters::allowFreeStandingZoneFaces(), refinementParameters::selectionPoints(), and refinementParameters::useTopologicalSnapDetection().

Referenced by snappyRefineDriver::snappyRefineDriver().

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

◆ selectionPoints()

const cellSelectionPoints& selectionPoints ( ) const
inline

Return the points to select cells inside and outside.

surface regions

Definition at line 182 of file refinementParameters.H.

Referenced by refinementParameters::nBufferLayers(), and snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ allowFreeStandingZoneFaces()

bool allowFreeStandingZoneFaces ( ) const
inline

Are zone faces allowed only in between different cell zones.

or also just free standing?

Definition at line 189 of file refinementParameters.H.

Referenced by refinementParameters::nBufferLayers(), and snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ useTopologicalSnapDetection()

bool useTopologicalSnapDetection ( ) const
inline

Use old topology based problem-cell removal.

(cells with 8 points on surface)

Definition at line 196 of file refinementParameters.H.

Referenced by refinementParameters::nBufferLayers(), and snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ maxLoadUnbalance()

scalar maxLoadUnbalance ( ) const
inline

Allowed load unbalance.

Definition at line 202 of file refinementParameters.H.

Referenced by snappyRefineDriver::snappyRefineDriver().

Here is the caller graph for this function:

◆ handleSnapProblems()

bool handleSnapProblems ( ) const
inline

Definition at line 207 of file refinementParameters.H.

References refinementParameters::findCells(), and refinementParameters::operator=().

Here is the call graph for this function:

◆ findCells()

Foam::labelList findCells ( const polyMesh mesh) const

Checks that cells are in mesh. Returns cells they are in.

Definition at line 119 of file refinementParameters.C.

References polyMesh::bounds(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyMesh::findCell(), forAll, Foam::Info, refinementParameters::cellSelectionPoints::inside(), primitiveMesh::nCells(), Foam::nl, Foam::reduce(), and polyMesh::tetBasePtIs().

Referenced by snappyRefineDriver::doRefine(), and refinementParameters::handleSnapProblems().

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

◆ operator=()

void operator= ( const refinementParameters )
delete

Disallow default bitwise assignment.

Referenced by refinementParameters::handleSnapProblems().

Here is the caller graph for this function:

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