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

2D rectangle in Gmsh -naming physical lines

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2018, 11:49
Default 2D rectangle in Gmsh -naming physical lines
  #1
New Member
 
Ruby Marshall
Join Date: Dec 2017
Posts: 1
Rep Power: 0
marshallr is on a distinguished road
As part of a simulation I am trying to generate a 2D rectangle in Gmsh with significantly more elements in one direction than the other.

The aim is to use it with Su2. Therefore I want to define which lines are the 'left', 'right', 'upper' and 'lower' to enable my boundary conditions to be applied by the solver.

However there is a syntax error for the lines under '//Boundaries'

Any suggestion as to how i fix this?


Thank you


mesh code:

//+
Point(1) = {-1, 0.1, 0, 1.0};
//+
Point(2) = {1, 0.1, 0, 1.0};
//+
Point(3) = {1, -0.1, 0, 1.0};
//+
Point(4) = {-1, -0.1, 0, 1.0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 3};
//+
Line(3) = {3, 4};
//+
Line(4) = {4, 1};
//+
Line Loop(1) = {1, 2, 3, 4};
//+
Plane Surface(1) = {1};
//+
Transfinite Line {3, 1} = 2000 Using Progression 1;
//+
Transfinite Line {4, 2} = 5 Using Progression 1;
//+
Transfinite Surface {1};
//+
Recombine Surface {1};


//Boundaries
Physical Line (“upper_wall”) = Line(1) ;
Physical Line (“lower_wall”) = Line(3) ;
Physical Line (“left”) = Line(4) ;
Physical Line (“right”) = Line(2) ;


Physical Surface (“tube”) (1);
marshallr is offline   Reply With Quote

Old   February 10, 2018, 04:53
Default
  #2
New Member
 
Join Date: Aug 2017
Posts: 2
Rep Power: 0
tomm450 is on a distinguished road
This should work

//Boundaries
Physical Line ("upper_wall") = {1};
Physical Line ("lower_wall") = {3};
Physical Line ("left") = {4};
Physical Line ("right") = {2};

Physical Surface("tube") = {1};

I don't know if it's the web site font but Gmsh doesn't recognize the quotation marks of the geo file you post
tomm450 is offline   Reply With Quote

Reply

Tags
2d mesh, boundaries definition, gmsh, gmsh syntax, su2 mesh

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
Gmsh does not ouput SU2 markers from physical surfaces stewels SU2 3 April 14, 2017 15:14
[Gmsh] Nasa Nozzle: Plot 3D -->gmsh -->fluent - no physical groups Nico89 OpenFOAM Meshing & Mesh Conversion 1 June 14, 2016 05:40
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56


All times are GMT -4. The time now is 17:04.