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

[GAMBIT] need to learn meshing

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 2, 2009, 17:28
Default need to learn meshing
  #1
New Member
 
Ganesh S Swamy
Join Date: Sep 2009
Posts: 5
Rep Power: 7
Ganeshsswamy is on a distinguished road
Hi all,

I am using Gambit to mesh a part in my project. I am having problems using boundary layers. Can some one teach me howto use Boundary layers for 3D meshing please.

Thank you
Ganeshsswamy is offline   Reply With Quote

Old   September 2, 2009, 23:11
Default
  #2
Senior Member
 
Chris
Join Date: Jul 2009
Location: Ohio, USA
Posts: 169
Rep Power: 8
Chris D is on a distinguished road
Quote:
Originally Posted by Ganeshsswamy View Post
Hi all,

I am using Gambit to mesh a part in my project. I am having problems using boundary layers. Can some one teach me howto use Boundary layers for 3D meshing please.

Thank you
I struggled with the boundary layer mesh tool in Gambit until I realized two things. The first is that, for a 3D case, a boundary layer should be attached to an edge and grow on a face. I attached a diagram to show what I mean.

The diagram shows a boundary layer mesh applied to a 3D flat plate (imagine that the z-direction is out of the page.) Notice that there are two faces perpendicular to the plate, one coincident with the leading edge and one coincident with the trailing edge. These are the faces onto which the boundary layer grows.

The second thing to know is that, in my opinion, for a structured (hex) grid, the boundary layer mesh is just a fancy way of grading edges. By this I mean that, for a structured grid, you can achieve the same results by either applying a boundary layer mesh or grading the edges manually yourself (via edge meshing with first length and interval count.)

If you are using an unstructured (tet) grid, then the boundary layer tool is necessary, as it allows for the generation of a structured (hex) mesh in the boundary layer and an unstructed (tet) mesh outside of the boundary layer.

This is pretty hard to explain without actually having pictures from Gambit to post. Unfortunately, I don't have it in front of me right now. I'll post more tomorrow for you when I can get in front of Gambit and get some pictures. I hope this can at least answer some of your questions until then.
Attached Images
File Type: jpg BL_example.JPG (25.6 KB, 64 views)
Chris D is offline   Reply With Quote

Old   September 3, 2009, 02:11
Default
  #3
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 2,972
Rep Power: 30
-mAx- will become famous soon enough
Quote:
Originally Posted by Chris D View Post
I The first is that, for a 3D case, a boundary layer should be attached to an edge and grow on a face.
hmm... for a 3d case, you may choose a surface as source
Indeed Gambit will inflate this source and will create the BL, which sourrounds your source (here your surface... and the BL is a surrounding volume)

Picking an edge as source is ok for 2D case
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   September 3, 2009, 11:39
Default
  #4
Senior Member
 
Chris
Join Date: Jul 2009
Location: Ohio, USA
Posts: 169
Rep Power: 8
Chris D is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
hmm... for a 3d case, you may choose a surface as source
Indeed Gambit will inflate this source and will create the BL, which sourrounds your source (here your surface... and the BL is a surrounding volume)

Picking an edge as source is ok for 2D case
I agree that you can pick a face as a source and attach the boundary layer to the volume. I’ve had more luck, though, picking an edge as a source and having the BL grow on a face. I’ve attached some screenshots to help explain how I create a BL mesh. (This explanation mostly aimed at the OP, Max, as I’m sure you are familiar enough with Gambit so as to not require such a detailed explanation.)

First, I created a flat plate, and then I built a volume on top of the plate (see pictures 1 and 2.) Then, I created a boundary layer, using an edge as a source and attaching it to (i.e., having it grow on) a face (see picture 3.) (To get the mesh to “grow in a different direction”, shift-middle click the edge, and the mesh will grow from the same edge onto another face.) Next, I meshed the edges of the volume, and you can see in picture 3 that the BL grades the edge mesh such that the interval size increases with increasing distance from the plate.

Finally, I meshed the volume using a Hex/Map scheme. After the volume was successfully meshed, I cut a plane offset from the y-z plane through the mesh (picture 4.) You can see that the manner in which I used the BL mesh tool allowed for the creation of a volume mesh that is fine at the surface of the plate and grows with increasing distance from the plate.

Keep in mind that the BL mesh tool is just a way of grading an edge mesh, and that you could achieve the same results by using a First Length/Interval count edge mesh scheme, where the first length is the height of the first cell of the “boundary layer”, and the mesh size increases with increasing distance from the plate (i.e., the edge mesh arrow points away from the plate.) This is actually the way I have been creating “boundary layer” meshes lately, as it allows for, in my opinion, more control over the mesh, and you don’t end up with a large jump in the mesh size at the top of the boundary layer.
Attached Images
File Type: jpg BL01.jpg (88.1 KB, 43 views)
File Type: jpg BL02.jpg (88.2 KB, 39 views)
File Type: jpg BL05.jpg (86.8 KB, 41 views)
File Type: jpg BL07.jpg (88.8 KB, 47 views)
Chris D is offline   Reply With Quote

Old   September 3, 2009, 13:25
Default
  #5
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 2,972
Rep Power: 30
-mAx- will become famous soon enough
I agree with you Chris, because you are working here with Hexa-
But I am pretty sure it won't work with unstructured grid.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   September 3, 2009, 15:21
Default
  #6
Senior Member
 
Chris
Join Date: Jul 2009
Location: Ohio, USA
Posts: 169
Rep Power: 8
Chris D is on a distinguished road
I think you're right, Max.
Chris D is offline   Reply With Quote

Old   September 20, 2009, 19:50
Default
  #7
New Member
 
Ganesh S Swamy
Join Date: Sep 2009
Posts: 5
Rep Power: 7
Ganeshsswamy is on a distinguished road
Thank you Chris.
Ganeshsswamy 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
Best Meshing scheme for Cylinder Nutrex Main CFD Forum 4 July 29, 2008 11:03
Meshing locks workbench window. andy2o CFX 0 February 1, 2008 06:01
Singularity of grid?Volume meshing vs face meshing Ken Main CFD Forum 0 September 4, 2003 11:09
Volume Meshing & Face Meshing? singularity of grid ken FLUENT 0 September 4, 2003 11:08
Is conformal meshing really an advantage? Alvin Szeto Main CFD Forum 19 June 27, 2003 07:23


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