Skip to content
Snippets Groups Projects
Timo Koch's avatar
Timo Koch authored
[exercises] Updates/cleanup for 3.7

See merge request !143

(cherry picked from commit b4c16461)

9ae93f05 [exercises] upgrade license
922b3dc7 [cleanup] Update exercise basic
ede82630 [cleanup] Use constexpr in instead of enum
12856e89 [cleanup] Remove clutter
0da6c871 [cleanup] Fix spelling mistakes with codespell
b162c1af [cleanup] Use more static constexpr int instead of enum
4ee41735 [cleanup] Remove ctime and dumux message
0a08f5e3 [cleanup] Use new solvers, no setPreviousSolution, initialize
c2ad627a [cleanup] Replace enums with static constexpr
608e50a5 Update some code snippets in readme
1fe3e1ea
History
dumux logo

DuMux course material

The material is organized as follows

  • Exercises: click here to go to the exercise description
  • Slides: click here to download the slides
  • Links: click here to go to a list of useful links

Installation of the course

To get started with the course, you have two options. Depending on whether you already have DuMux installed or not, choose the one that fits your needs.

Install DuMux together with the course

The easiest way to install everything you need is to use the install scripts provided in DuMux, for instance, with this sequence of commands:

wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/raw/master/bin/installdumux.py
python3 installdumux.py --dumux-version master --dune-version 2.9
cd dumux
python3 dumux/bin/installexternal.py dumux-course --dumux-branch master --dune-branch releases/2.9
./dune-common/bin/dunecontrol bexec rm -r CMakeFiles CMakeCache.txt
./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts all

If you don't have wget and don't want to install it, you can just manually download the installdumux.py script from the git repository.

Install the course into your existing DuMux project

If you already have an installation of DuMux, navigate to your DuMux root directory and then run the following commands:

python3 dumux/bin/installexternal.py dumux-course
./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts all

This will download and then configure the course repository using dunecontrol. After this, you can start with the exercises.

Requirements

For a successful installation and the execution of all exercises, the following software packages are needed:

  • gcc >= 7
  • cmake >= 3.13
  • git
  • pkg-config
  • paraview (to visualize the results)
  • gnuplot (to plot some curves)
  • wget (to download some config files during the installation)

For some excercises you might need UMFPack. UMFPack can be installed via Suitesparse. For instance on Ubuntu use apt-get install libsuitesparse-dev.

Last updated for: DuMux course 2023.