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

[foam-extend.org] NEW: Installation guide for foam-extend 4.1 on OpenFoamWiki

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2020, 12:37
Default
  #21
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Hi Sita,

I'm confused now.

If you are installing on Ubuntu 18.04.LTS, then there is no need to set up the prefs.sh with the compiler. 18.04 uses gcc-7 and g++7 as default (unless you have installed 8 or 9 manually).

Can you write here what exactly you are doing and what the output is? If you follow the instructions for 18.04 as per the wiki, it should work.



Quote:
Originally Posted by sita View Post
Hi Torsten,

In the end I decided to delete everything and start from scratch (Ubuntu 18-04). Unfortunately I'm running into the exact same errors again (foam-extend can't find OpenMPI, paraFoam not working, etc.). So, when you wrote



did you mean that, when following the instructions in the Wiki, prefs.sh will be created? In my case it wasn't, I'm afraid. I'll start over once more, with a manually created prefs.sh this time, hopefully that'll improve things.

If you have any ideas as to what I'm doing wrong, please let me know.

Thanks,
Sita


EDIT: just to be sure, I set export QT_THIRD_PARTY=1. In that case, the QT ThirdParty scripts are supposed to take care of setting QT_DIR and QT_BIN_DIR, but still I got the message: QT_BIN_DIR not set ..... Proceed without compiling ParaView? What's happening here?
tschenkel is offline   Reply With Quote

Old   February 4, 2020, 01:47
Default
  #22
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Torsten,

Sorry, I should have used two separate posts probably.

What I did first was follow the instructions in the Wiki (so without creating a prefs.sh file). First thing that went wrong was that during running Allwmake.firstinstall I got this message about QT_BIN_DIR not being set, and did I want to continue without installing ParaView. I chose yes, deciding to deal with ParaView later. When the script finished running, I tested the install by entering "icoFoam -help", and got the same error that I got earlier, about missing OpenMPI library files.

Next, thinking that perhaps I had misunderstood your comment about prefs.sh being created automatically, I started from scratch again, but this time created a prefs.sh file before running Allwmake.firstinstall. Remembering the trouble I encountered earlier, with my system Qt4 install, I chose to go for the Third Party Qt. Following the instructions in the example prefs.sh, I only uncommented the line "export QT_THIRD_PARTY=1". This led to the error that I mentioned in the edit of my previous post, so I started over one last time, this time with the system Qt. This still gives the same OpenMPI error (which I sort of expected, as I didn't touch the OpenMPI settings in prefs.sh):

Code:
icoFoam: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory
So apparently no Third Party OpenMPI was installed. Also, a Third Party ParaView wasn't installed, and I still get

Code:
Cannot use ParaView reader module library (PVFoamReader)
The PV_PLUGIN_PATH environment value is not set

Continuing with builtin reader:  paraFoam -vtk

Created temporary 'cavity.foam'
Looking at the log-file, the script tried installing ParaView, but failed:


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

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

  gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.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:287 (include)

-- Configuring incomplete, errors occurred!
See also "/home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeOutput.log".
See also "/home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log".
error: Bad exit status from /home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/tmp/rpm-tmp.1pQYPa (%build)

RPM build errors:
    Bad exit status from /home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/tmp/rpm-tmp.1pQYPa (%build)
Installing package: ParaView-4.4.0
  Uninstalling ParaView-4.4.0 using RPM: ParaView-4.4.0-linux64GccDPInt32Opt.x86_64
  Installing ParaView-4.4.0 using RPM file: /home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64GccDPInt32Opt.x86_64.rpm
error: open of /home/openfoam/foam/foam-extend-4.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64GccDPInt32Opt.x86_64.rpm failed: No such file or directory
Done installing package
In addition to this, in the CMakeError.log I noticed something about not being able to find a CMAKE_Fortran_COMPILER. If you want, I can post the CMake log files as well.

If you have any tips on what I should do to get foam-extend-4.1 installed properly, please let me know. I could manually fix the errors I encountered so far, but to be honest, I'd much prefer a build without errors (I'm afraid manually fixing errors might introduce new ones).

Many thanks,
Sita

Last edited by sita; February 4, 2020 at 04:38.
sita is offline   Reply With Quote

Old   February 7, 2020, 04:19
Default
  #23
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi everyone,

As you can see in my previous posts, I'm having a hard time getting foam-extend-4.1 installed properly on Ubuntu 18.04, using the instructions on the Wiki. With some manual fixes I managed to get a more-or-less working install in the end, but it's still not perfect. Especially ParaView keeps throwing warnings and errors (I'm using paraFoam -builtin, with ParaView 5.4, which I installed separately, as the Third Party version wouldn't build).

Does anyone have any tips on how to get foam-extend-4.1 installed properly, including a working paraFoam?

Thanks in advance!
Sita
sita is offline   Reply With Quote

Old   February 7, 2020, 10:18
Default
  #24
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Quote:
Originally Posted by sita View Post
Hi everyone,

As you can see in my previous posts, I'm having a hard time getting foam-extend-4.1 installed properly on Ubuntu 18.04, using the instructions on the Wiki. With some manual fixes I managed to get a more-or-less working install in the end, but it's still not perfect. Especially ParaView keeps throwing warnings and errors (I'm using paraFoam -builtin, with ParaView 5.4, which I installed separately, as the Third Party version wouldn't build).

Does anyone have any tips on how to get foam-extend-4.1 installed properly, including a working paraFoam?

Thanks in advance!
Sita

Hi Sita,


Could you share the manual fixes here? I had a student install it last week and it seemed to work for him.


Are all the problems related to paraview, or are there others?


I believe there was a problem with openMPI downloads (link broken), but that should be fixed.


Best
T
tschenkel is offline   Reply With Quote

Old   February 7, 2020, 13:25
Default
  #25
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Torsten,

Thanks for getting back. Up to now my manual fixes consisted of:
1. creating a prefs.sh to tell the Allwmake script to install the Third Party OpenMPI
2. installing GFortran
3. separately installing ParaView and fixing the paths related to that

I didn't manage to get the PVFoamReader built though (see previous error messages), so I'm using paraFoam -builtin, which is causing warnings and errors in ParaView.

Apart from that, there are also some of the tutorials that won't run properly, even though they don't give any trouble in my foam-extend-3.1 install on another system. I'm not sure though whether that's related to my building problems or to foam-extend-4.1 itself.

Sita
sita is offline   Reply With Quote

Old   February 9, 2020, 13:50
Default
  #26
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Hi,

Ok, just tested the whole thing again. Ubuntu 18.04.3 LTS seems to be something like the standard distro for foam-extend-4.1 and does not need any special settings. Are you trying to adapt instructions based on earlier versions?

What I just did:

1. Basic install of Ubuntu 18.04.3 LTS in a VM.

2. First Login:

Code:
sudo apt-get update
sudo apt-get upgrade
REBOOT

3. Second Login:

Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \
zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev curl bison \
libxt-dev rpm mercurial graphviz python python-dev
Code:
cd ~
mkdir foam
cd foam
git clone git://git.code.sf.net/p/foam-extend/foam-extend-4.1 foam-extend-4.1
Code:
cd ~/foam/foam-extend-4.1
source etc/bashrc
Code:
Allwmake.firstInstall > Allwmake.firstInstall.log 2>&1
Currently compiling. This will compile the openMPI version that comes with foam-extend-4.1. There is no need to use prefs.sh to tell it to do so. I assume whatever you use in there may be the root of your issues.

As stated in the instruction I do not really recommend the paraview version that comes with foam-extend, but always install the current version on my systems, so cannot say anything about that. But had compiled it in the past without huge problems.

If your install does indeed use the system-MPI as you say, then you do not follow the instructions, and we would need to know exactly what commands, changes to the config you use.

Can you post the commands you issue from a fresh install and the errors you get, incl. log files?
tschenkel is offline   Reply With Quote

Old   February 9, 2020, 14:12
Default
  #27
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Torsten,

Thanks a lot for all your efforts. As I explained before, I simply followed the instructions on the Wiki, exactly like you listed them in your post just now. This resulted in a number of errors in the build log, and the Third Party OpenMPI and ParaView weren't installed.

Only after that, I re-ran the make-script, using a new prefs.sh to tell the script to use the Third Party OpenMPI etc. This way, I succeeded in having the Third Party OpenMPI installed, but ParaView still wouldn't build, so I installed that separately, and am now using "paraFoam -builtin".

I have absolutely no clue why the instructions on the Wiki didn't work for me, while they seem to work fine for you, apparently on the exact same system. If you want I can send you my make-logs, please let me know if you'd like that.

Cheers,
Sita
sita is offline   Reply With Quote

Old   April 25, 2020, 22:03
Default gcc error
  #28
New Member
 
Elaxender david
Join Date: Nov 2017
Posts: 17
Rep Power: 8
Engin.shlxtn is on a distinguished road
Hi every one


I think the problem is in the gcc version. Most of Linux distributions can't support gcc4.3.3, and the foam-extension needs between gcc-4.3.1 - gcc- 4.3.3, Or in other word


gcc version does not match gcc supplied with this release of foam-extend
Supplied version: 4.3.3
User version : 9.2.1
Minimum required: 4.3.1

If any one have get solution please share it.
Thanks
Shattun likes this.
Engin.shlxtn is offline   Reply With Quote

Old   April 26, 2020, 04:28
Default
  #29
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Quote:
Originally Posted by Engin.shlxtn View Post
Hi every one


I think the problem is in the gcc version. Most of Linux distributions can't support gcc4.3.3, and the foam-extension needs between gcc-4.3.1 - gcc- 4.3.3, Or in other word


gcc version does not match gcc supplied with this release of foam-extend
Supplied version: 4.3.3
User version : 9.2.1
Minimum required: 4.3.1

If any one have get solution please share it.
Thanks
Hi, check the installation instructions this thread refers to. The key is to select the right gcc.

You are correct that the "official" gcc toolchain for foam-extend 4.0 is v4.3, but I have 4 installations running on gcc5.

gcc5.4 on CentOS7.6 on the cluster, and gcc5.5 on workstations running Ubuntu, 18.04LTS, 19.10, and 20.04LTS.

I haven't tested everything of course, but the compilations runs through with warnings only and I have not encountered any problems so far.

Gcc4 is usually not available as a package, but can easily be compiled, even on modern systems. I have done that once, but didn't bother any more, since gcc5 seems to work nicely.

On the most recent Ubuntu release (20.04LTS), gcc5 is no longer in the repositories, so you'll need to enable the 18.04LTS universe repo by adding the line:

Code:
deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe
to

Code:
/etc/apt/sources.list
foam-extend 4.1 does compile and work with gcc7, but I had some other issues (mainly with the new algorithm in for Pimple), so have reverted back to 4.0
Engin.shlxtn likes this.
tschenkel is offline   Reply With Quote

Old   April 28, 2020, 13:36
Default RANS External Aerodynamics Simulation
  #30
New Member
 
ZsoltDraga
Join Date: Jan 2011
Location: Albertirsa, Hungary
Posts: 10
Rep Power: 15
dragazsolt is on a distinguished road
I would like to share my RANS Aero software. It was developed for Windows system using QT and OpenGL. It is not a final version yet, there might be some bugs in the code.

Here is the github page:
https://github.com/dragazsolt/RANS1_0_Windows

It is a free software, please use it and share your experience.
Video tutorial is also available(check github page)

Cheers,
Zsolt
dragazsolt is offline   Reply With Quote

Old   May 4, 2020, 15:46
Default Dose not work
  #31
New Member
 
Elaxender david
Join Date: Nov 2017
Posts: 17
Rep Power: 8
Engin.shlxtn is on a distinguished road
Quote:
Originally Posted by tschenkel View Post
Hi, check the installation instructions this thread refers to. The key is to select the right gcc.

You are correct that the "official" gcc toolchain for foam-extend 4.0 is v4.3, but I have 4 installations running on gcc5.

gcc5.4 on CentOS7.6 on the cluster, and gcc5.5 on workstations running Ubuntu, 18.04LTS, 19.10, and 20.04LTS.

I haven't tested everything of course, but the compilations runs through with warnings only and I have not encountered any problems so far.

Gcc4 is usually not available as a package, but can easily be compiled, even on modern systems. I have done that once, but didn't bother any more, since gcc5 seems to work nicely.


On the most recent Ubuntu release (20.04LTS), gcc5 is no longer in the repositories, so you'll need to enable the 18.04LTS universe repo by adding the line:

Code:
deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe
to

Code:
/etc/apt/sources.list
foam-extend 4.1 does compile and work with gcc7, but I had some other issues (mainly with the new algorithm in for Pimple), so have reverted back to 4.0
Hello

Thank you a lot .Dose not work.
Engin.shlxtn is offline   Reply With Quote

Old   May 5, 2020, 19:39
Default Tried it on Manjaro, couldn't get it work, however tried in on OpenSUSE and it works.
  #32
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
Hello everyone!

I am currently using VM for my x86 linux installs as I am still new to the whole linux ecosystem and I still need windows for most things.

I have both POP_OS 20.04 (based on Ubuntu Focal) and Manjaro 20. Funnily enough Paraview works much better on Manjaro so I can stick with it. I had no issues building OpenFOAM 1912 (have yet to try OpenFOAM 7), however I wonder if OpenFOAM extend 4.1 can be built on Manjaro? Unfortunately Manjaro is using GCC 9.3.0. Does the foam extend not like GCC 9.3.0?

edit 1: even after getting gcc 7 installed from AUR but it still caused a few issues and wouldnt work after building. Im gonna just install it in my Ubuntu 20.04 vm then.

Edit 2: I actually got it to work using Opensuse tumbleweed. I followed the same steps as installing 4.0 on opensuse in the foam extend website. Largely everything works. However I am having issues compiling foam extend bazaar. Has anyone figured that out?

Last edited by EternalSeekerX; May 15, 2020 at 21:33.
EternalSeekerX is offline   Reply With Quote

Old   November 7, 2020, 04:57
Default A code
  #33
New Member
 
Komeil Samet
Join Date: Mar 2015
Location: Urmia
Posts: 4
Rep Power: 11
Komeil is on a distinguished road
Hi dears

I'm looking for a ready foam-extend for solving a FSI problem having a simple cylinder in a channel.

Can anyone have such code?
My OF version is 7.
Komeil is offline   Reply With Quote

Old   November 7, 2020, 05:09
Default
  #34
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Komeil,


For a great FSI solver, you could have a look at solids4Foam, see also this thread
This solver currently runs under foam-extend-4.0, but they're working on porting it to OpenFOAM-7 (openfoam.org version) and/or OpenFOAM v1912 (openfoam.com version) I believe.


Hope this helps,
Sita
sita is offline   Reply With Quote

Old   May 6, 2022, 08:34
Default
  #35
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 10
Bana is on a distinguished road
Hello All,

I am having problem compiling a compatible swak4foam for Foam-Extend 4.1 package. I am trying to install swak4Foam package for FOAM-Extend 4.1, but the following error shows up:

PHP Code:
fatal errorRawFoamDictionaryParser.tab.hhNo such file or directory
 
#include "RawFoamDictionaryParser.tab.hh" 
Also there are other errors like these:

PHP Code:
../RawFoamDictionaryParser.yy:455:21error‘FATALERROR’ is not a member of ‘Foam::token’
In file included from lnInclude
/ExpressionResult.H:321,
                 
from plugins/CommonPluginFunction.H:50,
                 
from plugins/CommonPluginFunction.C:33
PHP Code:
repositories/SurfacesRepository.C:43:9error‘Foam::surfaceWriter’ is not a template
 typedef surfaceWriter
<scalarscalarSurfaceWriter
PHP Code:
repositories/MeshesRepository.C:322:59errorno matching function for call to ‘Foam::HashTable<const Foam::regIOobject*>::HashTable(Foam::HashTable<Foam::regIOobject*>)
         regIOTable content
(mesh.lookupClass<regIOobject>()); 
PHP Code:
CommonValueExpressionDriver.C:212:78errorcannot call member function ‘bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)’ without object
             dlLibraryTable
::open("libswak"+pluginNames[i]+"FunctionPlugin.so");
                                                                              ^
plugins/CommonPluginFunction.CIn member function ‘Foam::label Foam::IStringStreamWithPos::pos():
plugins/CommonPluginFunction.C:198:26error‘stream’ was not declared in this scope
             
return label(stream().tellg()); 
PHP Code:
lnInclude/SubsetValueExpressionDriverI.H:452:31error‘const class Foam::processorPolyPatch’ has no member named ‘owner’did you mean ‘order’?
                     return 
pp.owner();
                               ^~~~~ 

I am trying swak4foam 0.4.2 which should be compatible with FOAM-Extend 4.1.

Can you help me resolve these issues?
Bana is offline   Reply With Quote

Old   May 6, 2022, 08:48
Default
  #36
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Have you tried these instructions?


https://openfoamwiki.net/index.php/Contrib/swak4Foam


There are a few out-of-date ones on the web. It is usually best to install directly from the mercurial repository (first code block) - make sure that FOAM is initialised correctly.



If the main branch does not work, try the develop branch (second code block).
tschenkel is offline   Reply With Quote

Old   May 6, 2022, 09:21
Default
  #37
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 10
Bana is on a distinguished road
Thanks for you reply Torsten,

I have downloaded swak4foam 0.4.2 from source forge here:

https://sourceforge.net/p/openfoam-e.../tarball?path=

Then I used ./AllwmakeAll to compile the codes.
Bana is offline   Reply With Quote

Old   May 6, 2022, 09:26
Default
  #38
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Quote:
Originally Posted by Bana View Post
Thanks for you reply Torsten,

I have downloaded swak4foam 0.4.2 from source forge here:

https://sourceforge.net/p/openfoam-e.../tarball?path=

Then I used ./AllwmakeAll to compile the codes.

Try the mercurial repo.
tschenkel is offline   Reply With Quote

Old   May 9, 2022, 06:19
Default
  #39
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 10
Bana is on a distinguished road
Quote:
Originally Posted by tschenkel View Post
Have you tried these instructions?


https://openfoamwiki.net/index.php/Contrib/swak4Foam


There are a few out-of-date ones on the web. It is usually best to install directly from the mercurial repository (first code block) - make sure that FOAM is initialised correctly.



If the main branch does not work, try the develop branch (second code block).
Hello again,

I installed mercurial package and tried the two block you mentioned but there are still errors unresolved.

my foam-extend version is: foam-extend-4.1-20200408
Bana is offline   Reply With Quote

Old   May 16, 2022, 08:09
Default
  #40
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 10
Bana is on a distinguished road
Does anybody have any successful experience in compiling swak4foam on Foam-Extend 4.1?
I think have almost tried everything on the Wiki-Page )
Bana 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
Installation Guide for OpenFOAM-1.6-ext on Mac OS X Mountain Lion BernhardGrieser OpenFOAM Installation 4 October 26, 2013 15:39
OpenFOAM installation in SL 6.3 (guide req) som87 OpenFOAM Installation 2 September 27, 2012 17:21
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
can you please share STAR CD installation guide Bhavani Siemens 1 November 30, 2005 11:17
Fluent 5.5. What the differences with fluent 5.3?? confused FLUENT 2 July 29, 2001 21:58


All times are GMT -4. The time now is 06:34.