Installation problems of depencendies for CfdOf on Linux with AppImage

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:

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

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!

I want to reproduce this tutorial with a different system in particular:
https://wiki.harvard.edu/confluence/display/USERDOCS/OpenFOAM+-+Modeling+Basics?preview=/233975963/236863013/Laminar_pipe_simulation_freecad_cfd_workbench.pdf#OpenFOAM-ModelingBasics-OpenFOAMviaFreecadCFDworkbench(newandexperimental)


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.
log.Allwmake_cfmesh.txt (580 KB)
log.Allwmake_HISA.txt (80.5 KB)
Cfdof-screenshot.png

Mod edit: moved to CFDoF subforum

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?

Should be fixed…please update your workbench.

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

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?

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.

Checking dependencies...
gmsh could not be run from OpenFOAM environement

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.

It looks like your system is missing the g++ compiler.