Building on the previous lesson, we now plot a mesh inside the boundary.
Extend the Python script from the previous lesson to generate and plot a 2D dualized mesh generated from the xybind
library.
From the command line:
> conda activate siblenv
> cd ~/sibl/geo/doc/dual
> python lesson_03.py
The same boundary from the previous lessons should appear, but now with a 2D quadrilateral finite element mesh:
Review lesson_03.py
and modify as necessary, such as changing the resolution
parameter by uncommenting lines for res
to get refined variations:
res = 1.0 # the first resolution attempt
# res = 0.5 # the second resolution attempt
# res = 0.2 # the third resolution attempt
Previous: Lesson 02
Next: Lesson 04