Skip to content
Snippets Groups Projects
Commit ac66c19a authored by Felix Weinhardt's avatar Felix Weinhardt Committed by Katharina Heck
Browse files

modified README.md for 1ptracer

parent dad62344
No related branches found
No related tags found
1 merge request!1547[examples] Set up problem for documentation (2p, adaptive, point source)
This tutorial was copied from /home/felix/Dokumente/Aktuelles_U/19_03_27_DumuxTag/dumux/dumux/test/porousmediumflow/tracer/1ptracer.
This tutorial was copied from dumux/test/porousmediumflow/tracer/1ptracer.
# One-phase flow with with random permeability distribution (and a tracer model)
## Problem set-up
This example combines a stationary One-phase flow in a porous medium with randomly generated permeabilities with a tracer model. In the first step, the groundwater-velocity is evaluated under stationary conditions. Based on the velocity field the tracer model is running instationary.
A contaminant tracer is diluted by diffusion and a base groundwater flow from the bottom to the top. The permeability within the domain is randomly distributed.
## Random permeability generation
### main file
This example combines a stationary One-phase flow problem with a tracer model. In the first step, the groundwater-velocity is evaluated under stationary conditions. Based on the volume fluxes, the tracer model is solved instationary. Therefore both, the problem_1p.hh and the problem_tracer.hh have to be included in the main file.
```C++
#include "problem_1p.hh"
#include "problem_tracer.hh"
```
In lines 83-192, the stationary 1p problem is setup and soved and the volume fluxes are calculated for the tracer problem.
In lines 193-292, the tracer problem is set up on the same grid and solved instationary.
## 1p problem
### problem_1p.hh
??
### spatialparams_1p.hh
#### Random permeability generation
The follwing code can be found in lines 64-72.
```C++
......@@ -25,4 +38,8 @@ Two lognormal distributions are defined: K and KLens with different means and st
Within a loop through all elements the randomly generated permeabilities are assigned according to their position in the domain (inside or outside the lense).
## Tracer model
...
\ No newline at end of file
### problem_tracer.hh
The molar mass of the component and the binary diffusion coefficient can modified in lines 117-128.
### spatialparams_tracer.hh
The density, the molar mass of the fluid as well as the prosity and dispersivity can be adapted in the lines 63-93.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment