Exercise: Mesh#
A simple mesh#
fn = "../data/two_elements.mesh"
# load the mesh to a variable msh using mikeio.open
# determine the number of nodes
# determine the cell center coordinates for the two elements
# plot the mesh
A bigger mesh#
fn = "../data/southern_north_sea.mesh"
# load the mesh to a variable msh
# plot the mesh boundary nodes
# check if the point p1 is inside the mesh (use the .geometry attribute)
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)