Loading [MathJax]/extensions/tex2jax.js

dune-mmesh (1.4)

interfacegrid.cc

This is an example of how to build an MMesh using the .msh file format with a pre-defined interface and obtain the interface grid after grid construction.

A simple horizontal2d.geo file for a grid generation with interface could be:

We can generate the .msh file using Gmsh by calling: gmsh -2 -format msh2 horizontal2d.geo.

Then, we can create an MMesh instance and obtain the interface grid with the following code.

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 6, 22:49, 2025)