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

[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By wyldckat
  • 1 Post By jlr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2018, 11:43
Default OpenFOAM 3.0.1 in Ubuntu 18.04
  #1
jlr
New Member
 
Join Date: Sep 2018
Posts: 6
Rep Power: 7
jlr is on a distinguished road
Hi,

I've been trying to install OpenFOAM 3.0.1 in Ubuntu 18.04 with no success... Unfortunately, there are still no instructions in openfoamwiki.net.

This is from the $WM_PROJECT_DIR/Allwmake log when attempting installing through the official instructions at https://openfoam.org/download/3-0-1-source/

Code:
ensight/part/ensightPart.C: In member function ‘bool Foam::ensightPart::isFieldDefined(const Foam::List<double>&) const’:
ensight/part/ensightPart.C:54:39: error: ‘isnan’ was not declared in this scope
             if (id >= field.size() || isnan(field[id]))
                                       ^~~~~
ensight/part/ensightPart.C:54:39: note: suggested alternative:
In file included from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/doubleFloat.H:32:0,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/floatScalar.H:38,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/scalar.H:39,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/IOstream.H:49,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/Ostream.H:39,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/OSstream.H:39,
                 from /opt/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/OFstream.H:38,
                 from lnInclude/ensightFile.H:36,
                 from ensight/part/ensightPart.H:40,
                 from ensight/part/ensightPart.C:26:
/usr/include/c++/7/cmath:639:5: note:   ‘std::isnan’
     isnan(_Tp __x)
     ^~~~~
/opt/OpenFOAM-3.0.1/wmake/rules/General/transform:8: recipe for target '/opt/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/src/conversion/ensight/part/ensightPart.o' failed
make: *** [/opt/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/src/conversion/ensight/part/ensightPart.o] Error 1
When following the wiki instructions for Ubuntu 16.04 at https://openfoamwiki.net/index.php/I...M-3.0.1/Ubuntu the same error occurs in the same line, and also twice in the file ensight/part/ensightPartIO.C

The wiki instructs running $WM_THIRD_PARTY_DIR/makeParaView4 before $WM_PROJECT_DIR/Allwmake. This also results in a compilation error

Code:
CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if):
  if given arguments:

    "gcc: error: ARGS: Ficheiro ou directoria inexistente
The last line says "ARGS: File or directory does not exist" in Portuguese.

I've also tried to follow some of the instructions for compiling OpenFOAM 2.3.1 for Ubuntu 18.04 at https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 for example changing the compiler to g++5, but it didn't have any success either.

Thank you in advance for any help provided

Last edited by jlr; December 21, 2018 at 06:39.
jlr is offline   Reply With Quote

Old   December 20, 2018, 13:13
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by jlr View Post
Hi,

I've been trying to install OpenFOAM 3.0.1 in Ubuntu 18.04 with no success... Unfortunately, there are still no instructions in openfoamwiki.net.


...



Thank you in advance for any help provided

The OpenFOAM version that you are trying to use is several years old and some of it will simply not compile with newer compilers. I'd suggest that you obtain a new version. OpenFOAM-v1812 is coming out today. The website (www.openfoam.com) is still being updated, but the source files are already available
https://sourceforge.net/projects/ope...s/files/v1812/

One of my coworkers compiled it from source on ubuntu 18.04 yesterday and had no issues.


Cheers,

/mark
olesen is offline   Reply With Quote

Old   December 21, 2018, 06:36
Default
  #3
jlr
New Member
 
Join Date: Sep 2018
Posts: 6
Rep Power: 7
jlr is on a distinguished road
I already use several versions of OpenFOAM for different projects who make use of custom code written for different versions. Right now, I need to use OpenFOAM 3.0.1.

It should be possible to compile since OpenFOAM 2.3.1, which is older, apparently can be compiled in Ubuntu 18.04 (I haven't tried it yet though)
jlr is offline   Reply With Quote

Old   December 22, 2018, 06:48
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@jlr: I've now finished writing and testing the instructions for building OpenFOAM 3.0.1 on Ubuntu 18.04, by relying on GCC 5: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04


@Mark: Congrats on the early release of v1812! In order for people to adhere always to the more recent versions, we'll need to make it easier to port their old inherited code to work with the more recent code, so please do keep up with the good work at: https://www.openfoam.com/documentati...rade-guide.php

But they'll also need to confirm if the results are still at least similar to the more recent versions, so we need a way to run tests with the older versions. Hence me having written up instructions for them at openfoamwiki.net along with the requests as they come in. That said, I am thinking of relying on AppImage in the future, but it's sometime away for me to do this...

Best regards,
Bruno
Daniel_Khazaei, jlr and stewaj5 like this.
wyldckat is offline   Reply With Quote

Old   January 3, 2019, 12:57
Default
  #5
jlr
New Member
 
Join Date: Sep 2018
Posts: 6
Rep Power: 7
jlr is on a distinguished road
I got it working! Thank you wyldckat!
wyldckat likes this.
jlr 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[OpenFOAM.org] Issues installing openfoam 6 on Ubuntu 18.04 rnburne OpenFOAM Installation 2 October 20, 2018 16:29
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
OpenFOAM Foundation releases OpenFOAMŪ 3.0.1 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 3 January 4, 2016 17:15


All times are GMT -4. The time now is 04:12.