Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
refinementParameters Class Reference

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

Collaboration diagram for refinementParameters:
Collaboration graph
[legend]

Public Member Functions

 refinementParameters (const dictionary &dict)
 Construct from dictionary - new syntax. 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 pointFieldlocationsInMesh () const
 Areas to keep. More...
 
const wordListzonesInMesh () const
 Per area the zone name. More...
 
const pointFieldlocationsOutsideMesh () const
 Optional points which are checked to be outside the mesh. More...
 
bool allowFreeStandingZoneFaces () const
 Are zone faces allowed only inbetween 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
 
bool interfaceRefine () const
 Refine cell with opposite faces with different refinement level. More...
 
dictionary getZoneInfo (const word &fzName, surfaceZonesInfo::faceZoneType &faceType) const
 Get patchInfo and faceType for faceZone. More...
 
labelList addCellZonesToMesh (polyMesh &) const
 Add cellZones to mesh. Return indices of cellZones (or -1) More...
 

Static Public Member Functions

static labelList findCells (const bool checkInsideMesh, const polyMesh &, const pointField &locations)
 Checks that cells are in mesh. Returns cells (or -1) they. More...
 
static labelList zonedLocations (const wordList &zonesInMesh)
 Extract indices of named locations (so excludes 'keepPoints') More...
 
static labelList unzonedLocations (const wordList &zonesInMesh)
 Extract indices of unnamed locations ('keepPoints') More...
 

Private Member Functions

 refinementParameters (const refinementParameters &)
 Disallow default bitwise copy construct. More...
 
void operator= (const refinementParameters &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const label maxGlobalCells_
 Total number of cells. More...
 
const label maxLocalCells_
 Per processor max number of cells. More...
 
const label minRefineCells_
 When to stop refining. More...
 
scalar curvature_
 Curvature. More...
 
scalar planarAngle_
 Planarity criterion. More...
 
const label nBufferLayers_
 Number of layers between different refinement levels. More...
 
const pointField locationsOutsideMesh_
 Areas not to keep. More...
 
pointField locationsInMesh_
 Areas to keep. More...
 
wordList zonesInMesh_
 Region for location. More...
 
dictionary faceZoneControls_
 Information on how to handle faces on faceZones. More...
 
Switch allowFreeStandingZoneFaces_
 FaceZone faces allowed which have owner and neighbour in same. More...
 
Switch useTopologicalSnapDetection_
 Use old topology based problem-cell removal (cells with 8 points. More...
 
scalar maxLoadUnbalance_
 Allowed load unbalance. More...
 
Switch handleSnapProblems_
 
Switch interfaceRefine_
 

Detailed Description

Simple container to keep together refinement specific information.

Source files

Definition at line 55 of file refinementParameters.H.

Constructor & Destructor Documentation

◆ refinementParameters() [1/2]

Disallow default bitwise copy construct.

◆ refinementParameters() [2/2]

refinementParameters ( const dictionary dict)

Member Function Documentation

◆ operator=()

void operator= ( const refinementParameters )
private

Disallow default bitwise assignment.

◆ maxGlobalCells()

label maxGlobalCells ( ) const
inline

◆ maxLocalCells()

label maxLocalCells ( ) const
inline

◆ minRefineCells()

label minRefineCells ( ) const
inline

◆ curvature()

scalar curvature ( ) const
inline

◆ planarAngle()

scalar planarAngle ( ) const
inline

◆ nBufferLayers()

label nBufferLayers ( ) const
inline

Number of layers between different refinement levels.

Definition at line 160 of file refinementParameters.H.

References refinementParameters::nBufferLayers_.

Referenced by autoRefineDriver::shellRefine().

Here is the caller graph for this function:

◆ locationsInMesh()

const pointField& locationsInMesh ( ) const
inline

◆ zonesInMesh()

const wordList& zonesInMesh ( ) const
inline

Per area the zone name.

Definition at line 172 of file refinementParameters.H.

References refinementParameters::zonesInMesh_.

Referenced by autoRefineDriver::baffleAndSplitMesh(), autoRefineDriver::removeInsideCells(), autoRefineDriver::splitAndMergeBaffles(), and autoRefineDriver::zonify().

Here is the caller graph for this function:

◆ locationsOutsideMesh()

const pointField& locationsOutsideMesh ( ) const
inline

Optional points which are checked to be outside the mesh.

Definition at line 178 of file refinementParameters.H.

References refinementParameters::locationsOutsideMesh_.

Referenced by autoRefineDriver::baffleAndSplitMesh(), autoRefineDriver::removeInsideCells(), and autoRefineDriver::splitAndMergeBaffles().

Here is the caller graph for this function:

◆ allowFreeStandingZoneFaces()

bool allowFreeStandingZoneFaces ( ) const
inline

Are zone faces allowed only inbetween different cell zones.

or also just free standing?

Definition at line 185 of file refinementParameters.H.

Referenced by autoRefineDriver::zonify().

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 192 of file refinementParameters.H.

Referenced by autoRefineDriver::baffleAndSplitMesh(), and autoRefineDriver::splitAndMergeBaffles().

Here is the caller graph for this function:

◆ maxLoadUnbalance()

scalar maxLoadUnbalance ( ) const
inline

◆ handleSnapProblems()

bool handleSnapProblems ( ) const
inline

Definition at line 203 of file refinementParameters.H.

References refinementParameters::handleSnapProblems_.

Referenced by main().

Here is the caller graph for this function:

◆ interfaceRefine()

bool interfaceRefine ( ) const
inline

Refine cell with opposite faces with different refinement level.

Definition at line 209 of file refinementParameters.H.

References refinementParameters::interfaceRefine_.

Referenced by autoRefineDriver::refinementInterfaceRefine().

Here is the caller graph for this function:

◆ getZoneInfo()

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

Get patchInfo and faceType for faceZone.

Definition at line 123 of file refinementParameters.C.

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

Referenced by autoRefineDriver::addFaceZones().

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

◆ addCellZonesToMesh()

Foam::labelList addCellZonesToMesh ( polyMesh mesh) const

Add cellZones to mesh. Return indices of cellZones (or -1)

Definition at line 152 of file refinementParameters.C.

References surfaceZonesInfo::addCellZone(), forAll, mesh, and word::null.

Referenced by main().

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

◆ findCells()

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

Checks that cells are in mesh. Returns cells (or -1) they.

are in.

Definition at line 174 of file refinementParameters.C.

References polyMesh::bounds(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyMesh::findCell(), forAll, Foam::Info, globalIndex::isLocal(), mesh, primitiveMesh::nCells(), Foam::nl, Foam::reduce(), polyMesh::tetBasePtIs(), globalIndex::toGlobal(), globalIndex::toLocal(), and globalIndex::whichProcID().

Referenced by autoRefineDriver::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

Extract indices of named locations (so excludes 'keepPoints')

Definition at line 234 of file refinementParameters.C.

References DynamicList::append(), forAll, word::null, and List::size().

Here is the call graph for this function:

◆ unzonedLocations()

Foam::labelList unzonedLocations ( const wordList zonesInMesh)
static

Extract indices of unnamed locations ('keepPoints')

Definition at line 256 of file refinementParameters.C.

References DynamicList::append(), forAll, and word::null.

Here is the call graph for this function:

Field Documentation

◆ maxGlobalCells_

const label maxGlobalCells_
private

Total number of cells.

Definition at line 60 of file refinementParameters.H.

Referenced by refinementParameters::maxGlobalCells().

◆ maxLocalCells_

const label maxLocalCells_
private

Per processor max number of cells.

Definition at line 63 of file refinementParameters.H.

Referenced by refinementParameters::maxLocalCells().

◆ minRefineCells_

const label minRefineCells_
private

When to stop refining.

Definition at line 66 of file refinementParameters.H.

Referenced by refinementParameters::minRefineCells().

◆ curvature_

scalar curvature_
private

◆ planarAngle_

scalar planarAngle_
private

Planarity criterion.

Definition at line 72 of file refinementParameters.H.

Referenced by refinementParameters::planarAngle().

◆ nBufferLayers_

const label nBufferLayers_
private

Number of layers between different refinement levels.

Definition at line 75 of file refinementParameters.H.

Referenced by refinementParameters::nBufferLayers().

◆ locationsOutsideMesh_

const pointField locationsOutsideMesh_
private

Areas not to keep.

Definition at line 81 of file refinementParameters.H.

Referenced by refinementParameters::locationsOutsideMesh().

◆ locationsInMesh_

pointField locationsInMesh_
private

◆ zonesInMesh_

wordList zonesInMesh_
private

Region for location.

Definition at line 87 of file refinementParameters.H.

Referenced by refinementParameters::refinementParameters(), and refinementParameters::zonesInMesh().

◆ faceZoneControls_

dictionary faceZoneControls_
private

Information on how to handle faces on faceZones.

Definition at line 90 of file refinementParameters.H.

◆ allowFreeStandingZoneFaces_

Switch allowFreeStandingZoneFaces_
private

FaceZone faces allowed which have owner and neighbour in same.

cellZone?

Definition at line 95 of file refinementParameters.H.

◆ useTopologicalSnapDetection_

Switch useTopologicalSnapDetection_
private

Use old topology based problem-cell removal (cells with 8 points.

on surface)

Definition at line 99 of file refinementParameters.H.

◆ maxLoadUnbalance_

scalar maxLoadUnbalance_
private

Allowed load unbalance.

Definition at line 102 of file refinementParameters.H.

Referenced by refinementParameters::maxLoadUnbalance().

◆ handleSnapProblems_

Switch handleSnapProblems_
private

Definition at line 104 of file refinementParameters.H.

Referenced by refinementParameters::handleSnapProblems().

◆ interfaceRefine_

Switch interfaceRefine_
private

Definition at line 106 of file refinementParameters.H.

Referenced by refinementParameters::interfaceRefine().


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