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

[OpenFOAM.com] Issues Installing dsmcFOAM+ (OpenFoam-v1706) on Ubuntu 20.04LTS

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By KDuby17
  • 1 Post By KDuby17

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2022, 05:50
Default Issues Installing dsmcFOAM+ (OpenFoam-v1706) on Ubuntu 20.04LTS
  #1
New Member
 
Kyle
Join Date: Apr 2021
Posts: 2
Rep Power: 0
KDuby17 is on a distinguished road
I am installing dsmcFOAM+ found on the hyStrath GitHub repository (https://hystrath.github.io/). I have been following the installation instructions on the same repository https://hystrath.github.io/installation/:

One note is that

Code:
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev
does not work on Unbuntu 20.04LTS. This may or may not be the issue.

Before doing Step #5. I add OpenFoam-v1706's bashrc by adding

Code:
source $HOME/OpenFOAM/OpenFOAM-v1706/etc/bashrc
at the end of my $Home/.bashrc and then source ~/.bashrc.

When I first did Step #5 as direct, the installation Step #6 failed, because wmkdep could not find the header files. When using foamInstallationTest, I get the icoFoam not installed error. Using this forum

HTML Code:
https://www.cfd-online.com/Forums/openfoam-installation/229950-icofoam-not-installed.html
one solution is to use:

./Allwmake -j -s -l

but the icoFoam error still persists. I also installed the relevant Qt packages/libraries for Ubuntu 20.04LTS and there is no difference.


I am not sure what else to do.
AlexanderCushen likes this.
KDuby17 is offline   Reply With Quote

Old   July 19, 2022, 11:52
Default
  #2
New Member
 
Alexander Cushen
Join Date: Jul 2022
Posts: 6
Rep Power: 4
AlexanderCushen is on a distinguished road
I recently went through the same installation process and ran into some problems, but not the same as these. For me, installing the correct version of gcc was the largest barrier -- when you type "gcc --version" into terminal, does it show a correct installation?

It also sounds like you may have read these instructions, but if not, I would recommend verifying each step of this guide before moving onto the later steps on Hystrath.

Let me know how it goes!
AlexanderCushen is offline   Reply With Quote

Old   July 20, 2022, 17:29
Default
  #3
New Member
 
Kyle
Join Date: Apr 2021
Posts: 2
Rep Power: 0
KDuby17 is on a distinguished road
I forgot about this post. Vincent at the hyStrath Github was able to help. It was the wrong version of the GCC. However, Vincent gave me the following commands to get QT4 packages/libraries installed:

Code:
sudo add-apt-repository ppa:rock-core/qt4
sudo apt update
I think installing one of the libraries/packages is undoing/corrupting the version downgrade in the first step because I encountered the same issues installing dsmcFOAM on other machines. I just rerun the following after Step 4:

Code:
 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
 sudo update-alternatives --config gcc
 sudo update-alternatives --config g++
For the first two commands, the terminal returns a message about a force installation because of a broken link. After that, OpenFOAM compiles without any critical errors. On the VM in question, I did get a failure on the cfd-module because it was looking for some files for the dsmc-module, but succeeded the second time. Though I have not encountered this error again.
AlexanderCushen likes this.
KDuby17 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 on AWS Ubuntu EC2 Instance mcc12 OpenFOAM Programming & Development 1 October 28, 2021 14:22
[OpenFOAM.org] Errors in installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS xixiuqi OpenFOAM Installation 3 December 12, 2019 11:03
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 03:44


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