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 Installation v4.1 and v5.0 (https://www.cfd-online.com/Forums/openfoam-installation/199580-openfoam-installation-v4-1-v5-0-a.html)

Sabby March 9, 2018 07:31

Openfoam Installation v4.1 and v5.0
 
Hey Foamers,
Is it possible to install OpenFoam v4.1 when the version v5.0 is already installed on ubuntu ?
thank you.

Robin.Kamenicky March 10, 2018 14:44

Hi Sabby,

that should be fairly easy. Just download the source pack from GitHub.
Write aliases in your dot file such as .bashrc
E.g.
alias of-4.1="source $HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc"
alias of-5.0="source $HOME/OpenFOAM/OpenFOAM-5.0/etc/bashrc"

Before you start to install the 4.1 version source it by the alias.

I hope it helps. Also when you would like to use one of them use the alias in the terminal before. Let me know whether it works.

Robin.Kamenicky March 10, 2018 15:47

Hi Sabby,

you can also read about managing multiple versions here:
http://openfoamwiki.net/index.php/In...with_the_Shell
Chapter 2.2

Enjoy,
Robin

Sabby March 12, 2018 04:02

Thank you for replying Robin ! I'll try this and see if it works :)

Sabby March 12, 2018 08:11

Thanks ! it works very well !


All times are GMT -4. The time now is 16:38.