Commit cb26fa1f authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files


parent 19a75808
Pipeline #5017 canceled with stage
# Dune-CurvedSurfaceGrid - A Dune module for surface parametrization
# Dune-CurvedGrid - A Dune module for geometry parametrization
This Dune module provides a meta-grid for wrapping other grid implementations and providing
a curved geometry on each element, parametrized by a [Dune-CurvedGeometry](
a curved geometry on each element, parametrized by a [Dune-CurvedGeometry](
For an overview about the CurvedSurfaceGrid and the CurvedGeometry, see also the presentation
[Dune-CurvedSurfaceGrid - A Dune module for surface parametrization](
[Dune-CurvedSurfaceGrid - A Dune module for surface parametrization](
## Installation Instructions
`dune-curvedgrid` requires the DUNE core modules, version 2.7 or later.
Please see the [general instructions for building DUNE modules]( for detailed instructions on how to build the module.
## Initial Example
(See [](
(See [](
// 1. Construct a reference grid
......@@ -23,7 +27,7 @@ CurvedSurfaceGrid grid{*refGrid, sphereGF};
At first, we have to create a reference grid that acts as a parametrization domain for the
target curved grid. In the example, we use [Dune-FoamGrid](
and read a piece-wise flat grid from a GMsh file [`sphere.msh`](
and read a piece-wise flat grid from a GMsh file [`sphere.msh`](
In a second step, we describe the parametrization of the curved surface by a closest-point
projection to the sphere with radius 1. This projection is given by a callable `sphere` and
......@@ -37,7 +41,7 @@ meta-grid `CurvedSurfaceGrid` implements the Dune grid interface and can thus be
replacement for, e.g., the reference grid.
## Two Different Geometry Mappings
The [Dune-CurvedGeometry]( module
The [Dune-CurvedGeometry]( module
provides two different geometry implementations that differ in the input and in the
representation of the parametrization.
......@@ -51,7 +55,7 @@ The `CurvedSurfaceGrid` constructs on request of the element geometry a LocalFin
of Lagrange basis functions for the internal parametrization of the geometry. The `ParametrizedGeometry`
is constructed, if the grid gets a polynomial order `k > 0`.
(See [](
(See [](
// Construct a reference grid
auto refGrid = GmshReader< FoamGrid<2,3> >::read("sphere.msh");
......@@ -72,7 +76,7 @@ function `derivative(f)` returning a callable that gives the Jacobian of the map
grid constructs a `LocalFunctionGeometry` on each element. This geometry is exactly parametrized
with the mapping and its derivative, i.e., no additional interpolation is performed.
(See [](
(See [](
auto gv = refGrid->leafGridView();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment