Skip to content

5 Topo Mesh

Download Jupyter Notebook

This page is automatically generated from a Jupyter Notebook. You can view and download it here and here.

Note that everything here is fully automatically tested against - and thus guaranteed to work - only for the latest repository versions of all the Salvus packages. So please update if anything works differently on your machine.

Fully Automatic Meshing Based on 1D Models

This notebooks shows how to use the input files with the fully automatized meshing.

The interface accepts multiple subcommands for different types of meshes with corresponding options:

!python -m pymesher.interface -h

The most convenient workflow is to generate a yaml input file with the default options and documentation, which can than be edited as you like.

!python -m pymesher.interface SphericalChunk3D --save_yaml chunk3d.yaml
!mousepad chunk3d.yaml
!cat chunk3d.yaml

This file can than be used to finally produce a mesh

!python -m pymesher.interface --input_file chunk3d.yaml --overwrite_file

Finally, this file can be directly viewed in paraview:

!/home/mess2017/ParaView/bin/paraview SphericalChunk3D_prem_ani_150.e


1) Run the mesher for the different subcommands.

2) In bayrischzell.yaml you find the example of a mesh including the topography of the venue. Change this to mesh your home region.

The topography file is fairly large (~2 GB) so its not included in the virtual Box by default. Let us know if you want to test it out and we'll give it to you.

Hint: to find geocentric coordinates you can use this command to query open streem maps name service:

!python -m pymesher.getcoordinates -h
!python -m pymesher.getcoordinates bayrischzell