# [Gmsh] restrict field

Stéphane BLANCHET stephane.blanchet at esstin.uhp-nancy.fr
Mon Mar 15 09:17:39 CET 2010

```Hi,

This a simple exemple I used to understand how works this field:

Point(1)= {0,0,0};
Point(2)= {1,0,0};
Point(3)= {1,1,0};
Point(4)= {0,1,0};
Point(5)= {0,2,0};
Point(6)= {1,2,0};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line(5) = {4, 5};
Line(6) = {5, 6};
Line(7) = {6, 3};
Line Loop(8) = {5, 6, 7, 3};
Plane Surface(9) = {8};
Line Loop(10) = {3, 4, 1, 2};
Plane Surface(11) = {10};
Extrude {0, 0, 1} {
Surface{9, 11};
}
Physical Surface(56) = {9, 28, 20, 33, 24};
Physical Surface(57) = {32};
Physical Surface(58) = {11, 54, 55, 46, 50};
Physical Volume(59) = {1};
Physical Volume(60) = {2};

Field[1] = Restrict;
Field[1].EdgesList = {6, 19, 14, 23, 7, 5, 13, 15, 3, 18, 16, 27};
Field[1].FacesList = {24, 9, 28, 33, 20, 32};
Field[1].RegionsList = {1};
Background Field = 1;

So, with this field, I want to mesh only the first volume.

But every time I click on the "mesh" button, GMsh crashes.

Regards

//Stéphane

> Date: Sun, 14 Mar 2010 08:45:52 +0100
> From: David.Colignon at ulg.ac.be
> To: stephane.blanchet at esstin.uhp-nancy.fr
> CC: gmsh at geuz.org
> Subject: Re: [Gmsh] restrict field
>
> Hi Stéphane,
>
> can you send us your .geo file and a description of the steps you follow, so that we can try to reproduce the "crash" ?
>
> 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/
>
> On 13/03/10 15:31, Stéphane BLANCHET wrote:
> >
> > Hello,
> >
> > I would like to know if the field "restrict" really works!
> > Indeed, every time I try to use this field on simple geometries, Gmsh
> > crashes!
> >
> > Best Regards
> >
> >
> > ---------------
> >
> > BLANCHET Stéphane
> >
> > Elève-Ingénieur ESSTIN (5 Année)
> > Option: Mécanique des Fluides et Énergétique
> >
> > Tél: 0632224601
> > Mail: stephane.blanchet at esstin.uhp-nancy.fr
> >
> > Ecole Supérieure des Sciences et Technologies de l'Ingénieur de Nancy
> > Université Henri Poincaré Nancy I
> > 2, rue Jean Lamour
> > 54 519 - Vandoeuvre Lès Nancy
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > Hotmail débarque sur votre téléphone ! Paramétrez Hotmail sur votre
> > téléphone! Gratuit ! <http://www.messengersurvotremobile.com/?d=Hotmail>
> >
> >
> >
> > _______________________________________________
> > gmsh mailing list
> > gmsh at geuz.org
> > http://www.geuz.org/mailman/listinfo/gmsh
>

_________________________________________________________________
Consultez gratuitement vos emails Orange, Gmail, Free, ... directement dans HOTMAIL !
http://www.windowslive.fr/hotmail/agregation/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100315/91b00009/attachment.html>
```