The setup constists of cloning this repository, installing `Fenics`, installing a few python modules that are not shipped with the standard distributions and hack away.
The setup constists of cloning this repository, installing `docker` and `Fenics`,
installing a few python modules that are not shipped with the standard
distributions and hack away.
This code assumes that you run Linux. It has not been tested on Windows.
It has been tested on `Debian Buster` and `Archlinux`.
## Install docker
First, install `docker`, add yourelf to the `docker` group and run the
docker daemon. This may vary from distribution
to distribution. On Archlinux you can run
sudo pacman -S docker
Check the name of the package for your distribution and the documentation of your
package manager to see how to install docker in your case.
On `systemd`-based systems the daemon is started by running
sudo systemctl start docker
in the command line.
Note: If you don't have admistrative rights on your system, ask your systemadmin
to perform these steps for you. The user that wants to run `docker` needs to
be in the docker group. If you have added yourself to the docker group, don't
forget to log out and back in again. A reboot might be required, so if in doubt,
do that.
## Manual how to set up latest fenix image in Docker
Pull the latest `Fenics` Docker image
docker pull quay.io/fenicsproject/stable:latest
This code as been tested on the latest docker version, which is as of October 2020 `Fenics 2019`. The above explains how to pull the latest `Fenics` docker image. Drastic changes to Fenics are envisioned for the next release, notably abandoning the mesh tool `mshr` which this code heavily relies on. Therefore, before even starting, check on the `Fenics`[website](https://fenicsproject.org/download/) if another version of has come out.
If yes, you are free to check whether or not this code still works under the latest version, but things might have broken.
In that case, the code needs to be adapted first.
Alternatively, look on [the release cite](https://quay.io/repository/fenicsproject/stable?tab=tags) for the latest 2019 tag and pull that image.
So assuming `2019.1.0` was the latest tag, you would run
This code as been tested on the latest docker version, which is as of October 2020 `Fenics 2019`. The above explains how to pull the latest `Fenics` docker image. Drastic changes to Fenics are envisioned for the next release, notably abandoning the mesh tool `mshr` which this code heavily relies on. Therefore, before even starting, check on the `Fenics`[website](https://fenicsproject.org/download/) if another version of `Fenics`has come out.
If yes, you are free to check whether or not this code still works under the latest version, but things might have broken.
In that case, the code needs to be adapted first.
Alternatively, look on [the release cite](https://quay.io/repository/fenicsproject/stable?tab=tags) for the latest 2019 tag and pull the 2019 image.
So assuming `2019.1.0` was the latest tag for the 2019 version, you would run
docker pull quay.io/fenicsproject/stable:2019.1.0
## Create docker container named LDD-TPR with graphical display, share folder `pwd`
Move into the folder in which you cloned this directory and run