Difference between revisions of "Contrib:KeesWouters/installproblems/openFoam"
From CAELinuxWiki
								
												
				Keeswouters (Talk | contribs) m (→Installation and installation problems regarding openFoam)  | 
				Keeswouters (Talk | contribs)  m (→Instalation and installation problems regarding openFoam)  | 
				||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | [[http://www.caelinux.org/wiki/index.php/Contrib:KeesWouters/installproblems Main installation site]]  | |
| − | I followed the openfoam.org website to install OpenFoam on my Mint system [[http://www.openfoam.org/download/ubuntu.php OpenFoam for Ubuntu]]  | + | =='''Instalation and installation problems regarding openFoam'''==  | 
| + | August 2013<br/>  | ||
| + | I followed the openfoam.org website to install OpenFoam on my Mint system [[http://www.openfoam.org/download/ubuntu.php OpenFoam for Ubuntu]]. Note  | ||
| + | * ''lines are commands to paste into a terminal<br/><br/>''  | ||
* VERS=$(lsb_release -cs)  | * VERS=$(lsb_release -cs)  | ||
| Line 16: | Line 19: | ||
At the bottom of that file add the following line and save the file<br/>  | At the bottom of that file add the following line and save the file<br/>  | ||
* source /opt/openfoam221/etc/bashrc<br/>  | * source /opt/openfoam221/etc/bashrc<br/>  | ||
| − | * source $HOME/.bashrc<br/>    | + | * source $HOME/.bashrc<br/>     | 
Test that the icoFoam application is working by typing<br/>  | Test that the icoFoam application is working by typing<br/>  | ||
| Line 35: | Line 38: | ||
[[http://www.linuxmintusers.de/index.php?topic=7949.0 Linux Mint]]<br/>  | [[http://www.linuxmintusers.de/index.php?topic=7949.0 Linux Mint]]<br/>  | ||
* sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list"<br/>  | * sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list"<br/>  | ||
| + | |||
| + | '''Getting started'''  | ||
| + | * mkdir -p $FOAM_RUN   | ||
| + | * cp -r $FOAM_TUTORIALS $FOAM_RUN   | ||
| + | * cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity  | ||
| + | * blockMesh  | ||
| + | * icoFoam  | ||
| + | * paraFoam  | ||
Latest revision as of 15:08, 10 August 2013
Instalation and installation problems regarding openFoam
August 2013
I followed the openfoam.org website to install OpenFoam on my Mint system [OpenFoam for Ubuntu]. Note
-  lines are commands to paste into a terminal
 
- 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
 
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"
 
Getting started
- mkdir -p $FOAM_RUN
 - cp -r $FOAM_TUTORIALS $FOAM_RUN
 - cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
 - blockMesh
 - icoFoam
 - paraFoam