The tool AddTopLayer adds one layer of elements with a specified thickness thickness on top of an existing mesh input-mesh and returns the newly generated mesh output-mesh that has an new top layer.

One might want to take care that the material groups are reduced, eg. material groups should not be [0,2,5], but [0,1,2]. The new layer will have the material group number of the highest material group +1.

The tool requires the OGS-6 node ordering in the elements. A different node ordering may lead to unexpected results. In case one might try to change the ordering using the tool NodeReordering.

The tool is part of the official OpenGeoSys git repository.


Simple example

Left: A simple cube mesh with one material group (red). Right: The updated mesh where an additional layer (blue) was added on top of the domain with a second material group.

Usage for example:

AddTopLayer -i quad.vtu -o quad_with_new_top_layer.vtu -t 1


The tool was used to add a “soil” layer to the hydro-geological model of the Unstrut catchment within the INFLUINS project:

Fischer, T. and Naumov, D. and Sattler, S. and Kolditz, O. and Walther, M. ( 2015 ): GO2OGS 1.0: A versatile workflow to integrate complex geological information with fault data into numerical simulation models. Geosci. Model Dev. vol. 8, p. 3681-3694, DOI: 10.5194/gmd-8-3681-2015,

This article was written by Thomas Fischer. If you are missing something or you find an error please let us know. Generated with Hugo 0.54.0. Last revision: August 20, 2018
Commit: [web] Fixed some dead links. 6c0df9f6a  | Edit this page on

Creative Commons License | Privacy policy / Legal statements / Impressum