<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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:"Texte brut Car";
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:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma",sans-serif;}
span.TextebrutCar
{mso-style-name:"Texte brut Car";
mso-style-priority:99;
mso-style-link:"Texte brut";
font-family:Consolas;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Segoe UI",sans-serif;}
p.Testonormale, li.Testonormale, div.Testonormale
{mso-style-name:"Testo normale";
mso-style-link:"Testo normale Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.TestonormaleCarattere
{mso-style-name:"Testo normale Carattere";
mso-style-priority:99;
mso-style-link:"Testo normale";
font-family:Consolas;}
p.Testofumetto, li.Testofumetto, div.Testofumetto
{mso-style-name:"Testo fumetto";
mso-style-link:"Testo fumetto Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.TestofumettoCarattere
{mso-style-name:"Testo fumetto Carattere";
mso-style-priority:99;
mso-style-link:"Testo fumetto";
font-family:"Tahoma",sans-serif;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">Yes, that should work. A quick note though, you might want to “Merge” the first file that creates the geometry in the second that rotates it in order to keep your reference
file clean. An example is enclosed with this mail.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif;color:#000099">Guillaume DILASSER</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">Doctorant SACM / LEAS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">CEA - Centre de Saclay - Bât.123 - PC 319c</span><span style="color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">91191 Gif sur Yvette Cedex - France -</span><span style="color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><a href="mailto:guillaume.dilasser@cea.fr">guillaume.dilasser@cea.fr</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>De :</b> Alessandro Vicini [mailto:alessandro.vicini@sitael.com]
<br>
<b>Envoyé :</b> lundi 6 février 2017 11:16<br>
<b>À :</b> DILASSER Guillaume <Guillaume.DILASSER@cea.fr><br>
<b>Cc :</b> gmsh@geuz.org<br>
<b>Objet :</b> R: [Gmsh] R: Geometry modification on physical entities<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoPlainText"><span lang="IT">Hullo Guillaume,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></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.</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><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:</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">tmp[] = Physical Surface { xyz } ;</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span><span lang="IT"><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. }</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> { Surface { tmp[] } ; }</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><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…</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Alessandro</span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><span lang="IT"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">-----Messaggio originale-----<br>
Da: DILASSER Guillaume [<a href="mailto:Guillaume.DILASSER@cea.fr">mailto:Guillaume.DILASSER@cea.fr</a>]
<br>
Inviato: lunedì 6 febbraio 2017 11.03<br>
A: Alessandro Vicini<br>
Cc: <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
Oggetto: RE: [Gmsh] R: Geometry modification on physical entities<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Hello Alessandro,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Guillaume DILASSER<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Doctorant SACM / LEAS<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">CEA - Centre de Saclay - Bât.123 - PC 319c<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">91191 Gif sur Yvette Cedex - France -<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"><a href="mailto:guillaume.dilasser@cea.fr"><span style="color:windowtext;text-decoration:none">guillaume.dilasser@cea.fr</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">-----Message d'origine-----<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">I'm afraid this is not clear to me, how can I use this feature from command line? Thank you.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Alessandro<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">-----Messaggio originale-----<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT">Inviato: domenica 5 febbraio 2017 10.34<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">A: Alessandro Vicini<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Cc: <a href="mailto:gmsh@geuz.org"><span style="color:windowtext;text-decoration:none">gmsh@geuz.org</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Oggetto: Re: [Gmsh] Geometry modification on physical entities<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> 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></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> 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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> Alessandro<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> _______________________________________________<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> gmsh mailing list<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <a href="mailto:gmsh@onelab.info"><span style="color:windowtext;text-decoration:none">gmsh@onelab.info</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">> <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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">--<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">Prof. Christophe Geuzaine<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">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></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">_______________________________________________<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT">gmsh mailing list<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"><a href="mailto:gmsh@onelab.info"><span style="color:windowtext;text-decoration:none">gmsh@onelab.info</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="IT"><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></span></p>
</div>
</body>
</html>