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

[snappyHexMesh] SHM not snapping

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2013, 18:50
Default SHM not snapping
  #1
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
snappyHexMesh is castellating (refining) but it is not snapping to the surface, no matter what I try to do.

When my own geometries didn't work, I tried the pipeBend tutorial suggested on the SwiftSnap page ( http://openfoamwiki.net/index.php/Contrib/SwiftSnap ). The result is shown in the attachment.

I also tried the "cylinderCase" described on this wiki ( https://sites.google.com/site/snappy.../cylinder-case ), and the result is also attached.

This has been tried in OF2.1-x and OF1.6-ext.

To me, this tells me the case setups are correct, but there's something not working on my machine. Perhaps some geometric-based dependency is improperly installed or something... I am working on Linux Mint XFCE.

That is my tale of woe.

Does anyone have any suggestions?

-Dave
Attached Images
File Type: jpg pipeBendTutorial.jpg (85.4 KB, 27 views)
File Type: png cylinderCaseWiki.png (21.9 KB, 15 views)
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   January 20, 2013, 19:41
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi Dave,

I have modified the cylinder case because it did not take advantage of the surface features, and changed a few settings in snappyHexMeshDict (taken from the flange tutorial). Could you please run the case with ./Allrun and see what happens, so we have a common reference? You find a screenshot of the result I obtained attached.

Best,
Attached Images
File Type: jpg cylinder.jpg (76.9 KB, 23 views)
Attached Files
File Type: gz cylinder_case_ap.tar.gz (61.6 KB, 6 views)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   January 20, 2013, 23:06
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Thanks Alberto,

I ran your case, and the result did snap. It looks like the image you attached. So that raises the question: what am I doing wrong?

I did a diff between the two case directories, and I think my mistake is exactly what you tweeted me about:
Quote:
Alberto Passalacqua ‏@albertop78 @DavidGaden Did you forget to use surfaceFeatureExtract or to include the emesh? :-)
Mind you, the pipe bend tutorial was using the emesh...

So I will use your case as a template and report back tomorrow with the results!

Thanks again!

-Dave
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   January 20, 2013, 23:19
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
OK. Let me know :-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   January 22, 2013, 21:37
Default
  #5
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Thanks for the assistance, Alberto.

So I got your case working, but I still can't seem to get mine working. Maybe you can tell me what I'm doing wrong (if you have the time)?

I've attached the case file, and the blender file is available here for the next few weeks:

https://dl.dropbox.com/u/18048766/Un...Reactor2.blend

The result I get is shown in the attached picture.
Attached Images
File Type: png Reactor.png (53.6 KB, 28 views)
Attached Files
File Type: gz reactor.tar.gz (30.0 KB, 4 views)
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   January 23, 2013, 00:02
Default
  #6
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi Dave,

I attach a case that seems to work. Major changes:

- added all the stl files to the eMesh creation (there were typos and not removing the log the last 4 files were not generated by the ./Allrun script)

- refined blockMesh box

- changed surfaceFeatureExtract angle to 150

Check the mesh quality to be safe, and in case it's not good enough, I'd refine the blockMesh box.

Best,
Attached Files
File Type: gz reactor.tar.gz (25.1 KB, 8 views)
marupio and atg like this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   January 23, 2013, 22:03
Default
  #7
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Wow! Thanks so much, Alberto! That is an awesome mesh.

It would be embarrassing to admit how long I've been struggling with this. This also was standing in the way of my final simulation for my PhD. (All the other meshes were simple cubes, so it was easy to just use blockMesh.)

As far as I can see, my mistakes were little typos with the feature extract command, and I didn't include all the eMesh files.

Thank-you so much!

-Dave
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   January 23, 2013, 22:28
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by marupio View Post
Wow! Thanks so much, Alberto! That is an awesome mesh.
Welcome.

Quote:
As far as I can see, my mistakes were little typos with the feature extract command, and I didn't include all the eMesh files.
Yes, that was it, and some tweaking of the angle.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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] SHM not snapping on simple case slaners OpenFOAM Meshing & Mesh Conversion 7 June 6, 2018 07:43
[snappyHexMesh] SHM not snapping on simple case slaners OpenFOAM Meshing & Mesh Conversion 2 June 5, 2018 09:59
[snappyHexMesh] SHM not snapping to some surfaces Swift OpenFOAM Meshing & Mesh Conversion 13 January 4, 2016 02:56
[snappyHexMesh] Can't couple front & back faces in cyclic BC after snapping in SHM hakonbar OpenFOAM Meshing & Mesh Conversion 4 December 8, 2013 17:50
[snappyHexMesh] SHM: feature edge snapping not conforming thab OpenFOAM Meshing & Mesh Conversion 3 November 26, 2012 15:04


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