|
[Sponsors] |
[OpenFOAM.org] Installing OpenFOAM 4.0 on OpenSuse 13.2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 2, 2016, 08:06 |
Installing OpenFOAM 4.0 on OpenSuse 13.2
|
#1 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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 |
|
July 4, 2016, 11:41 |
|
#2 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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 |
|
July 4, 2016, 23:41 |
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
July 5, 2016, 11:56 |
|
#4 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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 |
|
July 5, 2016, 12:08 |
|
#5 |
Senior Member
|
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 |
|
July 5, 2016, 12:27 |
|
#6 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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 |
|
July 5, 2016, 16:52 |
|
#7 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
July 6, 2016, 08:47 |
|
#8 |
Member
Joćo Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 12 |
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 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 I used this method and it worked, I hope it helps you as well |
|
July 6, 2016, 21:51 |
|
#9 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
July 23, 2016, 07:55 |
|
#10 | |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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:
M Ridzon |
||
July 23, 2016, 09:30 |
|
#11 |
Member
Joćo Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 12 |
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? |
|
July 24, 2016, 11:31 |
|
#12 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
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 |
|
|
|
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 15:29 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 20:00 |
Installing OpenFOAM 1.7.0 on openSUSE and CentOS 5.5 | hz283 | OpenFOAM Installation | 2 | January 2, 2013 18:27 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 07:28 |