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

[OpenFOAM.org] 4.0: Install without foamyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2016, 03:54
Default 4.0: Install without foamyHexMesh
  #1
Member
 
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11
Hillie is on a distinguished road
Dear Foamers,

I am trying to install OpenFoam 4.0 on my universities clusters on which i do not have admin rights. Gcc(5.4.0) is installed on the system so i do not have to compile that myself.
CGAL is not installed but since I do not need foamyHexMesh this should not be a problem.

Now i have been following this install guide: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL

Acording to wyldckat in this thread http://www.cfd-online.com/Forums/ope...s-sl-rhel.html I need to make a couple of adjustments to the standard guide

step 7:
Code:
source $HOME/OpenFOAM/OpenFOAM-4.0/etc/bashrc WM_LABEL_SIZE=64
in stead of
Code:
source $HOME/OpenFOAM/OpenFOAM-4.0/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=ThirdParty FOAMY_HEX_MESH=yes
skip steps #10 11 and #12.

Since paraview is already installed I have skipped steps #13 and #14 as well.

If I run allwmake with this configuration I get an error that gmp cannot be found
Code:
-- Could NOT find GMP (missing:  GMP_LIBRARIES GMP_INCLUDE_DIR) 
CMake Error at cmake/modules/CGAL_SetupDependencies.cmake:66 (message):
  CGAL requires GMP to be found
Call Stack (most recent call first):
  CMakeLists.txt:639 (include)


-- Configuring incomplete, errors occurred!
See also "/home/z5026025/OpenFOAM/ThirdParty-4.0/build/linux64Gcc/CGAL-4.8/CMakeFiles/CMakeOutput.log".
+ exit 1
I have also tried to comment out the section relating to CGAL in the allwmake script in the third-party directory. This gives the following error:
Code:
+ '[' -n /home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0 -o boost_1_55_0 = boost-system ']'
+ wmake libso SloanRenumber
/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/renumber/SloanRenumber
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0/include -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/meshTools/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/parallel/decompose/decompositionMethods/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/OpenFOAM/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/OSspecific/POSIX/lnInclude   -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/src/renumber/SloanRenumber/SloanRenumber.o -L/home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib \
	    -L/home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0/lib -lboost_thread -lmeshTools -ldecompositionMethods -lrenumberMethods  -o /home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libSloanRenumber.so
/usr/bin/ld: cannot find -lboost_thread
collect2: error: ld returned 1 exit status
make: *** [/home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libSloanRenumber.so] Error 1
I assume this boost error is related to the not compiling of GCAL. Any pointers on what i am forgetting?
Hillie is offline   Reply With Quote

Old   October 10, 2016, 17:23
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

First error is caused by missing GMP (http://gmplib.org), since you have skipped step 10 from the guide, you have no GMP. So compile it manually. Also, since you have skipped step 10, you miss mpfr library (http://www.mpfr.org), which is required by CGAL.

Second error is causes by missing boost, guess it should be built during CGAL installation with makeCGAL script.
alexeym is offline   Reply With Quote

Old   October 10, 2016, 18:24
Default
  #3
Member
 
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11
Hillie is on a distinguished road
HI alexeym,

Thanks for your reply. From what I understand, Openfoam only needs CGAL (and therefore boost and gmp and mpfr ) for foamyhexmesh. Since I don't need foamyhexmesh and only the solvers can i compile without needing CGAL and the other lib's?
Hillie is offline   Reply With Quote

Old   October 10, 2016, 23:03
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Well,

Code:
$ pwd
$HOME/OpenFOAM/OpenFOAM-4.0
$ cd src
$ $ grep -rl CGAL *
renumber/Allwmake
$ cd ../applications/
$ grep -rl CGAL *
utilities/mesh/generation/Allwmake
...
utilities/mesh/generation/foamyMesh/...
...
So, yes; you need CGAL for foamy*Mesh apps; and boost for SloanRenumber library.

To skip foamy*Mesh build you just need to unset FOAMY_HEX_MESH environment variable (export -n FOAMY_HEX_MESH or comment out 'export FOAMY_HEX_MESH=yes' line in etc/bashrc).

To skip SloanRenumber build you need to unset BOOST_ARCH_PATH and set boost_version variable to something not equal to boost-system. This can be achieved by commenting out whole etc/config.sh/CGAL file. Or comment out 'wmake $targetType SloanRenumber' in src/renumber/Allwmake file.
alexeym is offline   Reply With Quote

Old   October 11, 2016, 01:41
Default
  #5
Member
 
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11
Hillie is on a distinguished road
Hi alexeym,

Thanks heaps, commenting out wmake $targetType SloanRenumber' did the trick. It is all running smoothly now.

Cheers
Hillie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] How to install foam-extend 4.0 in UBUNTU 18.04 silvino OpenFOAM Installation 19 June 21, 2022 16:57
[OpenFOAM.org] cant able to install openfoam 4.0 SCORPIO OpenFOAM Installation 1 February 24, 2018 19:12
[OpenFOAM.org] Installing OpenFOAM 4.0 on Fedora 23 JonW OpenFOAM Installation 6 June 13, 2017 15:29
error make SU2 4.0.1 Heathckliff SU2 Installation 2 November 9, 2015 06:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43


All times are GMT -4. The time now is 15:27.