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

[blockMesh] 3D sphere - blockMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 2 Post By Traction

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2012, 01:42
Default 3D sphere - blockMesh
  #1
bmt
New Member
 
Join Date: Aug 2012
Posts: 3
Rep Power: 13
bmt is on a distinguished road
Hi,

Does anyone know a way of meshing a 3D sphere using only blockMeshDict? Is this even possible?

Thanks,
Ben
bmt is offline   Reply With Quote

Old   August 23, 2012, 14:43
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Ben,

I think it's not impossible, but it's probably very arduous to do. There are a few solutions I can think of:
  • Do it interactively: http://openfoamwiki.net/index.php/Contrib/SwiftBlock
  • Cheat by using snappyHexMesh, as shown in the tutorial "mesh/snappyHexMesh/iglooWithFridges".
  • Use Plot3D format to design the mesh, then convert with datToFoam and then run blockMesh.
  • Use OpenFOAM's codeStream and code it directly into "blockMeshDict" See tutorial: "potentialFoam/cylinder/constant/polyMesh/blockMeshDict"
Best regards,
Bruno
babakflame likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 23, 2012, 20:59
Default
  #3
bmt
New Member
 
Join Date: Aug 2012
Posts: 3
Rep Power: 13
bmt is on a distinguished road
Hi,

Thanks for that I will give it a go. I am looking to make a structured mesh to compare results against snappyHexMesh. Which of the above methods would be best for this purpose?

Thanks
bmt is offline   Reply With Quote

Old   August 24, 2012, 17:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
SwiftBlock should be the easiest...
__________________
wyldckat is offline   Reply With Quote

Old   February 23, 2013, 16:33
Default
  #5
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
Eloise is on a distinguished road
Hi Ben,

Did you manage to do a 3D sphere in blockMesh? If so, I'd be interested to know how you did so

Thanks,
Eloïse
Eloise is offline   Reply With Quote

Old   February 25, 2013, 01:48
Default
  #6
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
kalle is on a distinguished road
Hi,

my guess is that it is not possible without a blockMesh that can snap to surfaces (such a blockMesh does not exist as far as I know).

K
kalle is offline   Reply With Quote

Old   February 25, 2013, 08:08
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kalle,

Quote:
Originally Posted by kalle View Post
my guess is that it is not possible without a blockMesh that can snap to surfaces (such a blockMesh does not exist as far as I know).
Strange... I though that with arcs and since wedges can be created, it should be possible to create a discrete sphere that is built with slices...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 25, 2013, 09:34
Default
  #8
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 13
startingWithCFD is on a distinguished road
In my archives I found the attached file. It was downloaded from somewhere in this forum (can't remember where and I have actually renamed the file :-/ Apologies to the original creator for not giving credit). I know that it should normally have a cubic block in the middle, but hey, it's a start. I hope it helps.
Attached Files
File Type: zip Example-External_Sphere.m4.zip (7.8 KB, 576 views)
startingWithCFD is offline   Reply With Quote

Old   February 25, 2013, 09:45
Default
  #9
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
Eloise is on a distinguished road
Quote:
Originally Posted by startingWithCFD View Post
In my archives I found the attached file. It was downloaded from somewhere in this forum (can't remember where and I have actually renamed the file :-/ Apologies to the original creator for not giving credit). I know that it should normally have a cubic block in the middle, but hey, it's a start. I hope it helps.
Thanks a lot! I will have a look at it as soon as I have time
Regards,
Eloïse
Eloise is offline   Reply With Quote

Old   October 20, 2014, 20:25
Default
  #10
New Member
 
suleman daud khan
Join Date: Oct 2014
Posts: 1
Rep Power: 0
sulemankhan22 is on a distinguished road
i made a sphere using only blockmesh. the pic is attached, it is an egg, with a hemisphere at the bottom
Attached Images
File Type: jpg velocity.jpg (44.8 KB, 657 views)
sulemankhan22 is offline   Reply With Quote

Old   October 26, 2014, 10:40
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all! And sulemankhan22, welcome to the forum!

You mentioned that you:
Quote:
made a sphere using only blockmesh
But then you state that you got:
Quote:
it is an egg, with a hemisphere at the bottom
Did you get this egg shape because you wanted, or do you believe that something went wrong?

If you believe something went wrong, then please share the "blockMeshDict" file you have.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 1, 2014, 13:45
Default making 3D-sphere
  #12
New Member
 
ali naqi mohammadi
Join Date: Dec 2012
Posts: 6
Rep Power: 13
ali naqi is on a distinguished road
hi
i made sphere by using toposetDict!
it just needs to define radius and center of sphere
but it needs too many cells
ali naqi is offline   Reply With Quote

Old   July 29, 2016, 17:54
Default
  #13
New Member
 
Join Date: Jun 2014
Posts: 22
Rep Power: 11
chun is on a distinguished road
Dear sulemankhan22, Dear ali naqi,

It is possible that I can know your method to build a 3D sphere mesh? I am interested about the mesh and the way to make it.
chun is offline   Reply With Quote

Old   July 29, 2016, 19:47
Default
  #14
New Member
 
Join Date: Oct 2014
Posts: 4
Rep Power: 11
Phyonth is on a distinguished road
You can use snappyHexMesh to build a 3-D spher mesh. Either just a sphere or remove a spherical part from your domain. check this thread : "simple sphere with snappyhexmesh", might be useful.
Phyonth is offline   Reply With Quote

Old   July 30, 2016, 08:01
Default
  #15
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
kalle is on a distinguished road
Chun, do you mean something like this??

http://www.cfd-online.com/Forums/ope...tml#post523468
kalle is offline   Reply With Quote

Old   July 30, 2016, 17:23
Default
  #16
New Member
 
Join Date: Jun 2014
Posts: 22
Rep Power: 11
chun is on a distinguished road
Dear kalle,

Yes! Your mesh looks perfect!! Thank you so much!
I will study your post.

Chun
chun is offline   Reply With Quote

Old   October 14, 2016, 07:40
Default
  #17
Member
 
Join Date: Mar 2014
Posts: 39
Rep Power: 12
Traction is on a distinguished road
Mr. Weller released an implementation and a tutorial for meshing a sphere with a single block in his dev repository. Right now I have no time to have a try but to me it looks very promising.

https://github.com/OpenFOAM/OpenFOAM...8a22a6d58be0ba
wyldckat and olegrog like this.
Traction is offline   Reply With Quote

Reply


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
[blockMesh] Sphere mesh with blockMesh - weird cells TheMadHungarian OpenFOAM Meshing & Mesh Conversion 9 March 18, 2023 06:20
[blockMesh] create a sphere with blockMesh decibelle OpenFOAM Meshing & Mesh Conversion 4 September 7, 2020 09:37
[blockMesh] BlockMesh with cylinder and halfsphere ich558 OpenFOAM Meshing & Mesh Conversion 0 April 11, 2019 05:17
[blockMesh] Sphere mesh with blockMesh - weird cells TheMadHungarian OpenFOAM Meshing & Mesh Conversion 1 October 22, 2018 09:03
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37


All times are GMT -4. The time now is 22:53.