CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

Gmsh 3D Boundary layer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 09:09
Default Gmsh 3D Boundary layer
  #1
New Member
 
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Ambroise is on a distinguished road
Hi everyone!

First time I post a question here, hope it's not a stupid one!
I am trying to mesh a 3D geometry imported in STEP format and I would like to control the size of the first cell on the boundary.
I found the "Boundary Layer" in the "Size fields" menu so I tried to fill the Edges list and to choose the size with the parameters (hwall_n, ratio, thickness...). But then, nothing happens. I tried to remesh but there is no difference... Obviously I do not use it correctly but I don't understand how I am supposed to use it.
So, could anyone tell me how to use "Size field" and/or how to choose the thickness of the first cell?

Thank you!

(Sorry for the bad English, this is not my mother tongue).

EDIT :
Here is my .geo file :

---------------------------------------------------------------------------------
lc = 1;
fflc = 4000;

Merge "demie_voile_v2.step";

Transfinite Line { 6, 8} = 191 Using Progression 1;
Transfinite Line {12, 19} = 2 Using Progression 1;
Transfinite Line {13, 16} = 91 Using Progression 1;
Transfinite Line {14, 20} = 90 Using Progression 1;
Transfinite Line { 9, 11} = 94 Using Progression 1;

Mesh.CharacteristicLengthFactor = lc;
Mesh.CharacteristicLengthMax = fflc;

Physical Line(0) = {9,11,10,14,20,18,13,16,17,12,19,5,6,8,7};
Physical Surface(1) = {1,2,3,4,5,6,7,8};

Field[4] = BoundaryLayer;
Field[4].FacesList = {1,2,3,4,5,6,7,8};
Field[4].hfar = fflc;
Field[4].hwall_n = 0.1;
Field[4].hwall_t = 0.5;
Field[4].thickness = 0.01;
Field[4].ratio = 1.1;

BoundaryLayer Field = 4;

---------------------------------------------------------------------------------

I don't know exactly what values I should use. But now it is simply useless. I can take the Boundary layer part off without any difference.

Last edited by Ambroise; March 18, 2016 at 09:09.
Ambroise is offline   Reply With Quote

Old   March 28, 2016, 04:38
Default
  #2
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Hi,

Have a look at the Gmsh documentation. In this specific case, you've set your desired layer thickness at the wall larger than the desired thickness of your entire boundary layer.

Also worth noting, Gmsh 2.12+ doesn't seem to generate boundary layers. I would suggest using version 2.10 or 2.11.

Good luck!

Kind regards,
Peter
opedrofunk is offline   Reply With Quote

Old   March 29, 2016, 10:49
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Ambroise is on a distinguished road
Indeed, version 2.11 do create a boundary layer once I changed the settings as you said!
The mesh is not perfect yet but I have a boundary layer!
Thanks for your help!
Ambroise is offline   Reply With Quote

Reply

Tags
boundary cell, boundary layer, boundary layer thickness, gmsh, mesh 3d


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
[snappyHexMesh] snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Meshing & Mesh Conversion 5 July 3, 2018 06:53
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
[Gmsh] Default Faces on Boundary Layer axel OpenFOAM Meshing & Mesh Conversion 8 February 17, 2011 08:47
errors Fahad Main CFD Forum 0 March 23, 2004 14:20


All times are GMT -4. The time now is 11:08.