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

Prevent layers collapsing in gmsh transfinite mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2023, 15:01
Question Prevent layers collapsing in gmsh transfinite mesh
  #1
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 16
efirvida is on a distinguished road
Hi, to keep it simple, I have this gmsh file script file, which represents a rectangular domain, I want a structured mesh with progression from bottom to top. But when I generate the 2D mesh, the layers collapse in the bottom corners; I don't have any clue.

Code:
Point(1) = {0, 0, 0, 1e+22};
Point(2) = {0, 0.5, 0, 1e+22};
Point(3) = {1, 0.5, 0, 1e+22};
Point(4) = {1, 0, 0, 1e+22};
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(1) = {1, 2, 3, 4};
Transfinite Line {1,-3} = 20 Using Progression 1.2;
Transfinite Line {2} = 50;
Transfinite Line {4} = 50;
Plane Surface(1) = {1};
Transfinite Surface {1} = {1,2,3,4};
Recombine Surface {1};
Attached Images
File Type: jpg mesh.jpg (113.9 KB, 13 views)
efirvida is offline   Reply With Quote

Reply

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] Boundary Layers on TPMS with SnappyHexMesh MCRB8 OpenFOAM Meshing & Mesh Conversion 12 May 11, 2024 20:47
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" GuiMagyar OpenFOAM Meshing & Mesh Conversion 3 August 4, 2023 12:38
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
GMSH - Very strange effect - Mesh elements deleted when saving Araist Mesh Generation & Pre-Processing 3 July 15, 2015 06:03
[Gmsh] GMSH and OpenFOAM derath OpenFOAM Meshing & Mesh Conversion 44 September 4, 2008 05:09


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