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

Physical groups in Gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2023, 17:34
Default Physical groups in Gmsh
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hello everyone,

I am working with Gmsh and quite new in it. I am trying to create a simple cylindrical tube. I successfully run the script but get a syntax error for Physical Volume. Here is the code:



************************
lc = 0.1;
D = 1;
Point(1) = {0, 0, 0, lc};
Point(2) = {D/2, 0, 0, lc};
Point(3) = {-D/2, 0, 0, lc};
Point(4) = {0, 0, D/2, lc};
Point(5) = {0, 0, -D/2, lc};

Circle(1) = {2, 1, 5};
Circle(2) = {5, 1, 3};
Circle(3) = {3, 1, 4};
Circle(4) = {4, 1, 2};

Curve Loop (1) = {1, 2, 3, 4};
Plane Surface (1) = {1};
Rotate {{0, 0, 1}, {0, 0, 0}, -Pi/4} { Surface{1}; }

Volume(1) = Extrude {Sqrt(2)/2*20*D, Sqrt(2)/2*20*D, 0} {Surface{1};}

Physical Volume (1) = {1};

Mesh 3;

************************




Here is the error:
line 20: syntax error (Physical)
Any help is appreciated
Thank you
sinatahmooresi is offline   Reply With Quote

Reply


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 4 May 17, 2023 05:15
[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 05:45.