snappyLayerDriver Class Reference

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...
 

Detailed Description

All to do with adding layers.

Source files

Definition at line 59 of file snappyLayerDriver.H.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ snappyLayerDriver()

snappyLayerDriver ( meshRefinement meshRefiner,
const labelList globalToMasterPatch,
const labelList globalToSlavePatch,
const bool  dryRun = false 
)

Construct from components.

Definition at line 3370 of file snappyLayerDriver.C.

Member Function Documentation

◆ ClassName()

ClassName ( "snappyLayerDriver"  )

Runtime type information.

◆ mergePatchFacesUndo()

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.

Here is the call graph for this function:

◆ addLayers()

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.

◆ doLayers()

void doLayers ( const dictionary shrinkDict,
const dictionary motionDict,
const layerParameters layerParams,
const meshRefinement::FaceMergeType  mergeType,
const bool  preBalance,
decompositionMethod decomposer,
fvMeshDistribute distributor 
)

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