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

[snappyHexMesh] snappy refuses to mesh ellipsoid (but works for every other shape)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2016, 04:25
Default snappy refuses to mesh ellipsoid (but works for every other shape)
  #1
New Member
 
Lilly
Join Date: May 2014
Posts: 11
Rep Power: 12
5tern is on a distinguished road
Dear Foamers,

I'm working on an external flow around different shapes. I already tried a sphere, a submarine and various others.
Every time I used snappyHexMesh for meshing and it worked like a charm. Now, I use the same setup like for the sphere and everything else, I only exchanged the .stl-files.

If I run
1) only castellatedMesh: The refinement boxes occur, but no surface refinement. In the log-file I found:

Code:
Surface refinement iteration 0
------------------------------

Marked for refinement due to surface intersection          : 0 cells.
Determined cells to refine in = 0.02 s
Selected for refinement : 0 cells (out of 7680)
Stopping refining since too few cells selected.
2) castellatedMesh + snap: It snaps perfectly, but again, there's not the specified refinement of the surface.

3) all of it: The layers look awful of course...

I used different .stl's from various meshers, I also checked them with Rhino and Blender and found nothing bad. Also, I loaded the blockMesh and stl at the same time in ParaView and the dimensions and position match.

Currently I am working with version 2.4.0 (it's not possible to upgrade).
Please find my case here: https://www.dropbox.com/s/2p7eukjs69...psoid.zip?dl=0

I would appreciate if somebody could have a look at it and enlighten me :-)
Thank you!
5tern is offline   Reply With Quote

Old   October 7, 2016, 05:12
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Your blockMesh is too coarse and as a result snappy cannot detect the ellipsoid/determine the cells that have to be refined based on ellipsoid stl.

Double the number of cells in the x & z directions and you will see it working.

Cheers,
Antimony
Attached Images
File Type: png ellipsoidNew.png (122.3 KB, 28 views)
Antimony is offline   Reply With Quote

Old   October 7, 2016, 05:25
Default
  #3
New Member
 
Lilly
Join Date: May 2014
Posts: 11
Rep Power: 12
5tern is on a distinguished road
Thank you very much for your fast reply.
I will give it a try in some minutes.
EDIT: Of course it worked excellently.

So new questions pop up in my mind:

1) I understand that the surface refinement orientates towards the initial blockMesh. Thus, refinement boxes won't help here, correct?

2) Is there an approximation/ a ratio for the relation between the dimensions of the body and cell size of the surrounding mesh? I am just wondering, because the sphere I meshed before had nearly the same dimensions.

Thank you!

Last edited by 5tern; October 7, 2016 at 05:36. Reason: tried suggestion
5tern is offline   Reply With Quote

Old   October 7, 2016, 05:43
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

You are welcome.

I am no expert at snappyHexMesh, but I will bravely attempt to answer your questions based on my understanding of it.

1. Refinement boxes mainly focus on refining the cells in a volume. Capturing the surface is mainly done (if I am not wrong) in the feature edge refinement and surface refinement.

2. I don't know any such number, but I would guess roughly at least 4 cells in the vicinity of the geometry will help in detecting the geometry.

Cheers,
Antimony

P.S. The go-to-guide for me for snappyHexMesh is this: http://openfoamwiki.net/images/f/f0/...SlidesOFW7.pdf
Antimony is offline   Reply With Quote

Old   October 7, 2016, 05:52
Default
  #5
New Member
 
Lilly
Join Date: May 2014
Posts: 11
Rep Power: 12
5tern is on a distinguished road
Thank you! :-)
5tern is offline   Reply With Quote

Reply

Tags
refinementsurfaces, snappy, snappyhexmesh, surface refinement


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 06:21
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


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