What is OpenFOAM?
By being open, OpenFOAM offers users complete freedom to customise and extend its existing functionality, either by themselves or by others. It follows a highly modular code design in which collections of functionality (e.g. numerical methods, meshing, physical models, …) are each compiled into their own shared library. Executable applications are then created that are simply linked to the library functionality. OpenFOAM includes over 80 solver applications that simulate specific problems in engineering mechanics and over 170 utility applications that perform pre- and post-processing tasks, e.g. meshing, data visualisation, etc.
Source : http://www.openfoam.org/features/
Installation OpenFOAM and Paraview can be simply installed using the apt package management tool. The user will need to provide superuser password authentication when executing the following commands with sudo
- In a terminal window, add OpenFOAM to the list of repository locations for apt to search, by copying and pasting the following in a terminal prompt (Applications -> Accessories -> Terminal).
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"
- Note 1: Line 1 stores the version name of your Ubuntu distribution (e.g. raring) under $VERS, which is used in line 2
- Note 2: This only needs to be done once for a given system
- Update the apt package list to account for the new download repository location sudo apt-get update
- Install OpenFOAM (231 in the name refers to version 2.3.1):
sudo apt-get install openfoam231
- Install Paraview (410 in the name refers to version 4.1.0): sudo apt-get install paraviewopenfoam410