OpenFOAM-v3.0+ installation in Ubuntu 16.04 LTS
This blog is to show how to install OpenFOAM-v3.0+ on Ubuntu 16.04 LTS. There are some issues that should be resolved before the installation. So far, default compilers installed in Ubuntu, gcc and openmpi, are used. Compilation of OpenFOAM-v3.0+ using Intel compilers is on-going.
After you unzip the package OpenFOAM-v3.0+.tgz under ~/OpenFOAM, go to the directory
open the following file
, and comment out the last line:
Open the following files
In each file above, make changes
from
to
Set up the compilation environment
Open ~/OpenFOAM/OpenFOAM-v3.0+/etc/config/CGAL.sh file, and change lines to
and make it:
Then, all the screen messages will be stored in log.Allwmake.
After you unzip the package OpenFOAM-v3.0+.tgz under ~/OpenFOAM, go to the directory
Code:
cd OpenFOAM-v3.0+
Code:
emacs src/postProcessing/functionObjects/Allwmake
Code:
# ./graphics/Allwmake
Code:
emacs $WM_PROJECT_DIR/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L emacs $WM_PROJECT_DIR/applications/utilities/mesh/conversion/gambitToFoam/gambitToFoam.L emacs $WM_PROJECT_DIR/applications/utilities/mesh/conversion/fluent3DMeshToFoam/fluent3DMeshToFoam.L emacs $WM_PROJECT_DIR/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L emacs $WM_PROJECT_DIR/applications/utilities/mesh/conversion/ansysToFoam/ansysToFoam.L
from
Code:
#if YY_FLEX_SUBMINOR_VERSION < 34 extern "C" int yywrap() #else int yyFlexLexer::yywrap() #endif
Code:
// #if YY_FLEX_SUBMINOR_VERSION < 34 // extern "C" int yywrap() // #else int yyFlexLexer::yywrap() // #endif
Code:
source ~/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc echo " alias of30plus='source ~/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc'" >> $HOME/.bahsrc
Code:
cgal_version=CGAL-4.8 boost_version=boost_1_61_0
Code:
./Allwmake 2>&1 | tee log.Allwmake
Total Comments 0