ogs5py.fileclasses.msh.generator.gmsh
- ogs5py.fileclasses.msh.generator.gmsh(geo_object, import_dim=(1, 2, 3))[source]
Generate mesh from gmsh code or gmsh .geo file.
- Parameters:
geo_object (str or list of str) – Either path to the gmsh .geo file or list of codelines for a .geo file.
import_dim (iterable of int or single int, optional) – State which elements should be imported by dimensionality. Default: (1, 2, 3)
- Returns:
result – Result contains one ‘#FEM_MSH’ block of the OGS mesh file with the following information (sorted by keys):
- mesh_datadict
dictionary containing information about
AXISYMMETRY (bool)
CROSS_SECTION (bool)
PCS_TYPE (str)
GEO_TYPE (str)
GEO_NAME (str)
LAYER (int)
- nodesndarray
Array with all node postions
- elementsdict
contains nodelists for elements sorted by element types
- material_iddict
contains material ids for each element sorted by element types
- element_iddict
contains element ids for each element sorted by element types
- Return type:
dictionary