|
[Sponsors] |
October 14, 2018, 23:42 |
Openfoam 4.1 for Ubuntu 18.04
|
#1 |
New Member
mark frasca
Join Date: Oct 2018
Posts: 2
Rep Power: 0 |
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. |
|
October 20, 2018, 16:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
October 22, 2018, 02:47 |
log.makePV
|
#3 |
New Member
mark frasca
Join Date: Oct 2018
Posts: 2
Rep Power: 0 |
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 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 18:21. Reason: Added [CODE][/CODE] markers |
|
October 24, 2018, 18:25 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
|
|
October 27, 2018, 19:14 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 This way it's not necessary to use an older GCC version |
|
June 3, 2019, 09:39 |
|
#6 | |
Member
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7 |
Quote:
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 |
||
June 16, 2019, 16:31 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: "chtMultiregionSimpleFoam" is incorrect, the "Region" name is with an upper case "R".
__________________
|
|
March 16, 2021, 11:05 |
|
#8 |
Senior Member
julien
Join Date: Dec 2018
Posts: 107
Rep Power: 8 |
Hello,
I try to install Helyx OS on ubuntu 20.04. I have follow the installation guide for ubuntu 18.04 (https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04). It fails during the step 10.2 See the attached log.make Is there an other way to install helyx OS on ubuntu 20.04? Best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
[OpenFOAM.org] OpenFOAM 4.1 on Fedora 24 | JonW | OpenFOAM Installation | 5 | November 10, 2017 09:57 |
icoLagrangianFoam for OpenFoam 4.1 | Gholinejad | OpenFOAM Programming & Development | 0 | November 13, 2016 11:50 |
OpenFOAM 4.1 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 0 | October 13, 2016 07:42 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |