[Gmsh] Physical Names Section in .msh File

David Colignon David.Colignon at ulg.ac.be
Tue Jul 17 18:02:32 CEST 2007


Hi Dan,

in order to use string labels for physical groups, you have to edit by hand your .geo file like this (lines beginning
with // are comments) :


Point (1) = {0, 0, 0, 0.5};
Point (2) = {0.5, 0, 0, 0.5};
Point (3) = {1, 0, 0, 0.5};
Point (4) = {1, 1, 0, 0.5};
Point (5) = {0, 1, 0, 0.5};
Line (1) = {1, 2};
Line (2) = {2, 3};
Line (3) = {3, 4};
Line (4) = {4, 5};
Line (5) = {5, 1};
Line Loop (7) = {4, 5, 1, 2, 3};
Plane Surface (7) = {7};
// Wall = 8;
Physical Line ("Wall") = {2};
// Vacuum = 9;
Physical Line ("Vacuum") = {1, 3, 4, 5};



Cheers,

Dave


Dan Karipides wrote:
> Dave,
> 
> Sure.  My .geo file is pretty simple.  I created it using the GUI just to
> learn how gmsh worked.  It is a simple box, and there are only 5 cells.  I
> was using a simple example so I could easily understand the resulting .msh
> file.  Let me know if you need any more information.
> 
> Thanks,
> 
> -Dan
> 
> ---begin .geo file---
> Point (1) = {0, 0, 0, 0.5};
> Point (2) = {0.5, 0, 0, 0.5};
> Point (3) = {1, 0, 0, 0.5};
> Point (4) = {1, 1, 0, 0.5};
> Point (5) = {0, 1, 0, 0.5};
> Line (1) = {1, 2};
> Line (2) = {2, 3};
> Line (3) = {3, 4};
> Line (4) = {4, 5};
> Line (5) = {5, 1};
> Line Loop (7) = {4, 5, 1, 2, 3};
> Plane Surface (7) = {7};
> Wall = 8;
> Physical Line (Wall) = {2};
> Vacuum = 9;
> Physical Line (Vacuum) = {1, 3, 4, 5};
> ---end .geo file---
> 
> 
> -----Original Message-----
> From: David Colignon [mailto:David.Colignon at ulg.ac.be] 
> Sent: Tuesday, July 17, 2007 6:54 AM
> To: Dan Karipides
> Cc: gmsh at geuz.org
> Subject: Re: [Gmsh] Physical Names Section in .msh File
> 
> Hi,
> 
> can you send us an example of your .geo file ?
> 
> You can also have a look at http://geuz.org/pipermail/gmsh/2007/002640.html
> 
> Cheers,
> 
> Dave
>