Contrib:KeesWouters/installproblems/openFoam
From CAELinuxWiki
Revision as of 15:57, 10 August 2013 by Keeswouters (Talk | contribs) (→Installation and installation problems regarding openFoam)
Installation and installation problems regarding openFoam
I followed the openfoam.org website to install OpenFoam on my Mint system [OpenFoam for Ubuntu]:
- VERS=$(lsb_release -cs)
- sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list" *)
- sudo apt-get update
- sudo apt-get install openfoam221
- sudo apt-get install paraviewopenfoam3120
Then open the .bashrc file in the user’s home directory
- gedit ~/.bashrc
At the bottom of that file add the following line and save the file
- source /opt/openfoam221/etc/bashrc
- source $HOME/.bashrc
[just this once]
Test that the icoFoam application is working by typing
- icoFoam -help
A “Usage” message should appear. Your installation and user configuration is complete.
Note:
check version VERS:
kees@Amdaltrax:~$ VERS=$(lsb_release -cs)
kees@Amdaltrax:~$ echo $VERS
nadia
kees@Amdaltrax:~$
*) This line does not work for my Mint installation:
- sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"
so I hard coded the version according to
[Linux Mint]
- sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list"