snappymeshGen facilitates full-hexahedral/hex-dominent meshing of complex geometries with surface, patch, or region refinement capabilities in addition with adding layers to geometry. More...
A background mesh is needed in order to perform meshing operation. Inputs can be given in form of surface files (.stl, .obj, etc.). Output mesh is written in OpenFOAM polyMesh format. snappymeshGen is based on snappyHexMesh utility of OpenFOAM with following features
Definition at line 55 of file snappymeshGen.H.
Public Member Functions | |
snappymeshGen () | |
snappymeshGen standard constructor More... | |
snappymeshGen (snappymeshParams *params) | |
snappymeshGen alternate constructor More... | |
~snappymeshGen () | |
snappymeshGen standard destructor More... | |
int | createMeshFromSTL (const char *fname) override |
Creates mesh from input STL file. More... | |
vtkSmartPointer< vtkDataSet > | getDataSet () const |
Public Attributes | |
std::unique_ptr< NEM::MSH::geoMeshBase > | gmData |
Protected Attributes | |
vtkSmartPointer< vtkDataSet > | dataSet |
Private Member Functions | |
void | initialize () |
Initializes OpenFOAM environment. More... | |
void | createSnappyDict (const bool &write) |
Creates snappyHexMeshDict for meshing operation. More... | |
Private Attributes | |
bool | defaults |
If enabled, generated mesh using default parameters. More... | |
snappymeshParams * | params_ |
snappymeshParams object Parameters More... | |
std::unique_ptr< Foam::dictionary > | controlDict_ |
std::unique_ptr< Foam::dictionary > | fvSchemes_ |
std::unique_ptr< Foam::dictionary > | fvSolution_ |
std::unique_ptr< Foam::dictionary > | snappyMshDict_ |
std::unique_ptr< Foam::Time > | runTime_ |
std::unique_ptr< Foam::fvMesh > | fmesh_ |
Inherits meshGen.
snappymeshGen::snappymeshGen | ( | ) |
Definition at line 49 of file snappymeshGen.C.
References defaults, initialize(), and params_.
snappymeshGen::snappymeshGen | ( | snappymeshParams * | params | ) |
params | snappymeshParams object |
Definition at line 60 of file snappymeshGen.C.
References initialize().
snappymeshGen::~snappymeshGen | ( | ) |
Definition at line 65 of file snappymeshGen.C.
|
overridevirtual |
Implements meshGen.
Definition at line 91 of file snappymeshGen.C.
References fmesh_, meshGen::gmData, snappymeshParams::isPackMesh, params_, NEM::MSH::Read(), runTime_, and snappyMshDict_.
Referenced by NEM::DRV::SnappyMeshMeshGenDriver::execute().
|
private |
Definition at line 117 of file snappymeshGen.C.
References shmCastMeshControls::alwFreeZone, shmLayerControls::bufferCells, snappymeshParams::castMeshControls, shmCastMeshControls::castMeshGpLvl, shmCastMeshControls::cellsBetnLvls, shmMeshQualityControls::errReduction, shmSnapControls::explicitFeatureSnap, shmLayerControls::expRatio, shmCastMeshControls::featAngle, shmLayerControls::featAngle, shmLayerControls::finLThick, shmLayerControls::firstLyrThickness, shmCastMeshControls::ftrEdge, shmCastMeshControls::gapLvlInc, snappymeshParams::geoDef, snappymeshParams::geomFileName, shmCastMeshControls::geomRefs, shmSnapControls::implicitFeatureSnap, snappymeshParams::layerControls, shmLayerControls::layerVec, shmCastMeshControls::locMesh, shmMeshQualityControls::maxBndrySkew, shmMeshQualityControls::maxConc, shmLayerControls::maxFcTR, shmCastMeshControls::maxGCells, shmMeshQualityControls::maxIntSkew, shmCastMeshControls::maxLCells, shmMeshQualityControls::maxNonOrtho, shmLayerControls::maxThickTMR, snappymeshParams::mergeTol, shmMeshQualityControls::minArea, shmMeshQualityControls::minDet, shmMeshQualityControls::minFaceW, shmLayerControls::minMedAngl, shmCastMeshControls::minRefCells, shmMeshQualityControls::minTetQ, shmLayerControls::minThick, shmMeshQualityControls::minTriTwist, shmMeshQualityControls::minTwist, shmMeshQualityControls::minVol, shmMeshQualityControls::minVolRto, shmSnapControls::multiRegionFeatureSnap, shmSnapControls::nFeatureSnapIter, shmLayerControls::nGrow, shmLayerControls::nIter, shmLayerControls::nMedialAxisIter, shmLayerControls::nRelaxedIter, shmSnapControls::nRelaxIter, shmLayerControls::nSmoothDisplacement, shmSnapControls::nSmoothPatch, shmSnapControls::nSolveIter, params_, shmCastMeshControls::planarAngle, snappymeshParams::qualityControls, shmCastMeshControls::refSurfLvlMax, shmCastMeshControls::refSurfLvlMin, shmLayerControls::relaxIter, shmLayerControls::relSize, shmGeo::singleSolidPatch, shmLayerControls::slipFeatureAngle, shmMeshQualityControls::smoothScale, shmLayerControls::smthNorm, shmLayerControls::smthSurfNorm, shmLayerControls::smthThick, snappymeshParams::snapControls, snappyMshDict_, shmGeo::srchShape, shmGeo::stlPatchDefs, shmCastMeshControls::surfRefs, shmLayerControls::thickness, shmSnapControls::tolerance, snappymeshParams::withCastMesh, shmCastMeshControls::withCellZones, snappymeshParams::withLayers, shmGeo::withMultiPatches, and snappymeshParams::withSnap.
Referenced by initialize().
|
inlineinherited |
|
private |
Definition at line 67 of file snappymeshGen.C.
References controlDict_, createSnappyDict(), fvSchemes_, fvSolution_, snappymeshParams::isPackMesh, params_, and runTime_.
Referenced by snappymeshGen().
|
private |
Definition at line 97 of file snappymeshGen.H.
Referenced by initialize().
|
protectedinherited |
|
private |
Definition at line 89 of file snappymeshGen.H.
Referenced by snappymeshGen().
|
private |
Definition at line 102 of file snappymeshGen.H.
Referenced by createMeshFromSTL().
|
private |
Definition at line 98 of file snappymeshGen.H.
Referenced by initialize().
|
private |
Definition at line 99 of file snappymeshGen.H.
Referenced by initialize().
|
inherited |
Definition at line 54 of file meshGen.H.
Referenced by cfmeshGen::createMeshFromSTL(), createMeshFromSTL(), blockMeshGen::createMeshFromSTL(), and NEM::DRV::MeshGenDriver::MeshGenDriver().
|
private |
Definition at line 93 of file snappymeshGen.H.
Referenced by createMeshFromSTL(), createSnappyDict(), initialize(), and snappymeshGen().
|
private |
Definition at line 101 of file snappymeshGen.H.
Referenced by createMeshFromSTL(), and initialize().
|
private |
Definition at line 100 of file snappymeshGen.H.
Referenced by createMeshFromSTL(), and createSnappyDict().