CFD Online Logo CFD Online URL
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

GMSH - Predicting extruded entities identifiers

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2019, 10:07
Default GMSH - Predicting extruded entities identifiers
New Member
Vitor Heitor Cardoso
Join Date: Jan 2019
Location: Rio de Janeiro
Posts: 10
Rep Power: 6
heitorvitorc is on a distinguished road

I'm writting a script to help me constructing geometries for OpenFOAM by reading a .png file (picture) bynarizing it, reading the contours and creating the line loops using pygmsh package. However, OF requires a minimal extrusion for 2D simulation (the 3d boundary condition is set to empty for 2D simulations).

I need to find a solution for this given example:

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

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

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

// We have now a triangle. The lines compose a plane surface whose //identification is "2".

Extrude {0,0,0.1}{

// Now the surface has been extruded, thus forming a volume.

The newly formed triangular geometry in this example has 4 new surfaces and 3 new points.

Given this situation, how do I predict the identifiers of those new entities? Does the indexes have any relation to its projected origins?

To be clearer: Is there a logical ordination between the three points from the geometry base and the top, or the surface from the base and the surface from the top?

I need to solve this small case in order to work with more complex extrusions, but I simply cant find a logical pattern.

Thanks in advance.
heitorvitorc is offline   Reply With Quote


extrusion, gmsh, identifier

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] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 06:46
gmsh Error : Could not find extruded vertex masb Mesh Generation & Pre-Processing 1 March 7, 2016 12:07
[Gmsh] Extruded Meshing fails (Linear search / could not find extruded vertex) Ijazu OpenFOAM Meshing & Mesh Conversion 1 March 18, 2015 08:15
[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 05:18.