CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

OpenFOAM-v3.0+ installation in CentOS 6 using Intel compilers

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

OpenFOAM-v3.0+ installation in CentOS 6 using Intel compilers

Posted November 6, 2016 at 17:07 by albertsk
Updated November 6, 2016 at 22:24 by albertsk

This post is to show how to compile OpenFOAM-v3.0+ from openfoam.com using Intel compilers in CentOS 6. Most procedures are similar to source-pack compilation of OF using Gcc in Ubuntu (especially 16).

Key procedures include
1. Untar both ThirdParty-v3.0+.tgz and OpenFOAM-v3.0+.tgz.
2. Change the compiler from the default Gcc to Icc in OpenFOAM-v3.0+/etc/bashrc.
3. Set the OF environment
Code:
source  etc/bashrc
4. Open ~/OpenFOAM/OpenFOAM-v3.0+/etc/config/CGAL.sh file, and change lines to
Code:
cgal_version=CGAL-4.8
boost_version=boost_1_61_0
5. Go to the third party directory
Code:
cd ../ThirdParty-v3.0+
./Allwmake
./makeParaView
6. Check whether the "boost_1_61_0/lib" exist like
Code:
ThirdParty-v3.0+/platforms/linux64Icc/boost_1_61_0/lib
If it is not present, make it from ThirdParty-v3.0+/
Code:
cd platforms/linux64Icc
mkdir boost_1_61_0
mkdir lib
cd boost_1_61_0/lib
7. Link the system boost_thread library
Code:
ln -s /usr/lib64/libboost_thread-mt.so libboost_thread.so
ln -s /usr/lib64/libboost_thread-mt.so libboost_thread.a
8. Go to the OF directory
Code:
cd ../OpenFOAM-v3.0+
and compile OF
Code:
./AllWmake
Posted in Uncategorized
Views 1632 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 06:22.