sibl

Lesson 03: Plot a boundary and the dual mesh

Building on the previous lesson, we now plot a mesh inside the boundary.

Goal

Extend the Python script from the previous lesson to generate and plot a 2D dualized mesh generated from the xybind library.

Step

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:

circle_boundary_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

circle_boundary_mesh_res_0p5 circle_boundary_mesh_res_0p25

Index

Previous: Lesson 02

Next: Lesson 04