You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 2
Next »
Mechanical Model Configuration Page
In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device and select Circuit Model >> PMSM SH >> Mechanical Model to display this page. Use this page to configure the PMSM SH Mechanical model.
This page includes the following components, configurable at edit-time only:Mechanical Model |
Name | Specifies the name of the model. |
Description | Specifies a description for the model. |
Initial Values |
| Symbol | Units | Default Value | Description |
Initial Rotor Angle | θ0 | deg | 0 | Initial position of the mechanical rotor. To monitor the rotor position at execution time, use the Mechanical Angle channel. |
Configuration |
| Symbol | Units | Default Value | Description |
---|
Viscous Damping | Fv | Nm·s/rad | 0.00190986 | Combined viscous damping of the rotor and load, proportional to the angular velocity of the machine. |
Static Friction | Tf | Nm | 0.3665 | Static friction resisting initial rotation when the machine is at rest. |
Inertia | J | Kg·m2 | 0.0167309 | Moment of inertia of the rotor and load. |
Mechanical Model Section Channels
This section includes the following custom device channels. The value of an input channel can be modified dynamically at execution time.
Channel Name | Symbol | Type | Units | Default Value | Description |
---|
Mechanical Model Mode | | Input |
| 0 (Speed Controlled) | Set this channel to one of the following values: 0 - Sets the mechanical model to Speed Controlled mode. The mechanical parameters Viscous Damping, Static Friction, and Inertia are ignored in this case. 1 - Sets the mechanical model to Torque Controlled mode.
See the Mechanical Model Description section for more information. |
User-Defined Speed | ωuser | Input | RPM | 0 | In Speed Controlled mode, the machine speed is forced to the defined value. This parameter is ignored in Torque Controlled mode. |
Load Torque | TL | Input | Nm | 0 | Torque applied to the shaft of the machine in Torque Controlled mode. This parameter is ignored in Speed Controlled mode. |
Mechanical Angle | θm | Output | deg | 0 | Mechanical rotor position. |
Speed | ωm | Output | RPM | 0 | Rotation speed of the machine rotor in RPM. |
Total Torque | Ttotal | Output | Nm | 0 | ![](data:image/svg+xml,%3csvg xmlns:xlink='http://www.w3.org/1999/xlink' width='22.024ex' height='3.176ex' style='vertical-align: -1.005ex%3b' viewBox='0 -934.9 9482.5 1367.4' role='img' focusable='false' xmlns='http://www.w3.org/2000/svg' aria-labelledby='MathJax-SVG-1-Title'%3e %3ctitle id='MathJax-SVG-1-Title'%3e%5cbegin%7barray%7d%7bl%7dT_%7btotal%7d = T_%7be%7d - T_%7bL%7d - T_%7bf%7d%5cend%7barray%7d%3c/title%3e %3cdefs aria-hidden='true'%3e %3cpath stroke-width='1' id='E1-MJMATHI-54' d='M40 437Q21 437 21 445Q21 450 37 501T71 602L88 651Q93 669 101 677H569H659Q691 677 697 676T704 667Q704 661 687 553T668 444Q668 437 649 437Q640 437 637 437T631 442L629 445Q629 451 635 490T641 551Q641 586 628 604T573 629Q568 630 515 631Q469 631 457 630T439 622Q438 621 368 343T298 60Q298 48 386 46Q418 46 427 45T436 36Q436 31 433 22Q429 4 424 1L422 0Q419 0 415 0Q410 0 363 1T228 2Q99 2 64 0H49Q43 6 43 9T45 27Q49 40 55 46H83H94Q174 46 189 55Q190 56 191 56Q196 59 201 76T241 233Q258 301 269 344Q339 619 339 625Q339 630 310 630H279Q212 630 191 624Q146 614 121 583T67 467Q60 445 57 441T43 437H40Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-74' d='M26 385Q19 392 19 395Q19 399 22 411T27 425Q29 430 36 430T87 431H140L159 511Q162 522 166 540T173 566T179 586T187 603T197 615T211 624T229 626Q247 625 254 615T261 596Q261 589 252 549T232 470L222 433Q222 431 272 431H323Q330 424 330 420Q330 398 317 385H210L174 240Q135 80 135 68Q135 26 162 26Q197 26 230 60T283 144Q285 150 288 151T303 153H307Q322 153 322 145Q322 142 319 133Q314 117 301 95T267 48T216 6T155 -11Q125 -11 98 4T59 56Q57 64 57 83V101L92 241Q127 382 128 383Q128 385 77 385H26Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-6F' d='M201 -11Q126 -11 80 38T34 156Q34 221 64 279T146 380Q222 441 301 441Q333 441 341 440Q354 437 367 433T402 417T438 387T464 338T476 268Q476 161 390 75T201 -11ZM121 120Q121 70 147 48T206 26Q250 26 289 58T351 142Q360 163 374 216T388 308Q388 352 370 375Q346 405 306 405Q243 405 195 347Q158 303 140 230T121 120Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-61' d='M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-6C' d='M117 59Q117 26 142 26Q179 26 205 131Q211 151 215 152Q217 153 225 153H229Q238 153 241 153T246 151T248 144Q247 138 245 128T234 90T214 43T183 6T137 -11Q101 -11 70 11T38 85Q38 97 39 102L104 360Q167 615 167 623Q167 626 166 628T162 632T157 634T149 635T141 636T132 637T122 637Q112 637 109 637T101 638T95 641T94 647Q94 649 96 661Q101 680 107 682T179 688Q194 689 213 690T243 693T254 694Q266 694 266 686Q266 675 193 386T118 83Q118 81 118 75T117 65V59Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMAIN-3D' d='M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-65' d='M39 168Q39 225 58 272T107 350T174 402T244 433T307 442H310Q355 442 388 420T421 355Q421 265 310 237Q261 224 176 223Q139 223 138 221Q138 219 132 186T125 128Q125 81 146 54T209 26T302 45T394 111Q403 121 406 121Q410 121 419 112T429 98T420 82T390 55T344 24T281 -1T205 -11Q126 -11 83 42T39 168ZM373 353Q367 405 305 405Q272 405 244 391T199 357T170 316T154 280T149 261Q149 260 169 260Q282 260 327 284T373 353Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMAIN-2212' d='M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-4C' d='M228 637Q194 637 192 641Q191 643 191 649Q191 673 202 682Q204 683 217 683Q271 680 344 680Q485 680 506 683H518Q524 677 524 674T522 656Q517 641 513 637H475Q406 636 394 628Q387 624 380 600T313 336Q297 271 279 198T252 88L243 52Q243 48 252 48T311 46H328Q360 46 379 47T428 54T478 72T522 106T564 161Q580 191 594 228T611 270Q616 273 628 273H641Q647 264 647 262T627 203T583 83T557 9Q555 4 553 3T537 0T494 -1Q483 -1 418 -1T294 0H116Q32 0 32 10Q32 17 34 24Q39 43 44 45Q48 46 59 46H65Q92 46 125 49Q139 52 144 61Q147 65 216 339T285 628Q285 635 228 637Z'%3e%3c/path%3e %3cpath stroke-width='1' id='E1-MJMATHI-66' d='M118 -162Q120 -162 124 -164T135 -167T147 -168Q160 -168 171 -155T187 -126Q197 -99 221 27T267 267T289 382V385H242Q195 385 192 387Q188 390 188 397L195 425Q197 430 203 430T250 431Q298 431 298 432Q298 434 307 482T319 540Q356 705 465 705Q502 703 526 683T550 630Q550 594 529 578T487 561Q443 561 443 603Q443 622 454 636T478 657L487 662Q471 668 457 668Q445 668 434 658T419 630Q412 601 403 552T387 469T380 433Q380 431 435 431Q480 431 487 430T498 424Q499 420 496 407T491 391Q489 386 482 386T428 385H372L349 263Q301 15 282 -47Q255 -132 212 -173Q175 -205 139 -205Q107 -205 81 -186T55 -132Q55 -95 76 -78T118 -61Q162 -61 162 -103Q162 -122 151 -136T127 -157L118 -162Z'%3e%3c/path%3e %3c/defs%3e %3cg stroke='currentColor' fill='currentColor' stroke-width='0' transform='matrix(1 0 0 -1 0 0)' aria-hidden='true'%3e %3cg transform='translate(167%2c0)'%3e %3cg transform='translate(-11%2c0)'%3e %3cuse xlink:href='%23E1-MJMATHI-54' x='0' y='0'%3e%3c/use%3e %3cg transform='translate(584%2c-150)'%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-74' x='0' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-6F' x='361' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-74' x='847' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-61' x='1208' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-6C' x='1738' y='0'%3e%3c/use%3e %3c/g%3e %3cuse xlink:href='%23E1-MJMAIN-3D' x='2402' y='0'%3e%3c/use%3e %3cg transform='translate(3458%2c0)'%3e %3cuse xlink:href='%23E1-MJMATHI-54' x='0' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-65' x='826' y='-213'%3e%3c/use%3e %3c/g%3e %3cuse xlink:href='%23E1-MJMAIN-2212' x='4695' y='0'%3e%3c/use%3e %3cg transform='translate(5695%2c0)'%3e %3cuse xlink:href='%23E1-MJMATHI-54' x='0' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-4C' x='826' y='-213'%3e%3c/use%3e %3c/g%3e %3cuse xlink:href='%23E1-MJMAIN-2212' x='7084' y='0'%3e%3c/use%3e %3cg transform='translate(8085%2c0)'%3e %3cuse xlink:href='%23E1-MJMATHI-54' x='0' y='0'%3e%3c/use%3e %3cuse transform='scale(0.707)' xlink:href='%23E1-MJMATHI-66' x='826' y='-219'%3e%3c/use%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/svg%3e)
|
Mechanical Model Description
Attached to the machine model's shaft is a basic mechanical model. This model was chosen due to its common application, and the ability to extend its functionality. The behavior of the model varies depending upon whether the Mechanical Model Mode is set to Torque Controlled (1) or Speed Controlled (0).
Torque Controlled
When the Mechanical Model Mode is set to Torque Controlled (1), the equation of the mechanical model can be expressed as follows:
(?)
|
|
where
(?)
|
|
There is a dead-zone implementation with the static friction torque; if the Electromagnetic Torque (Te) does not exceed the Static Friction (Tf) torque, the speed remains at zero.
![](https://opal-rt.atlassian.net/wiki/download/thumbnails/140151681/SimpleMachanicalModelDiagram.png?version=1&modificationDate=1702673087544&cacheVersion=1&api=v2&width=238&height=144)
Note that in equation (1), the value of the mechanical speed (ωm) is in radians per second, while the output of the Mechanical Speed channel is in RPM. The equation for the Electromagnetic Torque (Te) of the machine can be found on its description page under the Machine Section.
The following equation is used to calculate the machine power:
(?)
|
|
Speed Controlled
When the Mechanical Model Mode is set to Speed Controlled (0), the mechanical parameters (Viscous Damping, Static Friction, Inertia) are ignored. Instead, the rotor speed is directly set using the User-Defined Speed parameter, ωuser.
Choosing a Mechanical Model Mode
Select Speed Controlled mode if:
Your project requires you to manually set the speed of the machine
Your project has a mechanical model that requires you to input the speed of the machine in to the model
Select Torque Controlled mode if:
Your project requires you to manually set the load torque of the machine
Your project has a mechanical model that requires you to input the load toque of the machine in to the model