Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-curvedgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
dune-curvedgrid
Commits
766c9f94
Commit
766c9f94
authored
4 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
cb26fa1f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5018
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-7
7 additions, 7 deletions
README.md
with
7 additions
and
7 deletions
README.md
+
7
−
7
View file @
766c9f94
...
...
@@ -3,8 +3,8 @@ This Dune module provides a meta-grid for wrapping other grid implementations an
a curved geometry on each element, parametrized by a
[
Dune-CurvedGeometry
](
https://gitlab.mn.tu-dresden.de/iwr/dune-curvedgeometry
)
class.
For an overview about the Curved
Surface
Grid and the CurvedGeometry, see also the presentation
[
Dune-Curved
Surface
Grid - A Dune module for surface parametrization
](
http://wwwpub.zih.tu-dresden.de/~praetori/presentations/dune-curvedgrid
)
.
For an overview about the CurvedGrid and the CurvedGeometry, see also the presentation
[
Dune-CurvedGrid - A Dune module for surface parametrization
](
http://wwwpub.zih.tu-dresden.de/~praetori/presentations/dune-curvedgrid
)
.
## Installation Instructions
`dune-curvedgrid`
requires the DUNE core modules, version 2.7 or later.
...
...
@@ -22,7 +22,7 @@ auto sphere = [](const auto& x) { return x / x.two_norm(); };
auto
sphereGF
=
analyticDiscreteFunction
(
sphere
,
*
refGrid
,
order
);
// 3. Wrap the reference grid to build a curved grid
Curved
Surface
Grid
grid
{
*
refGrid
,
sphereGF
};
CurvedGrid
grid
{
*
refGrid
,
sphereGF
};
```
At first, we have to create a reference grid that acts as a parametrization domain for the
...
...
@@ -37,7 +37,7 @@ interpolation of the projection into a Lagrange basis. This interpolation allows
values and derivatives of the geometry mapping.
Finally, the reference grid and the parametrization together build the curved grid. This
meta-grid
`Curved
Surface
Grid`
implements the Dune grid interface and can thus be used as
meta-grid
`CurvedGrid`
implements the Dune grid interface and can thus be used as
replacement for, e.g., the reference grid.
## Two Different Geometry Mappings
...
...
@@ -51,7 +51,7 @@ projection function into a (Lagrange) basis on the reference element. This requi
projection mapping just that it allows to map local coordinates in the reference element to
global coordinates on the surface.
The
`Curved
Surface
Grid`
constructs on request of the element geometry a LocalFiniteElement
The
`CurvedGrid`
constructs on request of the element geometry a LocalFiniteElement
of Lagrange basis functions for the internal parametrization of the geometry. The
`ParametrizedGeometry`
is constructed, if the grid gets a polynomial order
`k > 0`
.
...
...
@@ -67,7 +67,7 @@ template <int order>
using
Order_t
=
std
::
integral_constant
<
int
,
order
>
;
// Wrap the reference grid to build a curved grid
Curved
Surface
Grid
grid
{
*
refGrid
,
sphere
,
Order_t
<
k
>
{}};
CurvedGrid
grid
{
*
refGrid
,
sphere
,
Order_t
<
k
>
{}};
```
### LocalFunction-Geometry
...
...
@@ -88,5 +88,5 @@ auto f = discreteGridViewFunction<3>(gv, k);
Functions
::
interpolate
(
f
.
basis
(),
f
.
coefficients
(),
sphere
);
// Wrap the reference grid and the grid-function
Curved
Surface
Grid
grid
{
*
refGrid
,
f
};
CurvedGrid
grid
{
*
refGrid
,
f
};
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment