Exercise: Mesh#

# import the Mesh class

A simple mesh#

fn = "../data/three_elements.mesh"
# load the mesh to a variable msh
# determine the number of nodes
# determine the cell center coordinates for the three elements
# plot the mesh

A bigger mesh#

fn = "../data/southern_north_sea.mesh"
# load the mesh to a variable msh
# plot the mesh boundary
# check if the point p1 is inside the mesh
p1 = [4.8674, 53.2126]
# find the nearest element to p1 (both id and coordinates)
# offset the z values by 0.45 and save the mesh to a new file (hint: msh.zn = znew)