[Gmsh] restrict field

Stéphane BLANCHET stephane.blanchet at esstin.uhp-nancy.fr
Mon Mar 15 15:40:14 CET 2010


Hi, 

 

Thanks, it works. But what I really want, in this case for instance,  is two different meshes, one for the volume 1 and the other for the second volume. I can do that with your technique.

But I can't have a conformal interface, ie the same mesh for the surface 32 in both volume mesh.

I hope you understand my problem.

Regards,

 

//Stéphane



 






 



Date: Mon, 15 Mar 2010 13:06:22 +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


On 15/03/10 09:17, Stéphane BLANCHET wrote: 


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.

Hi Stéphane,

if you want to mesh only the first Volume, just add

Delete { Volume {2} ; } 

 after the extrusion command, or delete the line

Physical Volume(60) = {2};

the second volume will be meshed, but the 3D mesh will not be saved in the .msh file

Regards,

Dave



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/
> Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
> 
> 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
> 



Télécharger en toute sécurité sur Internet ? La solution avec Internet Explorer 8 
_______________________________________________
gmsh mailing list
gmsh at geuz.org
http://www.geuz.org/mailman/listinfo/gmsh
   		 	   		  
_________________________________________________________________
Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, …
http://www.messengersurvotremobile.com/?d=Hotmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100315/563436d9/attachment.html>