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

[OpenFOAM.org] Openfoam 4.1 for Ubuntu 18.04

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2018, 22:42
Default Openfoam 4.1 for Ubuntu 18.04
  #1
New Member
 
mark frasca
Join Date: Oct 2018
Posts: 2
Rep Power: 0
mfrasca is on a distinguished road
Hi all

I wish to install Openfoam 4.1 so that I can run HELYX-OS on my laptop. What is the easiest way I can install it on Ubuntu 18.04? I don't believe install files are available for this.

thanks

M.
mfrasca is offline   Reply With Quote

Old   October 20, 2018, 15:29
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,909
Blog Entries: 42
Rep Power: 119
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: Please try the instructions that currently exist for Ubuntu 16.04... if they don't work for 18.04, please let me know and I'll try to do a quick build to see what's broken. Or if you attach the log files as indicated in the instructions, it'll save me some time by diagnosing the log files directly, instead of having to wait an hour or two for it to build.

Either way, I suggest you try and install OpenFOAM 4.x instead, because it has additional bug fixes beyond 4.1: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04
__________________
wyldckat is offline   Reply With Quote

Old   October 22, 2018, 01:47
Default log.makePV
  #3
New Member
 
mark frasca
Join Date: Oct 2018
Posts: 2
Rep Power: 0
mfrasca is on a distinguished road
Hi again,

Ran through the instructions and build failed at Step 9.2,

Command;

Code:
./makeParaView -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
File log.makePV has the following errors... below.

thanks

mark

Code:
Python information:
     executable     : /usr/bin/python
     version        : 2.7
     include path   : /usr/include/python2.7
     library        : /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0

ParaView_SOURCE_DIR=/home/mark/OpenFOAM/ThirdParty-4.x/ParaView-5.0.1
ParaView_BINARY_DIR=/home/mark/OpenFOAM/ThirdParty-4.x/build/linux64Gcc/ParaView-5.0.1
ParaView_DIR=/home/mark/OpenFOAM/ThirdParty-4.x/platforms/linux64Gcc/ParaView-5.0.1
sed: can't read
/home/mark/OpenFOAM/ThirdParty-4.x/ParaView-5.0.1/VTK/Utilities/kwsys/kwsysDateStamp.cmake: 
No such file or directory
date-stamp:

Build stages selected
---------------------
     -config   true
     -make     true
     -install  true
---------------------
Features selected
     mesa      false
     mpi       true
     python    true
     qt        true
---------------------
Version information
     qt        4.8.7
     version   5.0.1
     major     5.0
     build     Release
MISMATCH!
     specified 5.0.1
     found
---------------------
----
Configuring paraview-5.0.1 (major version: 5.0)
     MPI    support : true
     Python support : true
     MESA   support : false
     Qt dev support : true
     Source         : /home/mark/OpenFOAM/ThirdParty-4.x/ParaView-5.0.1
     Build          : 
/home/mark/OpenFOAM/ThirdParty-4.x/build/linux64Gcc/ParaView-5.0.1
     Target         : 
/home/mark/OpenFOAM/ThirdParty-4.x/platforms/linux64Gcc/ParaView-5.0.1
     Build type     : Release
----

cmake
-DCMAKE_INSTALL_PREFIX:PATH=/home/mark/OpenFOAM/ThirdParty-4.x/platforms/linux64Gcc/ParaView-5.0.1
-DBUILD_SHARED_LIBS:BOOL=ON VTK_USE_RPATH:BOOL=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_USE_MPI=ON VTK_USE_MPI=ON -DVTK_MPI_MAX_NUMPROCS=32 -DPARAVIEW_ENABLE_PYTHON=ON -DPYTHON_INCLUDE_PATH=/usr/include/python2.7
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
-DPARAVIEW_BUILD_QT_GUI=ON -DCMAKE_BUILD_TYPE:STRING=Release
/home/mark/OpenFOAM/ThirdParty-4.x/ParaView-5.0.1

----

-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Could not use git to determine source version, using version 5.0.1
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.7", minimum required is "4.7.0")
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
-- Performing Test HAVE_GCC_VISIBILITY
-- Performing Test HAVE_GCC_VISIBILITY - Success CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if):
   if given arguments:

     "gcc: error: ARGS: No such file or directory

   gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0

   Copyright (C) 2017 Free Software Foundation, Inc.

   This is free software" " see the source for copying conditions. There is
   NO

   warranty" " not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
   PURPOSE.



   " "VERSION_GREATER" "4.2.0" "AND" "BUILD_SHARED_LIBS" "AND"
   "HAVE_GCC_VISIBILITY" "AND" "VTK_USE_GCC_VISIBILITY" "AND" "NOT" "MINGW"
   "AND" "NOT" "CYGWIN"

   Unknown arguments specified
Call Stack (most recent call first):
   VTK/CMakeLists.txt:282 (include)


-- Configuring incomplete, errors occurred!
See also
"/home/mark/OpenFOAM/ThirdParty-4.x/build/linux64Gcc/ParaView-5.0.1/CMakeFiles/CMakeOutput.log".
See also
"/home/mark/OpenFOAM/ThirdParty-4.x/build/linux64Gcc/ParaView-5.0.1/CMakeFiles/CMakeError.log".

Last edited by wyldckat; October 24, 2018 at 17:21. Reason: Added [CODE][/CODE] markers
mfrasca is offline   Reply With Quote

Old   October 24, 2018, 17:25
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,909
Blog Entries: 42
Rep Power: 119
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: OK, if you're in a hurry, then please skip to step #10 and continue with compiling.
I'll look into this problem with building ParaView, because there are two problems:
  1. The CMake version in 18.04 is too recent for ParaView 5.0.1, so I'll need to look better into how to build a custom one... which I can't remember if in OpenFOAM 4.1 it is straight forward or not...
  2. The very first error is because GCC 7 is not supported for building ParaView 5.0.1... so I'll have to revise the instructions to either use an older GCC version or to unlock the check line that is restricting to GCC 5/6...
wyldckat is offline   Reply With Quote

Old   October 27, 2018, 18:14
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,909
Blog Entries: 42
Rep Power: 119
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: I've finally tested building OpenFOAM 4.x on Ubuntu 18.04 and the instructions are now available here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

The fix needed for building ParaView can be applied with this command:
Code:
sed -ibck -e 's/\[3456\]/[34567]/' ParaView-5.0.1/VTK/CMake/{GenerateExportHeader,vtkCompilerExtras}.cmake
Thanks to this post indicating that we can still build the old ParaView 5.0.1 with GCC 7:
Quote:
Originally Posted by sandeep.pandey View Post
This continues in OpenFOAM 4.1 with Ubuntu 17.10 with default gcc version 7.x, therefore, I follow your instructions and just added: "7" after "3456" in both the files and surprisingly it works! Thanks
This way it's not necessary to use an older GCC version
wyldckat is offline   Reply With Quote

Old   June 3, 2019, 08:39
Default
  #6
Member
 
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 35
Rep Power: 2
priyankap is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Please try the instructions that currently exist for Ubuntu 16.04... if they don't work for 18.04, please let me know and I'll try to do a quick build to see what's broken. Or if you attach the log files as indicated in the instructions, it'll save me some time by diagnosing the log files directly, instead of having to wait an hour or two for it to build.

Either way, I suggest you try and install OpenFOAM 4.x instead, because it has additional bug fixes beyond 4.1: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04



Hello wyldckat,


I followed the steps from the link you shared to install OpenFOAM 4.x in Ubuntu 18.04. It installed successfully without any error.



I tried to run Cavity case from incompressible/icoFoam and that also ran successfully.


Now, I want to use chtMultiregionSimpleFoam from tutorials/heatTransfer, But when I try to run this solver it gives me an error that
Code:
 chtMultiregionSimpleFoam not found
.

I don't know if I have done something wrong while installing it

OR
are there some additional steps I need to perform in order to use this solver?


Note: All other solvers run without errors.



It would be really kind of you if you could help me in this.


Thanks
priyankap is offline   Reply With Quote

Old   June 16, 2019, 15:31
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,909
Blog Entries: 42
Rep Power: 119
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: "chtMultiregionSimpleFoam" is incorrect, the "Region" name is with an upper case "R".
priyankap likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 13, 2019, 05:31
Default
  #8
New Member
 
AIf1
Join Date: Aug 2019
Posts: 2
Rep Power: 0
AIf1 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I've finally tested building OpenFOAM 4.x on Ubuntu 18.04 and the instructions are now available here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

The fix needed for building ParaView can be applied with this command:
Code:
sed -ibck -e 's/\[3456\]/[34567]/' ParaView-5.0.1/VTK/CMake/{GenerateExportHeader,vtkCompilerExtras}.cmake
Thanks to this post indicating that we can still build the old ParaView 5.0.1 with GCC 7:

This way it's not necessary to use an older GCC version
Hi. Thanks for the valuable guide. I have installed ubuntu 18.04 and OF6. Then after linking to HelyxOs i tried to mesh a box. But i get blockmesh not found error. Been redoing installation for past 2 days but keep getting same error
AIf1 is offline   Reply With Quote

Old   August 15, 2019, 18:52
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,909
Blog Entries: 42
Rep Power: 119
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quote:
Originally Posted by AIf1 View Post
Then after linking to HelyxOs i tried to mesh a box. But i get blockmesh not found error. Been redoing installation for past 2 days but keep getting same error
Quick questions:
  1. Go to the command line, activate the OpenFOAM environment you built/installed and then run:
    Code:
    blockMesh
    the "M" must be upper case. Does it still give you the same error message?
  2. If it's a matter of configuring Helyx-OS, then go to the menu Edit -> Preferences and configure the paths to the installation folders where OpenFOAM and ParaView are installed at. Take a look at the installation instructions given here: https://openfoamwiki.net/index.php/I...tu_16.04_64bit - look at steps #11 and #12. You can find the installation path to ParaView by running this command:
    Code:
    which paraview
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2019, 22:41
Default
  #10
New Member
 
AIf1
Join Date: Aug 2019
Posts: 2
Rep Power: 0
AIf1 is on a distinguished road
Hi. Thanks for replying. I can execute blockMesh command in terminal without error. I have tried the path locations more than 7 times, but same error. PV can be launched easily by clicking PV button in helyx os. Tried ubuntu 18 earlier with Of6 and now ubuntu 16 with Of41. Same error. My ubuntu is on Oracle virtual box.
Last year i did not have problem at all using helyx os, but i was not using Virtual box. (Old laptop corrupted disk and i hate to dual boot nowadays.)
AIf1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 22 October 20, 2018 16:03
[OpenFOAM.org] OpenFOAM 4.1 on Fedora 24 JonW OpenFOAM Installation 5 November 10, 2017 08:57
icoLagrangianFoam for OpenFoam 4.1 Gholinejad OpenFOAM Programming & Development 0 November 13, 2016 10:50
OpenFOAM 4.1 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 October 13, 2016 06:42
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50


All times are GMT -4. The time now is 13:45.