Skip to content
Snippets Groups Projects
Commit f9130156 authored by Felix Weinhardt's avatar Felix Weinhardt
Browse files

[exercise-sunemodule / exercise-fluidsystem]

adjusted readme of exercise-sunemodule and exercise-fluidsystem
parent c57faba1
No related branches found
No related tags found
1 merge request!54update dumux-course to dumux 3.0
...@@ -43,7 +43,7 @@ You need to run this command in the folder with content dumux, dumux-course, dun ...@@ -43,7 +43,7 @@ You need to run this command in the folder with content dumux, dumux-course, dun
mkdir appl mkdir appl
``` ```
* Copy some test case from the dumux module, e.g. test_1p from test/porousmediumflow/1p/implicit/compressible * Copy some test case from the dumux module, e.g. test_1p from test/porousmediumflow/1p/implicit/compressible/stationary
* Copy the problem, spatialparams, cc source file, input file * Copy the problem, spatialparams, cc source file, input file
* Adjust the CMakeLists.txt file within the dumux-example (or your module name)-folder to include your new subdirectory * Adjust the CMakeLists.txt file within the dumux-example (or your module name)-folder to include your new subdirectory
...@@ -52,13 +52,13 @@ mkdir appl ...@@ -52,13 +52,13 @@ mkdir appl
```cmake ```cmake
# add a new finite volume 1p test # add a new finite volume 1p test
dune_add_test(NAME test_1p_compressible_tpfa dune_add_test(NAME test_1p_compressible_stationary_tpfa
SOURCES test_1p.cc SOURCES main.cc
COMPILE_DEFINITIONS TYPETAG=OnePCompressibleTpfa COMPILE_DEFINITIONS TYPETAG=OnePCompressibleTpfa
CMD_ARGS test_1p.input) CMD_ARGS params.input)
# add a symlink for the input file # add a symlink for the input file
dune_symlink_to_source_files(FILES "test_1p.input") dune_symlink_to_source_files(FILES "params.input")
``` ```
......
...@@ -56,7 +56,7 @@ The `TwoP` _TypeTag_ can be found in the `2p/model.hh` header: ...@@ -56,7 +56,7 @@ The `TwoP` _TypeTag_ can be found in the `2p/model.hh` header:
while the `BoxModel` _TypeTag_ can be found in the `box/properties.hh` header: while the `BoxModel` _TypeTag_ can be found in the `box/properties.hh` header:
```c++ ```c++
// The discretization // The box discretization
#include <dumux/discretization/box/properties.hh> #include <dumux/discretization/box/properties.hh>
``` ```
...@@ -164,7 +164,7 @@ We now want to implement a pressure-dependent density for our component. Open th ...@@ -164,7 +164,7 @@ We now want to implement a pressure-dependent density for our component. Open th
$`\displaystyle \rho_{MyComp} = \rho_{min} + \frac{ \rho_{max} - \rho_{min} }{ 1 + \rho_{min}*e^{-1.0*k*(\rho_{max} - \rho_{min})*p} } `$ $`\displaystyle \rho_{MyComp} = \rho_{min} + \frac{ \rho_{max} - \rho_{min} }{ 1 + \rho_{min}*e^{-1.0*k*(\rho_{max} - \rho_{min})*p} } `$
where $`p`$ is the pressure and $`\rho_{min} = 1440 `$, $`\rho_{max} = 1480 `$ and $`k = 5 \cdot 10^{-7} `$. Also, make sure the header is included in the `2pproblem.hh` file by uncommenting line 54. Furthermore, the new component has to be set as a liquid phase in the fluid system, i.e. comment line 101 and uncomment line 102. The density distribution of this phase (rhoN) at the final simulation time should look like this: where $`p`$ is the pressure and $`\rho_{min} = 1440 `$, $`\rho_{max} = 1480 `$ and $`k = 5 \cdot 10^{-7} `$. Also, make sure the header is included in the `2pproblem.hh` file by uncommenting line 54. Furthermore, the new component has to be set as a liquid phase in the fluid system, i.e. comment line 109 and uncomment line 110. The density distribution of this phase (rhoN) at the final simulation time should look like this:
![](../extradoc/exercise-fluidsystem_a_solution2.png) ![](../extradoc/exercise-fluidsystem_a_solution2.png)
......
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