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

3D sphere - blockMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 21, 2012, 01:42
Default 3D sphere - blockMesh
  #1
bmt
New Member
 
Join Date: Aug 2012
Posts: 3
Rep Power: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
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: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
SwiftBlock should be the easiest...
wyldckat is offline   Reply With Quote

Old   February 23, 2013, 17:33
Default
  #5
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
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, 02:48
Default
  #6
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Link÷ping
Posts: 256
Rep Power: 12
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, 09:08
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 10:34
Default
  #8
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 4
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, 187 views)
startingWithCFD is offline   Reply With Quote

Old   February 25, 2013, 10:45
Default
  #9
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
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, 92 views)
sulemankhan22 is offline   Reply With Quote

Old   October 26, 2014, 11:40
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 14:45
Default making 3D-sphere
  #12
New Member
 
ali naqi mohammadi
Join Date: Dec 2012
Posts: 6
Rep Power: 4
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

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
Create a mesh for flow around a sphere harly OpenFOAM Native Meshers: blockMesh 7 November 6, 2013 17:28
multiregion mesh with blockMesh alvora OpenFOAM Native Meshers: blockMesh 44 July 21, 2013 14:14
[ICEM] meshing a sphere - large deviation from perfect sphere murx ANSYS Meshing & Geometry 25 August 15, 2012 12:37
Meshing a sphere with snappyHexMesh Cyberholmes OpenFOAM 2 July 19, 2011 16:46
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37


All times are GMT -4. The time now is 09:02.