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

GMSH TransfiniteTri algorithm

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2025, 01:37
Question GMSH TransfiniteTri algorithm
  #1
New Member
 
Join Date: Sep 2024
Posts: 6
Rep Power: 2
Marcus021 is on a distinguished road
Hello, I'm trying to create a simple transfinite triangle using the Mesh.TransfiniteTri option in GMSH. Everything works fine without using progression ratios, however, when I add even a slight progression ratio to my lines, I end up with what is shown in the picture "mesh.png".
I was hoping instead to have all lines running vertical and horizontal, parallel to the smaller sides of the triangle, as in "mesh_ok.png". If this is not the correct approach to such a problem then perhaps someone is able to point me in the right direction. I sincerely appreciate any help.

Below are the few lines of code within my .geo file:

h = 0.1;

r = 0.95;
N = 11;

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

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 1};

Line Loop(1) = {1, 2, 3};

Plane Surface(1) = {1};

Transfinite Curve{1} = N Using Progression r;
Transfinite Curve{2} = N Using Progression r;
Transfinite Curve{-3} = N Using Progression r;

Transfinite Surface{1} = {1, 2, 3} Right;

Recombine Surface{1};

Mesh.TransfiniteTri = 1;
Attached Images
File Type: png mesh.png (9.4 KB, 8 views)
File Type: png mesh_ok.png (9.9 KB, 9 views)
Marcus021 is offline   Reply With Quote

Reply

Tags
gmsh, transfinite

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
Salome meshing - Algorithm Gmsh FM_Stiral Mesh Generation & Pre-Processing 1 September 19, 2019 17:42
[Gmsh] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 06:46
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 11:45
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


All times are GMT -4. The time now is 21:25.