A solution could be the attached file.

Regards,

Benjamin

Le 19-03-2016 12:00, [email protected] a écrit :
Send gmsh mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://onelab.info/mailman/listinfo/gmsh
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gmsh digest..."


Today's Topics:

   1. Question sur GMSH (PERRIN Pierre - CEREMA/DTerEst/Infra/DOA)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Mar 2016 16:04:43 +0100
From: "PERRIN Pierre - CEREMA/DTerEst/Infra/DOA"
        <[email protected]>
To: [email protected]
Subject: [Gmsh] Question sur GMSH
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Bonjour,

Je me pose une question apparemment simple sur GMSH, mais dont je ne
parviens pas ? trouver la r?ponse...

Je souhaite mailler un grand rectangle, avec ? l'int?rieur un petit
rectangle.
Le petit rectangle ne repr?sente pas un trou, mais un impact de charge.
Je souhaite in fine avoir acc?s dans Code Aster ? un physical sur cet
impact pour pouvoir placer un chargement surfacique.



Je vous joint mon fichier .geo, un peu pollu? par mes essais... Je
parviens ? mailler apparemment correctement, mais en r?alit? les 2
maillages sont distincts, ce que Code Aster n'appr?cie pas et me signale.
Vous serait-il possible de m'indiquer une m?thode qui me permette
d'arriver ? mes fins ?


En vous remerciant par avance,

Cordialement

Pierre PERRIN

*Pour information *
Ce que je souhaite faire se fait tr?s facilement avec le module ?l?ments
finis de RDM6 (http://iut.univ-lemans.fr/ydlogi/rdm_version_6.html).
On d?fini 2 rectangles, puis un menu permet de passer les cot? de
l'impact en pointill?s, pour signifier simplement que l'on va adapter le
maillage ? ce contour, mais sans consid?rer de trou dans la plaque :

puis lorsqu'on maille on obtient :

Si on n'a pas d?fini les pointill?s, il y a par contre un trou :


--

*Pierre PERRIN *
*Ing?nieur d'?tudes Ouvrages d'Art
D?partement Conception et Exploitation des Infrastructures
Division Ouvrages d'Art *
*T?l.: : +33(0)3 87 20 46 39
* */Mobilis? pour sauver le site de Metz/*


Centre d??tudes et d?expertise sur les risques, l?environnement, la
mobilit? et l?am?nagement www.cerema.fr <http://www.cerema.fr>
Direction territoriale Est
1, boulevard Solidarit? BP 85230 57076 METZ CEDEX 3 - T?l : +33 (0)3 87
20 43 00
Si?ge social : Cit? des Mobilit?s - 25, avenue Fran?ois Mitterrand - CS
92 803 - F-69674 Bron Cedex - T?l : +33 (0)4 72 14 30 30



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://onelab.info/pipermail/gmsh/attachments/20160318/1e8e28a6/attachment-0001.html>
-------------- next part --------------
//PARAMETRES
h=0.1;
cote_x=20.0 ;
cote_y=10.0 ;
deb_impact_x=5.0;
deb_impact_y=5.0;
impact_x=0.6 ;
impact_y=0.4 ;


//POINTS
Point(1)={0,0,0,h};
Point(2)={cote_x,0,0,h};
Point(3)={cote_x,cote_y,0,h};
Point(4)={0,cote_y,0,h};
Point(5)={deb_impact_x,deb_impact_y,0,h};
Point(6)={deb_impact_x+impact_y,deb_impact_y,0,h};
Point(7)={deb_impact_x+impact_y,deb_impact_y+impact_y,0,h};
Point(8)={deb_impact_x,deb_impact_y+impact_y,0,h};

//LINES
Line(1)={1,2};
Line(2)={2,3};
Line(3)={3,4};
Line(4)={4,1};
Line(5)={5,6};
Line(6)={6,7};
Line(7)={7,8};
Line(8)={8,5};

//SURFACES
Line Loop(1)={1,2,3,4};
Plane Surface(1)={1};
Transfinite Surface{1};
Recombine Surface{1};

// incorporation des lignes dans les surfaces :
// En GMSH ancien (v1.60)
//    ??
// En GMSH moderne (v2.12)
//    Line {5,6,7,8} In Surface {1};

Line {5} In Surface {1};
Line {6} In Surface {1};
Line {7} In Surface {1};
Line {8} In Surface {1};


Line Loop(2)={5,6,7,8};
Plane Surface(2)={2};
Transfinite Surface{2};
Recombine Surface{2};


// Essais inutile au final :
//Compound Surface(3)={1,2};
//Transfinite Surface{3};
//Mesh.RemeshAlgorithm=1;
Coherence;
Mesh.Format=1;

//PHYSICAL
Physical Line(1)={1, 3};                 //section d'encastrement
Physical Line(2)={2, 4};                 //section d'encastrement
Physical Surface(10000)={1};
Physical Surface(20000)={2};
Physical Surface(30000)={1,2};

//Color Yellow { Surface {1} ; }
//Color Red { Line {2} ; }





------------------------------

Subject: Digest Footer

_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh


------------------------------

End of gmsh Digest, Vol 158, Issue 15
*************************************



--


Benjamin JEANTY-RUARD

  --------------------
      Artenum Toulouse - Science & Groupware
      http://www.artenum.com

          Bâtiment Calfocenter
          10, rue Marguerite Long
          31320 Castanet-Tolosan
          France
          Phone: +33 (0)5 82 95 51 97
//PARAMETRES
h=0.1;
cote_x=20.0 ;
cote_y=10.0 ;
deb_impact_x=5.0;
deb_impact_y=5.0;
impact_x=0.6 ;
impact_y=0.4 ;


//POINTS
Point(1)={0,0,0,h};
Point(2)={deb_impact_x,0,0,h};
Point(3)={deb_impact_x,deb_impact_y,0,h};
Point(4)={0,deb_impact_y,0,h};

Point(5)={deb_impact_x+impact_x,0,0,h};
Point(6)={deb_impact_x+impact_x,deb_impact_y,0,h};


Point(7)={cote_x,deb_impact_y+impact_y,0,h};
Point(8)={deb_impact_x+impact_x,deb_impact_y+impact_y,0,h};

Point(9)={cote_x,0,0,h};
Point(10)={cote_x,deb_impact_y,0,h};

Point(11)={cote_x,cote_y,0,h};
Point(12)={deb_impact_x+impact_x,cote_y,0,h};

Point(13)={deb_impact_x,cote_y,0,h};
Point(14)={deb_impact_x,deb_impact_y+impact_y,0,h};

Point(15)={0,cote_y,0,h};
Point(16)={0,deb_impact_y+impact_y,0,h};


//LINES
Line(1)={1,2};
Line(2)={2,3};
Line(3)={3,4};
Line(4)={4,1};

Line(5)={2,3};
Line(6)={3,6};
Line(7)={6,5};
Line(8)={5,2};

Line(9)={9,10};
Line(10)={10,6};
Line(11)={6,5};
Line(12)={5,9};

Line(13)={7,10};
Line(14)={10,6};
Line(15)={6,8};
Line(16)={8,7};

Line(17)={7,8};
Line(18)={8,12};
Line(19)={12,11};
Line(20)={11,7};

Line(21)={12,8};
Line(22)={8,14};
Line(23)={14,13};
Line(24)={13,12};

Line(25)={13,14};
Line(26)={14,16};
Line(27)={16,15};
Line(28)={15,13};

Line(29)={16,14};
Line(30)={14,3};
Line(31)={3,4};
Line(32)={4,16};

Line(33)={3,6};
Line(34)={6,8};
Line(35)={8,14};
Line(36)={14,3};

//SURFACES
Line Loop(1)={1,2,3,4};
Line Loop(2)={5,6,7,8};
Line Loop(3)={9,10,11,12};
Line Loop(4)={13,14,15,16};
Line Loop(5)={17,18,19,20};
Line Loop(6)={21,22,23,24};
Line Loop(7)={25,26,27,28};
Line Loop(8)={29,30,31,32};
Line Loop(9)={33,34,35,36};

Plane Surface(1)={1};
Plane Surface(2)={2};
Plane Surface(3)={3};
Plane Surface(4)={4};
Plane Surface(5)={5};
Plane Surface(6)={6};
Plane Surface(7)={7};
Plane Surface(8)={8};
Plane Surface(9)={9};

Transfinite Surface{1};
Recombine Surface{1};
Transfinite Surface{2};
Recombine Surface{2};
Transfinite Surface{3};
Recombine Surface{3};
Transfinite Surface{4};
Recombine Surface{4};
Transfinite Surface{5};
Recombine Surface{5};
Transfinite Surface{6};
Recombine Surface{6};
Transfinite Surface{7};
Recombine Surface{7};
Transfinite Surface{8};
Recombine Surface{8};
Transfinite Surface{9};
Recombine Surface{9};

// incorporation des lignes dans les surfaces :
// En GMSH ancien (v1.60)
//    ??
// En GMSH moderne (v2.12)
//    Line {5,6,7,8} In Surface {1};
/*
Line {5} In Surface {1};
Line {6} In Surface {1};
Line {7} In Surface {1};
Line {8} In Surface {1};

 
Line Loop(2)={5,6,7,8}; 
Plane Surface(2)={2};
Transfinite Surface{2};
Recombine Surface{2};*/
       
// Essais inutile au final :
//Compound Surface(3)={1,2};
//Transfinite Surface{3};
//Mesh.RemeshAlgorithm=1;
Coherence;
Mesh.Format=1;

//PHYSICAL
Physical Line(1)={33, 35};                 //section d'encastrement 
Physical Line(2)={34, 36};                 //section d'encastrement
 
Physical Surface(10000)={1};
Physical Surface(20000)={2};
Physical Surface(30000)={3};
Physical Surface(40000)={4};
Physical Surface(50000)={5};
Physical Surface(60000)={6};
Physical Surface(70000)={7};
Physical Surface(80000)={8};
Physical Surface(90000)={9};

//Color Yellow { Surface {1} ; }
//Color Red { Line {2} ; }
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to