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

[OpenFOAM.org] OpenFOAM 2.3.0 ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By roenby
  • 1 Post By brokoli4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2016, 12:38
Thumbs up OpenFOAM 2.3.0 ubuntu 16.04
  #1
Senior Member
 
FlyBob91's Avatar
 
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10
FlyBob91 is on a distinguished road
Is it possible to install OpenFOAM 2.3.0 on ubuntu 16.04?
FlyBob91 is offline   Reply With Quote

Old   November 29, 2016, 16:45
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick answer:
  • In theory: Yes.
  • In practice: Does it need to be 2.3.0? Can't it be 2.3.1 or 2.4.0?
edit: I could try it out myself, but you can also try this yourself. Follow the detailed instructions that were designed for 2.4.0 on Ubuntu 16.04: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 - but whenever it states 2.4.0, use 2.3.0.
__________________

Last edited by wyldckat; November 29, 2016 at 16:47. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   May 12, 2017, 19:21
Default Installation error of OpenFOAM 2.3.0 on Ubuntu 16.04
  #3
Member
 
Yeru
Join Date: Jul 2014
Location: UK
Posts: 36
Rep Power: 12
shang is on a distinguished road
Hi Bruno,

As suggested, I followed the tutorials in your thread to install OF230 on Ubuntu 16.04. But it appeared error when I build ParaView with Python and MPI (ie, step 3). The error message is as below (attached also find log.makePV.failed.txt):

Code:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MPI_EXTRA_LIBRARY (ADVANCED)
    linked by target "mpi4py.MPE" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "mpi4py.MPI" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-mpe" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt-mpi" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt-hyb" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py

-- Configuring incomplete, errors occurred!
See also "/home/yeru/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CMakeFiles/CMakeOutput.log".
See also "/home/yeru/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CMakeFiles/CMakeError.log".
    Starting make
make: *** No targets specified and no makefile found. Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2480maxresident)k
0inputs+0outputs (0major+142minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/yeru/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
make: *** No rule to make target 'install'. Stop.
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/home/yeru/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done
My computer's configurations are Dell Precision-T1600, Intel i7-3770, Quadro 600/PCIe/SSE2, Linux 4.4.0-77-generic (x86_64), Ubuntu 16.04.2 LTS, Unity.

Interestingly, when I tried to build without the flag of -mpi, the building process seemed proceed successfully. Do you know why -mpi flag caused the failure of build and whether the absence of -mpi can affect the performance of my installation?

Many thanks,
Yeru
Attached Files
File Type: txt log.makePV.failed.txt (65.9 KB, 3 views)
shang is offline   Reply With Quote

Old   May 27, 2017, 08:32
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick answer @Yeru: If you followed the instructions from https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - then the error message that you have gotten is because one of the fixes that use patch in 10.2 has failed.

Run the following command:
Code:
cd $WM_THIRD_PARTY_DIR/ParaView-4.1.0
Then check the contents of the files "Fix.patch" and "VTK/Fix2.patch" to see if they have legitimate source code changes or if it's HTML page stuff, like some error messages of some sort.

When running makeParaView4 without the "-mpi" option, that means that it has been built without MPI support. This is only needed if you are planning on using multi-core capabilities with ParaView itself.
wyldckat is offline   Reply With Quote

Old   November 1, 2017, 04:33
Default
  #5
Member
 
Johan Roenby
Join Date: May 2011
Location: Denmark
Posts: 93
Rep Power: 21
roenby will become famous soon enough
I have just installed OpenFOAM 2.2.0, 2.2.2, 2.3.1 and 3.0.1 on an Ubuntu 16.04 laptop. If I just follow the official instructions the OF installation fails with the first error being related to an "undefined reference to `yyFlexLexer::yywrap()'" when compiling PDRMesh. Following the instructions mentioned in this thread:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

this problem was solved (I guess due to step 11?) for all the above OF versions. The paraview patches in step 10 only worked for 2.3.1 and 3.0.1 since 2.2.0 and 2.2.2 use an older paraview version.

Thanks a lot for sharing.
wyldckat likes this.
roenby is offline   Reply With Quote

Old   November 17, 2017, 08:11
Default Successfull installation of OF231
  #6
New Member
 
Gerrit
Join Date: Nov 2017
Posts: 1
Rep Power: 0
brokoli4 is on a distinguished road
Quote:
Originally Posted by roenby View Post
I have just installed OpenFOAM 2.2.0, 2.2.2, 2.3.1 and 3.0.1 on an Ubuntu 16.04 laptop. If I just follow the official instructions the OF installation fails with the first error being related to an "undefined reference to `yyFlexLexer::yywrap()'" when compiling PDRMesh. Following the instructions mentioned in this thread:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

this problem was solved (I guess due to step 11?) for all the above OF versions. The paraview patches in step 10 only worked for 2.3.1 and 3.0.1 since 2.2.0 and 2.2.2 use an older paraview version.

Thanks a lot for sharing.

Thanks for sharing, too. Via this thread I managed to finally install OF231 following this
step by step instructions:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

roenby likes this.
brokoli4 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] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 titanium OpenFOAM Installation 14 February 20, 2020 12:46
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 MM_Khan OpenFOAM Installation 11 September 3, 2017 10:22
[OpenFOAM.org] OpenFoam v2.1.1 for Ubuntu 16.04 ErickMontesdeOca OpenFOAM Installation 1 July 20, 2016 16:53
Problems with OpenFOAM 2.3.0 on Ubuntu 14.04 smallzilla OpenFOAM Installation 15 September 14, 2014 13:11


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