<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Testo normale Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Testo fumetto Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.TestonormaleCarattere
{mso-style-name:"Testo normale Carattere";
mso-style-priority:99;
mso-style-link:"Testo normale";
font-family:Consolas;}
span.TestofumettoCarattere
{mso-style-name:"Testo fumetto Carattere";
mso-style-priority:99;
mso-style-link:"Testo fumetto";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Hullo Guillaume,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span lang="EN-US">yes, starting from an existing geo I want to rotate physical components in order to manage automatic geometry modifications and mesh generation from an external executable program.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">But following your suggestion what I can do from my external program is to add the lines:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">tmp[] = Physical Surface { xyz } ;<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Rotate { { 1. , 0. , 0. } , { 0. , 0. , 0. } , Pi/2. }<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> { Surface { tmp[] } ; }<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">to my .geo file and then generate the mesh, this should work…<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Alessandro<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText">-----Messaggio originale-----<br>
Da: DILASSER Guillaume [mailto:Guillaume.DILASSER@cea.fr] <br>
Inviato: lunedì 6 febbraio 2017 11.03<br>
A: Alessandro Vicini<br>
Cc: gmsh@geuz.org<br>
Oggetto: RE: [Gmsh] R: Geometry modification on physical entities<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hello Alessandro,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Have a look at the enclosed file for an example of what Christophe was mentioning. Also, I don't understand what you are trying to achieve "from the command line". Is it that you generate geometry as a physical entity in one .geo file
and want to rotate it afterwards ? If that is the case, I don't think this can actually work because there is no input argument that you could use from the command line to specify with Physical Entity you wish to transform. This at least will have to be defined
somewhere in a .geo file.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Guillaume DILASSER<o:p></o:p></p>
<p class="MsoPlainText">Doctorant SACM / LEAS<o:p></o:p></p>
<p class="MsoPlainText">CEA - Centre de Saclay - Bât.123 - PC 319c<o:p></o:p></p>
<p class="MsoPlainText">91191 Gif sur Yvette Cedex - France -<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><a href="mailto:guillaume.dilasser@cea.fr"><span style="color:windowtext;text-decoration:none">guillaume.dilasser@cea.fr</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Message d'origine-----<o:p></o:p></p>
<p class="MsoPlainText">De : gmsh [<a href="mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be"><span style="color:windowtext;text-decoration:none">mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be</span></a>] De la part de Alessandro Vicini Envoyé : lundi 6 février
2017 09:38 À : Christophe Geuzaine <<a href="mailto:cgeuzaine@ulg.ac.be"><span style="color:windowtext;text-decoration:none">cgeuzaine@ulg.ac.be</span></a>> Cc :
<a href="mailto:gmsh@geuz.org"><span style="color:windowtext;text-decoration:none">gmsh@geuz.org</span></a> Objet : [Gmsh] R: Geometry modification on physical entities<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I'm afraid this is not clear to me, how can I use this feature from command line? Thank you.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Alessandro<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Messaggio originale-----<o:p></o:p></p>
<p class="MsoPlainText">Da: Christophe Geuzaine [<a href="mailto:cgeuzaine@ulg.ac.be"><span style="color:windowtext;text-decoration:none">mailto:cgeuzaine@ulg.ac.be</span></a>]<o:p></o:p></p>
<p class="MsoPlainText">Inviato: domenica 5 febbraio 2017 10.34<o:p></o:p></p>
<p class="MsoPlainText">A: Alessandro Vicini<o:p></o:p></p>
<p class="MsoPlainText">Cc: <a href="mailto:gmsh@geuz.org"><span style="color:windowtext;text-decoration:none">gmsh@geuz.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Oggetto: Re: [Gmsh] Geometry modification on physical entities<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> On 3 Feb 2017, at 10:18, Alessandro Vicini <<a href="mailto:alessandro.vicini@sitael.com"><span style="color:windowtext;text-decoration:none">alessandro.vicini@sitael.com</span></a>> wrote:<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Geometry modifications (such as a rotation) can only be applied to elementary entities? Is there a way to apply them on physical entities instead? Thank you.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">No, but you can get all the elementary entities making up a physical group using e.g. "Physical Line {tag}" (it returns a list), which you can then use in the transformation commands.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Alessandro<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">> gmsh mailing list<o:p></o:p></p>
<p class="MsoPlainText">> <a href="mailto:gmsh@onelab.info"><span style="color:windowtext;text-decoration:none">gmsh@onelab.info</span></a><o:p></o:p></p>
<p class="MsoPlainText">> <a href="http://onelab.info/mailman/listinfo/gmsh"><span style="color:windowtext;text-decoration:none">http://onelab.info/mailman/listinfo/gmsh</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">--<o:p></o:p></p>
<p class="MsoPlainText">Prof. Christophe Geuzaine<o:p></o:p></p>
<p class="MsoPlainText">University of Liege, Electrical Engineering and Computer Science
<a href="http://www.montefiore.ulg.ac.be/~geuzaine"><span style="color:windowtext;text-decoration:none">http://www.montefiore.ulg.ac.be/~geuzaine</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Free software: <a href="http://gmsh.info"><span style="color:windowtext;text-decoration:none">http://gmsh.info</span></a> |
<a href="http://getdp.info"><span style="color:windowtext;text-decoration:none">http://getdp.info</span></a> |
<a href="http://onelab.info"><span style="color:windowtext;text-decoration:none">http://onelab.info</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">gmsh mailing list<o:p></o:p></p>
<p class="MsoPlainText"><a href="mailto:gmsh@onelab.info"><span style="color:windowtext;text-decoration:none">gmsh@onelab.info</span></a><o:p></o:p></p>
<p class="MsoPlainText"><a href="http://onelab.info/mailman/listinfo/gmsh"><span style="color:windowtext;text-decoration:none">http://onelab.info/mailman/listinfo/gmsh</span></a><o:p></o:p></p>
</div>
</body>
</html>