This project is focused on the development of a scalable hexahedral mesh generator for large domains based on octree and 27-tree structures. It allows for consideration of topography, bathymetry and coastlines, as well as water bodies and basins for geophysical applications.
The library is mainly developed at NACAD (Universidad Federal do Rio de Janeiro/COPPE, Brazil).
It is written in C++/MPI. Additional routines are written in Matlab for the preparation of GTS topography files.
If you use the library, please cite the following paper:
Before using the software, the following libraries need to be installed and available:
Depending on the OS you are using, modify the paths for GTS_LIB, SC_LIB and GLIB_INCLUDE in Make.Linux or Make.mac
Compile with (replace OS by Linux or mac)
make -f Make.OS
To prepare the geometry files, modify the headers in mainSRTM.m (in particular choose the bounding box in latitude/longitude) and run in Matlab:
mainSRTM
You need an internet connexion to download the topography, bathymetry and coastlines files (no connexion needed if they are already available on your computer). The output files are a topography STL file topo.stl and a bathymetry STL file bathy.stl. These files should be transformed to GTS using stl2gts command, and move to directory $(HEXHOME)/input, where $(HEXHOME) is the directory where hexmesh was compiled.
To create the mesh, you should run (in a Terminal from the directory $(HEXMESH))
mpirun -np
./hexmesh
where