CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Mesh Generation & Pre-Processing (https://www.cfd-online.com/Forums/mesh-generation/)
-   -   [Gmsh] Tag For Internal Mesh Elements (https://www.cfd-online.com/Forums/mesh-generation/172847-gmsh-tag-internal-mesh-elements.html)

FrancescoLRomeo June 7, 2016 14:01

[Gmsh] Tag For Internal Mesh Elements
 
Hi,

I am using Gmsh for creating structured 2d meshes of quadrilaters (by defining Transfinite Lines and then Transfinite Surfaces).
Is it possible (and if yes, how?) to assign a "Physical Tag" to a specific group of elements of the mesh? and how about specific edges of the mesh?
Indeed, my goal is to export the ".msh" output file (version 2.2) and to let the (external) solver know if some elements of the mesh must be considered as obstacles in a fluid flow.
I know how to assign Physical Tags to Geometrical Elementary Entities... but not to Mesh Elements. Is this possible??? Please tell me if I'm looking for something that does not exist!!!:mad:

Thanks,

Francesco L. Romeo

p.s.1.: I would prefer not to insert holes in the mesh to define the obstacles, because my solver uses a "direct addressing mode" (indirizzamento diretto) for Carthesian 2d meshes...
p.s.2.: I would like not to modify manually the ".msh" file to define these tags...


All times are GMT -4. The time now is 14:47.