root/doc/html/classIMpmsm.html @ 290

Revision 290, 17.8 kB (checked in by smidl, 16 years ago)

correction of ARX tutorial

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: IMpmsm Class Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.8 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
56      <li><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
62      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
63      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
64      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
65    </ul>
66  </div>
67</div>
68<div class="contents">
69<h1>IMpmsm Class Reference<br>
70<small>
71[<a class="el" href="group__PMSM.html">PMSM</a>]</small>
72</h1><!-- doxytag: class="IMpmsm" --><!-- doxytag: inherits="bdm::diffbifn" -->State evolution model for a PMSM drive and its derivative with respect to <img class="formulaInl" alt="$x$" src="form_28.png">
73<a href="#_details">More...</a>
74<p>
75<code>#include &lt;<a class="el" href="pmsm_8h-source.html">pmsm.h</a>&gt;</code>
76<p>
77
78<p>
79<a href="classIMpmsm-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
80<tr><td></td></tr>
81<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
82<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="42818f3426d99fecb7e97be8ffe2e228"></a><!-- doxytag: member="IMpmsm::set_parameters" ref="42818f3426d99fecb7e97be8ffe2e228" args="(double Rs0, double Ls0, double dt0, double Ypm0, double kp0, double p0, double J0, double Mz0)" -->
83void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#42818f3426d99fecb7e97be8ffe2e228">set_parameters</a> (double Rs0, double Ls0, double dt0, double Ypm0, double kp0, double p0, double J0, double Mz0)</td></tr>
84
85<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set mechanical and electrical variables. <br></td></tr>
86<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45785869d978dda42828a072ec2caebe"></a><!-- doxytag: member="IMpmsm::eval" ref="45785869d978dda42828a072ec2caebe" args="(const vec &amp;x0, const vec &amp;u0)" -->
87vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#45785869d978dda42828a072ec2caebe">eval</a> (const vec &amp;x0, const vec &amp;u0)</td></tr>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$f(x0,u0)$" src="form_83.png">. <br></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#b4378b5d3bf64c683e4cf5c5f1cd56f1">dfdx_cond</a> (const vec &amp;x0, const vec &amp;u0, mat &amp;A, bool full=true)</td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_84.png"> and writes result into <code>A</code> .  <a href="#b4378b5d3bf64c683e4cf5c5f1cd56f1"></a><br></td></tr>
93<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#c3f8dad22ae9855c04a1d593b45c99b5">dfdu_cond</a> (const vec &amp;x0, const vec &amp;u0, mat &amp;A, bool full=true)</td></tr>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_86.png"> and writes result into <code>A</code> .  <a href="#c3f8dad22ae9855c04a1d593b45c99b5"></a><br></td></tr>
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="188f31066bd72e1bf0ddacd1eb0e6af3"></a><!-- doxytag: member="IMpmsm::eval" ref="188f31066bd72e1bf0ddacd1eb0e6af3" args="(const vec &amp;cond)" -->
97vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#188f31066bd72e1bf0ddacd1eb0e6af3">eval</a> (const vec &amp;cond)</td></tr>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$f(x0,u0)$" src="form_83.png"> (VS: Do we really need common eval? ). <br></td></tr>
100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b3c8f5949f13d86d2661e191d4b369b"></a><!-- doxytag: member="IMpmsm::_dimx" ref="1b3c8f5949f13d86d2661e191d4b369b" args="() const " -->
101int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#1b3c8f5949f13d86d2661e191d4b369b">_dimx</a> () const </td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="031458f38c97cdb3aecde16f6a06dced"></a><!-- doxytag: member="IMpmsm::_dimu" ref="031458f38c97cdb3aecde16f6a06dced" args="() const " -->
105int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#031458f38c97cdb3aecde16f6a06dced">_dimu</a> () const </td></tr>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
108<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0786e40fade2663a70d654c1dda5d73e"></a><!-- doxytag: member="IMpmsm::condition" ref="0786e40fade2663a70d654c1dda5d73e" args="(const vec &amp;val)" -->
109virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fnc.html#0786e40fade2663a70d654c1dda5d73e">condition</a> (const vec &amp;val)</td></tr>
110
111<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">function substitutes given value into an appropriate position <br></td></tr>
112<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="083832294da9d1e40804158b979c4341"></a><!-- doxytag: member="IMpmsm::dimension" ref="083832294da9d1e40804158b979c4341" args="() const " -->
113int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fnc.html#083832294da9d1e40804158b979c4341">dimension</a> () const </td></tr>
114
115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
116<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
117<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5908138b6c11f32971542423978a25d3"></a><!-- doxytag: member="IMpmsm::Rs" ref="5908138b6c11f32971542423978a25d3" args="" -->
118double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Rs</b></td></tr>
119
120<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="829e309d689b7e148d761d36b1b62fb7"></a><!-- doxytag: member="IMpmsm::Ls" ref="829e309d689b7e148d761d36b1b62fb7" args="" -->
121double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Ls</b></td></tr>
122
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec462f3df7355cc72843c945d887b9d3"></a><!-- doxytag: member="IMpmsm::dt" ref="ec462f3df7355cc72843c945d887b9d3" args="" -->
124double&nbsp;</td><td class="memItemRight" valign="bottom"><b>dt</b></td></tr>
125
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1b973c18d381e7ec717165aa306b613"></a><!-- doxytag: member="IMpmsm::Ypm" ref="a1b973c18d381e7ec717165aa306b613" args="" -->
127double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Ypm</b></td></tr>
128
129<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="03f1857fb1910c7b06dac4ce50482516"></a><!-- doxytag: member="IMpmsm::kp" ref="03f1857fb1910c7b06dac4ce50482516" args="" -->
130double&nbsp;</td><td class="memItemRight" valign="bottom"><b>kp</b></td></tr>
131
132<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0eddf56a8feb6b837ee3c36c0ac6b781"></a><!-- doxytag: member="IMpmsm::p" ref="0eddf56a8feb6b837ee3c36c0ac6b781" args="" -->
133double&nbsp;</td><td class="memItemRight" valign="bottom"><b>p</b></td></tr>
134
135<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="83e4149bb70b022f3a19208f14eac0e3"></a><!-- doxytag: member="IMpmsm::J" ref="83e4149bb70b022f3a19208f14eac0e3" args="" -->
136double&nbsp;</td><td class="memItemRight" valign="bottom"><b>J</b></td></tr>
137
138<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0aa4f9ee2b9babdc05f62ba275a9575f"></a><!-- doxytag: member="IMpmsm::Mz" ref="0aa4f9ee2b9babdc05f62ba275a9575f" args="" -->
139double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Mz</b></td></tr>
140
141<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f56547d8e9378b669d3cc19d7831cbb"></a><!-- doxytag: member="IMpmsm::rvx" ref="5f56547d8e9378b669d3cc19d7831cbb" args="" -->
142RV&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#5f56547d8e9378b669d3cc19d7831cbb">rvx</a></td></tr>
143
144<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indentifier of the first rv. <br></td></tr>
145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8e3e861d5ec2a7ae9524e6338e58320"></a><!-- doxytag: member="IMpmsm::rvu" ref="a8e3e861d5ec2a7ae9524e6338e58320" args="" -->
146RV&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#a8e3e861d5ec2a7ae9524e6338e58320">rvu</a></td></tr>
147
148<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indentifier of the second rv. <br></td></tr>
149<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a193aa2c4a500139c0c4b669691e588e"></a><!-- doxytag: member="IMpmsm::dimx" ref="a193aa2c4a500139c0c4b669691e588e" args="" -->
150int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e">dimx</a></td></tr>
151
152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache for rvx.count() <br></td></tr>
153<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="30c45617eec89adeb4ebaa763d093fb0"></a><!-- doxytag: member="IMpmsm::dimu" ref="30c45617eec89adeb4ebaa763d093fb0" args="" -->
154int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0">dimu</a></td></tr>
155
156<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache for rvu.count() <br></td></tr>
157<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52156cb4a52a62d51fc7455985797a62"></a><!-- doxytag: member="IMpmsm::dimy" ref="52156cb4a52a62d51fc7455985797a62" args="" -->
158int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62">dimy</a></td></tr>
159
160<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Length of the output vector. <br></td></tr>
161</table>
162<hr><a name="_details"></a><h2>Detailed Description</h2>
163State evolution model for a PMSM drive and its derivative with respect to <img class="formulaInl" alt="$x$" src="form_28.png">. <hr><h2>Member Function Documentation</h2>
164<a class="anchor" name="c3f8dad22ae9855c04a1d593b45c99b5"></a><!-- doxytag: member="IMpmsm::dfdu_cond" ref="c3f8dad22ae9855c04a1d593b45c99b5" args="(const vec &amp;x0, const vec &amp;u0, mat &amp;A, bool full=true)" -->
165<div class="memitem">
166<div class="memproto">
167      <table class="memname">
168        <tr>
169          <td class="memname">void IMpmsm::dfdu_cond           </td>
170          <td>(</td>
171          <td class="paramtype">const vec &amp;&nbsp;</td>
172          <td class="paramname"> <em>x0</em>, </td>
173        </tr>
174        <tr>
175          <td class="paramkey"></td>
176          <td></td>
177          <td class="paramtype">const vec &amp;&nbsp;</td>
178          <td class="paramname"> <em>u0</em>, </td>
179        </tr>
180        <tr>
181          <td class="paramkey"></td>
182          <td></td>
183          <td class="paramtype">mat &amp;&nbsp;</td>
184          <td class="paramname"> <em>A</em>, </td>
185        </tr>
186        <tr>
187          <td class="paramkey"></td>
188          <td></td>
189          <td class="paramtype">bool&nbsp;</td>
190          <td class="paramname"> <em>full</em> = <code>true</code></td><td>&nbsp;</td>
191        </tr>
192        <tr>
193          <td></td>
194          <td>)</td>
195          <td></td><td></td><td><code> [inline, virtual]</code></td>
196        </tr>
197      </table>
198</div>
199<div class="memdoc">
200
201<p>
202Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_86.png"> and writes result into <code>A</code> .
203<p>
204<dl compact><dt><b>Parameters:</b></dt><dd>
205  <table border="0" cellspacing="2" cellpadding="0">
206    <tr><td valign="top"></td><td valign="top"><em>full</em>&nbsp;</td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr>
207    <tr><td valign="top"></td><td valign="top"><em>x0</em>&nbsp;</td><td>numeric value of <img class="formulaInl" alt="$x$" src="form_28.png">, </td></tr>
208    <tr><td valign="top"></td><td valign="top"><em>u0</em>&nbsp;</td><td>numeric value of <img class="formulaInl" alt="$u$" src="form_85.png"> </td></tr>
209    <tr><td valign="top"></td><td valign="top"><em>A</em>&nbsp;</td><td>a place where the result will be stored. </td></tr>
210  </table>
211</dl>
212
213<p>Reimplemented from <a class="el" href="classbdm_1_1diffbifn.html#6ea1dc7a482601b29c5ba36a52d20d07">bdm::diffbifn</a>.</p>
214
215<p>Reimplemented in <a class="el" href="classIMpmsmStat.html#ff740ee20100ae2a2d03a2538638f8e8">IMpmsmStat</a>.</p>
216
217</div>
218</div><p>
219<a class="anchor" name="b4378b5d3bf64c683e4cf5c5f1cd56f1"></a><!-- doxytag: member="IMpmsm::dfdx_cond" ref="b4378b5d3bf64c683e4cf5c5f1cd56f1" args="(const vec &amp;x0, const vec &amp;u0, mat &amp;A, bool full=true)" -->
220<div class="memitem">
221<div class="memproto">
222      <table class="memname">
223        <tr>
224          <td class="memname">void IMpmsm::dfdx_cond           </td>
225          <td>(</td>
226          <td class="paramtype">const vec &amp;&nbsp;</td>
227          <td class="paramname"> <em>x0</em>, </td>
228        </tr>
229        <tr>
230          <td class="paramkey"></td>
231          <td></td>
232          <td class="paramtype">const vec &amp;&nbsp;</td>
233          <td class="paramname"> <em>u0</em>, </td>
234        </tr>
235        <tr>
236          <td class="paramkey"></td>
237          <td></td>
238          <td class="paramtype">mat &amp;&nbsp;</td>
239          <td class="paramname"> <em>A</em>, </td>
240        </tr>
241        <tr>
242          <td class="paramkey"></td>
243          <td></td>
244          <td class="paramtype">bool&nbsp;</td>
245          <td class="paramname"> <em>full</em> = <code>true</code></td><td>&nbsp;</td>
246        </tr>
247        <tr>
248          <td></td>
249          <td>)</td>
250          <td></td><td></td><td><code> [inline, virtual]</code></td>
251        </tr>
252      </table>
253</div>
254<div class="memdoc">
255
256<p>
257Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_84.png"> and writes result into <code>A</code> .
258<p>
259<dl compact><dt><b>Parameters:</b></dt><dd>
260  <table border="0" cellspacing="2" cellpadding="0">
261    <tr><td valign="top"></td><td valign="top"><em>full</em>&nbsp;</td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr>
262    <tr><td valign="top"></td><td valign="top"><em>x0</em>&nbsp;</td><td>numeric value of <img class="formulaInl" alt="$x$" src="form_28.png">, </td></tr>
263    <tr><td valign="top"></td><td valign="top"><em>u0</em>&nbsp;</td><td>numeric value of <img class="formulaInl" alt="$u$" src="form_85.png"> </td></tr>
264    <tr><td valign="top"></td><td valign="top"><em>A</em>&nbsp;</td><td>a place where the result will be stored. </td></tr>
265  </table>
266</dl>
267
268<p>Reimplemented from <a class="el" href="classbdm_1_1diffbifn.html#651184f808a35f236dbfea21aca1b6ac">bdm::diffbifn</a>.</p>
269
270<p>Reimplemented in <a class="el" href="classIMpmsmStat.html#29a9c09fd328e89748d9be0801e84831">IMpmsmStat</a>.</p>
271
272</div>
273</div><p>
274<hr>The documentation for this class was generated from the following file:<ul>
275<li><a class="el" href="pmsm_8h-source.html">pmsm.h</a></ul>
276</div>
277<hr size="1"><address style="text-align: right;"><small>Generated on Fri Mar 6 15:01:38 2009 for mixpp by&nbsp;
278<a href="http://www.doxygen.org/index.html">
279<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
280</body>
281</html>
Note: See TracBrowser for help on using the browser.