[Gmsh] Problems with 2D meshes

Mesgouez Arnaud arnaud.mesgouez at univ-avignon.fr
Fri Mar 19 20:43:56 CET 2010


Hye Dave,

Thanks a lot, will try next monday.
Good Week-end,

Regards,
Arnaud.


David Colignon <David.Colignon at ulg.ac.be> a écrit :

> Hi Arnaud,
>
> you have to define "Physical" Surfaces.
>
> see  http://geuz.org/pipermail/gmsh/2010/005296.html
>
> Regards,
>
> Dave
>
> --
> David Colignon, Ph.D.
> Collaborateur Logistique du F.R.S.-FNRS
> CÉCI - Consortium des Équipements de Calcul Intensif
> ACE - Applied & Computational Electromagnetics
> Institut Montefiore 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
>
> On 19/03/10 14:57, Arnaud Mesgouez wrote:
>> Hye,
>> We just start with Gmsh, and we want to link it with our own solver
>> FE/FD. We followed the examples given in the tutorial, but we get one
>> question whitout answer: when we generate a mesh for a 2D configuration,
>> Gmsh gives us as elements points and lines, numbered 15 and 1 (as
>> element type), besides the usual triangles we want numbered 2. Is there
>> an option to export under .msh the element type numbered 2 only?
>> Thanks for the answer,
>>
>> Best Regards,
>> Arnaud Mesgouez.
>>
>> PS: please find below a copy of our files:
>>
>>
>> Bonjour,
>> Nous débutons avec Gmsh, que nous voulons désormais interfacer avec
>> notre propre solver EF/DF. Nous avons suivi les exemples fournis dans le
>> manuel, mais nous avons une question qui reste sans réponse pour le moment.
>> Lorsque nous générons un maillage en 2D, Gmsh nous donne comme éléments
>> les points et lignes, numérotés en 15 et 1 (comme type d'élements), en
>> plus des triangles classiques que nous voulons numérotés en 2. Y-a-t-il
>> une option pour exporter sous .msh les éléments de type 2 uniquement?
>> Merci pour votre réponse,
>> PS: voici nos commandes
>>
>>
>> Point(1) = {0,0,0,5};
>> Point(2) = {10,0,0,5};
>> Point(3) = {10,5,0,5};
>> Point(4) = {0,5,0,5};
>> Line(1) = {4,1};
>> Line(2) = {1,2};
>> Line(3) = {2,3};
>> Line(4) = {3,4};
>> Line Loop(5) = {2,3,4,1};
>> Plane Surface(6) = {5};
>>
>> $MeshFormat
>> 2 0 8
>> $EndMeshFormat
>> $Nodes
>> 4
>> 1 0 0 0
>> 2 10 0 0
>> 3 10 5 0
>> 4 0 5 0
>> $EndNodes
>> $Elements
>> 10
>> 1 15 3 0 1 0 1
>> 2 15 3 0 2 0 2
>> 3 15 3 0 3 0 3
>> 4 15 3 0 4 0 4
>> 5 1 3 0 1 0 4 1
>> 6 1 3 0 2 0 1 2
>> 7 1 3 0 3 0 2 3
>> 8 1 3 0 4 0 3 4
>> 9 2 3 0 6 0 2 3 4
>> 10 2 3 0 6 0 2 4 1
>> $EndElements
>>
>
>