|
[Sponsors] |
GMSH - Predicting extruded entities identifiers |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |