|
[Sponsors] |
May 15, 2020, 13:55 |
Boundary Layer Excluded Face in Gmsh
|
#1 |
New Member
doruk
Join Date: Apr 2018
Posts: 5
Rep Power: 8 |
Hi everybody,
I'm trying to have boundary layer for a very simple geometry by using Gmsh. I can construct the layers; however, I want to exclude one of the faces from the boundary layer list. Although I tried ExcludedFaceList, it still produces layer there. My surface and curve tags are shown in "Tags.png". What I want to have is shown in "Desired.png". What I get in Gmsh is shown in "Result.png". The script is as follows: // Gmsh project created on Fri May 15 18:00:20 2020 SetFactory("OpenCASCADE"); //+ Point(1) = {0.5, 0.5, 0, 1.0}; //+ Point(2) = {0, 1, 0, 1.0}; //+ Point(3) = {0.5, 1, 0, 1.0}; //+ Point(4) = {0, 0.5, 0, 1.0}; //+ Line(1) = {2, 3}; //+ Line(2) = {3, 1}; //+ Line(3) = {1, 4}; //+ Line(4) = {4, 2}; //+ Curve Loop(1) = {1, 2, 3, 4}; //+ Plane Surface(1) = {1}; //+ Extrude {0, 0, 0.1} { Surface{1}; Layers{5}; Recombine; } Field[1] = BoundaryLayer; //+ Field[1].AnisoMax = 1000; //+ Field[1].EdgesList = {1, 2, 3, 4}; //+ Field[1].ExcludedFaceList = {4}; //+ Field[1].IntersectMetrics = 0; //+ Field[1].Quads = 1; //+ Field[1].hfar = 0.75; //+ Field[1].hwall_n = 0.001; //+ Field[1].ratio = 1.300000; //+ Field[1].thickness = 0.025; BoundaryLayer Field = 1; Thank you. |
|
May 19, 2020, 06:01 |
|
#2 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi Doruk,
The boundary layers in GMSH are not working very well in 3D. So I would first create a 2D mesh with the boundary layer and then extrude that. Here is an example: Code:
SetFactory("OpenCASCADE"); Rectangle(1) = {0, 0, 0, 1, 1, 0}; Field[1] = BoundaryLayer; Field[1].EdgesList = {2, 3, 4}; Field[1].NodesList = {1, 2, 3, 4}; Field[1].hwall_n = 0.01; Field[1].thickness = 0.1; Field[1].ratio = 1.2; Field[1].Quads = 1; BoundaryLayer Field = 1; Extrude {0, 0, 0.1} { Surface{1}; Layers{10}; Recombine; } |
|
May 19, 2020, 07:27 |
|
#3 |
New Member
doruk
Join Date: Apr 2018
Posts: 5
Rep Power: 8 |
Hi Mikko,
This works, thank you. Regards Doruk |
|
March 3, 2022, 04:47 |
|
#4 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Quote:
|
||
March 7, 2022, 06:12 |
|
#5 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Indeed it becomes redundant. You can calculate the number of cells and largest cell size from geometric series.
|
|
March 7, 2022, 13:16 |
|
#6 |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Thanks for your response. Maybe it is a very lame question to ask atm but is it that hfar is the last boundary cell or the very adjacent region outside the boundary layer?
|
|
Tags |
boundary layer, gmsh, openfoam, prism layer |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 18:38 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |