Changeset 280 for doc/html/pmsm_8h-source.html
- Timestamp:
- 02/24/09 14:12:46 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/pmsm_8h-source.html
r261 r280 6 6 </head><body> 7 7 <!-- Generated by Doxygen 1.5.6 --> 8 <script type="text/javascript"> 9 <!-- 10 function 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 } 22 function 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 } 46 window.onload = initDynSections; 47 --> 48 </script> 8 49 <div class="navigation" id="top"> 9 50 <div class="tabs"> 10 51 <ul> 11 <li><a href=" index.html"><span>Main Page</span></a></li>52 <li><a href="main.html"><span>Main Page</span></a></li> 12 53 <li><a href="pages.html"><span>Related Pages</span></a></li> 13 54 <li><a href="modules.html"><span>Modules</span></a></li> 14 <li><a href="namespaces.html"><span>Namespaces</span></a></li>15 55 <li><a href="classes.html"><span>Classes</span></a></li> 16 56 <li class="current"><a href="files.html"><span>Files</span></a></li> … … 38 78 <a name="l00025"></a>00025 39 79 <a name="l00026"></a>00026 <span class="keyword">public</span>: 40 <a name="l00027"></a>00027 <a class="code" href="classIMpmsm.html" title="State evolution model for a PMSM drive and its derivative with respect to .">IMpmsm</a>() :<a class="code" href="classbdm_1_1diffbifn.html# 6ecfa9bf42b2421bd56c260a8b2c51e1" title="Default constructor (dimy is not set!).">diffbifn</a> (rx.<a class="code" href="classbdm_1_1RV.html#2174751a00ce19f941edd2c1a861be67" title="Return number of scalars in the RV.">count</a>(), rx, ru ) {};80 <a name="l00027"></a>00027 <a class="code" href="classIMpmsm.html" title="State evolution model for a PMSM drive and its derivative with respect to .">IMpmsm</a>() :<a class="code" href="classbdm_1_1diffbifn.html#92ff29d748e445b440453a38d0b09681" title="Default constructor (dimy is not set!).">diffbifn</a> ( ) {<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>=4; <a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a> = 4; <a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a>=2;}; 41 81 <a name="l00029"></a><a class="code" href="classIMpmsm.html#42818f3426d99fecb7e97be8ffe2e228">00029</a> <span class="keywordtype">void</span> <a class="code" href="classIMpmsm.html#42818f3426d99fecb7e97be8ffe2e228" title="Set mechanical and electrical variables.">set_parameters</a> ( <span class="keywordtype">double</span> Rs0, <span class="keywordtype">double</span> Ls0, <span class="keywordtype">double</span> dt0, <span class="keywordtype">double</span> Ypm0, <span class="keywordtype">double</span> kp0, <span class="keywordtype">double</span> p0, <span class="keywordtype">double</span> J0, <span class="keywordtype">double</span> Mz0 ) {Rs=Rs0; Ls=Ls0; dt=dt0; Ypm=Ypm0; kp=kp0; p=p0; J=J0; Mz=Mz0;} 42 82 <a name="l00030"></a>00030 … … 95 135 <a name="l00086"></a>00086 <span class="keywordtype">double</span> iam, ibm, omm, thm, uam, ubm; 96 136 <a name="l00087"></a>00087 <span class="keyword">public</span>: 97 <a name="l00088"></a>00088 <a class="code" href="classIMpmsm2o.html" title="State evolution model for a PMSM drive and its derivative with respect to .">IMpmsm2o</a>() :<a class="code" href="classbdm_1_1diffbifn.html" title="Class representing a differentiable function of two variables .">diffbifn</a> ( rx.count(), rx, ru ) {};137 <a name="l00088"></a>00088 <a class="code" href="classIMpmsm2o.html" title="State evolution model for a PMSM drive and its derivative with respect to .">IMpmsm2o</a>() :<a class="code" href="classbdm_1_1diffbifn.html" title="Class representing a differentiable function of two variables .">diffbifn</a> () {<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>=4;<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>=4;<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a>=2;}; 98 138 <a name="l00090"></a><a class="code" href="classIMpmsm2o.html#abdefc0467678a05abf12f5c77eaf49d">00090</a> <span class="keywordtype">void</span> <a class="code" href="classIMpmsm2o.html#abdefc0467678a05abf12f5c77eaf49d" title="Set mechanical and electrical variables.">set_parameters</a> ( <span class="keywordtype">double</span> Rs0, <span class="keywordtype">double</span> Ls0, <span class="keywordtype">double</span> dt0, <span class="keywordtype">double</span> Ypm0, <span class="keywordtype">double</span> kp0, <span class="keywordtype">double</span> p0, <span class="keywordtype">double</span> J0, <span class="keywordtype">double</span> Mz0 ) {Rs=Rs0; Ls=Ls0; dt=dt0; Ypm=Ypm0; kp=kp0; p=p0; J=J0; Mz=Mz0; <a class="code" href="classIMpmsm2o.html#74954dedce055db9ee50d53790e8341c" title="d2t = dt^2/2, cth = cos(th), sth=sin(th)">d2t</a>=dt*dt/2;} 99 139 <a name="l00091"></a>00091 … … 213 253 <a name="l00209"></a><a class="code" href="classOMpmsm.html">00209</a> <span class="keyword">class </span><a class="code" href="classOMpmsm.html" title="Observation model for PMSM drive and its derivative with respect to .">OMpmsm</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1diffbifn.html" title="Class representing a differentiable function of two variables .">diffbifn</a> { 214 254 <a name="l00210"></a>00210 <span class="keyword">public</span>: 215 <a name="l00211"></a>00211 <a class="code" href="classOMpmsm.html" title="Observation model for PMSM drive and its derivative with respect to .">OMpmsm</a>() :<a class="code" href="classbdm_1_1diffbifn.html# 6ecfa9bf42b2421bd56c260a8b2c51e1" title="Default constructor (dimy is not set!).">diffbifn</a> (2, rx,ru ) {};255 <a name="l00211"></a>00211 <a class="code" href="classOMpmsm.html" title="Observation model for PMSM drive and its derivative with respect to .">OMpmsm</a>() :<a class="code" href="classbdm_1_1diffbifn.html#92ff29d748e445b440453a38d0b09681" title="Default constructor (dimy is not set!).">diffbifn</a> () {<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>=2;<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>=4;<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a>=2;}; 216 256 <a name="l00212"></a>00212 217 257 <a name="l00213"></a><a class="code" href="classOMpmsm.html#8e32392c9c635584606287b8c0e8c9da">00213</a> vec <a class="code" href="classOMpmsm.html#8e32392c9c635584606287b8c0e8c9da" title="Evaluates .">eval</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0 ) { … … 231 271 <a name="l00228"></a>00228 <span class="preprocessor">#endif //PMSM_H</span> 232 272 </pre></div></div> 233 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 12:16:292009 for mixpp by 273 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 17:38:41 2009 for mixpp by 234 274 <a href="http://www.doxygen.org/index.html"> 235 275 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>