Skip to content

mscroggs/meshes

Repository files navigation

Meshes

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.

Meshes

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).

    Cake scattering

    meshes.Cake takes one parameter: the grid size h.

  • Christmas Tree (meshes.ChristmasTree)

    This is a mesh of a Christmas tree.

    meshes.ChristmasTree takes one parameter: the grid size h.

About

A collection of boundary meshes for use with Bempp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages