This repository contains Python/Gmsh code to create boundary meshes for use with Bempp.
These meshes can be made using the following Python code.
import meshes
cake = meshes.Cake(h=0.1)
The parameter h
sets the mesh size.
The Gmsh geo string for this mesh can be generated by calling:
cake.to_geo_string()
A Bempp grid can be generated by calling:
cake.to_bempp_grid()
This will raise an ImportError
if Bempp is not installed.
The following meshes are included here.
-
Birthday Cake (
meshes.Cake
)This is a mesh of a birthday cake with one candle, as used in Figure 18 of Scroggs et al (2017).
meshes.Cake
takes one parameter: the grid sizeh
. -
Christmas Tree (
meshes.ChristmasTree
)This is a mesh of a Christmas tree.
meshes.ChristmasTree
takes one parameter: the grid sizeh
.