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... | |
Definition at line 61 of file snappyRefineDriver.H.
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 57 of file snappyRefineDriver.C.
ClassName | ( | "snappyRefineDriver" | ) |
Runtime type information.
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 3292 of file snappyRefineDriver.C.
References addProfiling, snappyVoxelMeshDriver::doRefine(), Foam::endl(), refinementParameters::findCells(), Pair< T >::first(), forAll, surfaceZonesInfo::getUnnamedSurfaces(), Foam::Info, Foam::labelMax, refinementParameters::locationsInMesh(), refinementParameters::locationsOutsideMesh(), Foam::max(), mesh, refinementParameters::minCellFraction(), primitiveMesh::nCells(), Foam::nl, refinementParameters::nMinCells(), UPstream::parRun(), patches, Pair< T >::second(), UList< T >::size(), HashTable< T, Key, Hash >::size(), HashTable< T, Key, Hash >::sortedToc(), and refinementParameters::zonesInMesh().
|
static |
Helper: add faceZones and patches.
Definition at line 3016 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().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.