README.md 2.22 KB
Newer Older
Timo Koch's avatar
Timo Koch committed
1
2
# Examples

Timo Koch's avatar
Timo Koch committed
3
To get started with DuMu<sup>x</sup>, we recommend the following documented examples. Each example folder contains a ready-to-use DuMu<sup>x</sup> simulation example.
Timo Koch's avatar
Timo Koch committed
4
5
The description in each folder (best viewed online by following the link) explains each line of the code example.

6
### [:open_file_folder: Example 1: One-phase flow and tracer transport](1ptracer/README.md)
Timo Koch's avatar
Timo Koch committed
7
8
9
10
11
12

In this example, we simulate tracer transport through a confined aquifer with a randomly distributed permeability field.
We first solve the pressure field, compute the steady state flow field, and then solve the tracer transport equation.
You learn how to

* generate a randomly distributed permeability field
13
14
15
16
* sequentially solve two types of problems after each other:
    * solve a one-phase flow in porous media problem
    * compute the flow field from a pressure solution to pass to a tracer problem
    * solve an instationary tracer transport problem with a given flow field
17

18
### [:open_file_folder: Example 2: Two-phase flow with infiltration and adaptive grid](2pinfiltration/README.md)
19

Timo Koch's avatar
Timo Koch committed
20
21
22
23
In this example we model a soil contamination problem where DNAPL infiltrates a water-saturated porous medium (two-phase flow).
The initial distribution of DNAPL is read in from a txt-file.
The grid is adapitvely refined where DNAPL enters the domain, around the plume, and around an injection well.
You learn how to
24

Timo Koch's avatar
Timo Koch committed
25
26
27
28
* solve a two-phase flow in porous media problem with two immiscible phases
* set boundary conditions and a simple injection well
* implement a problem with heterogenous material parameters
* use adaptive grid refinement around the saturation front
29

30
### [:open_file_folder: Example 3: Shallow water model](shallowwaterfriction/README.md)
31

32
The shallow water flow model is applied to simulate steady subcritical flow in a channel including a bottom friction model.
Timo Koch's avatar
Timo Koch committed
33
You learn how to
34

Timo Koch's avatar
Timo Koch committed
35
36
* solve a shallow water flow problem including bottom friction
* computate and output (VTK) an analytical reference solution
37

38
### [:open_file_folder: Example 4: Freeflow channel](freeflowchannel/README.md)
39
40
41
42
43
In this example, we simulate a free flow between two plates in two dimensions.
You learn how to

* solve a free flow problem
* set outflow boundary conditions in the free-flow context