pymor.discretizers.builtin.domaindiscretizers package¶
Submodules¶
default module¶
-
pymor.discretizers.builtin.domaindiscretizers.default.
discretize_domain_default
(domain_description, diameter=0.01, grid_type=None)[source]¶ Mesh a
DomainDescription
using an appropriate default implementation.This method can discretize the following
DomainDescriptions
:DomainDescription
grid_type
default
X
X
X
X
X
GmshGrid
X
Parameters
- domain_description
A
DomainDescription
of the domain to mesh.- diameter
Maximal diameter of the codim-0 entities of the generated
Grid
.- grid_type
The class of the
Grid
which is to be constructed. IfNone
, a default choice is made according to the table above.
Returns
- grid
The generated
Grid
.- boundary_info
The generated
BoundaryInfo
.
gmsh module¶
-
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
DomainDescription
or an already existing Gmsh GEO-file using the Gmsh mesher.Parameters
- domain_description
A
DomainDescription
of thePolygonalDomain
orRectDomain
to discretize. Has to beNone
whengeo_file
is given.- geo_file
File handle of the Gmsh Geo-file to discretize. Has to be
None
whendomain_description
is given.- geo_file_path
Path of the created Gmsh GEO-file. When meshing a
PolygonalDomain
orRectDomain
andgeo_file_path
isNone
, a temporary file will be created. Ifgeo_file
is specified, this is ignored and the path togeo_file
will 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
.