skip to content

OpenFOAM is installed on the Maths Linux PCs on request.

To use OpenFOAM, bash users (the vast majority) should add the following line to the end of their .bashrc file (in their home directory)

source /opt/openfoam6/etc/bashrc

csh/tcsh users should add this to the end of their .cshrc (in their home directory)

source /opt/openfoam6/etc/cshrc

Each new version of OpenFOAM installs itself in a new /opt/openfoamX directory and these commands should be adjusted accordingly (in the above example, X=6).

After editing the file, log out and back in to make your change live.

Documentation is available on the OpenFOAM website.