CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

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 Display Modes
Old   February 2, 2015, 08:34
Default Meshing a sphere with snappyHexMesh (for beginners)
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Tobi will become famous soon enoughTobi will become famous soon enough
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: http://www.holzmann-cfd.de/index.php...sphere-meshing


Hope its helpful,
babakflame likes this.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials, publications and videos on www.Holzmann-cfd.de
OpenFOAM Beginners should check out the new wiki on wiki.openfoam.com
A list of some active OpenFOAM contributers can be found »here«
A book about the basics of »Mathematics, Numerics, Derivations and OpenFOAM« can be found on www.Holzmann-cfd.de
Tobi is online now   Reply With Quote

Old   May 27, 2015, 10:27
Default
  #2
New Member
 
Yaoyina
Join Date: Sep 2014
Posts: 7
Rep Power: 4
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, 14:28
Default
  #3
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 134
Rep Power: 5
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, 6 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, 15:36
Default
  #4
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Tobi will become famous soon enoughTobi will become famous soon enough
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.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials, publications and videos on www.Holzmann-cfd.de
OpenFOAM Beginners should check out the new wiki on wiki.openfoam.com
A list of some active OpenFOAM contributers can be found »here«
A book about the basics of »Mathematics, Numerics, Derivations and OpenFOAM« can be found on www.Holzmann-cfd.de
Tobi is online now   Reply With Quote

Old   May 31, 2015, 17:29
Default
  #5
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 134
Rep Power: 5
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, 01:52
Default
  #6
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Tobi will become famous soon enoughTobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Well done and good to know.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials, publications and videos on www.Holzmann-cfd.de
OpenFOAM Beginners should check out the new wiki on wiki.openfoam.com
A list of some active OpenFOAM contributers can be found »here«
A book about the basics of »Mathematics, Numerics, Derivations and OpenFOAM« can be found on www.Holzmann-cfd.de
Tobi is online now   Reply With Quote

Old   November 20, 2016, 13:45
Default
  #7
Member
 
Arsalan
Join Date: Jul 2014
Posts: 71
Rep Power: 4
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, 0 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
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Tobi will become famous soon enoughTobi will become famous soon enough
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
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials, publications and videos on www.Holzmann-cfd.de
OpenFOAM Beginners should check out the new wiki on wiki.openfoam.com
A list of some active OpenFOAM contributers can be found »here«
A book about the basics of »Mathematics, Numerics, Derivations and OpenFOAM« can be found on www.Holzmann-cfd.de
Tobi is online now   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sails Meshing with snappyHexMesh Paolo.F OpenFOAM Native Meshers: snappyHexMesh and Others 13 August 14, 2015 02:28
Error in meshing a Ship hull using snappyhexmesh Sachin m OpenFOAM Pre-Processing 1 August 27, 2014 23:27
snappyHexMesh stops meshing Tensian OpenFOAM Native Meshers: snappyHexMesh and Others 2 January 26, 2014 10:54
Meshing porsche with snappyHexMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 3 August 28, 2013 04:51
Meshing a sphere with snappyHexMesh Cyberholmes OpenFOAM 2 July 19, 2011 16:46


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