Commit 8065f08d by Timo Koch

### [exercises] Add exercises from last year's course

parent 40999f56
 # the immiscible two-phase simulation program dune_add_test(NAME exercise1_2p SOURCES exercise1_2p.cc CMD_ARGS exercise1.input) # the compositional two-phase two-component simulation program dune_add_test(NAME exercise1_2p2c SOURCES exercise1_2p2c.cc CMD_ARGS exercise1.input) # here, add the two-phase non-isothermal simulation program # add tutorial to the common target add_dependencies(test_exercises exercise1_2p exercise1_2p2c) # add a symlink for the input file dune_symlink_to_source_files(FILES "exercise1.input")
 # Exercise #1 (DuMuX course)
## Problem set-up N\$`_2`\$ is injected in an aquifer previously saturated with water with an injection rate of 0.0001 kg/(s*m\$`^2`\$). The aquifer is situated 2700 m below sea level and the domain size is 60 m x 40 m. It consists of two layers, a moderately permeable one (\$`\Omega_1`\$) and a lower permeable one (\$`\Omega_2`\$). ## Preparing the exercise * Navigate to the directory `dumux/tutorial/ex1` _Exercise 1_ deals with two problems: a two-phase immiscible problem (__2p__) and a two-phase compositional problem (__2p2c__). They both set up the same scenario with the difference that the 2p2c assumes a miscible fluid state for the two fluids (water and gaseous N\$`_2`\$) and the 2p model assumes an immiscible fluid state.

### Task 1: Getting familiar with the code
Locate all the files you will need for this exercise * The __main file__ for the __2p__ problem : `exercise1_2p.cc` * The __main file__ for the __2p2c__ problem : `exercise1_2p2c.cc` * The __problem file__ for the __2p__ problem: `injection2pproblem.hh` * The __problem file__ for the __2p2c__ problem: `injection2p2cproblem.hh` * The shared __spatial parameters file__: `injection2pspatialparams.hh` * The shared __input file__: `exercise1.input`

### Task 2: Compiling and running an executable
* Change to the build-directory ```bash cd ../../build-cmake/tutorial/ex1 ``` * Compile both executables `exercise1_2p` and `exercise1_2p2c` ```bash make exercise1_2p exercise1_2p2c ``` * Execute the two problems and inspect the result ```bash ./exercise1_2p exercise1.input ./exercise1_2p2c exercise1.input ``` * you can look at the results with paraview ```bash paraview injection-2p2c.pvd ```

### Task 3: Changing input parameters
In the input file `exercise1.input` you can find the following section ```ini [SpatialParams] EntryPressureAquitard = 4.5e4 EntryPressureAquifer = 1e4 ``` * Change the values for the aquitard entry pressure in the input file to a lower value and compare the results with the previous solution. You don't need to recompile the executable.