Skip to content
Snippets Groups Projects
Commit d4bab1a6 authored by Theresa Schollenberger's avatar Theresa Schollenberger
Browse files

[exercise-basic] remove input-parameter tasks in readme

parent 302f571d
No related branches found
No related tags found
1 merge request!8Feature/exercise basic
......@@ -55,60 +55,7 @@ paraview injection-2p2c.pvd
```
<hr><br><br>
### Task 3: Changing input parameters
<hr>
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.
<hr><br><br>
### Task 4: Runtime parameters
<hr>
The injection rate is currently hard-coded in `injection2p2cproblem.hh` to $`1e-4 kg/(s m^2)`$.
```c++
// set the Neumann values for the Nitrogen component balance
// convert from units kg/(s*m^2) to mole/(s*m^2)
values[Indices::contiNEqIdx] = -1e-4/FluidSystem::molarMass(FluidSystem::nCompIdx);
values[Indices::contiWEqIdx] = 0.0;
```
We want to be able to set it at runtime. To this end,
* use the following DuMuX macro to read a runtime parameter from the input file
```c++
// read the injection rate from the input file at run time
totalAreaSpecificInflow_ = getParam<TYPE>("GROUPNAME.PARAMNAME");
```
* Replace
`<TYPE>`,`<GROUPNAME>`,`<PARAMNAME>` by what is appropriate for your case:
* `<TYPE>` is the type of the parameter to read
* `<GROUPNAME>` is the group in the input file
* `<PARAMNAME>` is the name of the parameter in the input file
Note that due to the way the macro works, the names are specified as plain text within the "quotation marks".`<GROUPNAME>` and `<PARAMNAME>` need to be separated by a dot (.).
Follow the instructions given as a
```c++
// TODO: dumux-course-task
```
in the `injection2p2cproblem.hh` file and also remember to also set the parameter totalAreaSpecificInflow in the input file.
* Check the influence of that parameter on the simulation result by rerunning the simulation with different injection rates. Remember to also set the parameter totalAreaSpecificInflow in the input file.
Since you have changed your header file, you have to recompile the program.
<hr><br><br>
### 5. Setting up a new executable (for a non-isothermal simulation)
### Task 3: Setting up a new executable (for a non-isothermal simulation)
<hr>
* Copy the main file `exercise1_2p.cc` and rename it to `exercise1_2pni.cc`
......@@ -131,7 +78,7 @@ make exercise1_2pni # builds new executable
```
<hr><br><br>
### 6. Setting up a non-isothermal __2pni__ test problem
### Task 4: Setting up a non-isothermal __2pni__ test problem
<hr>
* Open the file `injection2pniproblem.hh`. It is a copy of the `injection2pproblem.hh` with some useful comments on how to implement a non-isothermal model. Look for comments containing
......
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