CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Openfoam V2.1.1 (https://www.cfd-online.com/Forums/openfoam-installation/234684-openfoam-v2-1-1-a.html)

ulugbey March 15, 2021 13:07

Openfoam V2.1.1
 
Hi,

I install Openfoam v2.1.1 in Ubuntu 18.04 following the commands described here until step 12. https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
Then paraview is installed using the commands:
Code:

sudo apt update
sudo apt install paraview

Then I am able to run Openfoam successfully. But whenever I close the terminal or close the Ubuntu without saving, Openfoam commands donīt work. And for example it says that I need to install Openfoam to be able to run blockMesh.

What is the reason of that? How can I solve this problem?

Best regards

tas38 March 15, 2021 13:20

You need to add an alias to your bashrc. Per your link...

Code:

echo "alias of211='source \$HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
Then, when you start a new terminal window run...

Code:

of211
and the OpenFOAM applications/utilities should be available


All times are GMT -4. The time now is 11:50.