All to do with adding layers. More...
Public Types | |
enum | extrudeMode { NOEXTRUDE, EXTRUDE, EXTRUDEREMOVE } |
Extrusion controls. More... | |
Public Member Functions | |
ClassName ("snappyLayerDriver") | |
Runtime type information. More... | |
snappyLayerDriver (meshRefinement &meshRefiner, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const bool dryRun=false) | |
Construct from components. More... | |
void | mergePatchFacesUndo (const layerParameters &layerParams, const dictionary &motionDict, const meshRefinement::FaceMergeType mergeType) |
Merge patch faces on same cell. More... | |
void | addLayers (const layerParameters &layerParams, const dictionary &motionDict, const labelList &patchIDs, const label nAllowableErrors, decompositionMethod &decomposer, fvMeshDistribute &distributor) |
Add cell layers. More... | |
void | doLayers (const dictionary &shrinkDict, const dictionary &motionDict, const layerParameters &layerParams, const meshRefinement::FaceMergeType mergeType, const bool preBalance, decompositionMethod &decomposer, fvMeshDistribute &distributor) |
Add layers according to the dictionary settings. More... | |
enum extrudeMode |
Extrusion controls.
Enumerator | |
---|---|
NOEXTRUDE | Do not extrude. No layers added. |
EXTRUDE | Extrude. |
EXTRUDEREMOVE | Extrude but afterwards remove added faces locally |
Definition at line 66 of file snappyLayerDriver.H.
snappyLayerDriver | ( | meshRefinement & | meshRefiner, |
const labelList & | globalToMasterPatch, | ||
const labelList & | globalToSlavePatch, | ||
const bool | dryRun = false |
||
) |
Construct from components.
Definition at line 3370 of file snappyLayerDriver.C.
ClassName | ( | "snappyLayerDriver" | ) |
Runtime type information.
void mergePatchFacesUndo | ( | const layerParameters & | layerParams, |
const dictionary & | motionDict, | ||
const meshRefinement::FaceMergeType | mergeType | ||
) |
Merge patch faces on same cell.
Definition at line 3387 of file snappyLayerDriver.C.
References layerParameters::concaveAngle(), Foam::cos(), Foam::degToRad(), Foam::endl(), localPointRegion::findDuplicateFacePairs(), forAll, Foam::Info, layerParameters::mergePatchFacesAngle(), mesh, primitiveMesh::nFaces(), and Foam::nl.
void addLayers | ( | const layerParameters & | layerParams, |
const dictionary & | motionDict, | ||
const labelList & | patchIDs, | ||
const label | nAllowableErrors, | ||
decompositionMethod & | decomposer, | ||
fvMeshDistribute & | distributor | ||
) |
Add cell layers.
Get baffles in newMesh numbering. Note that we cannot detect
baffles here since the points are duplicated
Definition at line 3440 of file snappyLayerDriver.C.
References layerParameters::additionalReporting(), addProfiling, List< T >::append(), surfaceZonesInfo::BAFFLE, polyMesh::boundaryMesh(), fvMesh::clearOut(), cpuTimeCxx::cpuTimeIncrement(), Foam::expressions::patchExpr::debug, layerParameters::dict(), primitiveMesh::edges(), Foam::endl(), Foam::exit(), UPstream::exit(), f(), Foam::faceMap(), mapPolyMesh::faceMap(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, Foam::FatalIOError, layerParameters::featureAngle(), layerParameters::finalLayerThicknessRatio(), localPointRegion::findDuplicateFacePairs(), forAll, addPatchCellLayer::globalEdgeFaces(), mapPolyMesh::hasMotionPoints(), Foam::identity(), Foam::Info, Foam::inplaceReorder(), surfaceZonesInfo::INTERNAL, Foam::invertOneToMany(), IOWarningInFunction, Foam::labelMax, meshRefinement::LAYERINFO, Foam::mag(), polyTopoChange::makeMesh(), meshRefinement::makePatch(), Foam::max(), layerParameters::maxFaceThicknessRatio(), dictionary::merge(), Foam::mergePoints(), mesh, meshRefinement::MESH, layerParameters::meshShrinker(), error::message(), Foam::min(), fvMesh::movePoints(), n, fvMesh::name(), IOobject::name(), layerParameters::nBufferCellsNoExtrude(), primitiveMesh::nCells(), MeshObject< polyMesh, UpdateableMeshObject, pointMesh >::New(), externalDisplacementMeshMover::New(), primitiveMesh::nFaces(), layerParameters::nGrow(), primitiveMesh::nInternalFaces(), Foam::nl, layerParameters::nLayerIter(), IOobject::NO_READ, mapPolyMesh::nOldFaces(), nPoints, primitiveMesh::nPoints(), layerParameters::nRelaxedIter(), layerParameters::numLayers(), p, UPstream::parRun(), Time::path(), Foam::Perr, primitiveMesh::pointEdges(), mapPolyMesh::pointMap(), polyMesh::points(), mapPolyMesh::preMotionPoints(), IOobject::READ_IF_PRESENT, Foam::reduce(), layerParameters::relativeSizes(), Foam::returnReduce(), mapPolyMesh::reverseFaceMap(), motionSmootherAlgo::setDisplacement(), polyMesh::setInstance(), addPatchCellLayer::setRefinement(), List< T >::setSize(), dictionary::subDict(), meshRefinement::subsetBaffles(), syncTools::syncPointList(), fvMesh::time(), meshRefinement::updateList(), addPatchCellLayer::updateMesh(), fvMesh::updateMesh(), Ostream::write(), fvMesh::write(), meshRefinement::writeLevel(), meshRefinement::WRITEMESH, and Foam::Zero.
void doLayers | ( | const dictionary & | shrinkDict, |
const dictionary & | motionDict, | ||
const layerParameters & | layerParams, | ||
const meshRefinement::FaceMergeType | mergeType, | ||
const bool | preBalance, | ||
decompositionMethod & | decomposer, | ||
fvMeshDistribute & | distributor | ||
) |
Add layers according to the dictionary settings.
Definition at line 4806 of file snappyLayerDriver.C.
References addProfiling, List< T >::append(), polyMesh::boundaryMesh(), motionSmootherAlgo::checkMesh(), polyPatch::coupled(), Foam::endl(), polyPatch::faceCells(), polyMesh::faceZones(), forAll, syncTools::getInternalOrCoupledFaces(), Foam::Info, faceZone::masterCells(), mesh, zoneIdentifier::name(), patchIdentifier::name(), Foam::name(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, layerParameters::numLayers(), UPstream::parRun(), Foam::reduce(), Foam::returnReduce(), faceZone::slaveCells(), bitSet::test(), and WarningInFunction.