pymor.discretizers.builtin.domaindiscretizers.gmsh¶
Module Contents¶
Functions¶
Mesh a |
- pymor.discretizers.builtin.domaindiscretizers.gmsh.discretize_gmsh(domain_description=None, geo_file=None, geo_file_path=None, msh_file_path=None, mesh_algorithm='del2d', clscale=1.0, options='', refinement_steps=0)[source]¶
Mesh a
DomainDescriptionor an already existing Gmsh GEO-file using the Gmsh mesher.Parameters
- domain_description
A
DomainDescriptionof thePolygonalDomainorRectDomainto discretize. Has to beNonewhengeo_fileis given.- geo_file
File handle of the Gmsh Geo-file to discretize. Has to be
Nonewhendomain_descriptionis given.- geo_file_path
Path of the created Gmsh GEO-file. When meshing a
PolygonalDomainorRectDomainandgeo_file_pathisNone, a temporary file will be created. Ifgeo_fileis specified, this is ignored and the path togeo_filewill be used.- msh_file_path
Path of the created Gmsh MSH-file. If
None, a temporary file will be created.- mesh_algorithm
The mesh generation algorithm to use (meshadapt, del2d, front2d).
- clscale
Mesh element size scaling factor.
- options
Other options to control the meshing procedure of Gmsh. See http://geuz.org/gmsh/doc/texinfo/gmsh.html#Command_002dline-options for all available options.
- refinement_steps
Number of refinement steps to do after the initial meshing.
Returns
- grid
The generated
GmshGrid.- boundary_info
The generated
GmshBoundaryInfo.