Skip to content
Snippets Groups Projects
Commit 7743fdb4 authored by Tom Fischer's avatar Tom Fischer
Browse files

Rename tool AddTopLayer -> AddLayer.

parent f38432ba
No related branches found
No related tags found
No related merge requests found
/*
* \date 2015-04-14
* \brief Adds a top layer to an existing mesh.
* \file
* \brief Adds a layer to an existing mesh.
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
......@@ -23,9 +23,9 @@
int main (int argc, char* argv[])
{
TCLAP::CmdLine cmd(
"Adds a top layer to an existing mesh"
"Adds a layer to an existing mesh."
"The documentation is available at "
"https://docs.opengeosys.org/docs/tools/meshing/addtoplayer.\n\n"
"https://docs.opengeosys.org/docs/tools/meshing/addlayer.\n\n"
"OpenGeoSys-6 software, version " +
GitInfoLib::GitInfo::ogs_version +
".\n"
......
set(TOOLS
AddTopLayer
AddLayer
appendLinesAlongPolyline
checkMesh
convertToLinearMesh
......
+++
date = "2018-02-27T11:00:13+01:00"
title = "AddTopLayer"
date = "2020-06-22T11:00:13+01:00"
title = "AddLayer"
author = "Thomas Fischer"
[menu]
[menu.tools]
parent = "meshing"
aliases = [ "/docs/tools/meshing/addtoplayer" ]
+++
## Introduction
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.
The tool `AddLayer` adds one layer of elements with a specified thickness
`thickness` on either on top or bottom of an existing mesh `input-mesh` and
returns the newly generated mesh `output-mesh` that has an new 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.
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. With the switch
`--copy-material-ids` the MaterialIDs of the extruded layer will be kept.
The tool requires the [OGS-6 node ordering](http://doxygen.opengeosys.org/index.html) 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`.
## Usage
```bash
AddTopLayer -i <input-mesh> -o <output-mesh> [-t <thickness>]
AddLayer -i <input-mesh> -o <output-mesh> [-t <thickness>]
```
## Simple example
......@@ -30,7 +37,7 @@ AddTopLayer -i <input-mesh> -o <output-mesh> [-t <thickness>]
Usage for example:
```
AddTopLayer -i quad.vtu -o quad_with_new_top_layer.vtu -t 1
AddLayer -i quad.vtu -o quad_with_new_top_layer.vtu -t 1
```
## Application
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment