Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
d4d55ee2
Commit
d4d55ee2
authored
Jun 13, 2022
by
Art Pelling
Browse files
change gmsh urls and fix linting in docstring
parent
ce7afcf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
docs/source/release_notes/0.4.rst
View file @
d4d55ee2
...
...
@@ -115,7 +115,7 @@ Improvements to pyMOR's discretizaion tookit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- An unstructured triangular |Grid| is now provided by :class:`~pymor.grids.unstructured.UnstructuredTriangleGrid`.
Such a |Grid| can be obtained using the :meth:`~pymor.domaindiscretizers.gmsh.discretize_gmsh`
method, which can parse `Gmsh <http://gmsh.info/>`_ output files. Moreover, this
method, which can parse `Gmsh <http
s
://gmsh.info/>`_ output files. Moreover, this
method can generate `Gmsh` input files to create unstructured meshes for
an arbitrary :class:`~pymor.domaindescriptions.polygonal.PolygonalDomain`
`[#9] <https://github.com/pymor/pymor/issues/9>`_.
...
...
src/pymor/discretizers/builtin/domaindiscretizers/gmsh.py
View file @
d4d55ee2
...
...
@@ -38,7 +38,7 @@ def discretize_gmsh(domain_description=None, geo_file=None, geo_file_path=None,
Mesh element size scaling factor.
options
Other options to control the meshing procedure of Gmsh. See
http://g
euz.org/gmsh
/doc/texinfo/gmsh.html#Command_002dline-options for all available
http
s
://g
msh.info
/doc/texinfo/gmsh.html#Command_002dline-options for all available
options.
refinement_steps
Number of refinement steps to do after the initial meshing.
...
...
@@ -64,7 +64,7 @@ def discretize_gmsh(domain_description=None, geo_file=None, geo_file_path=None,
version
=
subprocess
.
check_output
([
'gmsh'
,
'--version'
],
stderr
=
subprocess
.
STDOUT
,
env
=
env
).
decode
()
except
(
subprocess
.
CalledProcessError
,
OSError
):
raise
GmshMissing
(
'Could not find Gmsh.'
' Please ensure that the gmsh binary (http://g
euz.org/gmsh
/) is in your PATH.'
)
' Please ensure that the gmsh binary (http
s
://g
msh.info
/) is in your PATH.'
)
logger
.
info
(
'Found version '
+
version
.
strip
())
...
...
src/pymordemos/elliptic_unstructured.py
View file @
d4d55ee2
...
...
@@ -17,10 +17,9 @@ def main(
num_points
:
int
=
Argument
(...,
help
=
'The number of points that form the arc of the circular sector.'
),
clscale
:
float
=
Argument
(...,
help
=
'Mesh element size scaling factor.'
),
):
"""Solves the Poisson equation in 2D on a circular sector domain of radius 1
using an unstructured mesh.
"""Solves the 2D-Poisson equation on a circular sector of radius 1 with an unstructured mesh.
Note that Gmsh (http://g
euz.org/gmsh
/) is required for meshing.
Note that Gmsh (http
s
://g
msh.info
/) is required for meshing.
"""
problem
=
StationaryProblem
(
domain
=
CircularSectorDomain
(
angle
,
radius
=
1
,
num_points
=
num_points
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment