<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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 class="moz-txt-link-freetext" 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:
<blockquote cite="mid:525C3AFB.10207@kst.be" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">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 src="cid:part1.07010800.07020302@ulg.ac.be" alt=""><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 src="cid:part2.08050402.00030909@ulg.ac.be" alt=""><br>
<br>
Why ?<br>
</div>
<br>
Joseph<br>
<br>
<div class="moz-signature">-- <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 moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:frippiat.j@kst.be">frippiat.j@kst.be</a><br>
Web : <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.kst-ups.com">www.kst-ups.com</a><br>
<br>
<font size="1">Head office : Cour Lemaire, 16 - 4651 Battice
(Belgium)<br>
RPM Liège (Belgium) : 0423.472.603</font><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
getdp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:getdp@geuz.org">getdp@geuz.org</a>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/getdp">http://www.geuz.org/mailman/listinfo/getdp</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>