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

[GAMBIT] Sector of a Cylinder

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2017, 16:31
Default Sector of a Cylinder
  #1
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Hello everybody,
Can any one tell me how to draw and mesh a 30 degree sector of a cylinder in gambit, that has the best meshing quality for CFD simulations?
Thanks in advance
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 02:10
Default
  #2
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
At least follow one tutorial:
https://www.sharcnet.ca/Software/Gam...guide/tg01.htm
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 8, 2017, 05:55
Default
  #3
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
Thanks for your reply.
But I don't want to create a full cylinder geometry, I want to create a 30 degree sector of a cylinder and my problem is with its' corner mesh. Actually, I don't know what is the best way to mesh the corner.
Oh, how can I attach my images in the topics?!
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 05:59
Default
  #4
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
if you do the tutorials, you will understand how to split geometries.
Then you need to split your cylinder.
You can attach pictures by clicking to "Go Advanced", you will have more options
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 8, 2017, 06:09
Default
  #5
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
if you do the tutorials, you will understand how to split geometries.
Then you need to split your cylinder.
You can attach pictures by clicking to "Go Advanced", you will have more options
Ok, can you say exactly how can I split my 30 degree sector?
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 06:11
Default
  #6
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
CylinderSector2.jpg

CylinderSector1.jpg

Finally, I could attach my pics
Please take a look at these photos
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 06:13
Default
  #7
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
*Again if you do the tutorials you will understand how it works: in your case, create your cylider, create one plane, create another plane with your angle.
Split your volume with both planes.
That's it

*You have the attachment icon, next to the smiley
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 8, 2017, 06:25
Default
  #8
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
*Again if you do the tutorials you will understand how it works: in your case, create your cylider, create one plane, create another plane with your angle.
Split your volume with both planes.
That's it

*You have the attachment icon, next to the smiley
Thanks for your help.
As I understand, you mean I create a full cylinder and use an O grid mesh for it, then split it with two planes with an angle of 30 degrees between them. Am I right?
which tutorials can help me through this?
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 06:32
Default
  #9
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
what you did is also ok.
You just need to recreate the volume, because, you only have one surface, and the edges.
But because you already started with the decomposition for your mesh, you will have some work for recreating all the volumes.
That's why I would recommend to start from volume, and then split
omid20110 likes this.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 8, 2017, 07:27
Default
  #10
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
what you did is also ok.
You just need to recreate the volume, because, you only have one surface, and the edges.
But because you already started with the decomposition for your mesh, you will have some work for recreating all the volumes.
That's why I would recommend to start from volume, and then split
Shall I mesh the cylinder like this? then split it?
mesh.jpg
omid20110 is offline   Reply With Quote

Old   August 8, 2017, 07:42
Default
  #11
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
No,
Split first, then Mesh (If you split a volume which is already meshed, the mesh will be deleted)
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 8, 2017, 14:26
Default
  #12
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
No,
Split first, then Mesh (If you split a volume which is already meshed, the mesh will be deleted)
Thanks, then let me try it
omid20110 is offline   Reply With Quote

Old   August 13, 2017, 05:01
Default
  #13
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Prob1.jpg

Prob2.jpgHello Maxime,
I have created a sector of a cylinder and meshed it.
Now, when I am defining boundary conditions it says there are errors especially when I export the mesh for fluent it says it hadn't written the boundary for axis!

Also, I want this mesh for openfoam and I don't know how to define openfoam boundary conditions in Gambit!

I am attaching the type of error I receive when exporting the mesh!

Last edited by omid20110; August 13, 2017 at 08:22.
omid20110 is offline   Reply With Quote

Old   August 14, 2017, 01:58
Default
  #14
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
Check if the edge defining your axis belongs to a surface.
For that just try to pick et delete the edge.
If you are able to delete it, then your edge isn't connected to any surface, which mean you have another edge at the same place, and you picked the wrong one.
In 3d you don't need any axis Boundary, since the "rotation" will be defined with the periodic BC.
Finally for importing Gambit Mesh into OpenFOAM you don't need anything special from Gambit.
Just use Fluen3DMeshToFoam
omid20110 likes this.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 14, 2017, 07:53
Default
  #15
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
Check if the edge defining your axis belongs to a surface.
For that just try to pick et delete the edge.
If you are able to delete it, then your edge isn't connected to any surface, which mean you have another edge at the same place, and you picked the wrong one.
In 3d you don't need any axis Boundary, since the "rotation" will be defined with the periodic BC.
Finally for importing Gambit Mesh into OpenFOAM you don't need anything special from Gambit.
Just use Fluen3DMeshToFoam
I tried to delete the edge but it said: It can not be deleted because it is being referenced by upper topology entity!
As you can see in the photos the AXIS edge is being referenced by the two front and back faces.

You mean that in 3d cases I don't need to define any axis boundary?
In openfoam I will use cyclic boundary condition for front and back faces and wall boundary condition for the other faces and an axis edge boundary condition, by the do I need axis for this geometry or not?
omid20110 is offline   Reply With Quote

Old   August 14, 2017, 07:57
Default
  #16
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
in 3d, you don't need any axis BC (also in OF)
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 14, 2017, 08:07
Default
  #17
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
in 3d, you don't need any axis BC (also in OF)
really?
then why in tutorials they define axis for 3d cases?
May I send you my Gambit file and you take a look at that?
omid20110 is offline   Reply With Quote

Old   August 14, 2017, 08:08
Default
  #18
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
which tutorials?
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 14, 2017, 08:18
Default
  #19
Member
 
Sadegh Ebadi
Join Date: Apr 2015
Posts: 75
Rep Power: 11
omid20110 is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
which tutorials?
I'm not sure but I think I have seen it somewhere!
but if you're sure that there isn't necessity for axis boundary in 3d cases then I will do that.
Dear Maxime, may you have a look at my gambit file?
I really appreciate your help
omid20110 is offline   Reply With Quote

Old   August 14, 2017, 08:24
Default
  #20
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
you only need axis, if you work with 2d axi-symetrics model.
I can check your model if you insist
omid20110 likes this.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Reply

Tags
cylinder mesh, gambit, gambit 2.4.6, sector of a cylinder


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
Flow past a 2D cylinder - High Re (1E+05) - Cd too high Pervispasco OpenFOAM Running, Solving & CFD 4 March 14, 2022 03:19
Drag force coefficient too high for a flow past a cylinder using komega sst Scabbard OpenFOAM Running, Solving & CFD 37 March 21, 2016 17:16
Forces Acting on a Rotating Cylinder (Moving Mesh) dreamchaser CFX 5 April 25, 2015 07:01
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 07:24
[blockMesh] Specifying boundary faces failes in blockMesh blaise OpenFOAM Meshing & Mesh Conversion 0 May 10, 2010 04:56


All times are GMT -4. The time now is 13:41.