nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
100 stars 17 forks source link

Mesh export doesn't finish in BaramMesh #93

Closed MTODC closed 2 months ago

MTODC commented 3 months ago

Describe the bug As reported in Issue #81 , but in Windows 11 OS. The export process is stucked in "Processing Cell Zones", I wait 1 hour before killing the process.

To Reproduce Link for the BaramMesh folder: https://drive.google.com/file/d/13uig3SyHgURKyd-T4qW7YAMS1-nibWNO/view?usp=sharing

Screenshots image

Desktop:

jiban commented 3 months ago

Dear @MTODC, I've looked into your case and found a root cause of it. You had configured two regions in Region step, but only one mesh region was identified by snappyHexMesh. The process in export step failed because the mesh had only one region while it expected two regions.

It was caused by a leak between Inside_surf and Duct. As you may know every boundary in the geometry should be tight. For example, following is a capture of STL files (Inlet and Duct).

image

Every vertex of the two surfaces meets each other exactly at the same point. There is no leakage (hole).

On the other hand, following is a capture of Inside_surf and Duct.

image

There are leaks between the two surfaces. This is a simplified drawing.

image

I think it would be better if BaramMesh could detect that generated mesh had only one region and show a warning message. I will study if there is a way to figure out it.

In the mean time, could you make the surfaces tight and try again?

Best regards, Jake

MTODC commented 3 months ago

@jiban now it works, thank you!!