[Gmsh] problems with physical groups

David Colignon David.Colignon at ulg.ac.be
Fri Jan 9 08:50:37 CET 2009


Hi Alexander,

for clarity, let's use different numbers for the physical surfaces in your .geo file:

Physical Surface(111127) = {65, 67, 69, 71, 120, 122, 124, 126};
Physical Surface(111128) = {27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114};

If you mesh your geometry and save it, the resulting .msh file will contain the physical tag numbers you defined:

...
...
3460 1.598573395136259 -1.150352685479621 -0.3482122906681447
3461 0.3411610681041421 -0.3250897788032365 -1.943688699696457
3462 1.941354157608802 -0.3428214881300199 -0.3370718944251166
$EndNodes
$Elements
6916
1 2 3 111128 27 0 487 921 488
2 2 3 111128 27 0 423 921 422
3 2 3 111128 27 0 921 423 488
4 2 3 111128 27 0 921 487 422
5 2 3 111128 27 0 486 922 487
6 2 3 111128 27 0 422 922 421
...
...


And to visualize your Physical surfaces, you will have to load again the .msh file, go to Tools->Visibility->Physical groups, and select 
which one you want to see...

Cheers,

Dave

-- 
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Sart-Tilman B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW:    http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com



Alexander Sauter wrote:
> Thank you  for your quick answers, I'm sorry it took me so long to 
> reply, we had long vacations here in germany.
> My .geo file is attached, I tried to call the remaining surfaces another 
> physical entity but there are still no physical entities in the .mesh 
> file output.
> 
> Best Regards
> Alex
> 
> 
> ------------------------------------------------------------------------
> *Von:* Rudolf Hellmuth <rudolf.hellmuth at gmail.com>
> *An:* Alexander Sauter <alex_sauter at yahoo.de>
> *Gesendet:* Donnerstag, den 18. Dezember 2008, 12:23:46 Uhr
> *Betreff:* Re: [Gmsh] problems with physical groups
> 
> I had this difficult too. Gmsh only shows the physical antities in the 
> output (.msh). So you have to call the rest of your geometry another 
> physical entity.
> 
> Best regards,
> Rudolf
> 
> On Wed, Dec 17, 2008 at 11:27 AM, Alexander Sauter <alex_sauter at yahoo.de 
> <mailto:alex_sauter at yahoo.de>> wrote:
> 
>     Dear Sir,
> 
>     I am testing Gmesh for the IAG at the University Stuttgart.
>     Everything works fine, I am able to construct the test geometry and
>     generate a three dimensional mesh, but I fail at integrating
>     physical entities. They exist in the geo file, and they are shown in
>     the GUI, but they do not appear in the mesh output file. Do you have
>     an tutorial where the use of physical groups is explained? They
>     would be very impotant to specify boudary conditions for our solver.
>     Thank you for your Help
> 
>     Yous sincerely
> 
>     Alexander Sauter
> 
> 
> 
> 
> 
>     _______________________________________________
>     gmsh mailing list
>     gmsh at geuz.org <mailto:gmsh at geuz.org>
>     http://www.geuz.org/mailman/listinfo/gmsh
> 
> 
>