NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
NEM::GEN::gmshParams Class Reference

gmshParams contains all parameters essential for mesh generation using gmshGen class methods. More...

Detailed Description

These parameters are assigned a value at time of user input parsing through JSON in meshGenDriver.

Definition at line 92 of file gmshParams.H.

Public Member Functions

 gmshParams ()=default
 gmshParams standard constructor More...
 

Static Public Member Functions

static const std::array< const char *, 6 > & getMeshExtensions ()
 Get list of file extensions supported by gmsh. More...
 

Public Attributes

std::string ofname {}
 Output mesh file name. More...
 
double minSize {0.01}
 Minimum global mesh size. More...
 
double maxSize {50.0}
 Maximum global mesh size. More...
 
std::string algo2D {"Frontal"}
 Surface meshing algorithm. More...
 
std::string algo3D {"HXT"}
 Volume meshing algorithm. More...
 
bool extSizeFromBoundary {true}
 Extend mesh size from boundary option. More...
 
bool sizeFromCurvature {false}
 Mesh size based on curvature option. More...
 
int minElePer2Pi {6}
 Minimum number of mesh elements per two Pi. More...
 
bool optimize {false}
 Whether to optimize mesh or not. More...
 
double optimizeThreshold {0.3}
 Mesh optimization threshold, between 0 and 1. More...
 
int bgField {-1}
 Size field ID to use as background field. More...
 
int elementOrder {1}
 Element order. More...
 
int subdivisionAlg {1}
 Subdivision algorithm 0: none, 1: all quads, 2: all hexas. More...
 
bool saveAll {true}
 Save all elements. More...
 
bool fragmentAll {false}
 Whether to call boolean fragments on all volumes. More...
 
std::vector< volSizeFieldsizeFields
 Vector for volSizeField struct. More...
 
std::map< std::array< int, 3 >, std::string > color2groupMap
 Map from RGB to physical name. More...
 
std::set< TransfiniteBlocktransfiniteBlocks
 Map from volume id to transfinite hexahedron information. More...
 

Inherits meshingParams.

Constructor & Destructor Documentation

◆ gmshParams()

NEM::GEN::gmshParams::gmshParams ( )
default

Member Function Documentation

◆ getMeshExtensions()

static const std::array<const char *, 6>& NEM::GEN::gmshParams::getMeshExtensions ( )
inlinestatic
Returns
supported gmsh mesh file extensions

Definition at line 178 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::createMeshFromSTEP().

178  {
179  static constexpr std::array<const char *, 6> meshExtensions{
180  ".inp", ".unv", ".p3d", ".stl", ".vtk", ".su2"};
181  return meshExtensions;
182  }

Member Data Documentation

◆ algo2D

std::string NEM::GEN::gmshParams::algo2D {"Frontal"}

◆ algo3D

std::string NEM::GEN::gmshParams::algo3D {"HXT"}

◆ bgField

int NEM::GEN::gmshParams::bgField {-1}

Definition at line 140 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::meshSizeFields().

◆ color2groupMap

std::map<std::array<int, 3>, std::string> NEM::GEN::gmshParams::color2groupMap

◆ elementOrder

int NEM::GEN::gmshParams::elementOrder {1}

Definition at line 145 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ extSizeFromBoundary

bool NEM::GEN::gmshParams::extSizeFromBoundary {true}

Definition at line 120 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ fragmentAll

bool NEM::GEN::gmshParams::fragmentAll {false}

Definition at line 160 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::createMeshFromSTEP().

◆ maxSize

double NEM::GEN::gmshParams::maxSize {50.0}

◆ minElePer2Pi

int NEM::GEN::gmshParams::minElePer2Pi {6}

Definition at line 128 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ minSize

double NEM::GEN::gmshParams::minSize {0.01}

◆ ofname

std::string NEM::GEN::gmshParams::ofname {}

◆ optimize

bool NEM::GEN::gmshParams::optimize {false}

Definition at line 132 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ optimizeThreshold

double NEM::GEN::gmshParams::optimizeThreshold {0.3}

Definition at line 136 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ saveAll

bool NEM::GEN::gmshParams::saveAll {true}

Definition at line 155 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ sizeFields

std::vector<volSizeField> NEM::GEN::gmshParams::sizeFields

◆ sizeFromCurvature

bool NEM::GEN::gmshParams::sizeFromCurvature {false}

Definition at line 124 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ subdivisionAlg

int NEM::GEN::gmshParams::subdivisionAlg {1}

Definition at line 150 of file gmshParams.H.

Referenced by NEM::GEN::gmshGen::globalOptions().

◆ transfiniteBlocks

std::set<TransfiniteBlock> NEM::GEN::gmshParams::transfiniteBlocks

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