Assistance with installing gmsh in Windows 10

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

AndrewLindsay
Posts: 10
Joined: Sat Feb 27, 2021 11:31 am

Assistance with installing gmsh in Windows 10

Postby AndrewLindsay » Sat Feb 27, 2021 11:42 am

Hello All,

I have installed the CfdOF workbench and run the dependency checker, but it keeps failing saying that gmsh.exe is not installed. I can confirm that it is in the directory where it is searching, and when I double click on it, gmsh will launch.

How do I cajole FreeCad/CfdOF into thinking that it is there and running?

I have included my log file, in case there are some additional snippets in there that could be of interest in solving this issue.

Code: Select all

19:37:31  Checking CFD workbench dependencies...
19:37:31  Checking FreeCAD version
19:37:31  Checking for OpenFOAM:
19:37:31  OpenFOAM directory: C:\Program Files (x86)\ESI\OpenFOAM\v2006
19:37:31  System: Windows
19:37:31  Runtime: WindowsDocker
19:37:31  Running  echo $WM_PROJECT_VERSION
19:37:31  Raw command:  ['C:/FreeCAD/bin\\python.exe', '-u', 'C:\\Users\\andre\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'echo `$WM_PROJECT_VERSION\' -l ofuser"']
19:37:31  Starting "default"...
19:37:31  Machine "default" is already running.
19:37:42  of_2006
19:37:42  v2006
19:37:42  Running  cartesianMesh -version
19:37:42  Raw command:  ['C:/FreeCAD/bin\\python.exe', '-u', 'C:\\Users\\andre\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'cartesianMesh -version\' -l ofuser"']
19:37:42  Starting "default"...
19:37:42  Machine "default" is already running.
19:37:53  of_2006
19:37:53  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v2006 OPENFOAM=2006
Arch   : "LSB;label=32;scalar=64"
Exec   : cartesianMesh -version
Date   : Feb 27 2021
Time   : 11:37:52
Host   : default
PID    : 1950
I/O    : uncollated
Case   : /home/ofuser
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
cfMesh-CfdOF (cfMesh 1.1.2) 1.8
19:37:53  Running  hisa -version
19:37:54  Raw command:  ['C:/FreeCAD/bin\\python.exe', '-u', 'C:\\Users\\andre\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'hisa -version\' -l ofuser"']
19:37:54  Starting "default"...
19:37:54  Machine "default" is already running.
19:38:05  of_2006
19:38:05  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v2006 OPENFOAM=2006
Arch   : "LSB;label=32;scalar=64"
Exec   : hisa -version
Date   : Feb 27 2021
Time   : 11:38:05
Host   : default
PID    : 2268
I/O    : uncollated
Case   : /home/ofuser
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hisa 1.4.2
19:38:06  Checking for paraview:
19:38:08  Paraview executable 'C:/Program Files/ParaView 5.6.2-Windows-msvc2015-64bit/bin/paraview.exe' not found.
19:38:08  Checking for Plot workbench:
19:38:08  Checking for gmsh:
19:38:08  Running  'C:/FreeCAD/bin/gmsh.exe' -version
19:38:08  Raw command:  ['C:/FreeCAD/bin\\python.exe', '-u', 'C:\\Users\\andre\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'\'C:/FreeCAD/bin/gmsh.exe\' -version\' -l ofuser"']
19:38:08  Starting "default"...
19:38:08  Machine "default" is already running.
19:38:18  of_2006
19:38:18  -bash: C:/FreeCAD/bin/gmsh.exe: No such file or directory
19:38:18  gmsh could not be run from OpenFOAM environment
19:38:18  Completed CFD dependency check
User avatar
oliveroxtoby
Posts: 500
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Assistance with installing gmsh in Windows 10

Postby oliveroxtoby » Sat Feb 27, 2021 12:24 pm

AndrewLindsay wrote: Sat Feb 27, 2021 11:42 am Hello All,

I have installed the CfdOF workbench and run the dependency checker, but it keeps failing saying that gmsh.exe is not installed. I can confirm that it is in the directory where it is searching, and when I double click on it, gmsh will launch.

How do I cajole FreeCad/CfdOF into thinking that it is there and running?
This is a problem with the docker installation. We have since shifted to the Mingw OpenFOAM-based installer as the default. I would suggest you switch over to this as there have been a few other issues with the docker-based installation.
AndrewLindsay
Posts: 10
Joined: Sat Feb 27, 2021 11:31 am

Re: Assistance with installing gmsh in Windows 10

Postby AndrewLindsay » Sun Feb 28, 2021 5:06 am

Oliver,
Thanks for your help. I have uninstalled OpenFOAM, the work bench and reinstalled them both and it appears to be running. I just have to find a tutorial now to work through to see if I can get stuff to run properly on my machine, after my grubby little fingers and tiny little brain have tried to interpret the steps.
Thanks for all your assistance.
Andrew
thschrader
Posts: 2146
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Assistance with installing gmsh in Windows 10

Postby thschrader » Sun Feb 28, 2021 8:07 am

AndrewLindsay wrote: Sun Feb 28, 2021 5:06 am ...
I just have to find a tutorial now to work through to see if I can get stuff to run properly on my machine,...
Please see here:
https://www.opensim.co.za/training.html
https://www.youtube.com/watch?v=7i_K7fo8BSk
AndrewLindsay
Posts: 10
Joined: Sat Feb 27, 2021 11:31 am

Re: Assistance with installing gmsh in Windows 10

Postby AndrewLindsay » Wed Mar 03, 2021 2:46 am

Thanks so much for your help. I am just working through the examples now.
One question though, is it possible to do coupled heat transfer problems in OpenFoam using the FreeCad workbench?
Regards

Andrew
User avatar
oliveroxtoby
Posts: 500
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Assistance with installing gmsh in Windows 10

Postby oliveroxtoby » Sat Mar 20, 2021 11:05 am

AndrewLindsay wrote: Wed Mar 03, 2021 2:46 am Thanks so much for your help. I am just working through the examples now.
One question though, is it possible to do coupled heat transfer problems in OpenFoam using the FreeCad workbench?
Regards

Andrew
Unfortunately that's not supported yet.