cfmesh issue

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

Post Reply
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

cfmesh issue

Post by Sidemountyucatan »

OS: Windows 10 Version 1909
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Switzerland (de_CH)

For the model attached cfmesh exits with error and responds with the following error message:
14:36:17 Part to mesh:
Name: Cut, Label: Gasbody, ShapeType: Compound
14:40:03 CharacteristicLengthMax: 2.5
14:40:03 Exporting mesh refinement data ...
14:40:03 Matching boundary patches
14:40:03 Matching boundary layer regions
14:40:03 ElementDimension: 3D
14:40:03 Exporting the part surfaces ...
14:40:03 Triangulating part Gasbody, patch patch_0_0 ... writing to file
14:40:06 Populating mesh dictionaries in folder C:\Users\Admin\AppData\Local\Temp\meshCase
14:40:06 Successfully wrote meshCase to folder C:\Users\Admin\AppData\Local\Temp\meshCase
14:40:06 Wrote mesh case to C:\Users\Admin\AppData\Local\Temp\meshCase
14:40:35 Executing: C:\PROGRA~1\BLUECF~2\msys64\usr\bin\bash --login -O expand_aliases -c cd "/c/Users/Admin/AppData/Local/Temp/meshCase" && ./Allmesh
14:40:35 Raw command: ['C:/Program Files/FreeCAD 0.19/bin\\python.exe', '-u', 'C:\\Users\\Admin\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\PROGRA~1\\BLUECF~2\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'cd "/c/Users/Admin/AppData/Local/Temp/meshCase" && ./Allmesh']
14:40:38 Setting environment for OpenFOAM 8 mingw-w64 Double Precision (of8-64), using MSMPI71 - please wait...
14:40:38 Environment is now ready. Notes:
- You can change between installed versions by running: ofmenu
- You can change to other predefined versions by running: ofmenuNew
14:40:40 ./Allmesh: Zeile 9: surfaceFeatureEdges: Kommando nicht gefunden. (Commando not found)



Gmesh instead works wih no error.

What is the problem ?
Attachments
Gasbody.FCStd
(290.53 KiB) Downloaded 51 times
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: cfmesh issue

Post by thschrader »

Hi,
for me cfmesh works.
I used 2 refinement-stages, 1,7 Mio cells, 40 min runtime on Intel i5 cpu.
Gasbody_ts.FCStd
(334.01 KiB) Downloaded 62 times

EDIT:
snappyhexmesh needs 22 min for 2 Mio cells.
Gasbody_snappyhexmesh.FCStd
(334.21 KiB) Downloaded 61 times
cooling.JPG
cooling.JPG (103.13 KiB) Viewed 4417 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: cfmesh issue

Post by oliveroxtoby »

Sidemountyucatan wrote: Fri Nov 12, 2021 1:34 pm 14:40:40 ./Allmesh: Zeile 9: surfaceFeatureEdges: Kommando nicht gefunden. (Commando not found)



Gmesh instead works wih no error.

What is the problem ?
surfaceFeatureEdges is a cfMesh utility, so it sounds like cfMesh has not been installed completely. When installing, make sure you allow the compilation process to finish completely before closing the preferences window.
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Re: cfmesh issue

Post by Sidemountyucatan »

thschrader wrote: Sat Nov 13, 2021 10:13 am Hi,
for me cfmesh works.
I used 2 refinement-stages, 1,7 Mio cells, 40 min runtime on Intel i5 cpu.
Gasbody_ts.FCStd


EDIT:
snappyhexmesh needs 22 min for 2 Mio cells.
Gasbody_snappyhexmesh.FCStd
cooling.JPG
Thx a lot for the feedback !
I have a general question to the cfdof workbench: is there any update in sight to simulate thermal problems too ? The WB is a really nice tool but only focussed on fluid flow. Respectively, can yo give a recommendation how to do thermal / flow coupled problems in freecad ? Is there any ?
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: cfmesh issue

Post by thschrader »

Sidemountyucatan wrote: Mon Nov 15, 2021 12:19 pm Thx a lot for the feedback !
I have a general question to the cfdof workbench: is there any update in sight to simulate thermal problems too ? The WB is a really nice tool but only focussed on fluid flow. Respectively, can yo give a recommendation how to do thermal / flow coupled problems in freecad ? Is there any ?
Something like this?
https://forum.freecadweb.org/viewtopic. ... it=buoyant
https://www.openfoam.com/documentation/ ... eFoam.html
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Re: cfmesh issue

Post by Sidemountyucatan »

thschrader wrote: Mon Nov 15, 2021 12:37 pm
Sidemountyucatan wrote: Mon Nov 15, 2021 12:19 pm Thx a lot for the feedback !
I have a general question to the cfdof workbench: is there any update in sight to simulate thermal problems too ? The WB is a really nice tool but only focussed on fluid flow. Respectively, can yo give a recommendation how to do thermal / flow coupled problems in freecad ? Is there any ?
Something like this?
https://forum.freecadweb.org/viewtopic. ... it=buoyant
https://www.openfoam.com/documentation/ ... eFoam.html
Yes exactly. Is there any path to implement it into cfdof ?
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: cfmesh issue

Post by thschrader »

buoyantSimpleFoam is allready part of cfdof-wb. Try this file:
chipCooling.FCStd
(21.07 KiB) Downloaded 50 times
settings.JPG
settings.JPG (36.41 KiB) Viewed 4130 times
Post Reply