Installation problems of depencendies for CfdOf on Linux with AppImage

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

tectone
Posts: 42
Joined: Wed Nov 18, 2020 8:58 am

Installation problems of depencendies for CfdOf on Linux with AppImage

Post by tectone »

Hello,

I want to use Cfd or CfdOf to run a couple of simulations of flow in a pipe. But I am struggling with the installation of the plugin. I am running Freecad as the AppImage version on Xubuntu:

OS: Ubuntu 19.04 (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22960 (Git) AppImage
Build type: Release
Branch: master
Hash: c5a4b01d2e4218bcc0eb6650337650a6c65ef0e4
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)

Ubuntu:
LSB Version: core-10.2019031300ubuntu1-noarch:printing-10.2019031300ubuntu1-noarch:security-10.2019031300ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco

I followed the steps of the Cfdof manual:
1. Downloaded the Appimage
2. Installed the Plot workbench
3. Installed Cfod

When I do the dependency check, this the output:

Code: Select all

10:14:51  Checking CFD workbench dependencies...
10:14:51  Checking FreeCAD version
10:14:51  Checking for OpenFOAM:
10:14:51  OpenFOAM directory: /opt/openfoam7
10:14:51  System: Linux
10:14:51  Runtime: Posix
10:14:51  Running  echo $WM_PROJECT_VERSION
10:14:51  Raw command:  ['bash', '-c', 'source "/opt/openfoam7/etc/bashrc" && echo $WM_PROJECT_VERSION']
10:14:51  7
10:14:51  Running  cartesianMesh -version
10:14:53  Raw command:  ['bash', '-c', 'source "/opt/openfoam7/etc/bashrc" && cartesianMesh -version']
10:14:53  /*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-1ff648926f77
Exec   : cartesianMesh -version
Date   : Nov 18 2020
Time   : 10:14:53
Host   : "host"
PID    : 4308
10:14:53  I/O    : uncollated
Case   : /home/user
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
cfMesh-CfdOF (cfMesh 1.1.2) 1.7
10:14:53  Running  hisa -version
10:14:54  Raw command:  ['bash', '-c', 'source "/opt/openfoam7/etc/bashrc" && hisa -version']
10:14:54  /*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-1ff648926f77
Exec   : hisa -version
Date   : Nov 18 2020
Time   : 10:14:54
Host   : "host"
PID    : 4850
10:14:54  I/O    : uncollated
Case   : /home/user
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hisa 1.2.2
10:14:54  Checking for paraview:
10:14:54  Checking for Plot workbench:
10:14:54  Checking for gmsh:
10:14:54  gmsh is not installed
10:14:54  Completed CFD dependency check
10:14:57  Traceback (most recent call last):
  File "/tmp/.mount_FreeCASntdoq/usr/lib/python3.8/site-packages/freecad/appimage/init_gui.py", line 22, in saveSettings
    preference_tabel.SetBool("appimage_auto_update", bool(self.form.always_check_updates.isChecked()))
<class 'AttributeError'>: 'PySide2.QtWidgets.QWidget' object has no attribute 'always_check_updates'
10:14:59  Traceback (most recent call last):
  File "/tmp/.mount_FreeCASntdoq/usr/lib/python3.8/site-packages/freecad/appimage/init_gui.py", line 22, in saveSettings
    preference_tabel.SetBool("appimage_auto_update", bool(self.form.always_check_updates.isChecked()))
<class 'AttributeError'>: 'PySide2.QtWidgets.QWidget' object has no attribute 'always_check_updates'
Gmsh is installed via the package manager and I can also start the GUI of the Programm

Code: Select all

user@host:~$ gmsh --version
4.7.1
I installed hisa and cfmesh from the properties window of the cfdof window. Further I installed PyFoam (with Pip3), python3-matplotlib and paraview.

Openfoam install directory: /home/user/OpenFOAM/user-7
ParaView executable path: /usr/bin
Default output directory: /tmp

How can I fix the "gmsh is not installed" error?

Thanks for your help!
tectone
Posts: 42
Joined: Wed Nov 18, 2020 8:58 am

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by tectone »

I want to reproduce this tutorial with a different system in particular:
https://wiki.harvard.edu/confluence/dis ... imental%29


But as you can see in the screenshot, after clicking create mesh, there is no mesh being created afterwards....
I also attach you the compiling logs of HISA and cfmesh. Maybe there is a clue to fix the problem.
Attachments
log.Allwmake_cfmesh.txt
(579.89 KiB) Downloaded 63 times
log.Allwmake_HISA.txt
(80.52 KiB) Downloaded 63 times
Cfdof-screenshot.png
Cfdof-screenshot.png (235.47 KiB) Viewed 3020 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by Kunda1 »

Mod edit: moved to CFDoF subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
tectone
Posts: 42
Joined: Wed Nov 18, 2020 8:58 am

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by tectone »

I was able to create the mesh with snappyHexmash (the way you are supposed to click is a little bit contraintutive for me). But gmsh I still not recognized by the Plugin...Any hints?
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by oliveroxtoby »

tectone wrote: Wed Nov 18, 2020 9:44 am
How can I fix the "gmsh is not installed" error?

Thanks for your help!
Should be fixed...please update your workbench.
tectone
Posts: 42
Joined: Wed Nov 18, 2020 8:58 am

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by tectone »

No, unfortunately problem is still here: (I did the WB update)

Code: Select all

17:23:07  Checking CFD workbench dependencies...
17:23:07  Checking FreeCAD version
17:23:07  Checking for OpenFOAM:
17:23:07  OpenFOAM directory: /home/user/OpenFOAM/user-7
17:23:07  System: Linux
17:23:07  Could not find OpenFOAM installation: The directory /home/user/OpenFOAM/user-7 is not a recognised OpenFOAM installation
17:23:07  Checking for Plot workbench:
17:23:07  Checking for gmsh:
17:23:07  Running  /home/user/.local/bin/gmsh -version
17:23:07  gmsh could not be run from OpenFOAM environement
17:23:07  Completed CFD dependency check

Now I get the additional error, that open foam is not getting detected?
Last edited by tectone on Thu Nov 19, 2020 11:15 am, edited 1 time in total.
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by oliveroxtoby »

tectone wrote: Wed Nov 18, 2020 4:25 pm No, unfortunately problem is still here: (I did the WB update)

Code: Select all

17:23:07  Checking CFD workbench dependencies...
17:23:07  Checking FreeCAD version
17:23:07  Checking for OpenFOAM:
17:23:07  OpenFOAM directory: /home/hydra/OpenFOAM/user-7
17:23:07  System: Linux
17:23:07  Could not find OpenFOAM installation: The directory /home/user/OpenFOAM/user-7 is not a recognised OpenFOAM installation
17:23:07  Checking for Plot workbench:
17:23:07  Checking for gmsh:
17:23:07  Running  /home/hydra/.local/bin/gmsh -version
17:23:07  gmsh could not be run from OpenFOAM environement
17:23:07  Completed CFD dependency check

Now I get the additional error, that open foam is not getting detected?
Your OpenFOAM directory should be set to /opt/openfoam7, not your user directory.
tectone
Posts: 42
Joined: Wed Nov 18, 2020 8:58 am

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by tectone »

oliveroxtoby wrote: Wed Nov 18, 2020 6:11 pm
tectone wrote: Wed Nov 18, 2020 4:25 pm No, unfortunately problem is still here: (I did the WB update)

Code: Select all

17:23:07  Checking CFD workbench dependencies...
17:23:07  Checking FreeCAD version
17:23:07  Checking for OpenFOAM:
17:23:07  OpenFOAM directory: /home/hydra/OpenFOAM/user-7
17:23:07  System: Linux
17:23:07  Could not find OpenFOAM installation: The directory /home/user/OpenFOAM/user-7 is not a recognised OpenFOAM installation
17:23:07  Checking for Plot workbench:
17:23:07  Checking for gmsh:
17:23:07  Running  /home/hydra/.local/bin/gmsh -version
17:23:07  gmsh could not be run from OpenFOAM environement
17:23:07  Completed CFD dependency check

Now I get the additional error, that open foam is not getting detected?
Your OpenFOAM directory should be set to /opt/openfoam7, not your user directory.
Yes, my fault. But the gmsh error is persistent, even after updating the workbench.

Code: Select all

Checking dependencies...
gmsh could not be run from OpenFOAM environement
KodKod1
Posts: 2
Joined: Sat Jan 06, 2024 11:15 am

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by KodKod1 »

Hello, dear CfdOF users! Could you help to resolve following issues: can't install cfMesh and HiSA. There's also issue with gmsh.
My OS:
LSB Version: security-11.1.0ubuntu4-noarch
Distributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
FreeCAD version: 0.21.2
CfdOF workbench version: v1.24.8
OpenFOAM installed from OpenFOAM foundation version 10
Paraview is installed with OpenFOAM
Gmsh version 4.8.4
Dependency check log:
Checking dependencies...
System: Linux
Runtime: Posix
OpenFOAM directory: /opt/openfoam10
MPI was not found. Parallel execution will not be possible.
cfMesh (CfdOF version) not found
HiSA not found
Paraview executable: /opt/paraviewopenfoam510/bin/paraview
gmsh executable: /run/user/1000/doc/6fbfba26/gmsh
gmsh could not be run from OpenFOAM environment
Completed CFD dependency check
cfMesh and HiSA installation logs are attached.
Attachments
HiSA log.txt
(26.37 KiB) Downloaded 35 times
cfMesh_log.txt
(333.25 KiB) Downloaded 25 times
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems of depencendies for CfdOf on Linux with AppImage

Post by oliveroxtoby »

KodKod1 wrote: Sat Jan 06, 2024 11:34 am Hello, dear CfdOF users! Could you help to resolve following issues: can't install cfMesh and HiSA. There's also issue with gmsh.
It looks like your system is missing the g++ compiler.
Post Reply