Public Member Functions | Static Public Member Functions | List of all members
refinementParameters Class Reference

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

Public Member Functions

 refinementParameters (const dictionary &dict, const bool dryRun=false)
 
label maxGlobalCells () const
 
label maxLocalCells () const
 
label minRefineCells () const
 
scalar curvature () const
 
scalar planarAngle () const
 
label nBufferLayers () const
 
const pointFieldlocationsInMesh () const
 
const wordListzonesInMesh () const
 
const pointFieldlocationsOutsideMesh () const
 
bool allowFreeStandingZoneFaces () const
 
bool useTopologicalSnapDetection () const
 
scalar maxLoadUnbalance () const
 
bool handleSnapProblems () const
 
bool interfaceRefine () const
 
label nErodeCellZone () const
 
label nFilterIter () const
 
scalar minCellFraction () const
 
dictionary getZoneInfo (const word &fzName, surfaceZonesInfo::faceZoneType &faceType) const
 
labelList addCellZonesToMesh (polyMesh &) const
 

Static Public Member Functions

static labelList findCells (const bool checkInsideMesh, const polyMesh &, const pointField &locations)
 
static labelList zonedLocations (const wordList &zonesInMesh)
 
static labelList unzonedLocations (const wordList &zonesInMesh)
 

Detailed Description

Simple container to keep together refinement specific information.

Source files

Definition at line 54 of file refinementParameters.H.

Constructor & Destructor Documentation

◆ refinementParameters()

refinementParameters ( const dictionary dict,
const bool  dryRun = false 
)

Definition at line 33 of file refinementParameters.C.

References List::append(), Foam::cos(), Foam::degToRad(), dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, IOWarningInFunction, and nZones.

Here is the call graph for this function:

Member Function Documentation

◆ maxGlobalCells()

label maxGlobalCells ( ) const
inline

Definition at line 138 of file refinementParameters.H.

◆ maxLocalCells()

label maxLocalCells ( ) const
inline

Definition at line 144 of file refinementParameters.H.

◆ minRefineCells()

label minRefineCells ( ) const
inline

Definition at line 150 of file refinementParameters.H.

◆ curvature()

scalar curvature ( ) const
inline

Definition at line 156 of file refinementParameters.H.

◆ planarAngle()

scalar planarAngle ( ) const
inline

Definition at line 162 of file refinementParameters.H.

◆ nBufferLayers()

label nBufferLayers ( ) const
inline

Definition at line 168 of file refinementParameters.H.

◆ locationsInMesh()

const pointField& locationsInMesh ( ) const
inline

Definition at line 174 of file refinementParameters.H.

Referenced by snappyVoxelMeshDriver::doRefine(), and snappyRefineDriver::doRefine().

Here is the caller graph for this function:

◆ zonesInMesh()

const wordList& zonesInMesh ( ) const
inline

Definition at line 180 of file refinementParameters.H.

◆ locationsOutsideMesh()

const pointField& locationsOutsideMesh ( ) const
inline

Definition at line 186 of file refinementParameters.H.

Referenced by snappyVoxelMeshDriver::doRefine(), and snappyRefineDriver::doRefine().

Here is the caller graph for this function:

◆ allowFreeStandingZoneFaces()

bool allowFreeStandingZoneFaces ( ) const
inline

Definition at line 193 of file refinementParameters.H.

◆ useTopologicalSnapDetection()

bool useTopologicalSnapDetection ( ) const
inline

Definition at line 200 of file refinementParameters.H.

◆ maxLoadUnbalance()

scalar maxLoadUnbalance ( ) const
inline

Definition at line 206 of file refinementParameters.H.

◆ handleSnapProblems()

bool handleSnapProblems ( ) const
inline

Definition at line 211 of file refinementParameters.H.

◆ interfaceRefine()

bool interfaceRefine ( ) const
inline

Definition at line 217 of file refinementParameters.H.

◆ nErodeCellZone()

label nErodeCellZone ( ) const
inline

Definition at line 223 of file refinementParameters.H.

◆ nFilterIter()

label nFilterIter ( ) const
inline

Definition at line 230 of file refinementParameters.H.

◆ minCellFraction()

scalar minCellFraction ( ) const
inline

Definition at line 237 of file refinementParameters.H.

Referenced by snappyRefineDriver::doRefine().

Here is the caller graph for this function:

◆ getZoneInfo()

Foam::dictionary getZoneInfo ( const word fzName,
surfaceZonesInfo::faceZoneType faceType 
) const

Definition at line 152 of file refinementParameters.C.

References dictionary::add(), dictionary::found(), dictionary::readIfPresent(), and dictionary::subDict().

Referenced by snappyRefineDriver::addFaceZones().

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

◆ addCellZonesToMesh()

Foam::labelList addCellZonesToMesh ( polyMesh mesh) const

Definition at line 181 of file refinementParameters.C.

References forAll, mesh, and zoneIDs.

◆ findCells()

Foam::labelList findCells ( const bool  checkInsideMesh,
const polyMesh mesh,
const pointField locations 
)
static

Definition at line 203 of file refinementParameters.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, globalIndex::isLocal(), mesh, Foam::nl, reduce(), globalIndex::toGlobal(), globalIndex::toLocal(), and globalIndex::whichProcID().

Referenced by snappyRefineDriver::doRefine().

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

◆ zonedLocations()

Foam::labelList zonedLocations ( const wordList zonesInMesh)
static

Definition at line 263 of file refinementParameters.C.

References DynamicList::append(), and forAll.

Here is the call graph for this function:

◆ unzonedLocations()

Foam::labelList unzonedLocations ( const wordList zonesInMesh)
static

Definition at line 285 of file refinementParameters.C.

References DynamicList::append(), and forAll.

Here is the call graph for this function:

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