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

[OpenFOAM.org] OpenFOAM 5 installation on Ubuntu 20.04

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

Like Tree2Likes
  • 1 Post By vitor.geraldes@ist.utl.pt
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2020, 06:22
Default OpenFOAM 5 installation on Ubuntu 20.04
  #1
New Member
 
Azamat Salamat
Join Date: May 2020
Posts: 1
Rep Power: 0
azamat is on a distinguished road
Hello!

I am trying to install OpenFOAM 5 to use it with CFDEM-coupling on my laptop that is running Ubuntu 20.04.

I have copied the github repo, added the following line to the .bashrc:

source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc

Followed the instructions from https://www.cfdem.com/media/CFDEM/do...ng_Manual.html. Compiled using Allwmake and then I am receiving the error in the attached file. (I believe this is an error, as I am not able to run the tutorial cases in OpenFOAM folder)

I am wondering is it even possible to install OpenFOAM 5 on latest Ubuntu since it is not available as apt package anymore.

Thank you,
Azamat
Attached Files
File Type: txt error.txt (17.9 KB, 85 views)
azamat is offline   Reply With Quote

Old   July 22, 2020, 23:50
Default I have the same problem...
  #2
New Member
 
Vitor Geraldes
Join Date: Dec 2009
Location: Lisbon, Portugal
Posts: 26
Rep Power: 16
vitor.geraldes@ist.utl.pt is on a distinguished road
I had the same problem. I solved it by installing OpenFOAM5.x instead of the version 5.0. Then in the thirdParty-5.x folder I replaced scotch_6.0.3 by the newer version scotch_6.0.9 (it is available on the more recent versions of OF). On the file scotch in the directory OpenFOAM-5.x/etc/config.sh/, the new version of scotch must be added (export SCOTCH_VERSION=scotch_6.0.9). Now both the thirdParty-5.x and the openFoam5.x compile well.
Biku likes this.

Last edited by vitor.geraldes@ist.utl.pt; July 23, 2020 at 21:36.
vitor.geraldes@ist.utl.pt is offline   Reply With Quote

Old   September 24, 2020, 01:52
Default
  #3
New Member
 
Ashutosh
Join Date: Apr 2020
Posts: 2
Rep Power: 0
as13031996@ is on a distinguished road
Hello friend
I also installed 3 party of 6 on Ubuntu 20 allbthings run well but it's not running parallel and showing environment variable key_buffer_size please help
as13031996@ is offline   Reply With Quote

Old   October 29, 2020, 15:08
Default
  #4
New Member
 
Benico
Join Date: Jan 2020
Posts: 2
Rep Power: 0
benico is on a distinguished road
I want Helyx and Sim-Flow working on Xubuntu 20.04. This means that OF 4.1 has to be installed (which are not in the bionic or the focal repositories)
so although my distro is "focal" I enabled the following repositories - and I got OF 4.1 working.

Using synaptic I added:
deb http://dl.openfoam.org/ubuntu xenial main
(in order to install OF4.1) as well as
deb http://archive.ubuntu.com/ubuntu xenial main
(in order to satisfy the dependencies)

After installing OF4.1 I disabled the xenial repositories again.

Paraview did not work due to a 2011 intel integrated GPU on a hp 8440 laptop.

I enabled the oibaf repositories and got Paraview 5.4.1 going with :
/opt/ParaView-541/bin/paraview --mesa-llvm

hths

Last edited by benico; November 1, 2020 at 15:22. Reason: new info
benico is offline   Reply With Quote

Old   October 31, 2020, 03:02
Post
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by azamat View Post
I am wondering is it even possible to install OpenFOAM 5 on latest Ubuntu since it is not available as apt package anymore.
You will need to read the error messages quite exactly. Some of the errors are indeed code errors in OpenFOAM (eg returning a value from a void method).
They didn't get noticed originally, but the newer compilers (like you have on ubuntu 20.04) do find them and flag them as an error.
So you will need to fix these manually.
Another possibility is to get the software working with a newer version of OpenFOAM. If you use the openfoam.com version, it always provides a version macro that you can use while updating your code. For example,
Code:
#if OPENFOAM > 1906
...updated code
#else
... old code
#endif
Can than create an upstream merge request with your changes.
If you want to try OpenFOAM-v1912 or v2006 on Ubuntu 20.04 see these instructions :
https://develop.openfoam.com/Develop...ompiled/debian
benico likes this.
olesen is offline   Reply With Quote

Old   November 24, 2021, 05:33
Default
  #6
New Member
 
Biku
Join Date: Nov 2021
Posts: 11
Rep Power: 4
Biku is on a distinguished road
Quote:
Originally Posted by vitor.geraldes@ist.utl.pt View Post
I had the same problem. I solved it by installing OpenFOAM5.x instead of the version 5.0. Then in the thirdParty-5.x folder I replaced scotch_6.0.3 by the newer version scotch_6.0.9 (it is available on the more recent versions of OF). On the file scotch in the directory OpenFOAM-5.x/etc/config.sh/, the new version of scotch must be added (export SCOTCH_VERSION=scotch_6.0.9). Now both the thirdParty-5.x and the openFoam5.x compile well.

Thank you this worked!
Biku is offline   Reply With Quote

Old   November 28, 2022, 07:04
Default
  #7
New Member
 
Altaf lone
Join Date: Nov 2022
Posts: 3
Rep Power: 3
altaf is on a distinguished road
Quote:
Originally Posted by vitor.geraldes@ist.utl.pt View Post
I had the same problem. I solved it by installing OpenFOAM5.x instead of the version 5.0. Then in the thirdParty-5.x folder I replaced scotch_6.0.3 by the newer version scotch_6.0.9 (it is available on the more recent versions of OF). On the file scotch in the directory OpenFOAM-5.x/etc/config.sh/, the new version of scotch must be added (export SCOTCH_VERSION=scotch_6.0.9). Now both the thirdParty-5.x and the openFoam5.x compile well.



Dear Tobias Holzmann,


Will this work as a rule of thumb for any other lower versions like v4. kindly suggest how to make lower versions like v4 work on ubuntu 22.04 or so
altaf 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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 Hrushi OpenFOAM Installation 6 July 8, 2017 18:47
[OpenFOAM.org] OpenFoam 3.0 installation on Ubuntu 14.04.3 tab2001ng OpenFOAM Installation 3 March 8, 2016 01:38
[OpenFOAM.org] installation of openfoam version of 2.3.0 and 2.0.0 together in ubuntu 14.0.4 Hamzeh_Mirab OpenFOAM Installation 1 November 21, 2014 05:16
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 02:16


All times are GMT -4. The time now is 23:53.