GMSH - Predicting extruded entities identifiers

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

 March 19, 2019, 10:07 GMSH - Predicting extruded entities identifiers #1 New Member   Vitor Heitor Cardoso Join Date: Jan 2019 Location: Rio de Janeiro Posts: 10 Rep Power: 6 Community, 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}{ Surface{1}; Layers{1}; Recombine; } // 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.

 Tags extrusion, gmsh, identifier

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 06:46 masb Mesh Generation & Pre-Processing 1 March 7, 2016 12:07 Ijazu OpenFOAM Meshing & Mesh Conversion 1 March 18, 2015 08:15 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.