[Gmsh] how to define surface properties in gmsh input files?

Ruth V. Sabariego r.sabariego at ulg.ac.be
Thu Feb 4 17:31:31 CET 2010

The material description is not done in Gmsh.
Nevertheless, you can define "Physical Regions" and use them in your 
computation software.
That way, you will have a tag in the mesh file (see manual) that allows 
you to identify the elements belonging to those physical regions. You 
can thus associate material characteristics, boundary conditions, and so 

For instance:
Physical Volume (Your_tag1) = {geo_volume_number};
Physical Surface(Your_tag2) = {geo_surface_number};
Physical Line(Your_tag3) = {geo_line_number};
Physical Point(Your_tag4) = {geo_point_number};


On 03/02/10 19:45, Crni Gorac wrote:
> I was not able to find an answer to above question in the docs, so: if
> I have some data attached to the each surface I'm trying to mesh in
> gmsh (say it's various data describing materials of which given
> surfaces are consisting of), is there a way to have these properties
> stored in .geo file, and then somehow propagated to mesh files
> generated by gmsh?
> Thanks.
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

Dr. Ir. Ruth V. Sabariego
University of Liege, Dept. of Electrical Engineering&  Computer Science,
Applied&  Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/