How to convert GTIFF to STL for Topography Representation in OpenFOAM Models

GtiffaStlOpenFOAM.PNG

For OpenFOAM modelers the representation of topography can be painful due to the unstabilities and complexities of the Bezier Surfaces in Salome Platform. It is more stable to create the mesh by importing a full textured surface on a format file compatible with Salome. This tutorial show the process to create a STL file from a GeoTiff(.tif) file by scripts in Python. We have used the OSGeo4W Shell that comes with the normal QGIS instalation because it comes with the gdal library already installed.

This tutorial is the video from the phstl repository that you can find on this link:
https://github.com/anoved/phstl

 

Tutorial

 

Input Files

Download the required data for this tutorial here.

Saul Montoya

Saul Montoya es Ingeniero Civil graduado de la Pontificia Universidad Católica del Perú en Lima con estudios de postgrado en Manejo e Ingeniería de Recursos Hídricos (Programa WAREM) de la Universidad de Stuttgart con mención en Ingeniería de Aguas Subterráneas y Hidroinformática.

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.