CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

Gmsh - structured mesh around a sphere

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2022, 11:25
Default Gmsh - structured mesh around a sphere
  #1
New Member
 
Florian
Join Date: May 2021
Posts: 8
Rep Power: 3
Iuvatix is on a distinguished road
Hello,

I want to build a structured mesh around a sphere for numerical simulations using OpenFoam. There I want to compare the stability of the solvers for unstructured and structured grids. The surface mesh around the sphere should look like https://catlikecoding.com/unity/tuto...ho-frontal.png.

I thought I could use Gmsh since it is free and I heard it is quite good, but I am not experienced with Gmsh. I wanted to start defining the 6 surfaces on the sphere, but could not split the curves.

Can someone help me with my approach or has a better way of doing it?

Greetings
Florian
Iuvatix is offline   Reply With Quote

Old   February 9, 2022, 19:41
Default
  #2
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 5
Ship Designer is on a distinguished road
Have you checked the sphere OpenFOAM tutorial in tutorials/mesh/blockMesh/sphere and sphere7 ? I think it should point you in the right direction otherwise I suggest looking into blockMesh's capability of projecting block faces onto surfaces. It's very powerful and you can get very good quality grids but it's very tedious to set up. Good luck!
Ship Designer is offline   Reply With Quote

Old   February 14, 2022, 05:33
Default
  #3
New Member
 
Florian
Join Date: May 2021
Posts: 8
Rep Power: 3
Iuvatix is on a distinguished road
Thank you for the advice. I am currently looking into it and it seems very helpful. Can I somehow specify that I don't want a mesh inside the sphere (or another volume)?
Iuvatix is offline   Reply With Quote

Old   February 14, 2022, 06:13
Default
  #4
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 5
Ship Designer is on a distinguished road
If you want to model the domain around the sphere, you would have to subdivide the domain in an appropriate number and topology of blocks and then project the faces onto the sphere from the outside towards the sphere. In order to reduce the amount of work you could then use the mirrorMesh utility to mirror the grid around a plane of symmetry, in case you need the full sphere.

At the bottom of this page you can find an example of such a topology.
Ship Designer 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[ANSYS Meshing] Structured Mesh inside an egg-like geometry BrunoCFD ANSYS Meshing & Geometry 1 October 31, 2018 15:48
potentialFoam around a sphere ; mesh by Gmsh eliam OpenFOAM Running, Solving & CFD 12 January 26, 2011 04:02
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38
meshing F1 front wing Steve FLUENT 0 April 17, 2003 13:37


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