Changeset 1153 for branches/maintenance
- Timestamp:
- 07/24/08 10:05:06 (4 months ago)
- Files:
-
- 1 modified
-
branches/maintenance/2.2.2/Modelica/package.mo (modified) (132 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/maintenance/2.2.2/Modelica/package.mo
r1128 r1153 34 34 <a href=\"http://www.Modelica.org\">http://www.Modelica.org</a>. 35 35 It is also called <b>Modelica Standard Library</b>. 36 It provides model components in many domains that are based on 36 It provides model components in many domains that are based on 37 37 standardized interface definitions. Some typical examples are shown 38 38 in the next figure: 39 39 </p> 40 40 41 41 <p> 42 42 <img src=\"../Images/UsersGuide/ModelicaLibraries.png\"> 43 43 </p> 44 44 45 45 <p> 46 46 For an introduction, have especially a look at: … … 77 77 <i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified 78 78 under the terms of the <b>Modelica license</b>, see the license conditions 79 and the accompanying <b>disclaimer</b> 79 and the accompanying <b>disclaimer</b> 80 80 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 81 81 </p> … … 84 84 85 85 86 package UsersGuide "User's Guide of Modelica library" 87 86 package UsersGuide "User's Guide of Modelica library" 87 88 88 annotation (DocumentationClass=true, Documentation(info="<html> 89 89 <p> … … 97 97 </p> 98 98 <p> 99 This is a short <b>User's Guide</b> for 99 This is a short <b>User's Guide</b> for 100 100 the overall library. Some of the main sublibraries have their own 101 101 User's Guides that can be accessed by the following links: … … 105 105 <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.Digital.UsersGuide\">Digital</a> 106 106 </td> 107 <td valign=\"top\">Library for digital electrical components based on the VHDL standard 107 <td valign=\"top\">Library for digital electrical components based on the VHDL standard 108 108 (2-,3-,4-,9-valued logic)</td> 109 109 </tr> … … 139 139 140 140 </html>")); 141 142 class Overview "Overview of Modelica Library" 143 141 142 class Overview "Overview of Modelica Library" 143 144 144 annotation (Documentation(info="<html> 145 145 <p> … … 151 151 <tr><th>Library Components</th> <th>Description</th></tr> 152 152 153 <tr><td valign=\"top\"> 153 <tr><td valign=\"top\"> 154 154 <img src=\"../Images/UsersGuide/Lib-Electrical.png\"> 155 155 </td> 156 156 <td valign=\"top\"> 157 157 <a href=\"Modelica://Modelica.Electrical.Analog\">Analog</a><br> 158 Analog electric and electronic components, such as <br> 158 Analog electric and electronic components, such as <br> 159 159 resistor, capacitor, transformers, diodes, transistors,<br> 160 160 transmission lines, switches, sources, sensors. … … 162 162 </tr> 163 163 164 <tr><td valign=\"top\"> 164 <tr><td valign=\"top\"> 165 165 <img src=\"../Images/UsersGuide/Lib-Digital.png\"> 166 166 </td> … … 173 173 </tr> 174 174 175 <tr><td valign=\"top\"> 175 <tr><td valign=\"top\"> 176 176 <img src=\"../Images/UsersGuide/Lib-Machines.png\"> 177 177 </td> … … 183 183 </tr> 184 184 185 <tr><td valign=\"top\"> 185 <tr><td valign=\"top\"> 186 186 <img src=\"../Images/UsersGuide/Lib-Translational.png\"> 187 187 </td> … … 193 193 </tr> 194 194 195 <tr><td valign=\"top\"> 195 <tr><td valign=\"top\"> 196 196 <img src=\"../Images/UsersGuide/Lib-Rotational.png\"> 197 197 </td> … … 204 204 </tr> 205 205 206 <tr><td valign=\"top\"> 206 <tr><td valign=\"top\"> 207 207 <img src=\"../Images/UsersGuide/Lib-MultiBody1.png\"><br> 208 208 <img src=\"../Images/UsersGuide/Lib-MultiBody2.png\"> … … 218 218 </tr> 219 219 220 <tr><td valign=\"top\"> 220 <tr><td valign=\"top\"> 221 221 <img src=\"../Images/UsersGuide/Lib-Media.png\"> 222 222 </td> … … 236 236 </tr> 237 237 238 <tr><td valign=\"top\"> 238 <tr><td valign=\"top\"> 239 239 <img src=\"../Images/UsersGuide/Lib-Thermal.png\"> 240 240 </td> 241 241 <td valign=\"top\"> 242 <a href=\"Modelica://Modelica.Thermal.FluidHeatFlow\">FluidHeatFlow</a>, 242 <a href=\"Modelica://Modelica.Thermal.FluidHeatFlow\">FluidHeatFlow</a>, 243 243 <a href=\"Modelica://Modelica.Thermal.HeatTransfer\">HeatTransfer</a><br> 244 244 Simple thermo-fluid pipe flow, especially to model cooling of machines <br> … … 249 249 </tr> 250 250 251 <tr><td valign=\"top\"> 251 <tr><td valign=\"top\"> 252 252 <img src=\"../Images/UsersGuide/Lib-Blocks1.png\"><br> 253 253 <img src=\"../Images/UsersGuide/Lib-Blocks2.png\"> … … 262 262 </tr> 263 263 264 <tr><td valign=\"top\"> 264 <tr><td valign=\"top\"> 265 265 <img src=\"../Images/UsersGuide/Lib-StateGraph.png\"> 266 266 </td> … … 274 274 275 275 276 <tr><td valign=\"top\"> 276 <tr><td valign=\"top\"> 277 277 <pre> 278 A = [1,2,3; 278 A = [1,2,3; 279 279 3,4,5; 280 280 2,1,4]; 281 281 b = {10,22,12}; 282 x = Matrices.solve(A,b); 283 Matrices.eigenValues(A); 282 x = Matrices.solve(A,b); 283 Matrices.eigenValues(A); 284 284 </pre> 285 285 </td> 286 286 <td valign=\"top\"> 287 <a href=\"Modelica://Modelica.Math\">Math</a>, 287 <a href=\"Modelica://Modelica.Math\">Math</a>, 288 288 <a href=\"Modelica://Modelica.Utilities\">Utilities</a><br> 289 289 Functions operating on vectors and matrices, such as for solving <br> … … 299 299 ")); 300 300 end Overview; 301 302 class Connectors "Connectors" 303 301 302 class Connectors "Connectors" 303 304 304 annotation (Documentation(info="<html> 305 305 306 306 <p> 307 The Modelica standard library defines the most important 308 <b>elementary connectors</b> in various domains. If any possible, 307 The Modelica standard library defines the most important 308 <b>elementary connectors</b> in various domains. If any possible, 309 309 a user should utilize these connectors in order that components 310 310 from the Modelica Standard Library and from other libraries … … 314 314 that have the flow attribute): 315 315 </p> 316 316 317 317 <table border=1 cellspacing=0 cellpadding=1> 318 318 <tr><td valign=\"top\"><b>domain</b></td> … … 321 321 <td valign=\"top\"><b>connector definition</b></td> 322 322 <td valign=\"top\"><b>icons</b></td></tr> 323 323 324 324 <tr><td valign=\"top\"><b>electrical<br>analog</b></td> 325 325 <td valign=\"top\">electrical potential</td> … … 334 334 <br>Plug, PositivePlug, NegativePlug</td> 335 335 <td valign=\"top\"><img src=\"../Images/UsersGuide/ElectricalPlugs.png\"></td></tr> 336 336 337 337 <tr><td valign=\"top\"><b>electrical <br>sphace phasor</b></td> 338 338 <td valign=\"top\">2 electrical potentials</td> … … 341 341 <br>SpacePhasor</td> 342 342 <td valign=\"top\"><img src=\"../Images/UsersGuide/SpacePhasor.png\"></td></tr> 343 343 344 344 <tr><td valign=\"top\"><b>electrical <br>digital</b></td> 345 345 <td valign=\"top\">Integer (1..9)</td> … … 348 348 <br>DigitalSignal, DigitalInput, DigitalOutput</td> 349 349 <td valign=\"top\"><img src=\"../Images/UsersGuide/Digital.png\"></td></tr> 350 350 351 351 <tr><td valign=\"top\"><b>translational</b></td> 352 352 <td valign=\"top\">distance</td> … … 355 355 <br>Flange_a, Flange_b</td> 356 356 <td valign=\"top\"><img src=\"../Images/UsersGuide/TranslationalFlanges.png\"></td></tr> 357 357 358 358 <tr><td valign=\"top\"><b>rotational</b></td> 359 359 <td valign=\"top\">angle</td> … … 387 387 <br>HeatPort, HeatPort_a, HeatPort_b</td> 388 388 <td valign=\"top\"><img src=\"../Images/UsersGuide/ThermalHeatPorts.png\"></td></tr> 389 389 390 390 <tr><td valign=\"top\"><b>block<br>diagram</b></td> 391 391 <td valign=\"top\">Real variable<br> … … 408 408 <td valign=\"top\"><img src=\"../Images/UsersGuide/StateGraphPorts.png\"></td></tr> 409 409 410 <tr><td colspan=\"5\"> <br><b>Connectors from libraries that will be included in one of 410 <tr><td colspan=\"5\"> <br><b>Connectors from libraries that will be included in one of 411 411 the next releases of package Modelica</b></td></tr> 412 412 … … 455 455 456 456 <p> 457 Modelica supports also hierarchical connectors, in a similar way as hierarchical models. 458 As a result, it is, e.g., possible, to collect elementary connectors together. 457 Modelica supports also hierarchical connectors, in a similar way as hierarchical models. 458 As a result, it is, e.g., possible, to collect elementary connectors together. 459 459 For example, an electrical plug consisting of two electrical pins can be defined as: 460 460 </p> … … 468 468 469 469 <p> 470 With one connect(..) equation, either two plugs can be connected 471 (and therefore implicitly also the phase and ground pins) or a 472 Pin connector can be directly connected to the phase or ground of 470 With one connect(..) equation, either two plugs can be connected 471 (and therefore implicitly also the phase and ground pins) or a 472 Pin connector can be directly connected to the phase or ground of 473 473 a Plug connector, such as \"connect(resistor.p, plug.phase)\". 474 474 </p> … … 478 478 ")); 479 479 end Connectors; 480 481 class Conventions "Conventions" 482 480 481 class Conventions "Conventions" 482 483 483 annotation (Documentation(info="<html> 484 484 485 485 <p> 486 Note, in the html documentation of any Modelica library, 486 Note, in the html documentation of any Modelica library, 487 487 the headings \"h1, h2, h3\" should not be used, 488 488 because they are utilized from the automatically generated documentation/headings. … … 502 502 503 503 <li> <b>Instance names</b>, i.e., names of component instances and 504 of variables (with the exception of constants), 504 of variables (with the exception of constants), 505 505 start usually with a lower case letter with only 506 a few exceptions if this is common sense 506 a few exceptions if this is common sense 507 507 (such as \"T\" for a temperature variable).<br> </li> 508 508 509 509 <li> <b>Constant names</b>, i.e., names of variables declared with the 510 \"constant\" prefix, follow the usual naming conventions 511 (= upper and lower case letters) and start usually with an 510 \"constant\" prefix, follow the usual naming conventions 511 (= upper and lower case letters) and start usually with an 512 512 upper case letter, e.g. UniformGravity, SteadyState.<br> <li> 513 513 … … 526 526 <ul> 527 527 <li><b>UsersGuide</b> containing an overall description of the library 528 and how to use it.</li> 528 and how to use it.</li> 529 529 <li><b>Examples</b> containing models demonstrating the 530 usage of the library.</li> 530 usage of the library.</li> 531 531 <li><b>Interfaces</b> containing connectors and partial 532 models.</li> 532 models.</li> 533 533 <li><b>Types</b> containing type, enumeration and choice 534 534 definitions.</li> … … 555 555 </p> 556 556 557 <pre> <b>package</b> Init \"Enumeration emulation\" 557 <pre> <b>package</b> Init \"Enumeration emulation\" 558 558 <b>extends</b> Modelica.Icons.Enumeration; 559 559 560 560 <b>constant</b> Integer NoInit=1; 561 561 <b>constant</b> Integer InitializeStates=2; 562 562 <b>constant</b> Integer SteadyState=3; 563 564 <b>type</b> Temp 563 564 <b>type</b> Temp 565 565 <b>extends</b> Modelica.Icons.TypeInteger; 566 566 <b>annotation</b> (choices( … … 576 576 ")); 577 577 end Conventions; 578 579 package ReleaseNotes "Release notes" 580 class Version_2_2_2_BugFixes "Version 2.2.2 with bug fixes" 581 578 579 package ReleaseNotes "Release notes" 580 class Version_2_2_2_BugFixes "Version 2.2.2 with bug fixes" 581 582 582 annotation (Documentation(info="<html> 583 583 <p> … … 589 589 that can lead to wrong simulation results): 590 590 </p> 591 591 592 592 <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 593 593 <tr><td colspan=\"2\"><b>Mechanics.MultiBody.Parts</b></td></tr> 594 594 <tr><td valign=\"top\"> Rotor1D </td> 595 <td valign=\"top\"> The 3D reaction torque was not completely correct and gave in 595 <td valign=\"top\"> The 3D reaction torque was not completely correct and gave in 596 596 some situations a wrong result. This bug should not influence the 597 597 movement of a multi-body system, but only the constraint torques 598 are sometimes not correct. </td> 598 are sometimes not correct. </td> 599 599 </tr> 600 600 … … 607 607 <td valign=\"top\"> Speed used in torque calculation was der(flange.phi) and not 608 608 the speed relative to the bearing<br> (= der(flange.phi) - der(bearing.phi)). 609 This was corrected. This bug leads to wrong simulation results,<br> 610 when the bearing is not fixed to ground </td> 609 This was corrected. This bug leads to wrong simulation results,<br> 610 when the bearing is not fixed to ground </td> 611 611 </tr> 612 612 <tr><td valign=\"top\"> Backlash </td> 613 613 <td valign=\"top\"> If parameter phi_rel0 is not zero, the equations have been wrong. 614 This bug has been fixed. </td> 614 This bug has been fixed. </td> 615 615 </tr> 616 616 617 617 </table> 618 619 618 619 620 620 <p><br> 621 621 The following <b style=\"color:red\">uncritical errors</b> have been fixed (i.e. errors 622 that do <b style=\"color:red\">not</b> lead to wrong simulation results, but, e.g., 622 that do <b style=\"color:red\">not</b> lead to wrong simulation results, but, e.g., 623 623 units are wrong or errors in documentation): 624 624 </p> 625 625 626 626 <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 627 627 <tr><td colspan=\"2\"><b>Blocks.Sources.</b></td></tr> 628 628 <tr><td valign=\"top\"> CombiTimeTable</td> 629 <td valign=\"top\"> \"model\" changed to \"block\"</td> 629 <td valign=\"top\"> \"model\" changed to \"block\"</td> 630 630 </tr> 631 631 632 632 <tr><td colspan=\"2\"><b>Blocks.Tables.</b></td></tr> 633 633 <tr><td valign=\"top\"> CombiTable2D</td> 634 <td valign=\"top\"> Documentation improved and \"model\" changed to \"block\"</td> 635 </tr> 636 634 <td valign=\"top\"> Documentation improved and \"model\" changed to \"block\"</td> 635 </tr> 636 <tr><td colspan=\"2\"><b>Electrical.Analog.Basic.</b></td></tr> 637 <tr><td valign=\"top\"> SaturatingInductor</td> 638 <td valign=\"top\"> Replaced non-standard \"arctan\" by \"atan\" function.</td> 639 </tr> 637 640 <tr><td colspan=\"2\"><b>Math.Matrices.</b></td></tr> 638 641 <tr><td valign=\"top\"> eigenvalues<br> … … 640 643 singularValues</td> 641 644 <td valign=\"top\"> Matrices with zero dimensions lead to a crash. 642 This has been fixed. </td> 645 This has been fixed. </td> 643 646 </tr> 644 647 645 648 <tr><td colspan=\"2\"><b>Mechanics.MultiBody</b></td></tr> 646 649 <tr><td valign=\"top\"> * </td> 647 <td valign=\"top\"> Added (each final unit=\"1\") as unit for all unit vectors, 650 <td valign=\"top\"> Added (each final unit=\"1\") as unit for all unit vectors, 648 651 since in Dymola 7 unit propagation sometimes leads otherwise 649 to warnings.</td> 652 to warnings.</td> 650 653 </tr> 651 654 652 655 <tr><td colspan=\"2\"><b>Media.Interfaces.PartialSimpleMedium</b></td></tr> 653 <tr><td valign=\"top\"> pressure<br> 656 <tr><td valign=\"top\"> pressure<br> 654 657 temperature<br> 655 658 density<br> 656 659 specificEnthalpy </td> 657 <td valign=\"top\"> Missing functions added.</td> 660 <td valign=\"top\"> Missing functions added.</td> 658 661 </tr> 659 662 </table> 660 663 661 664 </html>")); 662 665 end Version_2_2_2_BugFixes; 663 666 664 667 annotation (Documentation(info="<html> 665 668 … … 734 737 735 738 <ul> 736 <li> One person is fixing the bug and another person is checking whether the 739 <li> One person is fixing the bug and another person is checking whether the 737 740 fix is fine.</li> 738 741 <li> It is up to the library developer, whether he opens a new branch for 739 742 testing and then merges it with the \"head\" maintenance branch or not.</li> 740 <li> Every change to the maintenance branch has to be done at the development 743 <li> Every change to the maintenance branch has to be done at the development 741 744 branch (see above) as well.</li> 742 745 <li> Every change to the maintenance branch requires introducing a 743 746 description of the bug fix under 744 747 Modelica.UsersGuide.ReleaseNotes.<release-number>_bugFixes.</li> 745 <li> Every change to the maintenance branch requires changing the date 748 <li> Every change to the maintenance branch requires changing the date 746 749 of the Modelica library in the version annotation.<br> 747 750 When including the library in a distribution, … … 749 752 release in the version annotation. Example:<br> 750 753 <pre>annotation(version=\"2.2.1\", versionBuild=\"436\", versionDate=\"2007-05-13\")</pre> 751 The goal is to include the version build and version date information 754 The goal is to include the version build and version date information 752 755 automatically from the subversion server, but this is not yet the case.</li> 753 756 <li> If time does not permit, a vendor makes the bug fix in its local version … … 770 773 and loading it with an older build-version, an error would occur.</li> 771 774 <li> Introducing a new name in the protected section of a non-partial 772 class should only be done if absolutely necessary to fix a bug. 775 class should only be done if absolutely necessary to fix a bug. 773 776 The problem is that this might be non-backward compatible, 774 because a user might already extend from this class and already using the same name.</li> 777 because a user might already extend from this class and already using the same name.</li> 775 778 </ul> 776 779 </html> 777 780 ")); 778 779 class Version_2_2_2 "Version 2.2.2 (Aug. 31, 2007)" 780 781 782 class Version_2_2_2 "Version 2.2.2 (Aug. 31, 2007)" 783 781 784 annotation (Documentation(info="<html> 782 785 <p> 783 Version 2.2.2 is backward compatible to version 2.2.1 and 2.2 with 786 Version 2.2.2 is backward compatible to version 2.2.1 and 2.2 with 784 787 the following exceptions: 785 788 </p> … … 790 793 Modelica.Media.IdealGases.SingleGases that are not type compatible 791 794 to Modelica.Media.Interfaces.PartialMedium, because a FluidConstants 792 record definition is missing, 793 for details, see 795 record definition is missing, 796 for details, see 794 797 <a href=\"Modelica://Modelica.Media.IdealGases\">Modelica.Media.IdealGases</a> 795 798 (this is seen as a bug fix). … … 804 807 ModelManagement.compare function. 805 808 </p> 806 809 807 810 <p> 808 811 In this version, <b>no</b> new libraries have been added. The <b>documentation</b> … … 811 814 <a href=\"../help/Documentation/ModelicaStandardLibrary.pdf\">one pdf file</a>. 812 815 </p> 813 814 816 817 815 818 <p><br> 816 The following <b style=\"color:blue\">new components</b> have been added 819 The following <b style=\"color:blue\">new components</b> have been added 817 820 to <b style=\"color:blue\">existing</b> libraries: 818 821 </p> 819 822 820 823 <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 821 824 <tr><td colspan=\"2\"><b>Blocks.Logical.</b></td></tr> … … 823 826 <td valign=\"top\"> Terminate a simulation by a given condition.</td> 824 827 </tr> 825 828 826 829 <tr><td colspan=\"2\"><b>Blocks.Routing.</b></td></tr> 827 830 <tr><td valign=\"top\"> RealPassThrough<br> … … 829 832 BooleanPassThrough</td> 830 833 <td valign=\"top\"> Pass a signal from input to output 831 (useful in combination with a bus due to restrictions 834 (useful in combination with a bus due to restrictions 832 835 of expandable connectors).</td> 833 836 </tr> 834 837 835 838 <tr><td colspan=\"2\"><b>Blocks.Sources.</b></td></tr> 836 839 <tr><td valign=\"top\"> KinematicPTP2 </td> … … 838 841 </td> 839 842 </tr> 840 843 841 844 <tr><td colspan=\"2\"><b>Electrical.Machines.Examples.</b></td></tr> 842 845 <tr><td valign=\"top\"> TransformerTestbench </td> … … 852 855 </tr> 853 856 <tr><td valign=\"top\"> AIMC_Steinmetz </td> 854 <td valign=\"top\"> Asynchronous induction machine squirrel cage with Steinmetz connection 855 </td> 856 </tr> 857 857 <td valign=\"top\"> Asynchronous induction machine squirrel cage with Steinmetz connection 858 </td> 859 </tr> 860 858 861 <tr><td colspan=\"2\"><b>Electrical.Machines.BasicMachines.Components.</b></td></tr> 859 862 <tr><td valign=\"top\"> BasicAIM </td> … … 882 885 </td> 883 886 </tr> 884 887 885 888 <tr><td colspan=\"2\"><b>Electrical.Machines.BasicMachines.</b></td></tr> 886 889 <tr><td valign=\"top\"> Transformers </td> … …
