CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Boundary layer termination

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2021, 23:09
Default Boundary layer termination
New Member
Join Date: Nov 2015
Posts: 2
Rep Power: 0
jbsp is on a distinguished road
Hi all,
Having a lot of trouble with gmsh trying to do an axisymmetric pipe flow. The issue I am having is where the boundary layer on the outside meets the inlet line. The boundary layer elements get highly skewed. How do I tell gmsh to continue the boundary to the inlet to avoid this?

An image is here:

gmsh file:

grid_size = 0.05;

Point(1) = {0,0,0,grid_size};
Point(2) = {1,0,0,grid_size};
Point(3) = {1,1,0,grid_size};
Point(4) = {0,1,0,grid_size};

Line(5) = {1,2}; //inlet
Line(6) = {2,3}; //tunnel wall
Line(7) = {3,4}; //outlet
Line(8) = {4,1}; //axis of rotation

Line Loop(9) = {5,6,7,8};
Plane Surface(10) = 9;

// Boundary layers:
Field[1] = BoundaryLayer;
Field[1].EdgesList = {6};
Field[1].hfar = 0.05;
Field[1].hwall_n = 0.00005;
Field[1].Quads = 1;
BoundaryLayer Field = 1;
jbsp is offline   Reply With Quote


boundary layer mesh, gmsh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Holes in internal mesh when adding boundary layer snappyHex otaolafr OpenFOAM Meshing & Mesh Conversion 3 February 8, 2021 08:19
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Any formula for approximating the boundary layer thickness around a cylinder? bestniaz Main CFD Forum 0 October 24, 2015 02:00
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00

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