Exercice I: Mesh generation with ztugo
ztugo is a simple bash code which helps to structure the meshing steps
Help is accessible either with ztugo (short help) or ztugo -h (long help)
first of all, export the path :
STEP 1 : Generate the files tree of the model and the links to the necessary data (bathy, boundary).
Except for this first step (files tree generation) all others ztugo command should be executed in the ./mesh/ directory
- Go to the directory where you want to build your t-UGOm test model :
- ztugo -n (or -nv to see the help for this command)
- answer the questions and give a name to your zone (here: ushant)
- ztugo -nv (to see what you need to do next -text in magenta color-)
- in the bathy directory, create a link to the netcdf bathymetry data you want to use :
ln -s /home/sirocco/softs/genesis-64/data/topography/data/base-17.meanlevel.grd bathy.grd
- in the coast directory, create a link to the coastline
ln -s /home/sirocco/softs/genesis-64/data/shorelines/data/sirocco.europe.gshhs-2.0.cst coast.cst
- go into the mesh directory and create a dom.scan file. This files describe theboundary of your domain. It is a discretisation of the coastline and open boundary, created with xscan. It is an editable ascii file. We have created one for you
cp ~/monday/Ushant/dom.scan .
- launch xscan and create the dom.desc file, describing the mesh limits.
xscan -s mesh.startup
- if you have problems creating the dom.desc file, we have created one for you that you can copy from ~/monday/Ushant/dom.desc :
cp ~/monday/Ushant/dom.desc .
STEP 2 : Generate the mesh
- Go to the mesh/ directory
- ztugo -m (or -mv to see the help for this command)
STEP 3 : Clean the mesh with mesh-doctor
- ztugo -d (or -dv to see the help for this command). This will launch xscan.
- Finish the mesh cleaning with xscan