[Gmsh] Re: Mailleur (Gmsh)

Christophe Geuzaine geuzaine at acm.caltech.edu
Sun May 4 23:28:19 CEST 2003


Jean-Thierry A. Ekotto wrote:
> Merci pour la reponse ultra-rapide.
> J'ai en effet reussi a faire mon Maillage.
> Mais seulement j'ai un autre Probleme.
> J' essai de Produire autour de la figure generee  un contour de forme
> rectangulaire (voir document associe), vide  a l'interieur.
> J'aimerai bien que les lignes de contour aient une epaisseur de 3mm.
> Mon probleme etant en fait de calculer les champs electromagnetiques
> et les couants induits aussi bien a l'interieur du contour(surface vide)
> que sur les lignes de contour (3mm d'epaisseur). Pour ce faire j'aimerai
> encore utiliser des maillages transfinis (10mm x 3mm).
> Alors mes questions:
> 
> Est-il possible d'obtenir des figures plus grandes?
> Celles que j'ai genere etant en effet tres petites.

??

> 
> Comment peux-je generer le contour ?
> J'ai essaye de le faire(voir Document). Qu'est ce
> qui n'est pas bon dans mon code?

Surfaces 52 and 54 are obviously wrong: they don't take the holes into
account (cf. tutorial/t4.geo). Moreover, Surface 54, as it is defined,
cannot be meshed with a transfinite algorithm: it has more than 4 sides.

All these mistakes could have been easily avoided by reading the
manual... So, please, do your homework before sending questions :-)
I'm willing to fix bugs in the code, but not do the work for you...

(BTW, you should send your questions to gmsh at geuz.org instead of my
personal address.)

> 
> Dans un Tutorial de Getdp j'ai vu
> DomainC_Mag = Region[ {} ];
> Que  represente [ {} ] ?

An empty list (i.e., "DomainC_Mag" is empty).

Cheers,

Christophe


> 
> Merci d' avance et a bientot
> 
> ------------------------------------------------------------------------
> 
> lc1 = 0.004;
> lc2 = 0.001;
> 
> Point(1) = {-0.43, -0.015, 0, lc1};   Point(2) = {-0.35, -0.015, 0, lc1};
> Point(3) = {-0.35, -0.005, 0, lc1};   Point(4) = {-0.43, -0.005, 0, lc1};
> Point(5) = {-0.43,  0.005, 0, lc1};   Point(6) = {-0.35,  0.005, 0, lc1};
> Point(7) = {-0.35,  0.015, 0, lc1};   Point(8) = {-0.43,  0.015, 0, lc1};
> Point(9) = {-0.17, -0.015, 0, lc1};   Point(10)= {-0.09, -0.015, 0, lc1};
> Point(11)= {-0.09, -0.005, 0, lc1};   Point(12)= {-0.17, -0.005, 0, lc1};
> Point(13)= {-0.17,  0.005, 0, lc1};   Point(14)= {-0.09,  0.005, 0, lc1};
> Point(15)= {-0.09,  0.015, 0, lc1};   Point(16)= {-0.17,  0.015, 0, lc1};
> Point(17)= { 0.09, -0.015, 0, lc1};   Point(18)= { 0.17, -0.015, 0, lc1};
> Point(19)= { 0.17, -0.005, 0, lc1};   Point(20)= { 0.09, -0.005, 0, lc1};
> Point(21)= { 0.09,  0.005, 0, lc1};   Point(22)= { 0.17,  0.005, 0, lc1};
> Point(23)= { 0.17,  0.015, 0, lc1};   Point(24)= { 0.09,  0.015, 0, lc1};
> Point(25)= { 0.35, -0.015, 0, lc1};   Point(26)= { 0.43, -0.015, 0, lc1};
> Point(27)= { 0.43, -0.005, 0, lc1};   Point(28)= { 0.35, -0.005, 0, lc1};
> Point(29)= {-0.48, -0.065, 0, lc2};   Point(30)= { 0.48, -0.065, 0, lc2};
> Point(31)= { 0.48,  0.065, 0, lc2};   Point(32)= {-0.48,  0.065, 0, lc2};
> Point(33)= {-0.483,-0.068, 0, lc2};   Point(34)= { 0.483,-0.068, 0, lc2};
> Point(35)= { 0.483, 0.068, 0, lc2};   Point(36)= {-0.483, 0.068, 0, lc2}; 
> 
> /* Leiter (Conducteur) R */
> 
> Line(1) = {1,2};    Line(5) = {5,6};
> Line(2) = {2,3};    Line(6) = {6,7};
> Line(3) = {3,4};    Line(7) = {7,8};
> Line(4) = {4,1};    Line(8) = {8,5};
> 
> 
> 
> /* Leiter (conducteur) S */
> 
> Line(9) = {9, 10};  Line(13)= {13,14};
> Line(10)= {10,11};  Line(14)= {14,15};
> Line(11)= {11,12};  Line(15)= {15,16};
> Line(12)= {12, 9};  Line(16)= {16,13};
> 
> /* Leiter (Conducteur)T */
> 
> Line(17)= {17,18};  Line(21)= {21,22};
> Line(18)= {18,19};  Line(22)= {22,23};
> Line(19)= {19,20};  Line(23)= {23,24};
> Line(20)= {20,17};  Line(24)= {24,21};
> 
> /* Neutralleiter(Conducteur Neutre) NP */
> 
> Line(25)= {25,26};
> Line(26)= {26,27};
> Line(27)= {27,28};
> Line(28)= {28,25};
> 
> /* Abschirmung (Contour)*/
> 
> Line(29)= {29,30};         Line(33)= {33,34};
> Line(30)= {30,31};         Line(34)= {34,35};
> Line(31)= {31,32};         Line(35)= {35,36};
> Line(32)= {32,29};         Line(36)= {36,33};  
> 
> Line Loop(37) = {1,2,3,4};       Plane Surface(38) = {37};
> 
> Line Loop(39) = {5,6,7,8};       Plane Surface(40) = {39};
> 
> Line Loop(41) = {9,10,11,12};    Plane Surface(42) = {41};
> 
> Line Loop(43) = {13,14,15,16};   Plane Surface(44) = {43};
> 
> Line Loop(45) = {17,18,19,20};   Plane Surface(46) = {45};
> 
> Line Loop(47) = {21,22,23,24};   Plane Surface(48) = {47};
> 
> Line Loop(49) = {25,26,27,28};   Plane Surface(50) = {49};
> 
> Line Loop(51) = {29,30,31,32};   Plane Surface(52) = {51};
> 
> Line Loop(53) = {33,34,35,36}; Plane Surface(54) = {53};
> 
> 
> Transfinite Line{1,-3,5,-7,9,-11,13,-15,17,-19,21,-23,25,-27} = 17;
> Transfinite Line{2,-4,6,-8,10,-12,14,-16,18,-20,22,-24,26,-28} = 3;
> 
> Transfinite Surface{38} = {1,2,3,4};         Recombine Surface{38};
> Transfinite Surface{40} = {5,6,7,8};         Recombine Surface{40};
> Transfinite Surface{42} = {9,10,11,12};      Recombine Surface{42};
> Transfinite Surface{44} = {13,14,15,16};     Recombine Surface{44};
> Transfinite Surface{46} = {17,18,19,20};     Recombine Surface{46};
> Transfinite Surface{48} = {21,22,23,24};     Recombine Surface{48};
> Transfinite Surface{50} = {25,26,27,28};     Recombine Surface{50}; 
> 
> Physical Surface(100) = {38};
> Physical Surface(101) = {40};
> Physical Surface(200) = {42};
> Physical Surface(201) = {44};
> Physical Surface(300) = {46};
> Physical Surface(301) = {48};
> Physical Surface(400) = {50};
>

-- 
Christophe Geuzaine

Tel: (626) 395-4552    http://www.geuz.org
Fax: (626) 578-0124    mailto:geuzaine at acm.caltech.edu