CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Problem in using snappyHexMesh for a multi-region heat exchanger

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2021, 14:19
Default Problem in using snappyHexMesh for a multi-region heat exchanger
  #1
New Member
 
Join Date: Jul 2021
Posts: 2
Rep Power: 0
akarimi is on a distinguished road
Hi,

Based on a shell-and-tube heat exchanger example given in the tutorials of OpenFOAM v8 (Foundations version), I tried to generate a mesh for a slightly different heat exchanger using snappyHexMesh. First, I generated the STL files for my heat exchanger in Salome similar to those STL files given in the tutorial. Then I edited the blockMeshDict and snappyHexMeshDict files accordingly. However, when I try to generate the mesh using snappy I get a large number of non-orthogonal elements and lots of warnings about not being able to find a surface near to some points and at the end, it's unable to generate the appropriate mesh. I tried with different number of cells in blockMeshDict and with different locationInMesh in snappyHexMeshDict, but the result didn't change. Considering the similarity of my case and its geometry and physics with the case given in the tutorial, I really wonder what could be the issue. Attached, you may find the case files. I'd really appreciate it if you could help me to resolve the problem.

Regards,
Ali
Attached Files
File Type: zip HX.zip (130.1 KB, 3 views)
akarimi is offline   Reply With Quote

Old   August 28, 2021, 11:28
Default
  #2
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 5
oryx is on a distinguished road
Your STL files are not "waterproofed".

I opened the STL files in ParaView, and as you can see in the attachments, you have many non-connected edges and areas with ugly looking triangulation. with such bad STLs, snappyHexMesh will have a hard time snapping to the feature edges of your geometry.

What I suggest is:
  1. Perform a better surface triangulation (maybe using SALOME) (bonus: follow Tobias Holzmann's tutorials, he addresses this issue deeply).
  2. use surfaceFeatureExtract to have a better snapping to the surface
Attached Images
File Type: jpg 1.jpg (42.4 KB, 23 views)
File Type: jpg 2.jpg (49.3 KB, 22 views)
oryx is offline   Reply With Quote

Old   August 28, 2021, 11:31
Default
  #3
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 5
oryx is on a distinguished road
Your goal is to have surface triangulation looking pretty much like this
Attached Images
File Type: jpg 3.jpg (52.4 KB, 25 views)
oryx is offline   Reply With Quote

Old   August 31, 2021, 12:27
Default
  #4
New Member
 
Join Date: Jul 2021
Posts: 2
Rep Power: 0
akarimi is on a distinguished road
Thanks a lot for your help. I tried to follow your recommendations in every step. I also watched Tobias tutorials on Youtube. After that, using Salome, I generated a vey fine triangulated STL files (please see the files in the following link). Then I created a background mesh using blockMesh and finally I applied snappy to create the castellated mesh. But even before snapping and in the process of generating the castellated mesh, always I get a pretty large number of non-orthogonal cells. I tried to increase the level of refinement (through the level parameter), but it just increased the number of non-orthogonal cells. Also, I used the surfaceFeatureExtract and embedded them in the snappy process, however, it didn't make much difference. I'm wondering if I'm missing something here and I'd really appreciate it if you could give me some advice. Thanks.

https://www.dropbox.com/s/ogyx8o327x3tui9/HX.zip?dl=0
akarimi is offline   Reply With Quote

Reply

Tags
heat exchanger, snappyhexmesh


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent Heat exchanger model gimson FLUENT 0 May 10, 2021 05:30
chtMultiRegionFoam connection between solid and fluid region of heat exchanger ahab OpenFOAM 1 December 18, 2019 01:37
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) Adam_K OpenFOAM Running, Solving & CFD 2 March 27, 2019 07:51
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
2D heat exchanger problem Kwiaci FLUENT 0 June 7, 2012 08:12


All times are GMT -4. The time now is 11:52.