You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: free-flow-over-porous-media/README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,15 +27,13 @@ preCICE configuration (image generated using the [precice-config-visualizer](htt
27
27
28
28
## Available solvers
29
29
30
-
Both the participants are computed using the simulation code [DuMu<sup>x</sup>](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/).
30
+
Both the participants are computed using the simulation code [DuMux](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/).
31
31
32
32
## Solver setup
33
33
34
34
To solve the flows with the DuMux framework, the necessary DUNE modules need to be downloaded and set up. This is done by running `sh setup-dumux.sh` in the tutorial folder.
35
35
36
-
Note that if an existing installation of DUNE modules is detected in a default location, this may lead to problems in running the `setup-dumux.sh` script. The script suppresses the environment variable `DUNE_CONTROL_PATH`.
37
-
38
-
To only recompile the participants, run `sh compile-dumux-cases.sh` in the tutorial folder.
36
+
If an existing path, containing compiled DUNE modules, DuMux and DuMux-adapter, is to be used for compiling the solvers, the path can be specified by setting the arguments while running the script `run.sh` with `-l <path-to-DUNE-common>` in each solver folder. The environment variable `DUNE_CONTROL_PATH` is suppressed by the script. The `run.sh` scripts in the DuMux solver folders will first compile the solver if not already compiled, and then run the simulation.
39
37
40
38
## Running the simulation
41
39
@@ -55,6 +53,12 @@ cd porous-media-dumux
55
53
./run.sh
56
54
```
57
55
56
+
This assumes a DuMux and DUNE modules installation in the case folder. You can specify the path to an existing DUNE installation with with `-l`:
57
+
58
+
```bash
59
+
./run.sh -l <path-to-DUNE-common>
60
+
```
61
+
58
62
Participants can be executed only in serial. Parallel execution is not supported. The case takes approximately two minutes to finish.
Copy file name to clipboardExpand all lines: two-scale-heat-conduction/README.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,15 +27,15 @@ preCICE configuration (image generated using the [precice-config-visualizer](htt
27
27
28
28
## Available solvers and dependencies
29
29
30
-
* Both the macro and micro simulations can be solved using the finite element library [Nutils](https://nutils.org/install.html) v7 or the simulation framework [DuMu<sup>x</sup>](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/).
30
+
* Both the macro and micro simulations can be solved using the finite element library [Nutils](https://nutils.org/install.html) v7 or the simulation framework [DuMux](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/).
31
31
* While using Nutils, the macro simulation is written in Python, so it requires the [Python bindings of preCICE](https://precice.org/installation-bindings-python.html).
32
32
* The [Micro Manager](https://precice.org/tooling-micro-manager-installation.html) controls all micro-simulations and facilitates coupling via preCICE. Use the [develop](https://github.com/precice/micro-manager/tree/develop) branch of the Micro Manager.
33
33
34
-
### DuMu<sup>x</sup> setup
34
+
### DuMux setup
35
35
36
-
To solve either the macro or micro simulations with the DuMu<sup>x</sup> framework, the necessary DUNE modules need to be downloaded and set up. This is done by running `sh setup-dumux.sh` in the tutorial folder.
36
+
To solve either the macro or micro simulations with the DuMux framework, the necessary DUNE modules need to be downloaded and set up. This is done by running `sh setup-dumux.sh` in the tutorial folder.
37
37
38
-
Note that if an existing installation of DUNE modulesis detected in a default location, this may lead to problems in running the `setup-dumux.sh`script. The environment variable `DUNE_CONTROL_PATH` is suppressed by the script.
38
+
If an existing path, containing compiled DUNE modules, DuMux and DuMux-adapter, is to be used for compiling the solvers, the path can be specified by setting the arguments while running the script `run.sh`with `-l <path-to-DUNE-common>` in each solver folder. The environment variable `DUNE_CONTROL_PATH` is suppressed by the script. The `run.sh` scripts in the DuMux solver folders will first compile the solver if not already compiled, and then run the simulation.
39
39
40
40
## Running the simulation
41
41
@@ -55,7 +55,18 @@ cd micro-nutils
55
55
./run.sh -s
56
56
```
57
57
58
-
If you want to use DuMu<sup>x</sup>, use `cd macro-dumux` instead of `cd macro-nutils` and/or `cd micro-dumux` instead of `cd micro-nutils`.
58
+
If you want to use DuMux, use `cd macro-dumux` instead of `cd macro-nutils` and/or `cd micro-dumux` instead of `cd micro-nutils`. For example, to run the macro simulation with DuMux in serial (default), run:
59
+
60
+
```bash
61
+
cd macro-dumux
62
+
./run.sh -s
63
+
```
64
+
65
+
This assumes a DuMux and DUNE modules installation in the case folder. You can specify the path to an existing DUNE installation with with `-l`:
66
+
67
+
```bash
68
+
./run.sh -s -l <path-to-DUNE-common>
69
+
```
59
70
60
71
## Running the simulation in parallel
61
72
@@ -74,7 +85,7 @@ Running `micro-dumux` is much faster. A serial simulation takes approximately 2
74
85
75
86
## Post-processing
76
87
77
-
Here are the results from Nutils-Nutils and DuMu<sup>x</sup>-DuMu<sup>x</sup> combination:
88
+
Here are the results from Nutils-Nutils and DuMux-DuMux combination:
78
89
79
90
<imgclass="img-responsive"src="images/tutorials-two-scale-heat-conduction-results.png"alt="Macro and micro data of macro-nutils - micro-nutils simulation"width=50%height=30%/>
80
91
@@ -88,4 +99,4 @@ The participant `macro-nutils` outputs `macro-*.vtk` files which can be viewed i
88
99
89
100
The micro simulations themselves have a circular micro structure which is resolved in every time step. To output VTK files for each micro simulation, uncomment the `output()` function in the file `micro-nutils/micro.py`. The figure above shows the changing phase field used to represent the circular micro structure and the diffuse interface width.
90
101
91
-
Similar to the output data files from simulation with Nutils, the `VTU` files from macro and micro solvers, that are written in DuMu<sup>x</sup>, could also be rendered and inspected with ParaView with the mentioned method.
102
+
Similar to the output data files from simulation with Nutils, the `VTU` files from macro and micro solvers, that are written in DuMux, could also be rendered and inspected with ParaView with the mentioned method.
0 commit comments