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

[snappyHexMesh] doesn't fit the geometry what i expected

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2024, 11:27
Default doesn't fit the geometry what i expected
  #1
New Member
 
Hyein
Join Date: Jan 2024
Posts: 6
Rep Power: 2
main is on a distinguished road
hi I try to simulate the square ribs in duct in quasi 2 dimension.
I generate the geometry of duct using block mesh and using stl file I intended to inplement the square ribs and then generate mesh with sHM.
After commanding sHM in terminal i got this geometry (see attatched picture error)
What i expected was like in file (squareribs)
You can see the ribs doesn't fit what i made in stlfile.
Does anyone know what is the problem?
Attached Images
File Type: jpg error.jpg (18.3 KB, 15 views)
File Type: png error1.PNG (69.7 KB, 15 views)
File Type: png squareribs.PNG (121.1 KB, 14 views)
Attached Files
File Type: txt snappyHexMeshDict.txt (9.0 KB, 2 views)
main is offline   Reply With Quote

Old   January 22, 2024, 04:05
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
Hello,

Just to make sure, have you run snappyHexMesh with the -overwrite option? If not, have you moved to the last timestep in ParaView to visualize your mesh?

I'm suspecting your screenshots could show the castellated mesh and not the snapped mesh.

Yann
Yann is offline   Reply With Quote

Old   January 22, 2024, 05:52
Default
  #3
New Member
 
Hyein
Join Date: Jan 2024
Posts: 6
Rep Power: 2
main is on a distinguished road
Thank you for your reply. Yes I realized the process is not finished yet. But I finished now. And I have new question do you have any tips to combine the boundary? Bc I want to give the heat on the bottom so that I can see how efficient the ribs depending on the shape. Since I set the block mesh as a duct and ribs using snappyhexMesh, I have teo boundary for heated wall. How can I combine or redefine the boundary?
main is offline   Reply With Quote

Old   January 22, 2024, 05:55
Default
  #4
New Member
 
Hyein
Join Date: Jan 2024
Posts: 6
Rep Power: 2
main is on a distinguished road
I am considering now with toposet btw… Is it possible with toposet?
main is offline   Reply With Quote

Old   January 22, 2024, 08:09
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
Yes you can do it with topoSet.
Or just define the boundary condition you want to use on both patches.
Yann is offline   Reply With Quote

Old   January 22, 2024, 08:23
Default
  #6
New Member
 
Hyein
Join Date: Jan 2024
Posts: 6
Rep Power: 2
main is on a distinguished road
Thank you!

One more question about the 2. option.
So if I group the bottom wall from block mesh and the square ribs in boundary condition and give the heat flux in vertical direction, then the heat flux is automatically applied on surfaces of the square ribs and bottom wall except for where the ribs exist?
main is offline   Reply With Quote

Old   January 22, 2024, 08:38
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
What boundary condition do you intend to use?
Yann is offline   Reply With Quote

Old   January 27, 2024, 13:37
Default
  #8
New Member
 
Hyein
Join Date: Jan 2024
Posts: 6
Rep Power: 2
main is on a distinguished road
I always thank you yann for helping me!!
Using externalWallHeatFluxTemperature constant heat flux. I just tried to group the wall where the heat is applied (bottom wall and square ribs) using createpatchdict. Because the bottom wall I defined by blockMesh is removed automatically where the squareribs exist. But I realized that the heat isn't applied at all on the squareribs in this way.
So I undo the grouping the both boundaries. During running the simulation I check the heat flux value using wallHeatFlux (postprocessin utility) on the bottomwall and it doesn't correspond to the value I specified... less than what i gave...

Is there any other way to apply both boundaries equal value of heat flux?
main is offline   Reply With Quote

Old   January 30, 2024, 04:45
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
Hello,

I'm not sure what is going on, but I think whether you have one single patch or several patch should not matter, both should get the specified heat flux once the solution converged. (did it?)

Quote:
Originally Posted by main View Post
I just tried to group the wall where the heat is applied (bottom wall and square ribs) using createpatchdict. Because the bottom wall I defined by blockMesh is removed automatically where the squareribs exist. But I realized that the heat isn't applied at all on the squareribs in this way.
I'm not sure what you did, but it sounds like something was wrong with your patches if you didn't have any heat flux on the square ribs.
Yann is offline   Reply With Quote

Reply


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
How do I connect a geometry to my solver devansh.purohit Main CFD Forum 4 November 16, 2021 08:51
Question about Geometry vs. Meshes EphemeralMemory ANSYS Meshing & Geometry 2 December 8, 2016 13:02
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 05:38
Running CFD parallel. There is no geometry file! CrashLaker SU2 6 April 10, 2014 03:08
[CAD formats] translating geometry from Abaqus to OpenFOAM skuznet OpenFOAM Meshing & Mesh Conversion 3 January 10, 2014 13:49


All times are GMT -4. The time now is 17:39.