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

[OpenFOAM.org] Installing OpenFOAM 4.0 on OpenSuse 13.2

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By jmdf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2016, 07:06
Default Installing OpenFOAM 4.0 on OpenSuse 13.2
  #1
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
I'm getting ready to install OpenFOAM 4.0 on my Linux OpenSuse 13.2 system. I previously installed OpenFOAM 2.3.1 with the great help of this following website:

http://openfoamwiki.net/index.php/In...#openSUSE_13.2

I can't seem to find a similar site for OpenFOAM 4.0. Can anybody point me to it?

Thanks in advance,
M Ridzon
m_ridzon is offline   Reply With Quote

Old   July 4, 2016, 10:41
Default
  #2
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
UPDATE: I followed the instructions on the official OpenFOAM Foundation download site. Although a few steps were slightly unclear or missing small details, I was able to successfully get through the v4.0 installation. It was probably helpful that I had done it a few other times for previous versions.

By the way...the instructions on the official site are getting better! I remember installing v2.3.1 a couple years ago. It was my first time ever installing OpenFOAM and the instructions were sketchy at best. The newer instructions have been improved some! Yay!

M Ridzon
m_ridzon is offline   Reply With Quote

Old   July 4, 2016, 22:41
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, Matt,

Just got OF-4.0 and tried to compile on openSuSe 13.2. failed due to cgal. OF uses system cgal, but cannot find some files to include. Wondering how you resolved this issue.

Thanks!

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   July 5, 2016, 10:56
Default
  #4
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
Pei-Ying,

I have no idea what CGAL is, other than it is somehow intertwined with OF and necessary to run it. I'm no expert on this, so take my advice with caution. I can only share what I know (or think I know).

I didn't run into any issues with CGAL. But I think it's because I had previously dealt with it while installing versions 2.3.1 and 2.4.0. The following link addresses the 2.3.1 installation.

http://openfoamwiki.net/index.php/In...#openSUSE_13.2

Step 2 of the 13.2 installation instructions, discusses installing necessary packages, one being CGAL, for the subsequent OF installation. Then Step 9 discusses a few other things in order to use the system's CGAL installation.

Take a look at those things and see if it might help you out.

M Ridzon
m_ridzon is offline   Reply With Quote

Old   July 5, 2016, 11:08
Default
  #5
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Pei-Ying, M Ridzon,

I used the same strategy and tried the suggestion in step 9 on the wiki, which solved a few of the compilation issues, but I am still stuck with CGAL and hence foamyHexMesh not being able to compile.

It almost looks like some files got renamed, but I am not sure.

Regards,
Tom
tomf is offline   Reply With Quote

Old   July 5, 2016, 11:27
Default
  #6
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
My apologies...I guess I should be clear that I did NOT try to compile v4.0 foamyHexMesh. The OF download site said it was optional, so I moved right past it to the next thing.

M Ridzon
m_ridzon is offline   Reply With Quote

Old   July 5, 2016, 15:52
Default
  #7
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks Tom and Matt!

Still stuck with CGAL. I had no trouble compiling OF-3.0.x. So, somehow the script changed.

Will try few more times. If not successful, might have to try Ubuntu 16.4 later.

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   July 6, 2016, 07:47
Default
  #8
Member
 
Joćo Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 11
jmdf is on a distinguished road
Hi,

if you set the script to compile CGAL instead of use the system, it should work.
Change the file:
Code:
OpenFOAM-4.0/etc/config.sh/CGAL
Instead of "CGAL-system" use "CGAL-4.8".

After that download CGAL, make sure you are at the ThirdParty-4.0 folder:
Code:
cd $WM_THIRD_PARTY_DIR
wget -O CGAL-4.8.tar.xz https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.8/CGAL-4.8.tar.xz
Then run the Allwmake script on third party folder.

I used this method and it worked, I hope it helps you as well
tomf, phsieh2005 and thab like this.
jmdf is offline   Reply With Quote

Old   July 6, 2016, 20:51
Smile
  #9
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, Joćo,

Thanks! This is the solution I am looking for. OF-4.x compiled without any problem on OpenSUSE 13.2.

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   July 23, 2016, 06:55
Default
  #10
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
I finally got a moment to set back down at my machine to get a closer look at my CGAL installation. Without taking the extra steps mentioned by JMDF, I re-ran Allwmake on the ThirdParty-4.0 folder. I reviewed the terminal output and noticed that it ran successfully with no problems. CGAL compiled. So I'm not sure what might be unique about my system, but it doesn't appear that I need JMDF's alternative, which was mentioned as...

Quote:
if you set the script to compile CGAL instead of use the system, it should work.
Change the file:
Code:

OpenFOAM-4.0/etc/config.sh/CGAL

Instead of "CGAL-system" use "CGAL-4.8".
On my system, CONFIG.SH/CGAL is set as CGAL_VERSION=CGAL-SYSTEM. Perhaps my system is already running CGAL-4.8. Not sure. I don't know how I would check such a thing. However, I guess everyone herein has 4.0 up and running, so it is probably a moot point.

M Ridzon
m_ridzon is offline   Reply With Quote

Old   July 23, 2016, 08:30
Default
  #11
Member
 
Joćo Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 11
jmdf is on a distinguished road
It's possible to have the required CGAL already installed on the system. I compiled this version of openfoam on a machine with CentOS 6.2 which does not have the minimal required CGAL version. The way I found to solve it was to compile that version using the scripts provided with openfoam.

There are several ways to do it and this one seems to me the most straight forward/easy solution. Anyway, if you have the env variable "CGAL_ARCH_PATH" (if i'm not mistaken) correctly set openfoam will be compiled without any problem. Despite the way CGAL was compiled or installed.

Just out of curiosity, can you check the CGAL version you have in your system?
jmdf is offline   Reply With Quote

Old   July 24, 2016, 10:31
Default
  #12
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
JMDF,

My apologies, but I'm outside of my expertise here since I have no idea how to check the CGAL version or even what CGAL does. (I'm still fairly new in Linux and OpenFOAM and only know that CGAL is somehow intertwined with OpenFOAM) If you tell me how to check the CGAL version, I'd be happy to share that with you. Is there a command I can issue in the terminal window that would reveal it?

M Ridzon
m_ridzon 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
[OpenFOAM.org] Installing OpenFOAM 4.0 on Fedora 23 JonW OpenFOAM Installation 6 June 13, 2017 14:29
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
Installing OpenFOAM 1.7.0 on openSUSE and CentOS 5.5 hz283 OpenFOAM Installation 2 January 2, 2013 17:27
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 06:28


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