geometryToGmshGeo

Introduction

The tool geometryToGmshGeo takes OGS geometries (gml files) and creates a Gmsh .geo file. The user can specify several command line arguments to influence the creation procedure. A list of the arguments as well as a description of each argument can be obtained with the --help option.

Usage

geometryToGmshGeo --input <input file name> --output <output file>

The --input argument is accepted multiple times.

Simple examples

First Example: Simple Geometry

First, the Gmsh geometry file is create from the gml file square_1x1.gml:

geometryToGmshGeo -i square_1x1.gml -o /tmp/square_1x1.geo --mesh_density_scaling_at_points 0.05

Then, the Gmsh geometry can be meshed:

gmsh /tmp/square_1x1.geo -2 -algo meshadapt -format msh22 -o /tmp/square_1x1.msh

geometry
1x1 square geometry
coarse mesh
simple coarse mesh (density scaling 0.5)
fine mesh
simple fine mesh (density scaling 0.05)
even finer mesh
even finer mesh (density scaling 0.005)

Second Example: Simple Geometry with Additional Geometrical Information

First, the Gmsh geometry file is create from the gml files

geometryToGmshGeo -i square_1x1.gml
                  -i square_0.15_0.25x0.15_0.25.gml
                  -i square_0.45_0.55x0.45_0.55.gml
                  -o /tmp/square_1x1.geo --mesh_density_scaling_at_points 0.5

Then, the Gmsh geometry can be meshed:

gmsh /tmp/square_1x1.geo -2 -algo meshadapt -format msh22 -o /tmp/square_1x1.msh

geometry
1x1 square geometry and sub geometries
coarse mesh
coarse mesh (density scaling 0.5)
fine mesh
fine mesh (density scaling 0.05)


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.122.0 in CI job 504124 | Last revision: November 12, 2024
Commit: [BL/MPI] Use MPI_COMM_WORLD in reduceMin 4aae83e  | Edit this page on