This is an old revision of the document!
OpenFOAM
Installing OpenFoam
- Installing OpenFoam requires the use of the Sudo command therefore system admin needs to perform the first 4 steps from https://openfoam.org/download/11-linux/. User needs to be added to Docker group also.
- Ran OpenFOAM Docker image on Littlestorm. Following this procedure:
1)Edit your ~/.bashrc file and add the line: export XAUTHORITY=$HOME/.Xauthority
2)Start with “Step 5: Launching openfoam11-linux” at the following link https://openfoam.org/download/11-linux/ However, when you get to the last line that launches “openfoam11-linux” , you instead need to launch it like this: openfoam11-linux -p 510 -xhost ←-This will ensure that graphical programs get passed through and show up correctly when xforwarding. You may not need the extra flags if you are using a VNC session.
3)Once in the container, return to https://openfoam.org/download/11-linux/, and go to Step 6: Testing openfoam11-linux. This should ensure that everything is set correctly and afterward you should be ready to work with the program.
Older Versions
- The https://develop.openfoam.com/Development/openfoam/-/wikis/precompiled/docker#running-openfoam-in-a- container contains the latest version of the OpenFOAM docker image, it updates automatically on their website.
- To install an older version go to https://openfoam.org/ and type “Download v#” (# = preferred version).
Note: every different version will need to be installed by a system admin.