From CAELinuxWiki
Jump to: navigation, search

[Main installation site]

Instalation and installation problems regarding openFoam

August 2013
I followed the website to install OpenFoam on my Mint system [OpenFoam for Ubuntu]. Note

  • lines are commands to paste into a terminal

  • 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.

check version VERS:
kees@Amdaltrax:~$ VERS=$(lsb_release -cs)
kees@Amdaltrax:~$ echo $VERS

*) This line does not work for my Mint installation:

so I hard coded the version according to [Linux Mint]

Getting started

  • mkdir -p $FOAM_RUN
  • cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
  • blockMesh
  • icoFoam
  • paraFoam