snappyRefineDriver Class Reference

Public Member Functions

 ClassName ("snappyRefineDriver")
 Runtime type information. More...
 
 snappyRefineDriver (meshRefinement &meshRefiner, decompositionMethod &decomposer, fvMeshDistribute &distributor, const labelUList &globalToMasterPatch, const labelUList &globalToSlavePatch, coordSetWriter &setFormatter, const bool dryRun=false)
 Construct from components. More...
 
void doRefine (const dictionary &refineDict, const refinementParameters &refineParams, const snapParameters &snapParams, const bool prepareForSnapping, const meshRefinement::FaceMergeType mergeType, const dictionary &motionDict)
 Do all the refinement. More...
 

Static Public Member Functions

static void addFaceZones (meshRefinement &meshRefiner, const refinementParameters &refineParams, const HashTable< Pair< word > > &faceZoneToPatches)
 Helper: add faceZones and patches. More...
 

Detailed Description

Source files

Definition at line 65 of file snappyRefineDriver.H.

Constructor & Destructor Documentation

◆ snappyRefineDriver()

snappyRefineDriver ( meshRefinement meshRefiner,
decompositionMethod decomposer,
fvMeshDistribute distributor,
const labelUList globalToMasterPatch,
const labelUList globalToSlavePatch,
coordSetWriter setFormatter,
const bool  dryRun = false 
)

Construct from components.

Definition at line 63 of file snappyRefineDriver.C.

Member Function Documentation

◆ ClassName()

ClassName ( "snappyRefineDriver"  )

Runtime type information.

◆ doRefine()

void doRefine ( const dictionary refineDict,
const refinementParameters refineParams,
const snapParameters snapParams,
const bool  prepareForSnapping,
const meshRefinement::FaceMergeType  mergeType,
const dictionary motionDict 
)

Do all the refinement.

Commented out for now since causes zoning errors (sigsegv) on

case with faceZones. TBD. Refine any cells are point/edge connected to the boundary and have a lower refinement level than the neighbouring cells boundaryRefinementInterfaceRefine ( refineParams, 10 // maxIter );

Definition at line 3330 of file snappyRefineDriver.C.

References addProfiling, snappyVoxelMeshDriver::doRefine(), Foam::endl(), refinementParameters::findCells(), FixedList< T, N >::first(), forAll, surfaceZonesInfo::getUnnamedSurfaces(), Foam::Info, HashTable< T, Key, Hash >::insert(), Foam::labelMax, refinementParameters::locationsInMesh(), refinementParameters::locationsOutsideMesh(), Foam::max(), mesh, refinementParameters::minCellFraction(), primitiveMesh::nCells(), Foam::nl, refinementParameters::nMinCells(), UPstream::parRun(), patches, Pair< T >::second(), HashTable< T, Key, Hash >::size(), UList< T >::size(), HashTable< T, Key, Hash >::sortedToc(), and refinementParameters::zonesInMesh().

Here is the call graph for this function:

◆ addFaceZones()

void addFaceZones ( meshRefinement meshRefiner,
const refinementParameters refineParams,
const HashTable< Pair< word > > &  faceZoneToPatches 
)
static

Helper: add faceZones and patches.

Definition at line 3054 of file snappyRefineDriver.C.

References meshRefinement::addFaceZone(), meshRefinement::addMeshedPatch(), polyMesh::boundaryMesh(), Foam::endl(), surfaceZonesInfo::faceZoneTypeNames, forAllConstIters, refinementParameters::getZoneInfo(), Foam::Info, mesh, meshRefinement::mesh(), Foam::nl, patchNames(), Foam::setf(), and Foam::setw().

Here is the call graph for this function:

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