[259] | 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: pmsmDS Class Reference</title> |
---|
| 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
[290] | 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
[259] | 6 | </head><body> |
---|
[290] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[280] | 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> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[280] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[290] | 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 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 List</span></a></li> |
---|
[290] | 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 65 | </ul> |
---|
| 66 | </div> |
---|
| 67 | </div> |
---|
| 68 | <div class="contents"> |
---|
[290] | 69 | <h1>pmsmDS Class Reference</h1><!-- doxytag: class="pmsmDS" --><!-- doxytag: inherits="bdm::DS" -->Simulator of PMSM machine with predefined profile on omega. |
---|
| 70 | <a href="#_details">More...</a> |
---|
[259] | 71 | <p> |
---|
[290] | 72 | <code>#include <<a class="el" href="pmsmDS_8h-source.html">pmsmDS.h</a>></code> |
---|
| 73 | <p> |
---|
[259] | 74 | |
---|
| 75 | <p> |
---|
[290] | 76 | <a href="classpmsmDS-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 77 | <tr><td></td></tr> |
---|
| 78 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[287] | 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6a50a246de039f30cb5423521aab55c"></a><!-- doxytag: member="pmsmDS::pmsmDS" ref="e6a50a246de039f30cb5423521aab55c" args="()" --> |
---|
| 80 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#e6a50a246de039f30cb5423521aab55c">pmsmDS</a> ()</td></tr> |
---|
[259] | 81 | |
---|
[261] | 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with fixed sampling period. <br></td></tr> |
---|
[259] | 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73073ee4f905af3f9f96a6130e9a9e22"></a><!-- doxytag: member="pmsmDS::set_parameters" ref="73073ee4f905af3f9f96a6130e9a9e22" args="(double Rs0, double Ls0, double Fmag0, double Bf0, double p0, double kp0, double J0, double Uc0, double DT0, double dt0)" --> |
---|
| 84 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (double Rs0, double Ls0, double Fmag0, double Bf0, double p0, double kp0, double J0, double Uc0, double DT0, double dt0)</td></tr> |
---|
| 85 | |
---|
[287] | 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75dd22db70746bfd0c3e685a17bbf34a"></a><!-- doxytag: member="pmsmDS::set_options" ref="75dd22db70746bfd0c3e685a17bbf34a" args="(string &opt)" --> |
---|
| 87 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#75dd22db70746bfd0c3e685a17bbf34a">set_options</a> (string &opt)</td></tr> |
---|
| 88 | |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">parse options: "modelu" => opt_modu=true; <br></td></tr> |
---|
[259] | 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4e47e678eb56e0b3bd47d801d0995e46"></a><!-- doxytag: member="pmsmDS::getdata" ref="4e47e678eb56e0b3bd47d801d0995e46" args="(vec &dt)" --> |
---|
| 91 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#4e47e678eb56e0b3bd47d801d0995e46">getdata</a> (vec &dt)</td></tr> |
---|
| 92 | |
---|
[280] | 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns full vector of observed data=[output, input]. <br></td></tr> |
---|
[259] | 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e9a2b9d82bd1b71d66778021d1e8b4"></a><!-- doxytag: member="pmsmDS::write" ref="35e9a2b9d82bd1b71d66778021d1e8b4" args="(vec &ut)" --> |
---|
| 95 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#35e9a2b9d82bd1b71d66778021d1e8b4">write</a> (vec &ut)</td></tr> |
---|
| 96 | |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variable and schedule it for application. <br></td></tr> |
---|
| 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="664fc8deff7c141ee7ab826a9abb387b"></a><!-- doxytag: member="pmsmDS::step" ref="664fc8deff7c141ee7ab826a9abb387b" args="()" --> |
---|
| 99 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#664fc8deff7c141ee7ab826a9abb387b">step</a> ()</td></tr> |
---|
| 100 | |
---|
[280] | 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Moves from <img class="formulaInl" alt="$ t $" src="form_47.png"> to <img class="formulaInl" alt="$ t+1 $" src="form_48.png">, i.e. perfroms the actions and reads response of the system. <br></td></tr> |
---|
[259] | 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d75b83468db25c56977ffccff46b0b37"></a><!-- doxytag: member="pmsmDS::log_add" ref="d75b83468db25c56977ffccff46b0b37" args="(logger &L)" --> |
---|
[280] | 103 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#d75b83468db25c56977ffccff46b0b37">log_add</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
[259] | 104 | |
---|
[280] | 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Register DS for logging into logger L. <br></td></tr> |
---|
[259] | 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21cac6deaac2dd073c982d7bec839b47"></a><!-- doxytag: member="pmsmDS::logit" ref="21cac6deaac2dd073c982d7bec839b47" args="(logger &L)" --> |
---|
[280] | 107 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#21cac6deaac2dd073c982d7bec839b47">logit</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
[259] | 108 | |
---|
[280] | 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Register DS for logging into logger L. <br></td></tr> |
---|
[259] | 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="60d213a13fd9c3b4ac9e8202ca5d772e"></a><!-- doxytag: member="pmsmDS::set_profile" ref="60d213a13fd9c3b4ac9e8202ca5d772e" args="(double dt, const vec &Ww)" --> |
---|
| 111 | void </td><td class="memItemRight" valign="bottom"><b>set_profile</b> (double dt, const vec &Ww)</td></tr> |
---|
| 112 | |
---|
[261] | 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0bf451c7fea73ff4150ff9e83da4832"></a><!-- doxytag: member="pmsmDS::getdata" ref="a0bf451c7fea73ff4150ff9e83da4832" args="(vec &dt, const ivec &indeces)" --> |
---|
| 114 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#a0bf451c7fea73ff4150ff9e83da4832">getdata</a> (vec &dt, const ivec &indeces)</td></tr> |
---|
[259] | 115 | |
---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns data records at indeces. <br></td></tr> |
---|
[261] | 117 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6bced13f84f6bf04449728817e049e1d"></a><!-- doxytag: member="pmsmDS::write" ref="6bced13f84f6bf04449728817e049e1d" args="(vec &ut, const ivec &indeces)" --> |
---|
| 118 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d">write</a> (vec &ut, const ivec &indeces)</td></tr> |
---|
[259] | 119 | |
---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variables at specific indeces. <br></td></tr> |
---|
[280] | 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed2113851294ed96abe60fc3f05aa660"></a><!-- doxytag: member="pmsmDS::_drv" ref="ed2113851294ed96abe60fc3f05aa660" args="() const " --> |
---|
| 122 | virtual RV </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#ed2113851294ed96abe60fc3f05aa660">_drv</a> () const </td></tr> |
---|
[259] | 123 | |
---|
[280] | 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6a9a375da64c82fc227bda3418a1f33"></a><!-- doxytag: member="pmsmDS::_urv" ref="a6a9a375da64c82fc227bda3418a1f33" args="() const " --> |
---|
| 126 | const RV & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33">_urv</a> () const </td></tr> |
---|
| 127 | |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[259] | 129 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3975e648cc981a550997df8120e176f7"></a><!-- doxytag: member="pmsmDS::L_x" ref="3975e648cc981a550997df8120e176f7" args="" --> |
---|
| 131 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#3975e648cc981a550997df8120e176f7">L_x</a></td></tr> |
---|
| 132 | |
---|
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">indeces of logged variables <br></td></tr> |
---|
| 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a45b0843888a7c7675a264953814d9c2"></a><!-- doxytag: member="pmsmDS::L_ou" ref="a45b0843888a7c7675a264953814d9c2" args="" --> |
---|
| 135 | int </td><td class="memItemRight" valign="bottom"><b>L_ou</b></td></tr> |
---|
| 136 | |
---|
| 137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4fe8c4c1994547875973492bf3c909dd"></a><!-- doxytag: member="pmsmDS::L_oy" ref="4fe8c4c1994547875973492bf3c909dd" args="" --> |
---|
| 138 | int </td><td class="memItemRight" valign="bottom"><b>L_oy</b></td></tr> |
---|
| 139 | |
---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ec5b692e1be1623a08196ac2da7b56b"></a><!-- doxytag: member="pmsmDS::L_iu" ref="7ec5b692e1be1623a08196ac2da7b56b" args="" --> |
---|
| 141 | int </td><td class="memItemRight" valign="bottom"><b>L_iu</b></td></tr> |
---|
| 142 | |
---|
[261] | 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="da06f9ce4decceb05a03371d054a1583"></a><!-- doxytag: member="pmsmDS::L_optu" ref="da06f9ce4decceb05a03371d054a1583" args="" --> |
---|
| 144 | int </td><td class="memItemRight" valign="bottom"><b>L_optu</b></td></tr> |
---|
| 145 | |
---|
[259] | 146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ba6fbc63e4353135857bbba8f30e3012"></a><!-- doxytag: member="pmsmDS::profileWw" ref="ba6fbc63e4353135857bbba8f30e3012" args="" --> |
---|
| 147 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#ba6fbc63e4353135857bbba8f30e3012">profileWw</a></td></tr> |
---|
| 148 | |
---|
| 149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Setpoints of omega in timespans given by dt_prof. <br></td></tr> |
---|
| 150 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01d9d15490d336b6613368557608f4fe"></a><!-- doxytag: member="pmsmDS::dt_prof" ref="01d9d15490d336b6613368557608f4fe" args="" --> |
---|
| 151 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#01d9d15490d336b6613368557608f4fe">dt_prof</a></td></tr> |
---|
| 152 | |
---|
| 153 | <tr><td class="mdescLeft"> </td><td class="mdescRight">time-step for profiles <br></td></tr> |
---|
| 154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c27956dc82ede2e8dbeb34e6cfa15a40"></a><!-- doxytag: member="pmsmDS::Dt" ref="c27956dc82ede2e8dbeb34e6cfa15a40" args="" --> |
---|
| 155 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#c27956dc82ede2e8dbeb34e6cfa15a40">Dt</a></td></tr> |
---|
| 156 | |
---|
| 157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of miliseconds per discrete time step. <br></td></tr> |
---|
[287] | 158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f387fee363e4a8492074fee36bb8421b"></a><!-- doxytag: member="pmsmDS::opt_modu" ref="f387fee363e4a8492074fee36bb8421b" args="" --> |
---|
| 159 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpmsmDS.html#f387fee363e4a8492074fee36bb8421b">opt_modu</a></td></tr> |
---|
[261] | 160 | |
---|
[287] | 161 | <tr><td class="mdescLeft"> </td><td class="mdescRight">options for logging, - log predictions of 'true' voltage <br></td></tr> |
---|
[280] | 162 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f96cae44624e79638a91ec4f2c7c81a9"></a><!-- doxytag: member="pmsmDS::dtsize" ref="f96cae44624e79638a91ec4f2c7c81a9" args="" --> |
---|
| 163 | int </td><td class="memItemRight" valign="bottom"><b>dtsize</b></td></tr> |
---|
| 164 | |
---|
| 165 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d7467046a0bd05bc992cc5e1bdedb983"></a><!-- doxytag: member="pmsmDS::utsize" ref="d7467046a0bd05bc992cc5e1bdedb983" args="" --> |
---|
| 166 | int </td><td class="memItemRight" valign="bottom"><b>utsize</b></td></tr> |
---|
| 167 | |
---|
[259] | 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8db125ac35f3b8eeb773fc9a4cb45ec"></a><!-- doxytag: member="pmsmDS::Drv" ref="d8db125ac35f3b8eeb773fc9a4cb45ec" args="" --> |
---|
| 169 | RV </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec">Drv</a></td></tr> |
---|
| 170 | |
---|
[280] | 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of data returned by <code><a class="el" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata()</a></code>. <br></td></tr> |
---|
[259] | 172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ac5970128fd39f4f6226723cd1de702"></a><!-- doxytag: member="pmsmDS::Urv" ref="9ac5970128fd39f4f6226723cd1de702" args="" --> |
---|
| 173 | RV </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702">Urv</a></td></tr> |
---|
| 174 | |
---|
[280] | 175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of data witten by by <code><a class="el" href="classbdm_1_1DS.html#f5baeee8528e5e4c5c7a344b2e3f192a" title="Accepts action variable and schedule it for application.">write()</a></code>. <br></td></tr> |
---|
| 176 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4b7bdb9d98a11ab587aa0ad803bb867"></a><!-- doxytag: member="pmsmDS::L_dt" ref="b4b7bdb9d98a11ab587aa0ad803bb867" args="" --> |
---|
| 177 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867">L_dt</a></td></tr> |
---|
[259] | 178 | |
---|
[280] | 179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Remember its own index in Logger L. <br></td></tr> |
---|
| 180 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b56b74ec21485846ccfad461f33b0e7a"></a><!-- doxytag: member="pmsmDS::L_ut" ref="b56b74ec21485846ccfad461f33b0e7a" args="" --> |
---|
| 181 | int </td><td class="memItemRight" valign="bottom"><b>L_ut</b></td></tr> |
---|
[259] | 182 | |
---|
[280] | 183 | </table> |
---|
[290] | 184 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 185 | Simulator of PMSM machine with predefined profile on omega. <hr>The documentation for this class was generated from the following file:<ul> |
---|
[261] | 186 | <li><a class="el" href="pmsmDS_8h-source.html">pmsmDS.h</a></ul> |
---|
[259] | 187 | </div> |
---|
[305] | 188 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Apr 8 16:12:37 2009 for mixpp by |
---|
[259] | 189 | <a href="http://www.doxygen.org/index.html"> |
---|
[290] | 190 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 191 | </body> |
---|
| 192 | </html> |
---|