[solved] CAARC building, cfmesh error

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
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

[solved] CAARC building, cfmesh error

Post by thschrader »

Hello,
can someone have a look at this file:
CAARC.FCStd
(43.14 KiB) Downloaded 57 times

I want to run this example:
https://www.dlubal.com/en-US/support-an ... ase/001624

I tried to reconstruct the mesh (3 volume refinement stages, one surface refinement, no boundary layer elements)
When using snappyhexmesh, meshing and sim works, but cfmesh gives back an error, see below.
cfdof-wb is "fresh", what am I doing wrong?
Thanks

cfmesh message:

Code: Select all

10:24:41  Generating stack trace...
10:24:41  

Backtrace:
	ZN10StackTraceC1Ev [0x626c1855+0x25]
		 module: C:\PROGRA~1\BLUECF~2\ThirdParty-8\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
	ZN4Foam5error10printStackERNS_7OstreamE [0x6c30ae5a+0x23a]
		 module: C:\PROGRA~1\BLUECF~2\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZN4Foam6sigFpe13sigFpeHandlerEi [0x6c30b693+0x33]
		 module: C:\PROGRA~1\BLUECF~2\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	(No symbol) [0x401fe2]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\bin\cartesianMesh.exe
	_C_specific_handler [0x7ff93f547ff8+0x98]
		 module: C:\WINDOWS\System32\msvcrt.dll
	0_chkstk [0x7ff9410120cf+0x11f]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	RtlRaiseException [0x7ff940fc1454+0x434]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	KiUserExceptionDispatcher [0x7ff941010bfe+0x2e]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	ZN4Foam13edgeExtractorD1Ev [0x61f4a5df+0x112f]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	GOMP_parallel [0x63606dc9+0x49]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\bin\libgomp-1.dll
	ZN4Foam13edgeExtractor38distributeBoundaryFacesNormalAlignmentEv [0x61f4d9fd+0x17d]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	ZN4Foam13edgeExtractor12extractEdgesEv [0x61f4f1be+0x1e]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	ZN4Foam22cartesianMeshGenerator14extractPatchesEv [0x6201e205+0x55]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	ZN4Foam22cartesianMeshGenerator12generateMeshEv [0x6201edf0+0x330]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	ZN4Foam22cartesianMeshGeneratorC2ERKNS_4TimeE [0x6201f317+0x4b7]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\lib\libmeshLibrary.dll
	(No symbol) [0x402f14]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\bin\cartesianMesh.exe
	(No symbol) [0x4013c1]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\bin\cartesianMesh.exe
	(No symbol) [0x4014f6]
		 module: C:\PROGRA~1\BLUECF~2\ofuser-of8\platforms\mingw_w64GccDPInt32Opt\bin\cartesianMesh.exe
	BaseThreadInitThunk [0x7ff93fe57034+0x14]
		 module: C:\WINDOWS\System32\KERNEL32.DLL
	RtlUserThreadStart [0x7ff940fc2651+0x21]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
10:24:41  
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27428 (Git)
Build type: Release
Branch: master
Hash: 27460358508a2057e0ec57a418641435f12628dd
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
caarc_testbuilding.JPG
caarc_testbuilding.JPG (56.13 KiB) Viewed 3157 times
Last edited by thschrader on Wed Apr 27, 2022 8:17 am, edited 1 time in total.
trijonb
Posts: 10
Joined: Mon May 24, 2021 1:07 am

Re: CAARC building, help needed

Post by trijonb »

I gave this a try, and didn't seem to have an issue (meshing or solving) - although the meshing (with cfMesh) did take quite a long time, and was quite memory intensive. Unless its something to do with v0.20, did you perhaps run out of memory?

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/New Zealand (en_NZ)
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CAARC building, help needed

Post by thschrader »

trijonb wrote: Thu Apr 21, 2022 10:06 am I gave this a try, and didn't seem to have an issue (meshing or solving)
Thanks for testing.
Which cfmesh-version do you use?
My:
cfmesh_version.JPG
cfmesh_version.JPG (39.76 KiB) Viewed 3098 times
trijonb
Posts: 10
Joined: Mon May 24, 2021 1:07 am

Re: CAARC building, help needed

Post by trijonb »

"cfMesh-CfdOF (cfMesh 1.1.2) 1.12"

I'm using ESI's cross compilation version though
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CAARC building, help needed

Post by thschrader »

Did some testing:
-reinstalled cfmesh
-using FC0.19 ==> cfmesh crashes
-using FC0.20 Conda built instead of LP ==> cfmesh crashes

When running some older files with a more complicated design and refinement zones,
there is no problem. There must be a modelling error in the CAARC-model, which I have overlooked.
Easy looking things can be hard...
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CAARC building, help needed

Post by oliveroxtoby »

thschrader wrote: Fri Apr 22, 2022 2:24 pm Did some testing:
-reinstalled cfmesh
-using FC0.19 ==> cfmesh crashes
-using FC0.20 Conda built instead of LP ==> cfmesh crashes

When running some older files with a more complicated design and refinement zones,
there is no problem. There must be a modelling error in the CAARC-model, which I have overlooked.
Easy looking things can be hard...
It runs fine for me, including on blueCFD 2020. As a further check, could you zip up and share the 'meshCase' folder after clicking 'Write mesh case' so that we can eliminate any problem on the FreeCAD/CfdOF side?
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CAARC building, help needed

Post by thschrader »

CAARC-model and meshcase:
CAARC.FCStd
(42.94 KiB) Downloaded 52 times
meshCase_CAARC.zip
(6.55 KiB) Downloaded 49 times

And a working model:
buildings.FCStd
(153.35 KiB) Downloaded 61 times
Case writing needs 3 min, be patient. Written stl has 207 MB...

done with bluecfd2020 and
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27428 (Git)
Build type: Release
Branch: master
Hash: 27460358508a2057e0ec57a418641435f12628dd
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CAARC building, help needed

Post by oliveroxtoby »

thschrader wrote: Sat Apr 23, 2022 7:10 am meshCase_CAARC.zip
Thanks - I was able to reproduce the error with the mesh case. Should be fixed now if you update cfMesh.
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CAARC building, help needed

Post by thschrader »

oliveroxtoby wrote: Tue Apr 26, 2022 7:42 pm Thanks - I was able to reproduce the error with the mesh case. Should be fixed now if you update cfMesh.
Done. Works.
Thanks a lot.
cfmesh_update.JPG
cfmesh_update.JPG (85.71 KiB) Viewed 2652 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CAARC building, help needed

Post by oliveroxtoby »

thschrader wrote: Sat Apr 23, 2022 7:10 am Case writing needs 3 min, be patient. Written stl has 207 MB...
That issue should be resolved now...
Post Reply