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

OpenFOAM3.0+ compile commands history on redhat 7

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

OpenFOAM3.0+ compile commands history on redhat 7

Posted March 8, 2016 at 01:04 by donQi

INSTALLATION OF THE REQUIRED LIBRARIES
Code:
yum install system-config-users
yum groupinstall "Development Tools"
if you get the error -> Group development does not have any packages to install.
then try :
Code:
yum groups mark install "Development Tools" 
yum groups mark convert "Development Tools" 
yum groupinstall "Development Tools"
then:
Code:
yum install openmpi openmpi-devel zlib-devel gstreamer-plugins-base-devel \
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel \
libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
readline-devel ncurses-devel python python-devel cmake qt-devel qt-assistant \
mpfr-devel gmp-devel
yum install qt5-assistant.x86_64
yum install gstreamer-plugins-base.x86_64
yum install --enablerepo=epel qtwebkit-devel
yum install paraview-openmpi.x86_64 openmpi.x86_64 paraview-mpich.x86_64
yum install zlib-static
yum install glibc-static
UNCOMPRESS OPENFOAM
Code:
cd ~
mkdir OpenFOAM
cd OpenFOAM
tar -xzf OpenFOAM-v3.0+.tgz
tar -xzf ThirdParty-v3.0+.tgz
BASHRC
bash: mpirun: command not found...
SOLUTION : in bashrc add the following lines:

Code:
    export PATH=/usr/lib64/openmpi/bin/:$PATH
    export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=/lib64/openmpi/lib:$LD_LIBRARY_PATH
    source ~/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc
COMPILE
Back to terminal, let's compile:
Code:
foam
cd $WM_PROJECT_DIR
foamSystemCheck    -> ok pass
./Allwmake
ADDITIONAL FIX:
To fix some problems of parallel launch:
Code:
cd $FOAM_SRC/Pstream/
./Allwmake
If in parallel you get the error snappyHexMesh: route/tc.c:973: rtnl_tc_register: Assertion `0' failed.
as root type:
Code:
rpm -e --nodeps "libnl3"
Posted in Uncategorized
Views 4308 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 21:31.