<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 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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 bgcolor=white lang=FR-BE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The development version of GetDP that I downloaded yesterday evening corrects this problem.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Joseph<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Joseph Frippiat<br>Senior Developer - UPS Division<br><br><b>KST S.A.</b> - Site of Battice<br>Cour Lemaire, 16<br>B-4651 BATTICE<br>BELGIUM<br>Tel : +.32.4.247.01.67<br>Fax : +.32.87.31.42.21<br>E-mail : <a href="mailto:frippiat.j@kst.be">frippiat.j@kst.be</a><br>Web : www.kst-ups.com<br><br></span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Head office : Cour Lemaire, 16 - 4651 Battice (Belgium)<br>RPM Liège (Belgium) : 0423.472.603</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Joseph Frippiat [mailto:frippiat.j@kst.be] <br><b>Sent:</b> mardi 15 octobre 2013 13:23<br><b>To:</b> 'getdp@geuz.org'<br><b>Subject:</b> RE: [Getdp] vector normal to a magnet<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This doesn’t work (b = 0 everywhere):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> For k In {1:nbMagnets}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>br[ Rotor_Magnet~{k} ] = b_remanent * Vector[ 0, 1, 0 ];<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> EndFor<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This works (with the wrong amplitude) :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> For k In {1:nbMagnets}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> br[ Rotor_Magnet~{k} ] = b_remanent * Vector[ 0, Y[], 0 ];<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> EndFor<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Rotate doesn’t work for me (b = 0 everywhere).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Joseph<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Joseph Frippiat<br>Senior Developer - UPS Division<br><br><b>KST S.A.</b> - Site of Battice<br>Cour Lemaire, 16<br>B-4651 BATTICE<br>BELGIUM<br>Tel : +.32.4.247.01.67<br>Fax : +.32.87.31.42.21<br>E-mail : <a href="mailto:frippiat.j@kst.be">frippiat.j@kst.be</a><br>Web : <a href="http://www.kst-ups.com">www.kst-ups.com</a><br><br></span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Head office : Cour Lemaire, 16 - 4651 Battice (Belgium)<br>RPM Liège (Belgium) : 0423.472.603</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Patrick Dular [<a href="mailto:Patrick.Dular@ulg.ac.be">mailto:Patrick.Dular@ulg.ac.be</a>] <br><b>Sent:</b> mardi 15 octobre 2013 08:51<br><b>To:</b> Joseph Frippiat<br><b>Cc:</b> <a href="mailto:getdp@geuz.org">getdp@geuz.org</a><br><b>Subject:</b> Re: [Getdp] vector normal to a magnet<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>Joseph,<br><br>Because Atan2[Y[],X[]]] gives you the angle made by the position vector ( X[] , Y [] ) (of each current point in the XY-plane, i.e. each point where this function has to be evaluated) (see <a href="http://en.wikipedia.org/wiki/Atan2">http://en.wikipedia.org/wiki/Atan2</a>), the Vector[] function<br><br> Vector[ Cos[Atan2[Y[],X[]]], Sin[Atan2[Y[],X[]]], 0 ]<br><br>gives a radial vector at this point (which can be checked on your field map: the direction of the field in the magnets is mainly the radial one.<br><br>Cos[Atan2[Y[],X[]]] is the X-projection of the unit radial vector.<br>Sin[Atan2[Y[],X[]]] is the Y-projection of the unit radial vector.<br><br>To define the direction you wish for the remanent induction in each magnet, you should use the function I sent you yesterday. If you wish, send me your .geo and .pro files and I will implement it for you.<br><br>Patrick<br><br><br>On 14/10/13 20:42, Joseph Frippiat wrote: <o:p></o:p></p><div><p class=MsoNormal>I don't understand the Vector[] usage..<br><br>With this :<br><br> For k In {1:nbMagnets}<br> br[ Rotor_Magnet~{k} ] = b_remanent * Vector[ Cos[Atan2[Y[],X[]]], Sin[Atan2[Y[],X[]]], 0 ];<br> EndFor<br><br>I have a b field (not the wanted one) :<br><img border=0 width=725 height=745 id="_x0000_i1025" src="cid:image001.png@01CECB3D.5ED7FD20"><br><br><br>With this :<br><br> For k In {1:nbMagnets}<br> br[ Rotor_Magnet~{k} ] = b_remanent * Vector[ Cos[Atan2[Y[],X[]]+Pi/4], Sin[Atan2[Y[],X[]]+Pi/4], 0 ];<br> EndFor<br><br>I have nothing :<br><br><img border=0 width=708 height=738 id="_x0000_i1026" src="cid:image002.png@01CECB3D.5ED7FD20"><br><br>Why ?<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>Joseph<o:p></o:p></p><div><p class=MsoNormal>-- <br><br>Joseph Frippiat<br>Senior Developer - UPS Division<br><br><b>KST S.A.</b> - Site of Battice<br>Cour Lemaire, 16<br>B-4651 BATTICE<br>BELGIUM<br>Tel : +.32.4.247.01.67<br>Fax : +.32.87.31.42.21<br>E-mail : <a href="mailto:frippiat.j@kst.be">frippiat.j@kst.be</a><br>Web : <a href="http://www.kst-ups.com">www.kst-ups.com</a><br><br><span style='font-size:7.5pt'>Head office : Cour Lemaire, 16 - 4651 Battice (Belgium)<br>RPM Liège (Belgium) : 0423.472.603</span><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>getdp mailing list<o:p></o:p></pre><pre><a href="mailto:getdp@geuz.org">getdp@geuz.org</a><o:p></o:p></pre><pre><a href="http://www.geuz.org/mailman/listinfo/getdp">http://www.geuz.org/mailman/listinfo/getdp</a><o:p></o:p></pre><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></body></html>