Skip to content. | Skip to navigation

Laboratoire d’Etudes en Géophysique et Océanographie Spatiales

Personal tools

This is SunRain Plone Theme



by ECOLA last modified Mar 19, 2012 01:33 PM

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 :

. export_path_aerotp

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 :
cd ~/monday/Ushant/
mkdir ztugo_mesh
cd ztugo_mesh
  • ztugo -n (or -nv to see the help for this command)
ztugo -n
  • 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-)
ztugo -nv
  • in the bathy directory, create a link to the netcdf bathymetry data you want to use :
cd bathy
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
cd ../coast/
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
cd ../zone_ushant/mesh/
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)
ztugo -m

STEP 3 : Clean the mesh with mesh-doctor

  • ztugo -d (or -dv to see the help for this command). This will launch xscan.
ztugo -d
  • Finish the mesh cleaning with xscan

Document Actions