How to mesh inside a sphere?
Hi,
Anyone knows how to create a spherical mesh of the inside of a sphere? Thank you |
Hi,
have a look at snappyHexMesh (www.openfoam.org/docs/user/snappyHexMesh.php). There are also some nice explanations at https://sites.google.com/site/snappywiki/. Both the 'cube case' and the 'cylinder case' can be adapted for a sphere. Cutter |
1 Attachment(s)
I just played with cfMesh (one of its tools called 'cartesianMesh'). It also did a really good job (see attached image!). Depending on your requirements on the final mesh, there's also a tool called 'tetMesh' for the creation of tetrahedral meshes.
See http://www.c-fields.com/solutions/products/meshing for more infos! Have fun! Cutter |
1 Attachment(s)
Hi,
Quote:
Here's an example of GEO file to generate fully hexagonal mesh of the sphere: Code:
l = 1; |
Hi Alexey,
thanks for you additions. I haven't used Gmsh for a couple of years now. The last time I used it, the UI was quite unconventionally and somewhat intimidating. After quick and steep learning curve regarding the UI and experimenting with its scripting language I got pretty good meshes though. I liked it, but it didn't work within our toolchain (well, all the other OF tools need custom scripts and proprietary UIs too...). I will definitely have a look at it again! Creating the sphere geometry (STL) with Salome and meshing the whole thing with cfMesh based on an existing tutorial case took me just a few minutes (less than ten!). Creating the mesh using the Gmsh script from Alexey shouldn't take any longer. @SSSS: After all you have to find a workflow that works for your special use case (depending on mesh requirements, input files etc.). Now you've got already three of them, there are probably a dozen more ;-) Cutter |
Thank you all of you guys for your help, I finally managed to mesh a sphere, and an sphere section using snappyHexMesh and blockMesh to cut the geometry. The idea was borrowed from iglooTutorial in buoyanBoussinesqSimpleFoam folder
I will have a look at other posibilities mentioned here, thank you all you're awesome. |
All times are GMT -4. The time now is 14:21. |