wsiFoam based on OpenFOAM-2.3.0 and FOAM-Extend-3.1 built on top of Ubuntu 16.04 LTS
957
Docker containers enable binaries compiled on a given Linux environment to be run on other platforms without any performance degradation. Docker allows you to run wsiFoam in any OS, without having to install OpenFOAM: simply download this precompiled code ready to be run out of the box!
Please follow these installation guidelines carefully in order to get the latest version of wsiFoam.
sudo apt install docker.io
sudo service docker start
Download the latest version of wsiFoam with the following command:
docker create -ti --name wsicontainer -v ${1:-$HOME}/shared:/home/docker/shared ipedrojm/wsifoam:latest
This will take some time depending on your internet connection (it will download 650MB approximately). This command needs to be executed only once and will download a docker image, which cannot be modified.
Contrarily to docker images, docker containers can be modified. This container will be used to make changes, compile new code, run simulations, etc. Run the wsiFoam container based on the previous image by typing the following command:
docker stop wsicontainer && docker start -i wsicontainer
The docker terminal will automatically switch into an Ubuntu terminal. A greeting message will be displayed to select the OpenFOAM or FOAM-Extend environment. Furthermore, running the following command:
runCase damBreakMartinMoyce1952
will copy this tutorial case into your home directory and execute it.
In future iterations simply lunch a docker terminal and start the wsiFoam container by typing the command specified in this section.
ParaView is not installed in the docker image for a good reason. Therefore you need to install a version of ParaView compatible with your OS from here. After this, lunch ParaView and:
If that file is not present in your simulation directory, you can easily generate it by typing the command:
paraFoam -touchAll
The directory /home/docker/shared is shared between the docker container and your OS. This means that any files and folders within that directory can be seen inside and outside the container allowing ParaView to access them. This is a great feature but it can compromise docker's performance in cases involving intensive I/O operations, e.g. running simulations. There a are two possible ways to overcome this:
Content type
Image
Digest
Size
617.6 MB
Last updated
almost 10 years ago
docker pull ipedrojm/wsifoam