Installation problem 0.19_pre: CFD dependency check fails

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

mikelg
Posts: 5
Joined: Wed Mar 17, 2021 8:24 pm

Installation problem 0.19_pre: CFD dependency check fails

Post by mikelg »

I am unable to complete OpenFOAM installation via the CfdOF Preferences dialog using built-in installation buttons in FreeCAD 0.19_pre. (Windows 10 OS).

There problem appears to be due to incomplete installation of cfMesh and HiSA - in the Preferences dialog output panel I never see the expected 'install complete' message: even after about half an hour all I see is:

Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\MIKE~1.GRI\AppData\Local\Temp\tmph8y63wpr.zip
Installing cfMesh...
Download completed



Report view:

21:10:31 Running { mkdir -p "$FOAM_APPBIN" && cd "$FOAM_APPBIN" && unzip -o "/c/Users/MIKE~1.GRI/AppData/Local/Temp/tmph8y63wpr.zip"; }
21:10:31 Raw command: ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; { mkdir -p "$FOAM_APPBIN" && cd "$FOAM_APPBIN" && unzip -o "/c/Users/MIKE~1.GRI/AppData/Local/Temp/tmph8y63wpr.zip"; }']
21:10:33 Sourcing OpenFOAM environment...
21:10:33 openfoam: windows support (mingw64) is runtime only
21:10:51 Archive: /c/Users/MIKE~1.GRI/AppData/Local/Temp/tmph8y63wpr.zip
inflating: cartesian2DMesh.exe
inflating: cartesianMesh.exe
inflating: checkSurfaceMesh.exe
inflating: copySurfaceParts.exe
inflating: extrudeEdgesInto2DSurface.exe
inflating: FLMAToSurface.exe
inflating: FMSToSurface.exe
inflating: FMSToVTK.exe
inflating: generateBoundaryLayers.exe
inflating: importSurfaceAsSubset.exe
inflating: improveMeshQuality.exe
21:10:51 inflating: improveSymmetryPlanes.exe
21:10:51 inflating: libmeshLibrary.dll
inflating: mergeSurfacePatches.exe
inflating: meshToFPMA.exe
21:10:51 inflating: patchesToSubsets.exe
inflating: pMesh.exe
21:10:51 inflating: preparePar.exe
inflating: removeSurfaceFacets.exe
inflating: scaleMesh.exe
21:10:51 inflating: scaleSurfaceMesh.exe
inflating: subsetToPatch.exe
inflating: surfaceFeatureEdges.exe
21:10:51 inflating: surfaceGenerateBoundingBox.exe
21:10:51 inflating: surfaceToFMS.exe
inflating: tetMesh.exe
21:10:51

________________________

Unsurprisingly, when I run a dependency check, output is:

Checking dependencies...
cfMesh (CfdOF version) not found
HiSA not found


Report view:

20:35:41 Checking CFD workbench dependencies...
20:35:41 Checking FreeCAD version
20:35:41 Checking for OpenFOAM:
20:35:41 OpenFOAM directory: C:\OpenFOAM\v2012
20:35:41 System: Windows
20:35:41 Runtime: MinGW
20:35:41 Running echo $FOAM_API
20:35:41 Raw command: ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; echo $FOAM_API']
20:35:41 Sourcing OpenFOAM environment...
20:35:41 openfoam: windows support (mingw64) is runtime only
20:35:59 2012
20:35:59 Running cartesianMesh -version
20:36:00 Raw command: ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cartesianMesh -version']
20:36:00 Sourcing OpenFOAM environment...
20:36:00 openfoam: windows support (mingw64) is runtime only
20:36:18 C:/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/cartesianMesh.exe: error while loading shared libraries: libOpenFOAM.dll: cannot open shared object file: No such file or directory
20:36:19 cfMesh (CfdOF version) not found
20:36:19 Running hisa -version
20:36:19 Raw command: ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; hisa -version']
20:36:19 Sourcing OpenFOAM environment...
20:36:19 openfoam: windows support (mingw64) is runtime only
20:36:36 C:/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/hisa.exe: error while loading shared libraries: libOpenFOAM.dll: cannot open shared object file: No such file or directory
20:36:38 HiSA not found
20:36:38 Checking for paraview:
20:36:38 Checking for Plot workbench:
20:36:38 Checking for gmsh:
20:36:38 Running 'C:/Program Files/FreeCAD_0.19/bin/gmsh.exe' -version
20:36:38 Raw command: ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', "echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; 'C:/Program Files/FreeCAD_0.19/bin/gmsh.exe' -version"]
20:36:38 Sourcing OpenFOAM environment...
20:36:38 openfoam: windows support (mingw64) is runtime only
20:36:55 4.6.0
20:36:55 Completed CFD dependency check

Debugging apparently picks up missing files at 20:36:18 & 20:36:18: in fact cfMesh and HiSA files were download correctly and contents decompressed to the directory shown in the path (i.e., I followed the path in MS File Explorer and found the files).

_____________________________________________________________

According to the post 'Installation CfdOf / HiSA' by Sidemountyucatan (Wed Nov 25, 2020) further output from the Preferences dialog is to be expected*, however this involves 'blueCFD-Core' which I have only seen referred to in the context of pre FreeCAD 0.19, and a compilation stage that may not be required with pre-compiled OpenFOAM. I'm new to cfdOF, and with all information found relating to pre 0.19, I'm struggling to make headway with a solution to this problem.

[*excerpt from Sidemountyucatan post]
OS: Windows 10 (10.0)
Building cfMesh. Lengthy process - please wait...
Log file: C:/Program Files/blueCFD-Core-2017/OpenFOAM-5.x\..\ofuser-of5/cfmesh-cfdof/log.Allwmake
Install completed

This topic, and the other installation-related topic (posted in Feb 2018 concerning FreeCAD 0.17) refer to the old-style Preferences dialog and blueCFD. I thought it sensible best to raise possible problems with 0.19 in a new post.

Help with this issue would be greatly appreciated.
User avatar
oliveroxtoby
Posts: 645
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

mikelg wrote: Wed Mar 17, 2021 9:38 pm I am unable to complete OpenFOAM installation via the CfdOF Preferences dialog using built-in installation buttons in FreeCAD 0.19_pre. (Windows 10 OS).

There problem appears to be due to incomplete installation of cfMesh and HiSA - in the Preferences dialog output panel I never see the expected 'install complete' message: even after about half an hour all I see is:

Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\MIKE~1.GRI\AppData\Local\Temp\tmph8y63wpr.zip
Installing cfMesh...
Download completed
Everything looks to have installed correctly - for the MinGW installer we now have a binary installation so there is no lengthy compile step as was the case with the blueCFD installation. I am not sure what the problem could be. I will try to reproduce it, but to give me the best shot could you paste your version information from Help | About and also let me know the file name of the package that you downloaded - something like FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64.7z or FreeCAD_0.19.24267_Win-LPv12.1.6_vc14.x-x86-64.7z ...

Edit: Please could you also run the "OpenFOAM-v2012-MSYS2-Terminal" shortcut on the desktop and give me the output of the following commands:

Code: Select all

simpleFoam
hisa
ldd $(which simpleFoam)
ldd $(which hisa)
The first two commands should exit with a file not found error, but I would like to see if there is a complaint about libOpenFOAM.dll not being found instead.
mikelg
Posts: 5
Joined: Wed Mar 17, 2021 8:24 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by mikelg »

Hi, thanks for taking a look.

Info requested:

1) FreeCAD Version:

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.8.8
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)


2) Download: FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64.7z

3) OpenFOAM terminal commands:

$ simpleFoam
C:/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/simpleFoam.exe: error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory

$ hisa
C:/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/hisa.exe: error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory

____________________________________________________________________________

Not sure if this info relevant, but file libstdc++-6.dll does exist in C:\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin folder

_____________________________________________________________________________

$ ldd $(which simpleFoam)
ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff82b450000)
KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff829e50000)
KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ff828ef0000)
msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff82a620000)
libPstream.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libPstream.dll (0x6df80000)
libOpenFOAM.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libOpenFOAM.dll (0x6f6c0000)
ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ff82a390000)
sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ff8294b0000)
RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ff82b2e0000)
libfiniteVolume.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libfiniteVolume.dll (0x6b5c0000)
??? => ??? (0x690000)
libincompressibleTurbulenceModels.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libincompressibleTurbulenceModels.dll (0x67780000)
??? => ??? (0xea0000)
libgcc_s_seh-1.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libgcc_s_seh-1.dll (0x61440000)
??? => ??? (0xea0000)
??? => ??? (0x160000)


$ ldd $(which hisa)
ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff82b450000)
KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff829e50000)
KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ff828ef0000)
msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff82a620000)
libsolverModule.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libsolverModule.dll (0x62180000)
libOpenFOAM.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libOpenFOAM.dll (0x6f6c0000)
ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ff82a390000)
sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ff8294b0000)
RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ff82b2e0000)
libgcc_s_seh-1.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libgcc_s_seh-1.dll (0x61440000)
??? => ??? (0xe30000)
??? => ??? (0xe30000)
??? => ??? (0xe30000)
libPstream.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libPstream.dll (0x6df80000)
libwinpthread-1.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libwinpthread-1.dll (0x64940000)
??? => ??? (0x160000)
libz.dll => /home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/libz.dll (0x6e8c0000)

Thanks again Oliver,

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

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

Thanks for the info.
mikelg wrote: Thu Mar 18, 2021 6:50 pm
3) OpenFOAM terminal commands:

$ simpleFoam
C:/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2012/platforms/win64MingwDPInt32Opt/bin/simpleFoam.exe: error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory
I did not expect this error...simpleFoam is part of OpenFOAM itself so the fact that it won't run indicates an error with the OpenFOAM installation quite separate from FreeCAD or CfdOF. I would try re-installing it. Perhaps worth trying in the default location (or somewhere in your home directory) in case it is some sort of permissions issue.
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

Hi Oliver,

I am getting back to using this tool since a year. Got it working on FC18. But now I had to reinstall it on a new system. Since the AddOn Manager of FC18 is broken, I went to FC19. Tried to make a new install of CfdOF, and ran into the exact same problem today as reported by Mikelg.

I followed yr advice to try a new install of OpenFOAM. The behavior changed. It is not OK yet.

First uninstalled the version automatically placed by FC in the AppData (Roaming etc.). Then made a reinstall at C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012.

I did the reinstall outside FC19 (independently) by executing (as admin) the file downloaded by FC. I observed that I was presented to select an option now to install MSMPI. (I choose Yes). If I remember correctly, I was not offered that choice when I installed it inside FC19.

Told FC19 where the directory is.

Did a dependency check. No success.

Tried to reinstall cfMesh. To no avail. Got the following errors:

Code: Select all

22:55:18  Archive:  /c/Users/rolan/AppData/Local/Temp/tmp8y3v42bt.zip
22:55:18  error:  cannot delete old cartesian2DMesh.exe
        Permission denied
error:  cannot delete old cartesianMesh.exe
        Permission denied
error:  cannot delete old checkSurfaceMesh.exe
        Permission denied
error:  cannot delete old copySurfaceParts.exe
        Permission denied
error:  cannot delete old extrudeEdgesInto2DSurface.exe
        Permission denied
error:  cannot delete old FLMAToSurface.exe
        Permission denied
error:  cannot delete old FMSToSurface.exe
        Permission denied
error:  cannot delete old FMSToVTK.exe
        Permission denied
error:  cannot delete old generateBoundaryLayers.exe
        Permission denied
error:  cannot delete old importSurfaceAsSubset.exe
        Permission denied
error:  cannot delete old improveMeshQuality.exe
        Permission denied
error:  cannot delete old improveSymmetryPlanes.exe
        Permission denied
error:  cannot delete old libmeshLibrary.dll
        Permission denied
error:  cannot delete old mergeSurfacePatches.exe
        Permission denied
error:  cannot delete old meshToFPMA.exe
        Permission denied
error:  cannot delete old patchesToSubsets.exe
        Permission denied
error:  cannot delete old pMesh.exe
        Permission denied
error:  cannot delete old preparePar.exe
        Permission denied
error:  cannot delete old removeSurfaceFacets.exe
        Permission denied
error:  cannot delete old scaleMesh.exe
        Permission denied
error:  cannot delete old scaleSurfaceMesh.exe
        Permission denied
error:  cannot delete old subsetToPatch.exe
        Permission denied
error:  cannot delete old surfaceFeatureEdges.exe
        Permission denied
error:  cannot delete old surfaceGenerateBoundingBox.exe
        Permission denied
error:  cannot delete old surfaceToFMS.exe
        Permission denied
error:  cannot delete old tetMesh.exe
        Permission denied
22:55:18  Traceback (most recent call last):
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in run
22:55:18      self.downloadCfMesh()
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 455, in downloadCfMesh
22:55:18      CfdTools.runFoamCommand(
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 651, in runFoamCommand
22:55:18      raise subprocess.CalledProcessError(exit_code, cmdline)
22:55:18  subprocess.CalledProcessError: Command '{ mkdir -p "$FOAM_APPBIN" && cd "$FOAM_APPBIN" && unzip -o "/c/Users/rolan/AppData/Local/Temp/tmp8y3v42bt.zip"; }' returned non-zero exit status 50.
Then tried to reinstall HiSA. That gave no errors.

Did dependency check. Answer:
cfMesh not found

Perhaps HiSA installed OK.

Report dependency check:

Code: Select all

Checking CFD workbench dependencies...
23:08:46  Checking FreeCAD version
23:08:46  Checking for OpenFOAM:
23:08:46  OpenFOAM directory: C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012
23:08:46  System: Windows
23:08:46  Runtime: MinGW
23:08:46  Running  echo $FOAM_API
23:08:46  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; echo $FOAM_API']
23:08:46  Sourcing OpenFOAM environment...
23:08:46  openfoam: windows support (mingw64) is runtime only
23:09:17  2012
23:09:17  Running  cartesianMesh -version
23:09:19  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cartesianMesh -version']
23:09:19  Sourcing OpenFOAM environment...
23:09:19  openfoam: windows support (mingw64) is runtime only
23:09:49  Using: OpenFOAM-v2012 (2012) - visit www.openfoam.com
Build: 79e353b84e-20201222

Invalid option: -version

See 'C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\cartesianMesh.exe -help' for usage

23:09:49  cfMesh (CfdOF version) not found
23:09:51  Running  hisa -version
23:09:51  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; hisa -version']
23:09:51  Sourcing OpenFOAM environment...
23:09:51  openfoam: windows support (mingw64) is runtime only
23:10:27  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\hisa.exe -version
Date   : Mar 18 2021
Time   : 23:10:27
Host   : DESKTOP-5QM78MA
PID    : 12504
I/O    : uncollated
Case   : C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/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

23:10:27  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hisa 1.4.2
23:10:27  Checking for paraview:
23:10:29  Checking for Plot workbench:
23:10:29  Checking for gmsh:
23:10:29  Running  'C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin/gmsh.exe' -version
23:10:29  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', "echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; 'C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin/gmsh.exe' -version"]
23:10:29  Sourcing OpenFOAM environment...
23:10:29  openfoam: windows support (mingw64) is runtime only
23:11:09  4.6.0
23:11:09  Completed CFD dependency check
Would you have further advice?
(something wrong with "version"?)
By the way, do you know what this means: "windows support (mingw64) is runtime only" ? Something to worry? It is in RED!

Best regards,

Roland
on:

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.8.8
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Netherlands (en_NL)
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

Dear Oliver,

additionally, the commands "simpleFoam"and "hisa" in terminal give errors:

Code: Select all

C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM>simpleFOAM
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : simpleFOAM
Date   : Mar 19 2021
Time   : 00:11:50
Host   : DESKTOP-5QM78MA
PID    : 24080
I/O    : uncollated
Case   : C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR: (openfoam-2012)
cannot find file "C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/system/controlDict"

    From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 547.

FOAM exiting
and

Code: Select all

C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM>hisa
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : hisa
Date   : Mar 19 2021
Time   : 00:12:02
Host   : DESKTOP-5QM78MA
PID    : 10048
I/O    : uncollated
Case   : C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR: (openfoam-2012)
cannot find file "C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/home/ofuser/OpenFOAM/system/controlDict"

    From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 547.

FOAM exiting
Best regards,

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

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

Roland wrote: Thu Mar 18, 2021 10:22 pm First uninstalled the version automatically placed by FC in the AppData (Roaming etc.). Then made a reinstall at C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012.
Just FYI: it was not placed there by FreeCAD. This is the default install location provided by the OpenFOAM installer.
I did the reinstall outside FC19 (independently) by executing (as admin) the file downloaded by FC. I observed that I was presented to select an option now to install MSMPI. (I choose Yes). If I remember correctly, I was not offered that choice when I installed it inside FC19.

Told FC19 where the directory is.

Did a dependency check. No success.
This makes sense - you would have to reinstall cfMesh and hisa after changing the OpenFOAM installation.
Tried to reinstall cfMesh. To no avail. Got the following errors:

Code: Select all

22:55:18  Archive:  /c/Users/rolan/AppData/Local/Temp/tmp8y3v42bt.zip
22:55:18  error:  cannot delete old cartesian2DMesh.exe
        Permission denied
error:  cannot delete old cartesianMesh.exe
        Permission denied
error:  cannot delete old checkSurfaceMesh.exe
        Permission denied
error:  cannot delete old copySurfaceParts.exe
        Permission denied
error:  cannot delete old extrudeEdgesInto2DSurface.exe
        Permission denied
error:  cannot delete old FLMAToSurface.exe
        Permission denied
error:  cannot delete old FMSToSurface.exe
        Permission denied
error:  cannot delete old FMSToVTK.exe
        Permission denied
error:  cannot delete old generateBoundaryLayers.exe
        Permission denied
error:  cannot delete old importSurfaceAsSubset.exe
        Permission denied
error:  cannot delete old improveMeshQuality.exe
        Permission denied
error:  cannot delete old improveSymmetryPlanes.exe
        Permission denied
error:  cannot delete old libmeshLibrary.dll
        Permission denied
error:  cannot delete old mergeSurfacePatches.exe
        Permission denied
error:  cannot delete old meshToFPMA.exe
        Permission denied
error:  cannot delete old patchesToSubsets.exe
        Permission denied
error:  cannot delete old pMesh.exe
        Permission denied
error:  cannot delete old preparePar.exe
        Permission denied
error:  cannot delete old removeSurfaceFacets.exe
        Permission denied
error:  cannot delete old scaleMesh.exe
        Permission denied
error:  cannot delete old scaleSurfaceMesh.exe
        Permission denied
error:  cannot delete old subsetToPatch.exe
        Permission denied
error:  cannot delete old surfaceFeatureEdges.exe
        Permission denied
error:  cannot delete old surfaceGenerateBoundingBox.exe
        Permission denied
error:  cannot delete old surfaceToFMS.exe
        Permission denied
error:  cannot delete old tetMesh.exe
        Permission denied
22:55:18  Traceback (most recent call last):
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in run
22:55:18      self.downloadCfMesh()
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 455, in downloadCfMesh
22:55:18      CfdTools.runFoamCommand(
22:55:18    File "C:\Users\rolan\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 651, in runFoamCommand
22:55:18      raise subprocess.CalledProcessError(exit_code, cmdline)
22:55:18  subprocess.CalledProcessError: Command '{ mkdir -p "$FOAM_APPBIN" && cd "$FOAM_APPBIN" && unzip -o "/c/Users/rolan/AppData/Local/Temp/tmp8y3v42bt.zip"; }' returned non-zero exit status 50.
Then tried to reinstall HiSA. That gave no errors.
Can you try running FreeCAD as administrator to do the installation?
Did dependency check. Answer:
cfMesh not found

Perhaps HiSA installed OK.
Looks like it. The behaviour is different for cfMesh because the binaries are replacing existing default ones from the OpenFOAM installation. I might have to re-look at this, but for now, see if it works running as administrator.
By the way, do you know what this means: "windows support (mingw64) is runtime only" ? Something to worry? It is in RED!
Nothing to worry about. This is printed by the OpenFOAM terminal when it starts up - it is printed to stderr, but it is not an error, just an informational message to let you know that code cannot be compiled in the environment.

Please could you report back if you get this to work by running as Administrator for the installation part. It does not really surprise me since you are installing in Program Files, but I would have expected the original location (in AppData) to have worked ok.
User avatar
oliveroxtoby
Posts: 645
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

Roland wrote: Thu Mar 18, 2021 11:14 pm Dear Oliver,

additionally, the commands "simpleFoam"and "hisa" in terminal give errors:
This is no problem - it is the expected behaviour (because the commands are not being run in a valid case directory)
oliveroxtoby wrote: Thu Mar 18, 2021 2:43 pm The first two commands should exit with a file not found error, but I would like to see if there is a complaint about libOpenFOAM.dll not being found instead.
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

Great advice, Oliver!

To run FC19 as administrator did the trick to inslal cfMesh.

So it seems. Because, there is still some doubt. What do you think of these results here below?


Dependency check says:

Code: Select all

cfMesh-CfdOF version 1.8 required	
Report says:

Code: Select all

10:02:52  Checking CFD workbench dependencies...
10:03:27  Checking FreeCAD version
10:03:27  Checking for OpenFOAM:
10:03:27  OpenFOAM directory: C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012
10:03:27  System: Windows
10:03:27  Runtime: MinGW
10:03:27  Running  echo $FOAM_API
10:03:27  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; echo $FOAM_API']
10:03:27  Sourcing OpenFOAM environment...
10:03:27  openfoam: windows support (mingw64) is runtime only
10:03:55  2012
10:03:55  Running  cartesianMesh -version
10:03:56  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cartesianMesh -version']
10:03:56  Sourcing OpenFOAM environment...
10:03:56  openfoam: windows support (mingw64) is runtime only
10:04:25  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\cartesianMesh.exe -version
Date   : Mar 19 2021
Time   : 10:04:25
Host   : DESKTOP-5QM78MA
PID    : 19404
I/O    : uncollated
Case   : C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/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.7
10:04:25  cfMesh-CfdOF version 1.8 required
10:04:27  Running  hisa -version
10:04:27  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; hisa -version']
10:04:27  Sourcing OpenFOAM environment...
10:04:27  openfoam: windows support (mingw64) is runtime only
10:04:56  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\hisa.exe -version
Date   : Mar 19 2021
Time   : 10:04:56
Host   : DESKTOP-5QM78MA
PID    : 22220
I/O    : uncollated
Case   : C:/Program Files/ESI-OpenCFD/OpenFOAM/v2012/msys64/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

10:04:56  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hisa 1.4.2
10:04:57  Checking for paraview:
10:04:59  Checking for Plot workbench:
10:04:59  Checking for gmsh:
10:04:59  Running  'C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin/gmsh.exe' -version
10:04:59  Raw command:  ['C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\rolan\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', "echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; 'C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24267-Win-Conda_vc14.x-x86_64/bin/gmsh.exe' -version"]
10:04:59  Sourcing OpenFOAM environment...
10:04:59  openfoam: windows support (mingw64) is runtime only
10:05:28  4.6.0
10:05:29  Completed CFD dependency check
Best regards,

Roland
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

It's working, Oliver.
At least a first test run is producing a Residuals Graph.
Thanks for your efforts

Roland
Post Reply