<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
You can use the 'Rotate' function (here to rotate a vector in the
xy-plane around the z-axis):<br>
<br>
Rotate[ _bRemanentVectorInTheFrameOfTheMagnet[], 0, 0,
_RotationAngleOfEachMagnetInRadians ]<br>
<br>
with, e.g.,<br>
<br>
_bRemanentVectorInTheFrameOfTheMagnet[] = b_remanent *
Vector[0,1,0]; // with the normal to the magnet along the local
y-axis<br>
<br>
You know the '_RotationAngleOfEachMagnetInRadians' value from your
geometry data.<br>
<br>
Check the result by post-processing your new br[] function.<br>
<br>
Patrick<br>
<br>
<br>
On 14/10/13 14:55, Joseph Frippiat wrote:
<blockquote cite="mid:000601cec8dc$98fd4ae0$caf7e0a0$@kst.be"
type="cite">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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.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";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@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]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">using the examples
« Rotating electric machines » from OneLab, I try to build a
model for this permanent magnet electrical machine :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE"><img
id="Picture_x0020_1"
src="cid:part1.05000704.04020402@ulg.ac.be" height="415"
width="423"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the file pmsm.pro
from OneLab, one imposes a radial Br on the magnet with:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> // For a radial
remanent b<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> For k In {1:nbMagnets}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span>br[
Rotor_Magnet~{k} ] = (-1)^(k-1) * b_remanent * Vector[
Cos[Atan2[Y[],X[]]], Sin[Atan2[Y[],X[]]], 0 ];<o:p></o:p></p>
<p class="MsoNormal"> <span lang="EN-US">EndFor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How do I construct a
vector normal to the magnets ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for any help,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Joseph<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE">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"
href="mailto:frippiat.j@kst.be"><span style="color:blue">frippiat.j@kst.be</span></a><br>
Web : <a class="moz-txt-link-abbreviated" href="http://www.kst-ups.com">www.kst-ups.com</a><br>
<br>
</span><span
style="font-size:10.0pt;mso-fareast-language:FR-BE">Head
office : Cour Lemaire, 16 - 4651 Battice (Belgium)<br>
RPM Liège (Belgium) : 0423.472.603</span><span
style="mso-fareast-language:FR-BE"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</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>