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

[snappyHexMesh] SnappyhexMesh does not snap

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 3 Post By akidess
  • 1 Post By akidess
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2016, 21:34
Default SnappyhexMesh does not snap
  #1
New Member
 
Pieter Van Driessche
Join Date: May 2016
Posts: 4
Rep Power: 9
Pieter is on a distinguished road
I'm new to snappyhexmesh and have problem. It looks like shm is not snapping around the surface. I'm trying to mesh a simple elbow.
I have a attached a snapshot of what it looks like.
snap.jpg
I've also attached my stl, blockmesh, surface extract and shm dict as well

of.zip

Is there anybody who can help me with this?

KR
Pieter is offline   Reply With Quote

Old   November 1, 2016, 22:57
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

There are a couple of errors in your snappyHexMeshDict.

1. Under the geometry section, yours reads:
Quote:
pipe.stl
{
type triSurfaceMesh;
name flange;
}
Instead of flange, it should be the name of the STL file itself. So in this case it should read pipe

2. You have not defined a refinement region in the geometry section and yet you are calling one in the refinementRegions section. The STL cannot double up as the volume where the mesh needs to be refined. You will need to specify a different region name and its type/extents before you can use the volumetric refinement.

3. Your syntax for the refinementRegions needs to be modified. You need to specify "levels" instead of "level" and the "mode" as well. Refer to the user guide for more details.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   November 2, 2016, 02:24
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Quote:
Originally Posted by Antimony View Post
1. Under the geometry section, yours reads:

Instead of flange, it should be the name of the STL file itself. So in this case it should read pipe
Pretty sure this is not true.
Tobi, jairoandres and manbo like this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   November 2, 2016, 03:00
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Maybe I didn't phrase it in the right way. But that is what I have observed, and what was confirmed when I tested this same case with:

Run A: name flange; => does not give a mesh
Run B: name pipe; => able to generate the mesh

sHM gives out warning messages saying that the geometry of the pipe can't be found for run A and just stops halfway.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   November 2, 2016, 03:14
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
If you change the name to "flange", you also need to modify the according entry in the refinement surfaces. Did you do that?

As an example, you can have a look at:
tutorials/multiphase/interDyMFoam/ras/DTCHull/system/snappyHexMeshDict
Antimony likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   November 2, 2016, 03:32
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

I wasn't aware that what was needed was for the <xyz> in "name <xyz>" was the critical one. Always thought it was the file name and consequently made it consistent in the "geometry" and "refinementSurfaces" fields.

Thanks for this heads up!

Cheers,
Antimony
jairoandres likes this.
Antimony is offline   Reply With Quote

Old   November 2, 2016, 20:55
Default
  #7
New Member
 
Pieter Van Driessche
Join Date: May 2016
Posts: 4
Rep Power: 9
Pieter is on a distinguished road
It worked thanks for the replies!
Pieter 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
[snappyHexMesh] Run snappyHexMesh steps (castellated, snap, addlayer) separately Glc OpenFOAM Meshing & Mesh Conversion 6 October 8, 2021 02:50
[snappyHexMesh] snappyHexMesh doesnt snap staustrahltriebwerk OpenFOAM Meshing & Mesh Conversion 47 March 18, 2018 14:19
[snappyHexMesh] only snap edges of specific region with snappyHexMesh mike.franky OpenFOAM Meshing & Mesh Conversion 0 July 19, 2017 06:56
[snappyHexMesh] SnappyHexMesh refine but does not snap malaboss OpenFOAM Meshing & Mesh Conversion 6 December 10, 2014 05:31
[snappyHexMesh] snappyHexMesh failure to snap to geometry Yadasol OpenFOAM Meshing & Mesh Conversion 1 November 17, 2014 05:00


All times are GMT -4. The time now is 23:04.