Public Member Functions | |
gmshGen () | |
gmshGen default constructor More... | |
gmshGen (gmshParams *params) | |
gmshGen alternate constructor with parameters More... | |
~gmshGen () | |
gmshGen standard destructor More... | |
int | createMeshFromSTL (const char *fname) override |
Creates mesh from input STEP file. More... | |
int | createMeshFromSTEP (const char *fname) |
const std::string & | getMshFilename () const |
Get filename of generated .msh file. More... | |
vtkSmartPointer< vtkDataSet > | getDataSet () const |
Public Attributes | |
std::unique_ptr< NEM::MSH::geoMeshBase > | gmData |
Protected Attributes | |
vtkSmartPointer< vtkDataSet > | dataSet |
Private Member Functions | |
void | globalOptions () |
Sets the global geometry and meshing options. More... | |
void | getGeomNames () |
Gets geometry entitiy names of STEP geometry. More... | |
void | getSurfaceColors () |
Gets the surface colors of STEP geometry. More... | |
void | meshSizeFields () |
Applies mesh size fields. More... | |
void | applyColorNames () |
Applies physical names based on color. More... | |
void | applyTransfiniteVolumes () |
Applies transfinite settings to prescribed hexahedral volumes. More... | |
Private Attributes | |
gmshParams * | meshParams |
gmshParams object Parameters More... | |
std::string | mshFname |
Name of .msh file output by gmsh. More... | |
Inherits meshGen.
NEM::GEN::gmshGen::gmshGen | ( | ) |
Definition at line 51 of file gmshGen.C.
References meshParams.
NEM::GEN::gmshGen::gmshGen | ( | gmshParams * | params | ) |
params | gmshParams object |
Definition at line 56 of file gmshGen.C.
|
private |
Definition at line 404 of file gmshGen.C.
References NEM::GEN::gmshParams::color2groupMap, id, meshParams, and surfaces.
Referenced by createMeshFromSTEP(), and getMshFilename().
|
private |
Definition at line 471 of file gmshGen.C.
References data, meshParams, points, surfaces, and NEM::GEN::gmshParams::transfiniteBlocks.
Referenced by createMeshFromSTEP(), and getMshFilename().
int NEM::GEN::gmshGen::createMeshFromSTEP | ( | const char * | fname | ) |
Definition at line 69 of file gmshGen.C.
References NEM::GEN::gmshParams::algo2D, NEM::GEN::gmshParams::algo3D, applyColorNames(), applyTransfiniteVolumes(), NEM::GEN::gmshParams::color2groupMap, nemAux::find_ext(), NEM::GEN::gmshParams::fragmentAll, NEM::GEN::gmshParams::getMeshExtensions(), globalOptions(), NEM::GEN::gmshParams::maxSize, meshParams, meshSizeFields(), NEM::GEN::gmshParams::minSize, mshFname, NEM::GEN::gmshParams::ofname, NEM::GEN::gmshParams::sizeFields, NEM::GEN::gmshParams::transfiniteBlocks, and nemAux::trim_fname().
Referenced by createMeshFromSTL().
|
overridevirtual |
fname | The input STEP file |
Implements meshGen.
Definition at line 60 of file gmshGen.C.
References createMeshFromSTEP().
Referenced by NEM::DRV::GmshMeshGenDriver::execute().
|
inlineinherited |
|
private |
Definition at line 232 of file gmshGen.C.
References surfaces.
Referenced by getMshFilename().
|
inline |
Definition at line 67 of file gmshGen.H.
References applyColorNames(), applyTransfiniteVolumes(), getGeomNames(), getSurfaceColors(), globalOptions(), meshSizeFields(), and mshFname.
|
private |
Definition at line 250 of file gmshGen.C.
References surfaces.
Referenced by getMshFilename().
|
private |
Definition at line 150 of file gmshGen.C.
References NEM::GEN::gmshParams::algo2D, NEM::GEN::gmshParams::algo3D, ALGO_2D_AUTO, ALGO_2D_DELAUNAY, ALGO_2D_FRONTAL, ALGO_2D_FRONTAL_QUAD, ALGO_2D_MESHADAPT, ALGO_2D_PACK_PRLGRMS, ALGO_3D_DELAUNAY, ALGO_3D_FRONTAL, ALGO_3D_HXT, NEM::GEN::gmshParams::elementOrder, NEM::GEN::gmshParams::extSizeFromBoundary, NEM::GEN::gmshParams::maxSize, meshParams, NEM::GEN::gmshParams::minElePer2Pi, NEM::GEN::gmshParams::minSize, NEM::GEN::gmshParams::optimize, NEM::GEN::gmshParams::optimizeThreshold, NEM::GEN::gmshParams::saveAll, NEM::GEN::gmshParams::sizeFromCurvature, and NEM::GEN::gmshParams::subdivisionAlg.
Referenced by createMeshFromSTEP(), and getMshFilename().
|
private |
Definition at line 267 of file gmshGen.C.
References NEM::GEN::gmshParams::bgField, meshParams, and NEM::GEN::gmshParams::sizeFields.
Referenced by createMeshFromSTEP(), and getMshFilename().
|
protectedinherited |
|
inherited |
Definition at line 54 of file meshGen.H.
Referenced by cfmeshGen::createMeshFromSTL(), snappymeshGen::createMeshFromSTL(), blockMeshGen::createMeshFromSTL(), and NEM::DRV::MeshGenDriver::MeshGenDriver().
|
private |
Definition at line 96 of file gmshGen.H.
Referenced by applyColorNames(), applyTransfiniteVolumes(), createMeshFromSTEP(), globalOptions(), gmshGen(), and meshSizeFields().
|
private |
Definition at line 100 of file gmshGen.H.
Referenced by createMeshFromSTEP(), and getMshFilename().