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

[foam-extend.org] Foam Extend 3.2 in ubuntu 16.04 LTS

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By thegauravonline
  • 3 Post By wyldckat
  • 1 Post By codder

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2016, 13:58
Default Foam Extend 3.2 in ubuntu 16.04 LTS
  #1
New Member
 
Jedrzej Mosiezny
Join Date: Apr 2016
Posts: 3
Rep Power: 10
JMosiezny is on a distinguished road
Good morning. I am experiencing a similar issue in my case.

I was following the instroctions from the website: https://openfoamwiki.net/index.php/I...oam-extend-3.2. and all I get after a couple of hours build is "command not found error" while trying to execute for example icoFoam.

I am usnig Ubuntu 16.04 x64 and to be quite honest I installed it for the sake purpose of using OpenFoam (ver 3.0.1 works perfectly fine) and FoamExtend and feel quite helpless while reading thru logfile

Because the tarball exceeds the filesize limit I hosted the file on my OneDrive and shortened the link with google URL shortener:
https://goo.gl/3ZU8vG

The log itself has around 15MB and the tarball is around 900kB

Thank You
JMosiezny is offline   Reply With Quote

Old   June 13, 2016, 03:46
Default Foam Extend 3.2 in ubuntu 16.04 LTS
  #2
Member
 
thegauravonline's Avatar
 
GS
Join Date: Mar 2016
Posts: 81
Rep Power: 10
thegauravonline is on a distinguished road
I want to install foam extend 3.2 on Ubuntu 16.04 LTS
the methods for 14.04 or 15.10 are not succeeding.


Also, Is there any way i can use Paraview 5.0.0 using paraFoam command in fe32?

Thank You very much!!
ilhado likes this.
thegauravonline is offline   Reply With Quote

Old   June 14, 2016, 03:27
Default No guide for Foam Xtend installation in Ubuntu 16.04
  #3
Member
 
thegauravonline's Avatar
 
GS
Join Date: Mar 2016
Posts: 81
Rep Power: 10
thegauravonline is on a distinguished road
I want to install foam extend 3.2 on Ubuntu 16.04 LTS
the methods for 14.04 or 15.10 given in wiki link are not a success.

foamInstallationTest
Code:
foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               iitmech4
OS:                 Linux version 4.4.0-24-generic
-------------------------------------------------------------------------------


Checking main foam-extend env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/iitmech4/foam                      yes       yes
$WM_PROJECT_USER_DIR /home/iitmech4/foam/iitmech4-3.2         no        no
$WM_THIRD_PARTY_DIR  ...ech4/foam/foam-extend-3.2/ThirdParty  yes       yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/iitmech4/foam/foam-extend-3.2      yes  yes  yes

$FOAM_APPBIN         ...3.2/applications/bin/linux64GccDPOpt  no        yes
$FOAM_SITE_APPBIN    ...h4/foam/site/3.2/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...3.2/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              .../iitmech4/foam/foam-extend-3.2/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         .../foam-extend-3.2/lib/linux64GccDPOpt  no        yes
$FOAM_SITE_LIBBIN    ...h4/foam/site/3.2/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...oam/iitmech4-3.2/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH       --------- env variable not set ---------            yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of foam-extend
         Supplied version: 4.3.3
         User version    : 5.3.1
         Minimum required: 4.3.1

gcc      5.3.1    
WARNING:  Conflicting installations:
          foam-extend settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.6       /bin/gzip                                                
tar      1.28      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          foam-extend settings        : /home/iitmech4/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult 
the installation guide for trouble shooting.

done.
I can't run blockMesh and other commands.

Also, Is there any way i can use Paraview 5.0.0 using paraFoam command in fe32?

Thank You very much!!

Last edited by wyldckat; June 18, 2016 at 17:46. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE]
thegauravonline is offline   Reply With Quote

Old   June 17, 2016, 09:09
Default
  #4
Member
 
thegauravonline's Avatar
 
GS
Join Date: Mar 2016
Posts: 81
Rep Power: 10
thegauravonline is on a distinguished road
Quote:
Originally Posted by JMosiezny View Post
Good morning. I am experiencing a similar issue in my case.

I was following the instroctions from the website: https://openfoamwiki.net/index.php/I...oam-extend-3.2. and all I get after a couple of hours build is "command not found error" while trying to execute for example icoFoam.

I am usnig Ubuntu 16.04 x64 and to be quite honest I installed it for the sake purpose of using OpenFoam (ver 3.0.1 works perfectly fine) and FoamExtend and feel quite helpless while reading thru logfile

Because the tarball exceeds the filesize limit I hosted the file on my OneDrive and shortened the link with google URL shortener:
https://goo.gl/3ZU8vG

The log itself has around 15MB and the tarball is around 900kB

Thank You
Did you get to install fe32 in 16.04??
thegauravonline is offline   Reply With Quote

Old   June 17, 2016, 13:20
Default
  #5
New Member
 
Jedrzej Mosiezny
Join Date: Apr 2016
Posts: 3
Rep Power: 10
JMosiezny is on a distinguished road
Nope. I postponed the task of building FE3.2 after posting here.

Luckilly I doscovered that on OF version 3.0.1 has embedded MRF Properties in rhoPimpleFoam solver and for now I don't need FE3.2

I think I will reach for someones support for this topic in person while OFW11.

Best Regards
JJ
JMosiezny is offline   Reply With Quote

Old   June 18, 2016, 11:02
Default
  #6
Member
 
thegauravonline's Avatar
 
GS
Join Date: Mar 2016
Posts: 81
Rep Power: 10
thegauravonline is on a distinguished road
Quote:
Originally Posted by JMosiezny View Post
Nope. I postponed the task of building FE3.2 after posting here.

Luckilly I doscovered that on OF version 3.0.1 has embedded MRF Properties in rhoPimpleFoam solver and for now I don't need FE3.2

I think I will reach for someones support for this topic in person while OFW11.

Best Regards
JJ
Fortunate for you!!

Well i have solved the issue.
I built FE3.2 in 14.04 in other machine and copied all the data in my machine(16.04) and did proper aliasing and Environment Setting.

Fortunately, this is working fine for me. FE32 is working now in 16.04.

though, can't manage to call Paraview 5.0 using paraFoam command.

Last edited by wyldckat; June 18, 2016 at 17:47. Reason: merged posts that were related
thegauravonline is offline   Reply With Quote

Old   June 18, 2016, 17:48
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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: I've tested and added the instructions here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

The missing critical detail is that the following command has to be executed before running Allwmake this:
Code:
find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='
edit: As for ParaView 5.0, it's easier to install the binary package and follow the idea that is given here: http://www.cfd-online.com/Forums/blo...-openfoam.html
__________________

Last edited by wyldckat; June 18, 2016 at 17:49. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   June 20, 2016, 13:04
Default thanks that fixed flex
  #8
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 13
codder is on a distinguished road
Follewed appended wiki page on 16.04. I have the following problem.

Apoligies I may be doing something stupid, usually am:

Code:
~/foam/foam-extend-3.2/tutorials/incompressible/icoFoam$ ./Allrun 
Running blockMesh on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavity
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavity
Cloning cavityFine case from cavity
Running blockMesh on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityFine
Running mapFields from cavity to cavityFine
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityFine
Running blockMesh on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityGrade
Running mapFields from cavityFine to cavityGrade
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityGrade
Cloning cavityHighRe case from cavity
Setting cavityHighRe to generate a secondary vortex
Copying cavity/0* directory to cavityHighRe
Running blockMesh on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityHighRe
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityHighRe
Running blockMesh on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityClipped
Running mapFields from cavity to cavityClipped
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavityClipped
fluentMeshToFoam: converting mesh elbow/elbow.msh
Running icoFoam on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/elbow
Running foamMeshToFluent on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/elbow
Running foamDataToFluent on /home/eric/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/elbow
~/foam/foam-extend-3.2/tutorials/incompressible/icoFoam$ cd cavity
~/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavity$ ls
0  constant  log.blockMesh  log.icoFoam  system
~/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavity$ cat log.blockMesh 
blockMesh: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory
~/foam/foam-extend-3.2/tutorials/incompressible/icoFoam/cavity$ cat log.icoFoam 
icoFoam: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory
Then I tried:

Code:
sudo ln -s /usr/lib/libmpi.so.12 /usr/lib/libmpi.so.1
... and it works! Google is such a friend
ripudaman likes this.
codder is offline   Reply With Quote

Old   June 28, 2016, 19:45
Default
  #9
New Member
 
Jedrzej Mosiezny
Join Date: Apr 2016
Posts: 3
Rep Power: 10
JMosiezny is on a distinguished road
Hello All,

I had no chance to test the procedure for foam-extend-3.2 but...

I got my hands to foam-extend-4.0 and managed to build the software according to the instructions for version 3.2. The compilation is really quick: in my case 5hrs compared to overnight build for fe-3.2.

Best Regards.
JJ
JMosiezny is offline   Reply With Quote

Old   August 4, 2016, 05:19
Default
  #10
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hello,

I can't find foam-extend-4.0, where to download foam-extend-4.0 ?

regards,

T.D.
T.D. is offline   Reply With Quote

Old   August 7, 2016, 18:33
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Quote:
Originally Posted by T.D. View Post
I can't find foam-extend-4.0, where to download foam-extend-4.0 ?
Quick answer: "nextRelease" branch of foam-extend 3.2. 4.0 it's still on a pre-release state, which was released for the OFW11.

  1. Use one of the git clone commands from here: https://openfoamwiki.net/index.php/I...om_source_code - and rename the final name to "foam-extend-4.0"
  2. Then go into the "foam-extend-4.0" folder and run:
    Code:
    git checkout nextRelease
__________________
wyldckat is offline   Reply With Quote

Old   August 25, 2016, 12:40
Default
  #12
Member
 
Dan Kokron
Join Date: Dec 2012
Posts: 33
Rep Power: 13
dkokron is on a distinguished road
This 'sed' hack also works on fedora 22.

Thanks Bruno.
dkokron is offline   Reply With Quote

Old   August 25, 2016, 17:26
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Dan,

Any chance you could also provide the list of system packages you used in Fedora 22? Did you use the same ones from some other instruction list or did you already had the packages you needed installed?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 29, 2016, 09:46
Default
  #14
New Member
 
Join Date: Aug 2016
Posts: 5
Rep Power: 10
sihai is on a distinguished road
I resolve the 'libmpi.so.1: cannot open shared object file: No such file or directory' problem by using your method after updating to 16.04, thanks a lot!
sihai is offline   Reply With Quote

Old   September 1, 2016, 16:41
Default
  #15
Member
 
Dan Kokron
Join Date: Dec 2012
Posts: 33
Rep Power: 13
dkokron is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Dan,

Any chance you could also provide the list of system packages you used in Fedora 22? Did you use the same ones from some other instruction list or did you already had the packages you needed installed?

Best regards,
Bruno
I didn't have to install any 'extra' packages for fe-3.2 on this box, though I've been using this box for OpenFOAM simulations going back to 2.1.x.

The general steps I took to get fe-3.2 built on this box.

https://openfoamwiki.net/index.php/I...om_source_code
git clone git://git.code.sf.net/p/foam-extend/foam-extend-3.2
edit etc/bashrc, etc/settings
copy etc/prefs.sh-EXAMPLE tp etc/prefs.sh
edit etc/prefs.sh (already have OpenMPI, CMake, Python, HWLOC, Paraview, bison, flex, Qt)
find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_V ERSION < 6 \&\& \1='
sed -iold -e "s=\-liberty==" wmake/rules/*/general
dkokron is offline   Reply With Quote

Old   December 9, 2017, 09:20
Default System OpenMPI should work without additional tweaks
  #16
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
The libmpi.so issue should not appear if you set up the system openmpi properly in bashrc and prefs.sh. It works for me on Debian Stretch with package libopenmpi2. Here's how libmpi.so is linked in the system installation:

/usr/lib/x86_64-linux-gnu/libmpi.so -> /etc/alternatives/libmpi.so
/etc/alternatives/libmpi.so -> /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so -> /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so.20.0.2 (this is the actual library, the others are just symbolic links).

Here's my fe4.0 setup (works for fe-3 as well)...

In bashrc:

Code:
# For AllMake.stage2
#export WM_THIRD_PARTY_USE_OPENMPI_188=1
export WM_THIRD_PARTY_USE_OPENMPI_188=0
.
.
.
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI | MVAPICH2
#: ${WM_MPLIB:=OPENMPI}; export WM_MPLIB
: ${WM_MPLIB:=SYSTEMOPENMPI}; export WM_MPLIB
Note that whatever you write in bashrc is usually overridden by the prefs.sh options and I haven't tested whether the 188 statement is really necessary, but I'd rather be consistent if only to show clearly in all setup files we're using the system openmpi.

Now in prefs.sh:

Code:
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
#
export OPENMPI_LIB_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:libdirs`"
export OPENMPI_INCLUDE_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:incdirs`"
export OPENMPI_COMPILE_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
export OPENMPI_LINK_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:link`"
.
.
.
#
# For AllMake.stage2
#export WM_THIRD_PARTY_USE_OPENMPI_188=1
#export WM_THIRD_PARTY_USE_OPENMPI_188_ConfigureAdditionalArgs='--enable-mpi-cxx --with-verbs'

Last edited by ziad; December 11, 2017 at 11:54.
ziad 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[foam-extend.org] paraview not runing? (foam extended 3.2 and ubuntu 15.04) Milan2013 OpenFOAM Installation 23 April 20, 2017 06:49
[OpenFOAM.org] Install openFOAM 3.0.1 in Ubuntu 16.04 LTS from Deb packs Pier84 OpenFOAM Installation 4 June 18, 2016 17:22
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


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