[33] | 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.3 --> |
---|
| 8 | <div class="tabs"> |
---|
| 9 | <ul> |
---|
| 10 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 11 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 12 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 13 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 14 | </ul> |
---|
| 15 | </div> |
---|
| 16 | <div class="tabs"> |
---|
| 17 | <ul> |
---|
| 18 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 19 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 20 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 21 | </ul> |
---|
| 22 | </div> |
---|
| 23 | <h1>IMpmsm Class Reference</h1><!-- doxytag: class="IMpmsm" --><!-- doxytag: inherits="diffbifn" -->State evolution model for a PMSM drive and its derivative with respect to $x$. |
---|
| 24 | <a href="#_details">More...</a> |
---|
| 25 | <p> |
---|
| 26 | <code>#include <<a class="el" href="pmsm_8h-source.html">pmsm.h</a>></code> |
---|
| 27 | <p> |
---|
| 28 | <div class="dynheader"> |
---|
| 29 | Inheritance diagram for IMpmsm:</div> |
---|
| 30 | <div class="dynsection"> |
---|
| 31 | <p><center><img src="classIMpmsm__inherit__graph.png" border="0" usemap="#IMpmsm__inherit__map" alt="Inheritance graph"></center> |
---|
| 32 | <map name="IMpmsm__inherit__map"> |
---|
| 33 | <area shape="rect" href="classdiffbifn.html" title="Class representing a differentiable function of two variables $f(x,u)$." alt="" coords="11,84,77,111"><area shape="rect" href="classfnc.html" title="Class representing function $f(x)$ of variable $x$ represented by rv." alt="" coords="24,7,64,33"></map> |
---|
| 34 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 35 | <div class="dynheader"> |
---|
| 36 | Collaboration diagram for IMpmsm:</div> |
---|
| 37 | <div class="dynsection"> |
---|
| 38 | <p><center><img src="classIMpmsm__coll__graph.png" border="0" usemap="#IMpmsm__coll__map" alt="Collaboration graph"></center> |
---|
| 39 | <map name="IMpmsm__coll__map"> |
---|
| 40 | <area shape="rect" href="classdiffbifn.html" title="Class representing a differentiable function of two variables $f(x,u)$." alt="" coords="23,119,89,145"><area shape="rect" href="classfnc.html" title="Class representing function $f(x)$ of variable $x$ represented by rv." alt="" coords="5,7,45,33"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="69,7,107,33"><area shape="rect" title="rvu\nrvx" alt="" coords="80,31,88,39"><area shape="rect" title="rvu\nrvx" alt="" coords="56,115,64,123"></map> |
---|
| 41 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 42 | |
---|
| 43 | <p> |
---|
| 44 | <a href="classIMpmsm-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 45 | <tr><td></td></tr> |
---|
| 46 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 47 | <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)" --> |
---|
| 48 | void </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> |
---|
| 49 | |
---|
| 50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set mechanical and electrical variables. <br></td></tr> |
---|
| 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45785869d978dda42828a072ec2caebe"></a><!-- doxytag: member="IMpmsm::eval" ref="45785869d978dda42828a072ec2caebe" args="(const vec &x0, const vec &u0)" --> |
---|
| 52 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#45785869d978dda42828a072ec2caebe">eval</a> (const vec &x0, const vec &u0)</td></tr> |
---|
| 53 | |
---|
| 54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates $f(x0,u0)$. <br></td></tr> |
---|
| 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#b4378b5d3bf64c683e4cf5c5f1cd56f1">dfdx_cond</a> (const vec &x0, const vec &u0, mat &A, bool full=true)</td></tr> |
---|
| 56 | |
---|
| 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_1.png"> and writes result into <code>A</code> . <a href="#b4378b5d3bf64c683e4cf5c5f1cd56f1"></a><br></td></tr> |
---|
| 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIMpmsm.html#c3f8dad22ae9855c04a1d593b45c99b5">dfdu_cond</a> (const vec &x0, const vec &u0, mat &A, bool full=true)</td></tr> |
---|
| 59 | |
---|
| 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_2.png"> and writes result into <code>A</code> . <a href="#c3f8dad22ae9855c04a1d593b45c99b5"></a><br></td></tr> |
---|
| 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad7673e16aa1a046b131b24c731c4632"></a><!-- doxytag: member="IMpmsm::eval" ref="ad7673e16aa1a046b131b24c731c4632" args="(const vec &cond)" --> |
---|
| 62 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#ad7673e16aa1a046b131b24c731c4632">eval</a> (const vec &cond)</td></tr> |
---|
| 63 | |
---|
| 64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates $f(x0,u0)$ (VS: Do we really need common eval? ). <br></td></tr> |
---|
| 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="436de7a7301ea9eac7d6081b893bbf57"></a><!-- doxytag: member="IMpmsm::_dimx" ref="436de7a7301ea9eac7d6081b893bbf57" args="() const " --> |
---|
| 66 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#436de7a7301ea9eac7d6081b893bbf57">_dimx</a> () const </td></tr> |
---|
| 67 | |
---|
| 68 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc8779acbff170611aff0ee70cee3879"></a><!-- doxytag: member="IMpmsm::_dimu" ref="fc8779acbff170611aff0ee70cee3879" args="() const " --> |
---|
| 70 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#fc8779acbff170611aff0ee70cee3879">_dimu</a> () const </td></tr> |
---|
| 71 | |
---|
| 72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8891973d0ca48ce38e1886df45ca298"></a><!-- doxytag: member="IMpmsm::_dimy" ref="a8891973d0ca48ce38e1886df45ca298" args="() const " --> |
---|
| 74 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298">_dimy</a> () const </td></tr> |
---|
| 75 | |
---|
| 76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 77 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcf96b86250c3cbd465ba5ee62474b75"></a><!-- doxytag: member="IMpmsm::rvx" ref="bcf96b86250c3cbd465ba5ee62474b75" args="" --> |
---|
| 79 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#bcf96b86250c3cbd465ba5ee62474b75">rvx</a></td></tr> |
---|
| 80 | |
---|
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indentifier of the first rv. <br></td></tr> |
---|
| 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c41c74c7942dba51ef0b0bfed963447d"></a><!-- doxytag: member="IMpmsm::rvu" ref="c41c74c7942dba51ef0b0bfed963447d" args="" --> |
---|
| 83 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#c41c74c7942dba51ef0b0bfed963447d">rvu</a></td></tr> |
---|
| 84 | |
---|
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indentifier of the second rv. <br></td></tr> |
---|
| 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6918bc0a9dad656b4cddc028137eb78"></a><!-- doxytag: member="IMpmsm::dimx" ref="f6918bc0a9dad656b4cddc028137eb78" args="" --> |
---|
| 87 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#f6918bc0a9dad656b4cddc028137eb78">dimx</a></td></tr> |
---|
| 88 | |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache for rvx.count() <br></td></tr> |
---|
| 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2e07ce491e973f03d763e37624d0fe79"></a><!-- doxytag: member="IMpmsm::dimu" ref="2e07ce491e973f03d763e37624d0fe79" args="" --> |
---|
| 91 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#2e07ce491e973f03d763e37624d0fe79">dimu</a></td></tr> |
---|
| 92 | |
---|
| 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache for rvu.count() <br></td></tr> |
---|
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22d51d10a7901331167f64f80d1af8e9"></a><!-- doxytag: member="IMpmsm::dimy" ref="22d51d10a7901331167f64f80d1af8e9" args="" --> |
---|
| 95 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfnc.html#22d51d10a7901331167f64f80d1af8e9">dimy</a></td></tr> |
---|
| 96 | |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Length of the output vector. <br></td></tr> |
---|
| 98 | </table> |
---|
| 99 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 100 | State evolution model for a PMSM drive and its derivative with respect to $x$. <hr><h2>Member Function Documentation</h2> |
---|
| 101 | <a class="anchor" name="b4378b5d3bf64c683e4cf5c5f1cd56f1"></a><!-- doxytag: member="IMpmsm::dfdx_cond" ref="b4378b5d3bf64c683e4cf5c5f1cd56f1" args="(const vec &x0, const vec &u0, mat &A, bool full=true)" --> |
---|
| 102 | <div class="memitem"> |
---|
| 103 | <div class="memproto"> |
---|
| 104 | <table class="memname"> |
---|
| 105 | <tr> |
---|
| 106 | <td class="memname">void IMpmsm::dfdx_cond </td> |
---|
| 107 | <td>(</td> |
---|
| 108 | <td class="paramtype">const vec & </td> |
---|
| 109 | <td class="paramname"> <em>x0</em>, </td> |
---|
| 110 | </tr> |
---|
| 111 | <tr> |
---|
| 112 | <td class="paramkey"></td> |
---|
| 113 | <td></td> |
---|
| 114 | <td class="paramtype">const vec & </td> |
---|
| 115 | <td class="paramname"> <em>u0</em>, </td> |
---|
| 116 | </tr> |
---|
| 117 | <tr> |
---|
| 118 | <td class="paramkey"></td> |
---|
| 119 | <td></td> |
---|
| 120 | <td class="paramtype">mat & </td> |
---|
| 121 | <td class="paramname"> <em>A</em>, </td> |
---|
| 122 | </tr> |
---|
| 123 | <tr> |
---|
| 124 | <td class="paramkey"></td> |
---|
| 125 | <td></td> |
---|
| 126 | <td class="paramtype">bool </td> |
---|
| 127 | <td class="paramname"> <em>full</em> = <code>true</code></td><td> </td> |
---|
| 128 | </tr> |
---|
| 129 | <tr> |
---|
| 130 | <td></td> |
---|
| 131 | <td>)</td> |
---|
| 132 | <td></td><td></td><td width="100%"><code> [inline, virtual]</code></td> |
---|
| 133 | </tr> |
---|
| 134 | </table> |
---|
| 135 | </div> |
---|
| 136 | <div class="memdoc"> |
---|
| 137 | |
---|
| 138 | <p> |
---|
| 139 | Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_1.png"> and writes result into <code>A</code> . |
---|
| 140 | <p> |
---|
| 141 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 142 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 143 | <tr><td valign="top"></td><td valign="top"><em>full</em> </td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr> |
---|
| 144 | <tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td>numeric value of $x$, </td></tr> |
---|
| 145 | <tr><td valign="top"></td><td valign="top"><em>u0</em> </td><td>numeric value of $u$ </td></tr> |
---|
| 146 | <tr><td valign="top"></td><td valign="top"><em>A</em> </td><td>a place where the result will be stored. </td></tr> |
---|
| 147 | </table> |
---|
| 148 | </dl> |
---|
| 149 | |
---|
| 150 | <p>Reimplemented from <a class="el" href="classdiffbifn.html#6d217a02d4fa13931258d4bebdd0feb4">diffbifn</a>.</p> |
---|
| 151 | |
---|
| 152 | </div> |
---|
| 153 | </div><p> |
---|
| 154 | <a class="anchor" name="c3f8dad22ae9855c04a1d593b45c99b5"></a><!-- doxytag: member="IMpmsm::dfdu_cond" ref="c3f8dad22ae9855c04a1d593b45c99b5" args="(const vec &x0, const vec &u0, mat &A, bool full=true)" --> |
---|
| 155 | <div class="memitem"> |
---|
| 156 | <div class="memproto"> |
---|
| 157 | <table class="memname"> |
---|
| 158 | <tr> |
---|
| 159 | <td class="memname">void IMpmsm::dfdu_cond </td> |
---|
| 160 | <td>(</td> |
---|
| 161 | <td class="paramtype">const vec & </td> |
---|
| 162 | <td class="paramname"> <em>x0</em>, </td> |
---|
| 163 | </tr> |
---|
| 164 | <tr> |
---|
| 165 | <td class="paramkey"></td> |
---|
| 166 | <td></td> |
---|
| 167 | <td class="paramtype">const vec & </td> |
---|
| 168 | <td class="paramname"> <em>u0</em>, </td> |
---|
| 169 | </tr> |
---|
| 170 | <tr> |
---|
| 171 | <td class="paramkey"></td> |
---|
| 172 | <td></td> |
---|
| 173 | <td class="paramtype">mat & </td> |
---|
| 174 | <td class="paramname"> <em>A</em>, </td> |
---|
| 175 | </tr> |
---|
| 176 | <tr> |
---|
| 177 | <td class="paramkey"></td> |
---|
| 178 | <td></td> |
---|
| 179 | <td class="paramtype">bool </td> |
---|
| 180 | <td class="paramname"> <em>full</em> = <code>true</code></td><td> </td> |
---|
| 181 | </tr> |
---|
| 182 | <tr> |
---|
| 183 | <td></td> |
---|
| 184 | <td>)</td> |
---|
| 185 | <td></td><td></td><td width="100%"><code> [inline, virtual]</code></td> |
---|
| 186 | </tr> |
---|
| 187 | </table> |
---|
| 188 | </div> |
---|
| 189 | <div class="memdoc"> |
---|
| 190 | |
---|
| 191 | <p> |
---|
| 192 | Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_2.png"> and writes result into <code>A</code> . |
---|
| 193 | <p> |
---|
| 194 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 195 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 196 | <tr><td valign="top"></td><td valign="top"><em>full</em> </td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr> |
---|
| 197 | <tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td>numeric value of $x$, </td></tr> |
---|
| 198 | <tr><td valign="top"></td><td valign="top"><em>u0</em> </td><td>numeric value of $u$ </td></tr> |
---|
| 199 | <tr><td valign="top"></td><td valign="top"><em>A</em> </td><td>a place where the result will be stored. </td></tr> |
---|
| 200 | </table> |
---|
| 201 | </dl> |
---|
| 202 | |
---|
| 203 | <p>Reimplemented from <a class="el" href="classdiffbifn.html#1978bafd7909d15c139a08c495c24aa0">diffbifn</a>.</p> |
---|
| 204 | |
---|
| 205 | </div> |
---|
| 206 | </div><p> |
---|
| 207 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 208 | <li>work/mixpp/tests/<a class="el" href="pmsm_8h-source.html">pmsm.h</a></ul> |
---|
[37] | 209 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 12 16:15:50 2008 for mixpp by |
---|
[33] | 210 | <a href="http://www.doxygen.org/index.html"> |
---|
| 211 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
---|
| 212 | </body> |
---|
| 213 | </html> |
---|