root/doc/html/classIMpmsm.html @ 280

Revision 280, 18.2 kB (checked in by smidl, 16 years ago)

progress...

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="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.6 -->
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="classes.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="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
62      <li><a href="annotated.html"><span>Class&nbsp;List</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" --><code>#include &lt;<a class="el" href="pmsm_8h-source.html">pmsm.h</a>&gt;</code>
73<p>
74<div class="dynheader">
75Inheritance diagram for IMpmsm:</div>
76<div class="dynsection">
77
78<p><center><img src="classIMpmsm.png" usemap="#IMpmsm_map" border="0" alt=""></center>
79<map name="IMpmsm_map">
80<area href="classbdm_1_1diffbifn.html" alt="bdm::diffbifn" shape="rect" coords="0,112,86,136">
81<area href="classbdm_1_1fnc.html" alt="bdm::fnc" shape="rect" coords="0,56,86,80">
82<area href="classbdm_1_1bdmroot.html" alt="bdm::bdmroot" shape="rect" coords="0,0,86,24">
83<area href="classIMpmsmStat.html" alt="IMpmsmStat" shape="rect" coords="0,224,86,248">
84</map>
85</div>
86
87<p>
88<a href="classIMpmsm-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
89State evolution model for a PMSM drive and its derivative with respect to <img class="formulaInl" alt="$x$" src="form_28.png">. <table border="0" cellpadding="0" cellspacing="0">
90<tr><td></td></tr>
91<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
92<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)" -->
93void&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>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set mechanical and electrical variables. <br></td></tr>
96<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)" -->
97vec&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>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$f(x0,u0)$" src="form_83.png">. <br></td></tr>
100<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>
101
102<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>
103<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>
104
105<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>
106<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)" -->
107vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#188f31066bd72e1bf0ddacd1eb0e6af3">eval</a> (const vec &amp;cond)</td></tr>
108
109<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>
110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b3c8f5949f13d86d2661e191d4b369b"></a><!-- doxytag: member="IMpmsm::_dimx" ref="1b3c8f5949f13d86d2661e191d4b369b" args="() const " -->
111int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#1b3c8f5949f13d86d2661e191d4b369b">_dimx</a> () const </td></tr>
112
113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
114<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="031458f38c97cdb3aecde16f6a06dced"></a><!-- doxytag: member="IMpmsm::_dimu" ref="031458f38c97cdb3aecde16f6a06dced" args="() const " -->
115int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#031458f38c97cdb3aecde16f6a06dced">_dimu</a> () const </td></tr>
116
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
118<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)" -->
119virtual 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>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">function substitutes given value into an appropriate position <br></td></tr>
122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2277a400fc9f4d6c0bf24dc7156183f"></a><!-- doxytag: member="IMpmsm::_dimy" ref="a2277a400fc9f4d6c0bf24dc7156183f" args="() const " -->
123int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fnc.html#a2277a400fc9f4d6c0bf24dc7156183f">_dimy</a> () const </td></tr>
124
125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
126<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
127<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5908138b6c11f32971542423978a25d3"></a><!-- doxytag: member="IMpmsm::Rs" ref="5908138b6c11f32971542423978a25d3" args="" -->
128double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Rs</b></td></tr>
129
130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="829e309d689b7e148d761d36b1b62fb7"></a><!-- doxytag: member="IMpmsm::Ls" ref="829e309d689b7e148d761d36b1b62fb7" args="" -->
131double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Ls</b></td></tr>
132
133<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec462f3df7355cc72843c945d887b9d3"></a><!-- doxytag: member="IMpmsm::dt" ref="ec462f3df7355cc72843c945d887b9d3" args="" -->
134double&nbsp;</td><td class="memItemRight" valign="bottom"><b>dt</b></td></tr>
135
136<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1b973c18d381e7ec717165aa306b613"></a><!-- doxytag: member="IMpmsm::Ypm" ref="a1b973c18d381e7ec717165aa306b613" args="" -->
137double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Ypm</b></td></tr>
138
139<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="03f1857fb1910c7b06dac4ce50482516"></a><!-- doxytag: member="IMpmsm::kp" ref="03f1857fb1910c7b06dac4ce50482516" args="" -->
140double&nbsp;</td><td class="memItemRight" valign="bottom"><b>kp</b></td></tr>
141
142<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0eddf56a8feb6b837ee3c36c0ac6b781"></a><!-- doxytag: member="IMpmsm::p" ref="0eddf56a8feb6b837ee3c36c0ac6b781" args="" -->
143double&nbsp;</td><td class="memItemRight" valign="bottom"><b>p</b></td></tr>
144
145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="83e4149bb70b022f3a19208f14eac0e3"></a><!-- doxytag: member="IMpmsm::J" ref="83e4149bb70b022f3a19208f14eac0e3" args="" -->
146double&nbsp;</td><td class="memItemRight" valign="bottom"><b>J</b></td></tr>
147
148<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0aa4f9ee2b9babdc05f62ba275a9575f"></a><!-- doxytag: member="IMpmsm::Mz" ref="0aa4f9ee2b9babdc05f62ba275a9575f" args="" -->
149double&nbsp;</td><td class="memItemRight" valign="bottom"><b>Mz</b></td></tr>
150
151<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f56547d8e9378b669d3cc19d7831cbb"></a><!-- doxytag: member="IMpmsm::rvx" ref="5f56547d8e9378b669d3cc19d7831cbb" args="" -->
152RV&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#5f56547d8e9378b669d3cc19d7831cbb">rvx</a></td></tr>
153
154<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indentifier of the first rv. <br></td></tr>
155<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8e3e861d5ec2a7ae9524e6338e58320"></a><!-- doxytag: member="IMpmsm::rvu" ref="a8e3e861d5ec2a7ae9524e6338e58320" args="" -->
156RV&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#a8e3e861d5ec2a7ae9524e6338e58320">rvu</a></td></tr>
157
158<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indentifier of the second rv. <br></td></tr>
159<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a193aa2c4a500139c0c4b669691e588e"></a><!-- doxytag: member="IMpmsm::dimx" ref="a193aa2c4a500139c0c4b669691e588e" args="" -->
160int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e">dimx</a></td></tr>
161
162<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache for rvx.count() <br></td></tr>
163<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="30c45617eec89adeb4ebaa763d093fb0"></a><!-- doxytag: member="IMpmsm::dimu" ref="30c45617eec89adeb4ebaa763d093fb0" args="" -->
164int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0">dimu</a></td></tr>
165
166<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache for rvu.count() <br></td></tr>
167<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52156cb4a52a62d51fc7455985797a62"></a><!-- doxytag: member="IMpmsm::dimy" ref="52156cb4a52a62d51fc7455985797a62" args="" -->
168int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62">dimy</a></td></tr>
169
170<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Length of the output vector. <br></td></tr>
171</table>
172<hr><h2>Member Function Documentation</h2>
173<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)" -->
174<div class="memitem">
175<div class="memproto">
176      <table class="memname">
177        <tr>
178          <td class="memname">void IMpmsm::dfdx_cond           </td>
179          <td>(</td>
180          <td class="paramtype">const vec &amp;&nbsp;</td>
181          <td class="paramname"> <em>x0</em>, </td>
182        </tr>
183        <tr>
184          <td class="paramkey"></td>
185          <td></td>
186          <td class="paramtype">const vec &amp;&nbsp;</td>
187          <td class="paramname"> <em>u0</em>, </td>
188        </tr>
189        <tr>
190          <td class="paramkey"></td>
191          <td></td>
192          <td class="paramtype">mat &amp;&nbsp;</td>
193          <td class="paramname"> <em>A</em>, </td>
194        </tr>
195        <tr>
196          <td class="paramkey"></td>
197          <td></td>
198          <td class="paramtype">bool&nbsp;</td>
199          <td class="paramname"> <em>full</em> = <code>true</code></td><td>&nbsp;</td>
200        </tr>
201        <tr>
202          <td></td>
203          <td>)</td>
204          <td></td><td></td><td><code> [inline, virtual]</code></td>
205        </tr>
206      </table>
207</div>
208<div class="memdoc">
209
210<p>
211Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_84.png"> and writes result into <code>A</code> .
212<p>
213<dl compact><dt><b>Parameters:</b></dt><dd>
214  <table border="0" cellspacing="2" cellpadding="0">
215    <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>
216    <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>
217    <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>
218    <tr><td valign="top"></td><td valign="top"><em>A</em>&nbsp;</td><td>a place where the result will be stored. </td></tr>
219  </table>
220</dl>
221
222<p>Reimplemented from <a class="el" href="classbdm_1_1diffbifn.html#651184f808a35f236dbfea21aca1b6ac">bdm::diffbifn</a>.</p>
223
224<p>Reimplemented in <a class="el" href="classIMpmsmStat.html#29a9c09fd328e89748d9be0801e84831">IMpmsmStat</a>.</p>
225
226</div>
227</div><p>
228<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)" -->
229<div class="memitem">
230<div class="memproto">
231      <table class="memname">
232        <tr>
233          <td class="memname">void IMpmsm::dfdu_cond           </td>
234          <td>(</td>
235          <td class="paramtype">const vec &amp;&nbsp;</td>
236          <td class="paramname"> <em>x0</em>, </td>
237        </tr>
238        <tr>
239          <td class="paramkey"></td>
240          <td></td>
241          <td class="paramtype">const vec &amp;&nbsp;</td>
242          <td class="paramname"> <em>u0</em>, </td>
243        </tr>
244        <tr>
245          <td class="paramkey"></td>
246          <td></td>
247          <td class="paramtype">mat &amp;&nbsp;</td>
248          <td class="paramname"> <em>A</em>, </td>
249        </tr>
250        <tr>
251          <td class="paramkey"></td>
252          <td></td>
253          <td class="paramtype">bool&nbsp;</td>
254          <td class="paramname"> <em>full</em> = <code>true</code></td><td>&nbsp;</td>
255        </tr>
256        <tr>
257          <td></td>
258          <td>)</td>
259          <td></td><td></td><td><code> [inline, virtual]</code></td>
260        </tr>
261      </table>
262</div>
263<div class="memdoc">
264
265<p>
266Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_86.png"> and writes result into <code>A</code> .
267<p>
268<dl compact><dt><b>Parameters:</b></dt><dd>
269  <table border="0" cellspacing="2" cellpadding="0">
270    <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>
271    <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>
272    <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>
273    <tr><td valign="top"></td><td valign="top"><em>A</em>&nbsp;</td><td>a place where the result will be stored. </td></tr>
274  </table>
275</dl>
276
277<p>Reimplemented from <a class="el" href="classbdm_1_1diffbifn.html#6ea1dc7a482601b29c5ba36a52d20d07">bdm::diffbifn</a>.</p>
278
279<p>Reimplemented in <a class="el" href="classIMpmsmStat.html#ff740ee20100ae2a2d03a2538638f8e8">IMpmsmStat</a>.</p>
280
281</div>
282</div><p>
283<hr>The documentation for this class was generated from the following file:<ul>
284<li><a class="el" href="pmsm_8h-source.html">pmsm.h</a></ul>
285</div>
286<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 17:38:52 2009 for mixpp by&nbsp;
287<a href="http://www.doxygen.org/index.html">
288<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
289</body>
290</html>
Note: See TracBrowser for help on using the browser.