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

[snappyHexMesh] Meshing a sphere with snappyHexMesh (for beginners)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2015, 08:34
Default Meshing a sphere with snappyHexMesh (for beginners)
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hello everybody,

due to the fact that I get messages frequently, I created a new very simple meshing tutorial. In this tutorial, the aim is to mesh a sphere inside a channel and add several layers (six layers 100%).

This is only for really beginners who want to start with snappyHexMesh.
You can find this tutorial here: https://holzmann-cfd.de/


Hope its helpful,
babakflame likes this.
__________________
Keep foaming,
Tobias Holzmann

Last edited by Tobi; December 19, 2017 at 08:39.
Tobi is offline   Reply With Quote

Old   May 27, 2015, 11:27
Default
  #2
New Member
 
Yaoyina
Join Date: Sep 2014
Posts: 7
Rep Power: 11
yaoyina is on a distinguished road
Hi,I've downloaded the case you share.As there is no blockMeshDict in the folder,I make a blockMeshDict by myself.I use blockMesh to get a big cube,and use snappyHexMesh to get the sphere.My question is how could I retain both the cube and the sphere.It means that I don't want to remove any cells in the whole region.Can you give me some advice?Thank you in advance!
yaoyina is offline   Reply With Quote

Old   May 29, 2015, 15:28
Default
  #3
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
I ran this under 2.4.0 and it fails to work. I enclose the log file
Attached Files
File Type: zip logFile.zip (6.3 KB, 14 views)
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   May 29, 2015, 16:36
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hello yaoyina,

Therefore you have to use faceZones and CellZones in sHMDict. Check out the cht tutorials. Further more you create the mesh in my case with ideasUnvToFoam. Check the script.


@derekm as you saw on my webpage, the tutorial is made for 2.3.1.

At the moment I have not installed 2.4.0 because there is no reason to do this yet.

I will check it in 2 weeks.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 31, 2015, 18:29
Default
  #5
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
got it wrong it does work on 2.4.0 or at least the same as 2.3.1
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   June 1, 2015, 02:52
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Well done and good to know.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   November 20, 2016, 13:45
Default
  #7
Member
 
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 11
arsalan.dryi is on a distinguished road
Dear Tobias,
I want to mesh around a sphere in a cube and also inside the sphere while I'm using your tutorial for the first one. I'm using the searchableSphere option for defining sphere surface and blockMesh for the background mesh instead of using stl surfaces. (water-proof stl surfaces from salome were also tested.)
Everything goes well when the mesh is coarse and surfaceRefinement level is set to a low number around the sphere. But I need a finer mesh for the background and increasing grid numbers from blockMeshDict or using a high refinement level around the surface, results a bad mesh quality (high skewness) and no layers around the sphere. I attached test case for more information. Briefly, I need a finer background mesh with high number of layers around the sphere.
I would be very grateful if you could give me some comment for my problem.
Thanks in advance,
Regards,
Arsalan.
Attached Files
File Type: gz snappySphereAndLayer.tar.gz (5.3 KB, 33 views)

Last edited by arsalan.dryi; November 20, 2016 at 16:35.
arsalan.dryi is offline   Reply With Quote

Old   November 20, 2016, 18:39
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear arsalan,

I will not check your case because there is no time at the moment. Just one tip. Scale your geometry by 1000 mesh everything and downscale it again. if it will not work you do something wrong

Good luck
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] snappyHexMesh - 3D Wing Meshing Setup & Trials denbjornen OpenFOAM Meshing & Mesh Conversion 1 May 25, 2020 12:14
[snappyHexMesh] bumps and broken surface after meshing with snappyhexmesh Yemi2favours OpenFOAM Meshing & Mesh Conversion 0 February 12, 2018 13:07
[snappyHexMesh] Error "keyword meshQualityControls is undefined" while meshing with snappyHexMesh JeanDidier OpenFOAM Meshing & Mesh Conversion 2 February 9, 2018 15:48
[snappyHexMesh] Sphere in a channel by snappyHexMesh arsalan.dryi OpenFOAM Meshing & Mesh Conversion 0 November 14, 2016 17:01
[ANSYS Meshing] Structured Volumetric Meshing in Workbench for a Sphere AS_Aero ANSYS Meshing & Geometry 0 March 19, 2013 07:28


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