| 1 | within ; |
|---|
| 2 | package Modelica "Modelica Standard Library (Version 3.0)" |
|---|
| 3 | extends Icons.Library; |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | annotation ( |
|---|
| 7 | Â preferredView="info", |
|---|
| 8 | Â version="3.0", |
|---|
| 9 | Â versionBuild="$Rev$", |
|---|
| 10 | Â versionDate="$Date::Â Â Â Â Â Â Â Â Â Â Â Â Â Â $", |
|---|
| 11 | Â conversion( |
|---|
| 12 |   from(version="2.1", script="Scripts/ConvertModelica_from_2.2.2_to_3.0.mos"), |
|---|
| 13 |   from(version="2.2", script="Scripts/ConvertModelica_from_2.2.2_to_3.0.mos"), |
|---|
| 14 |   from(version="2.2.1", script="Scripts/ConvertModelica_from_2.2.2_to_3.0.mos"), |
|---|
| 15 |   from(version="2.2.2", script="Scripts/ConvertModelica_from_2.2.2_to_3.0.mos")), |
|---|
| 16 | Â Settings(NewStateSelection=true), |
|---|
| 17 | Â Documentation(info="<HTML> |
|---|
| 18 | <p> |
|---|
| 19 | Package <b>Modelica</b>Â is a <b>standardized</b>Â and <b>free</b>Â package |
|---|
| 20 | that is developed together with the Modelica language from the |
|---|
| 21 | Modelica Association, see |
|---|
| 22 | <a href=\"http://www.Modelica.org\">http://www.Modelica.org</a>. |
|---|
| 23 | It is also called <b>Modelica Standard Library</b>. |
|---|
| 24 | It provides model components in many domains that are based on |
|---|
| 25 | standardized interface definitions. Some typical examples are shown |
|---|
| 26 | in the next figure: |
|---|
| 27 | </p> |
|---|
| 28 | Â |
|---|
| 29 | <p> |
|---|
| 30 | <img src=\"../Images/UsersGuide/ModelicaLibraries.png\"> |
|---|
| 31 | </p> |
|---|
| 32 | Â |
|---|
| 33 | <p> |
|---|
| 34 | For an introduction, have especially a look at: |
|---|
| 35 | </p> |
|---|
| 36 | <ul> |
|---|
| 37 | <li> <a href=\"Modelica://Modelica.UsersGuide.Overview\">Overview</a> |
|---|
| 38 | Â Â Â provides an overview of the Modelica Standard Library |
|---|
| 39 |    inside the <a href=\"Modelica://Modelica.UsersGuide\">User's Guide</a>.</li> |
|---|
| 40 | <li><a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes\">Release Notes</a> |
|---|
| 41 | Â Â summarizes the changes of new versions of this package.</li> |
|---|
| 42 | <li> <a href=\"Modelica://Modelica.UsersGuide.Contact\">Contact</a> |
|---|
| 43 | Â Â Â lists the contributors of the Modelica Standard Library.</li> |
|---|
| 44 | <li> <a href=\"../help/Documentation/ModelicaStandardLibrary.pdf\">ModelicaStandardLibrary.pdf</a> |
|---|
| 45 | Â Â Â is the complete documentation of the library in pdf format. |
|---|
| 46 | <li>Â The <b>Examples</b>Â packages in the various libraries, demonstrate |
|---|
| 47 | Â Â Â how to use the components of the corresponding sublibrary.</li> |
|---|
| 48 | </ul> |
|---|
| 49 | |
|---|
| 50 | <p> |
|---|
| 51 | This version of the Modelica Standard Library consists of |
|---|
| 52 | </p> |
|---|
| 53 | <ul> |
|---|
| 54 | <li>Â <b>777</b>Â models and blocks, and</li> |
|---|
| 55 | <li>Â <b>549</b>Â functions |
|---|
| 56 | </ul> |
|---|
| 57 | <p> |
|---|
| 58 | that are directly usable (= number of public, non-partial classes). |
|---|
| 59 | </p> |
|---|
| 60 | |
|---|
| 61 | <p> |
|---|
| 62 | Copyright ©Â 1998-2008, Modelica Association. |
|---|
| 63 | </p> |
|---|
| 64 | <p> |
|---|
| 65 | <i>This Modelica package is <b>free</b>Â software; it can be redistributed and/or modified |
|---|
| 66 | under the terms of the <b>Modelica license</b>, see the license conditions |
|---|
| 67 | and the accompanying <b>disclaimer</b>Â |
|---|
| 68 | <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> |
|---|
| 69 | </p> |
|---|
| 70 | </HTML> |
|---|
| 71 | ")); |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | package UsersGuide "User's Guide of Modelica library" |
|---|
| 75 | |
|---|
| 76 |  annotation (DocumentationClass=true, Documentation(info="<html> |
|---|
| 77 | <p> |
|---|
| 78 | Package <b>Modelica</b>Â is a <b>standardized</b>Â and <b>pre-defined</b>Â package |
|---|
| 79 | that is developed together with the Modelica language from the |
|---|
| 80 | Modelica Association, see |
|---|
| 81 | <a href=\"http://www.Modelica.org\">http://www.Modelica.org</a>. |
|---|
| 82 | It is also called <b>Modelica Standard Library</b>. |
|---|
| 83 | It provides constants, types, connectors, partial models and model |
|---|
| 84 | components in various disciplines. |
|---|
| 85 | </p> |
|---|
| 86 | <p> |
|---|
| 87 | This is a short <b>User's Guide</b>Â for |
|---|
| 88 | the overall library. Some of the main sublibraries have their own |
|---|
| 89 | User's Guides that can be accessed by the following links: |
|---|
| 90 | </p> |
|---|
| 91 | |
|---|
| 92 | <table border=1 cellspacing=0 cellpadding=2> |
|---|
| 93 | <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.Digital.UsersGuide\">Digital</a> |
|---|
| 94 | Â Â </td> |
|---|
| 95 |    <td valign=\"top\">Library for digital electrical components based on the VHDL standard |
|---|
| 96 | Â Â Â Â Â (2-,3-,4-,9-valued logic)</td> |
|---|
| 97 | Â </tr> |
|---|
| 98 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Mechanics.MultiBody.UsersGuide\">MultiBody</a> |
|---|
| 99 | Â Â Â Â Â Â Â </td> |
|---|
| 100 |    <td valign=\"top\">Library to model 3-dimensional mechanical systems</td> |
|---|
| 101 | Â </tr> |
|---|
| 102 | |
|---|
| 103 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Mechanics.Rotational.UsersGuide\">Rotational</a> |
|---|
| 104 | Â Â Â Â Â Â Â </td> |
|---|
| 105 |    <td valign=\"top\">Library to model 1-dimensional mechanical systems</td> |
|---|
| 106 | Â </tr> |
|---|
| 107 | |
|---|
| 108 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Media.UsersGuide\">Media</a> |
|---|
| 109 | Â Â Â Â Â Â Â </td> |
|---|
| 110 |    <td valign=\"top\">Property models of media</td> |
|---|
| 111 | Â </tr> |
|---|
| 112 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.SIunits.UsersGuide\">SIunits</a> </td> |
|---|
| 113 |    <td valign=\"top\">Type definitions based on SI units according to ISO 31-1992</td> |
|---|
| 114 | Â </tr> |
|---|
| 115 | |
|---|
| 116 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.StateGraph.UsersGuide\">StateGraph</a> |
|---|
| 117 | Â Â Â Â Â Â Â </td> |
|---|
| 118 |    <td valign=\"top\">Library to model discrete event and reactive systems by hierarchical state machines</td> |
|---|
| 119 | Â </tr> |
|---|
| 120 | |
|---|
| 121 | |
|---|
| 122 |  <tr><td valign=\"top\"><a href=\"Modelica://Modelica.Utilities.UsersGuide\">Utilities</a> |
|---|
| 123 | Â Â Â Â Â Â Â </td> |
|---|
| 124 |    <td valign=\"top\">Utility functions especially for scripting (Files, Streams, Strings, System)</td> |
|---|
| 125 | Â </tr> |
|---|
| 126 | </table> |
|---|
| 127 | |
|---|
| 128 | </html>")); |
|---|
| 129 | |
|---|
| 130 |  class Overview "Overview of Modelica Library" |
|---|
| 131 | |
|---|
| 132 |   annotation (Documentation(info="<html> |
|---|
| 133 | <p> |
|---|
| 134 | The Modelica Standard Library consists of the following |
|---|
| 135 | main sub-libraries: |
|---|
| 136 | </p> |
|---|
| 137 | |
|---|
| 138 | <table border=1 cellspacing=0 cellpadding=2> |
|---|
| 139 | <tr><th>Library Components</th>Â <th>Description</th></tr> |
|---|
| 140 | |
|---|
| 141 | <tr><td valign=\"top\"> |
|---|
| 142 |   <img src=\"../Images/UsersGuide/Lib-Electrical.png\"> |
|---|
| 143 | Â Â </td> |
|---|
| 144 |   <td valign=\"top\"> |
|---|
| 145 |   <a href=\"Modelica://Modelica.Electrical.Analog\">Analog</a><br> |
|---|
| 146 | Â Â Analog electric and electronic components, such as <br>Â |
|---|
| 147 | Â Â resistor, capacitor, transformers, diodes, transistors,<br> |
|---|
| 148 | Â Â transmission lines, switches, sources, sensors. |
|---|
| 149 | Â Â </td> |
|---|
| 150 | </tr> |
|---|
| 151 | |
|---|
| 152 | <tr><td valign=\"top\"> |
|---|
| 153 |   <img src=\"../Images/UsersGuide/Lib-Digital.png\"> |
|---|
| 154 | Â Â </td> |
|---|
| 155 |   <td valign=\"top\"> |
|---|
| 156 |   <a href=\"Modelica://Modelica.Electrical.Digital\">Digital</a><br> |
|---|
| 157 | Â Â Digital electrical components based on the VHDL standard, <br> |
|---|
| 158 | Â Â like basic logic blocks with 9-value logic, delays, gates, <br> |
|---|
| 159 | Â Â sources, converters between 2-, 3-, 4-, and 9-valued logic. |
|---|
| 160 | Â Â </td> |
|---|
| 161 | </tr> |
|---|
| 162 | |
|---|
| 163 | <tr><td valign=\"top\"> |
|---|
| 164 |   <img src=\"../Images/UsersGuide/Lib-Machines.png\"> |
|---|
| 165 | Â Â </td> |
|---|
| 166 |   <td valign=\"top\"> |
|---|
| 167 |   <a href=\"Modelica://Modelica.Electrical.Machines\">Machines</a><br> |
|---|
| 168 | Â Â Electrical asynchronous-, synchronous-, and DC-machines<br> |
|---|
| 169 | Â Â (motors and generators) as well as 3-phase transformers. |
|---|
| 170 | Â Â </td> |
|---|
| 171 | </tr> |
|---|
| 172 | |
|---|
| 173 | <tr><td valign=\"top\"> |
|---|
| 174 |   <img src=\"../Images/UsersGuide/Lib-Translational.png\"> |
|---|
| 175 | Â Â </td> |
|---|
| 176 |   <td valign=\"top\"> |
|---|
| 177 |   <a href=\"Modelica://Modelica.Mechanics.Translational\">Translational</a><br> |
|---|
| 178 |   1-dim. mechanical, translational systems, e.g., <br> |
|---|
| 179 | Â Â sliding mass, mass with stops, spring, damper. |
|---|
| 180 | Â Â </td> |
|---|
| 181 | </tr> |
|---|
| 182 | |
|---|
| 183 | <tr><td valign=\"top\"> |
|---|
| 184 |   <img src=\"../Images/UsersGuide/Lib-Rotational.png\"> |
|---|
| 185 | Â Â </td> |
|---|
| 186 |   <td valign=\"top\"> |
|---|
| 187 |   <a href=\"Modelica://Modelica.Mechanics.Rotational\">Rotational</a><br> |
|---|
| 188 | Â Â 1-dim. mechanical, rotational systems, e.g., inertias, gears, <br> |
|---|
| 189 | Â Â planetary gears, convenient definition of speed/torque dependent friction<br> |
|---|
| 190 | Â Â (clutches, brakes, bearings, ..) |
|---|
| 191 | Â Â </td> |
|---|
| 192 | </tr> |
|---|
| 193 | |
|---|
| 194 | <tr><td valign=\"top\"> |
|---|
| 195 |   <img src=\"../Images/UsersGuide/Lib-MultiBody1.png\"><br> |
|---|
| 196 |   <img src=\"../Images/UsersGuide/Lib-MultiBody2.png\"> |
|---|
| 197 | Â Â </td> |
|---|
| 198 |   <td valign=\"top\"> |
|---|
| 199 |   <a href=\"Modelica://Modelica.Mechanics.MultiBody\">MultiBody</a><br> |
|---|
| 200 | Â Â 3-dim. mechanical systems consisting of joints, bodies, force and <br> |
|---|
| 201 | Â Â sensor elements. Joints can be driven by drive trains defined by<br> |
|---|
| 202 | Â Â 1-dim. mechanical system library (Rotational).<br> |
|---|
| 203 | Â Â Every component has a default animation.<br> |
|---|
| 204 | Â Â Components can be arbitrarily connected together. |
|---|
| 205 | Â Â </td> |
|---|
| 206 | </tr> |
|---|
| 207 | |
|---|
| 208 | <tr><td valign=\"top\"> |
|---|
| 209 |   <img src=\"../Images/UsersGuide/Lib-Media.png\"> |
|---|
| 210 | Â Â </td> |
|---|
| 211 |   <td valign=\"top\"> |
|---|
| 212 |   <a href=\"Modelica://Modelica.Media\">Media</a><br> |
|---|
| 213 | Â Â Large media library providing models and functions<br> |
|---|
| 214 | Â Â to compute media properties, such as h = h(p,T), d = d(p,T),<br> |
|---|
| 215 | Â Â for the following media: |
|---|
| 216 | Â Â <ul> |
|---|
| 217 | Â Â <li>Â 1240 gases and mixtures between these gases.</li> |
|---|
| 218 | Â Â <li>Â incompressible, table based liquids (h = h(T), etc.).</li> |
|---|
| 219 | Â Â <li>Â compressible liquids</li> |
|---|
| 220 | Â Â <li>Â dry and moist air</li> |
|---|
| 221 | Â Â <li>Â high precision model for water (IF97).</li> |
|---|
| 222 | Â Â </ul> |
|---|
| 223 | Â Â </td> |
|---|
| 224 | </tr> |
|---|
| 225 | |
|---|
| 226 | <tr><td valign=\"top\"> |
|---|
| 227 |   <img src=\"../Images/UsersGuide/Lib-Thermal.png\"> |
|---|
| 228 | Â Â </td> |
|---|
| 229 |   <td valign=\"top\"> |
|---|
| 230 |   <a href=\"Modelica://Modelica.Thermal.FluidHeatFlow\">FluidHeatFlow</a>, |
|---|
| 231 |   <a href=\"Modelica://Modelica.Thermal.HeatTransfer\">HeatTransfer</a><br> |
|---|
| 232 | Â Â Simple thermo-fluid pipe flow, especially to model cooling of machines <br> |
|---|
| 233 | Â Â with air or water (pipes, pumps, valves, ambient, sensors, sources) and<br> |
|---|
| 234 | Â Â lumped heat transfer with heat capacitors, thermal conductors, convection,<br> |
|---|
| 235 | Â Â body radiation, sources and sensors. |
|---|
| 236 | Â Â </td> |
|---|
| 237 | </tr> |
|---|
| 238 | |
|---|
| 239 | <tr><td valign=\"top\"> |
|---|
| 240 |   <img src=\"../Images/UsersGuide/Lib-Blocks1.png\"><br> |
|---|
| 241 |   <img src=\"../Images/UsersGuide/Lib-Blocks2.png\"> |
|---|
| 242 | Â Â </td> |
|---|
| 243 |   <td valign=\"top\"> |
|---|
| 244 |   <a href=\"Modelica://Modelica.Blocks\">Blocks</a><br> |
|---|
| 245 | Â Â Input/output blocks to model block diagrams and logical networks, e.g.,<br> |
|---|
| 246 | Â Â integerator, PI, PID, transfer function, linear state space system,<br> |
|---|
| 247 | Â Â sampler, unit delay, discrete transfer function, and/or blocks,<br> |
|---|
| 248 | Â Â timer, hysteresis, nonlinear and routing blocks, sources, tables. |
|---|
| 249 | Â Â </td> |
|---|
| 250 | </tr> |
|---|
| 251 | |
|---|
| 252 | <tr><td valign=\"top\"> |
|---|
| 253 |   <img src=\"../Images/UsersGuide/Lib-StateGraph.png\"> |
|---|
| 254 | Â Â </td> |
|---|
| 255 |   <td valign=\"top\"> |
|---|
| 256 |   <a href=\"Modelica://Modelica.StateGraph\">StateGraph</a><br> |
|---|
| 257 | Â Â Hierarchical state machines with a similar modeling power as Statecharts. <br> |
|---|
| 258 | Â Â Modelica is used as synchronous action language, i.e. deterministic <br> |
|---|
| 259 | Â Â behavior is guaranteed |
|---|
| 260 | Â Â </td> |
|---|
| 261 | </tr> |
|---|
| 262 | |
|---|
| 263 | |
|---|
| 264 | <tr><td valign=\"top\"> |
|---|
| 265 | Â Â <pre> |
|---|
| 266 | Â Â A = [1,2,3; |
|---|
| 267 | Â Â Â Â Â 3,4,5; |
|---|
| 268 | Â Â Â Â Â 2,1,4]; |
|---|
| 269 | Â Â b = {10,22,12}; |
|---|
| 270 | Â Â x = Matrices.solve(A,b); |
|---|
| 271 | Â Â Matrices.eigenValues(A); |
|---|
| 272 | Â Â </pre> |
|---|
| 273 | Â Â </td> |
|---|
| 274 |   <td valign=\"top\"> |
|---|
| 275 |   <a href=\"Modelica://Modelica.Math\">Math</a>, |
|---|
| 276 |   <a href=\"Modelica://Modelica.Utilities\">Utilities</a><br> |
|---|
| 277 | Â Â Functions operating on vectors and matrices, such as for solving <br> |
|---|
| 278 |   linear systems, eigen and singular values etc., and <br> |
|---|
| 279 | Â Â functions operating on strings, streams, files, e.g., <br> |
|---|
| 280 | Â Â to copy and remove a file or sort a vector of strings. |
|---|
| 281 | Â Â </td> |
|---|
| 282 | </tr> |
|---|
| 283 | |
|---|
| 284 | </table> |
|---|
| 285 | |
|---|
| 286 | </html> |
|---|
| 287 | ")); |
|---|
| 288 |  end Overview; |
|---|
| 289 | |
|---|
| 290 |  class Connectors "Connectors" |
|---|
| 291 | |
|---|
| 292 |   annotation (Documentation(info="<html> |
|---|
| 293 | |
|---|
| 294 | <p> |
|---|
| 295 | The Modelica standard library defines the most important |
|---|
| 296 | <b>elementary connectors</b>Â in various domains. If any possible, |
|---|
| 297 | a user should utilize these connectors in order that components |
|---|
| 298 | from the Modelica Standard Library and from other libraries |
|---|
| 299 | can be combined without problems. The following elementary |
|---|
| 300 | connectors are defined (potential variables are connector variables |
|---|
| 301 | without the flow attribute, flow variables are connector variables |
|---|
| 302 | that have the flow attribute): |
|---|
| 303 | </p> |
|---|
| 304 | Â |
|---|
| 305 | <table border=1 cellspacing=0 cellpadding=1> |
|---|
| 306 |  <tr><td valign=\"top\"><b>domain</b></td> |
|---|
| 307 |    <td valign=\"top\"><b>pot. variables</b></td> |
|---|
| 308 |    <td valign=\"top\"><b>flow variables</b></td> |
|---|
| 309 |    <td valign=\"top\"><b>connector definition</b></td> |
|---|
| 310 |    <td valign=\"top\"><b>icons</b></td></tr> |
|---|
| 311 | Â |
|---|
| 312 |  <tr><td valign=\"top\"><b>electrical<br>analog</b></td> |
|---|
| 313 |    <td valign=\"top\">electrical potential</td> |
|---|
| 314 |    <td valign=\"top\">electrical current</td> |
|---|
| 315 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.Analog.Interfaces\">Modelica.Electrical.Analog.Interfaces</a> |
|---|
| 316 | Â Â Â Â Â Â <br>Pin, PositivePin, NegativePin</td> |
|---|
| 317 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/ElectricalPins.png\"></td></tr> |
|---|
| 318 | |
|---|
| 319 |  <tr><td valign=\"top\"><b>electrical<br>multi-phase</b></td> |
|---|
| 320 |    <td colspan=\"2\">vector of electrical pins</td> |
|---|
| 321 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.MultiPhase.Interfaces\">Modelica.Electrical.MultiPhase.Interfaces</a> |
|---|
| 322 | Â Â Â Â Â Â <br>Plug, PositivePlug, NegativePlug</td> |
|---|
| 323 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/ElectricalPlugs.png\"></td></tr> |
|---|
| 324 | Â |
|---|
| 325 |  <tr><td valign=\"top\"><b>electrical <br>sphace phasor</b></td> |
|---|
| 326 |    <td valign=\"top\">2 electrical potentials</td> |
|---|
| 327 |    <td valign=\"top\">2 electrical currents</td> |
|---|
| 328 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.Machines.Interfaces\">Modelica.Electrical.Machines.Interfaces</a> |
|---|
| 329 | Â Â Â Â Â Â <br>SpacePhasor</td> |
|---|
| 330 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/SpacePhasor.png\"></td></tr> |
|---|
| 331 | Â |
|---|
| 332 |  <tr><td valign=\"top\"><b>electrical <br>digital</b></td> |
|---|
| 333 |    <td valign=\"top\">Integer (1..9)</td> |
|---|
| 334 |    <td valign=\"top\">---</td> |
|---|
| 335 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Electrical.Digital.Interfaces\">Modelica.Electrical.Digital.Interfaces</a> |
|---|
| 336 | Â Â Â Â Â Â <br>DigitalSignal, DigitalInput, DigitalOutput</td> |
|---|
| 337 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/Digital.png\"></td></tr> |
|---|
| 338 | Â |
|---|
| 339 |  <tr><td valign=\"top\"><b>translational</b></td> |
|---|
| 340 |    <td valign=\"top\">distance</td> |
|---|
| 341 |    <td valign=\"top\">cut-force</td> |
|---|
| 342 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Mechanics.Translational.Interfaces\">Modelica.Mechanics.Translational.Interfaces</a> |
|---|
| 343 | Â Â Â Â Â Â <br>Flange_a, Flange_b</td> |
|---|
| 344 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/TranslationalFlanges.png\"></td></tr> |
|---|
| 345 | Â |
|---|
| 346 |  <tr><td valign=\"top\"><b>rotational</b></td> |
|---|
| 347 |    <td valign=\"top\">angle</td> |
|---|
| 348 |    <td valign=\"top\">cut-torque</td> |
|---|
| 349 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Mechanics.Rotational.Interfaces\">Modelica.Mechanics.Rotational.Interfaces</a> |
|---|
| 350 | Â Â Â Â Â Â <br>Flange_a, Flange_b</td> |
|---|
| 351 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/RotationalFlanges.png\"></td></tr> |
|---|
| 352 | |
|---|
| 353 |  <tr><td valign=\"top\"><b>3-dim.<br>mechanics</b></td> |
|---|
| 354 |    <td valign=\"top\">position vector<br> |
|---|
| 355 | Â Â Â Â Â orientation object</td> |
|---|
| 356 |    <td valign=\"top\">cut-force vector<br> |
|---|
| 357 | Â Â Â Â Â cut-torque vector</td> |
|---|
| 358 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Mechanics.MultiBody.Interfaces\">Modelica.Mechanics.MultiBody.Interfaces</a> |
|---|
| 359 | Â Â Â Â Â Â <br>Frame, Frame_a, Frame_b, Frame_resolve</td> |
|---|
| 360 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/MultiBodyFrames.png\"></td></tr> |
|---|
| 361 | |
|---|
| 362 |  <tr><td valign=\"top\"><b>simple<br>fluid flow</b></td> |
|---|
| 363 |    <td valign=\"top\">pressure<br> |
|---|
| 364 | Â Â Â Â Â specific enthalpy</td> |
|---|
| 365 |    <td valign=\"top\">mass flow rate<br> |
|---|
| 366 | Â Â Â Â Â enthalpy flow rate</td> |
|---|
| 367 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Thermal.FluidHeatFlow.Interfaces\">Modelica.Thermal.FluidHeatFlow.Interfaces</a> |
|---|
| 368 | Â Â Â Â Â Â <br>FlowPort, FlowPort_a, FlowPort_b</td> |
|---|
| 369 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/FluidHeatFlowPorts.png\"></td></tr> |
|---|
| 370 | |
|---|
| 371 |  <tr><td valign=\"top\"><b>heat<br>transfer</b></td> |
|---|
| 372 |    <td valign=\"top\">temperature</td> |
|---|
| 373 |    <td valign=\"top\">heat flow rate</td> |
|---|
| 374 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Thermal.HeatTransfer.Interfaces\">Modelica.Thermal.HeatTransfer.Interfaces</a> |
|---|
| 375 | Â Â Â Â Â Â <br>HeatPort, HeatPort_a, HeatPort_b</td> |
|---|
| 376 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/ThermalHeatPorts.png\"></td></tr> |
|---|
| 377 | Â |
|---|
| 378 |  <tr><td valign=\"top\"><b>block<br>diagram</b></td> |
|---|
| 379 |    <td valign=\"top\">Real variable<br> |
|---|
| 380 | Â Â Â Â Â Integer variable<br> |
|---|
| 381 | Â Â Â Â Â Boolean variable</td> |
|---|
| 382 |    <td valign=\"top\">---</td> |
|---|
| 383 |    <td valign=\"top\"><a href=\"Modelica://Modelica.Blocks.Interfaces\">Modelica.Blocks.Interfaces</a> |
|---|
| 384 | Â Â Â Â Â Â <br>RealSignal, RealInput, RealOutput<br> |
|---|
| 385 | Â Â Â Â Â Â Â Â IntegerSignal, IntegerInput, IntegerOutput<br> |
|---|
| 386 | Â Â Â Â Â Â Â Â BooleanSignal, BooleanInput, BooleanOutput</td> |
|---|
| 387 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/Signals.png\"></tr> |
|---|
| 388 | |
|---|
| 389 |  <tr><td valign=\"top\"><b>state<br>machine</b></td> |
|---|
| 390 |    <td valign=\"top\">Boolean variables<br> |
|---|
| 391 | Â Â Â Â Â (occupied, set, <br> |
|---|
| 392 | Â Â Â Â Â Â available, reset)</td> |
|---|
| 393 |    <td valign=\"top\">---</td> |
|---|
| 394 |    <td valign=\"top\"><a href=\"Modelica://Modelica.StateGraph.Interfaces\">Modelica.StateGraph.Interfaces</a> |
|---|
| 395 | Â Â Â Â Â Â <br>Step_in, Step_out, Transition_in, Transition_out</td> |
|---|
| 396 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/StateGraphPorts.png\"></td></tr> |
|---|
| 397 | |
|---|
| 398 |  <tr><td colspan=\"5\"> <br><b>Connectors from libraries that will be included in one of |
|---|
| 399 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â the next releases of package Modelica</b></td></tr> |
|---|
| 400 | |
|---|
| 401 |  <tr><td valign=\"top\"><b>thermo<br>fluid flow</b></td> |
|---|
| 402 |    <td valign=\"top\">pressure<br> |
|---|
| 403 | Â Â Â Â Â specific enthalpy<br> |
|---|
| 404 | Â Â Â Â Â mass fractions</td> |
|---|
| 405 |    <td valign=\"top\">mass flow rate<br> |
|---|
| 406 | Â Â Â Â Â enthalpy flow rate<br> |
|---|
| 407 | Â Â Â Â Â subst. mass flow rates</td> |
|---|
| 408 |    <td valign=\"top\">Modelica_Fluid.Interfaces |
|---|
| 409 | Â Â Â Â Â Â <br>FluidPort, FluidPort_a, FluidPort_b</td> |
|---|
| 410 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/FluidPorts.png\"></td></tr> |
|---|
| 411 | |
|---|
| 412 |  <tr><td valign=\"top\"><b>magnetic</b></td> |
|---|
| 413 |    <td valign=\"top\">magnetic potential</td> |
|---|
| 414 |    <td valign=\"top\">magnetic flux</td> |
|---|
| 415 |    <td valign=\"top\">Magnetic.Interfaces |
|---|
| 416 | Â Â Â Â Â Â <br>MagneticPort, PositiveMagneticPort, <br>NegativeMagneticPort</td> |
|---|
| 417 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/MagneticPorts.png\"></td></tr> |
|---|
| 418 | |
|---|
| 419 | |
|---|
| 420 |  <tr><td colspan=\"5\"> <br><b>Connectors from other libraries</b></td></tr> |
|---|
| 421 | |
|---|
| 422 |  <tr><td valign=\"top\"><b>hydraulic</b></td> |
|---|
| 423 |    <td valign=\"top\">pressure</td> |
|---|
| 424 |    <td valign=\"top\">volume flow rate</td> |
|---|
| 425 |    <td valign=\"top\">HyLibLight.Interfaces |
|---|
| 426 | Â Â Â Â Â Â <br>Port_A, Port_b</td> |
|---|
| 427 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/HydraulicPorts.png\"></td></tr> |
|---|
| 428 | |
|---|
| 429 |  <tr><td valign=\"top\"><b>pneumatic</b></td> |
|---|
| 430 |    <td valign=\"top\">pressure</td> |
|---|
| 431 |    <td valign=\"top\">mass flow rate</td> |
|---|
| 432 |    <td valign=\"top\">PneuLibLight.Interfaces |
|---|
| 433 | Â Â Â Â Â Â <br>Port_1, Port_2</td> |
|---|
| 434 |    <td valign=\"top\"><img src=\"../Images/UsersGuide/PneumaticPorts.png\"></td></tr> |
|---|
| 435 | </table> |
|---|
| 436 | |
|---|
| 437 | <p> |
|---|
| 438 | In all domains, usually 2 connectors are defined. The variable declarations |
|---|
| 439 | are <b>identical</b>, only the icons are different in order that it is easy |
|---|
| 440 | to distinguish connectors of the same domain that are attached at the same |
|---|
| 441 | component. |
|---|
| 442 | </p> |
|---|
| 443 | |
|---|
| 444 | <p> |
|---|
| 445 | Modelica supports also hierarchical connectors, in a similar way as hierarchical models. |
|---|
| 446 | As a result, it is, e.g., possible, to collect elementary connectors together. |
|---|
| 447 | For example, an electrical plug consisting of two electrical pins can be defined as: |
|---|
| 448 | </p> |
|---|
| 449 | |
|---|
| 450 | <pre>Â Â <b>connector</b>Â Plug |
|---|
| 451 | Â Â Â <b>import</b>Â Modelica.Electrical.Analog.Interfaces; |
|---|
| 452 | Â Â Â Interfaces.PositivePin phase; |
|---|
| 453 | Â Â Â Interfaces.NegativePin ground; |
|---|
| 454 | Â Â <b>end</b>Â Plug; |
|---|
| 455 | </pre> |
|---|
| 456 | |
|---|
| 457 | <p> |
|---|
| 458 | With one connect(..) equation, either two plugs can be connected |
|---|
| 459 | (and therefore implicitly also the phase and ground pins) or a |
|---|
| 460 | Pin connector can be directly connected to the phase or ground of |
|---|
| 461 | a Plug connector, such as \"connect(resistor.p, plug.phase)\". |
|---|
| 462 | </p> |
|---|
| 463 | |
|---|
| 464 | |
|---|
| 465 | </html> |
|---|
| 466 | ")); |
|---|
| 467 |  end Connectors; |
|---|
| 468 | |
|---|
| 469 |  class Conventions "Conventions" |
|---|
| 470 | |
|---|
| 471 |   annotation (Documentation(info="<html> |
|---|
| 472 | |
|---|
| 473 | <p> |
|---|
| 474 | Note, in the html documentation of any Modelica library, |
|---|
| 475 | the headings \"h1, h2, h3\" should not be used, |
|---|
| 476 | because they are utilized from the automatically generated documentation/headings. |
|---|
| 477 | Additional headings in the html documentation should start with \"h4\". |
|---|
| 478 | </p> |
|---|
| 479 | |
|---|
| 480 | <p> |
|---|
| 481 | In the Modelica package the following conventions are used: |
|---|
| 482 | </p> |
|---|
| 483 | <ol> |
|---|
| 484 | <li>Â Class and instance names are written in upper and lower case |
|---|
| 485 | Â Â Â letters, e.g., \"ElectricCurrent\". An underscore is only used |
|---|
| 486 | Â Â Â at the end of a name to characterize a lower or upper index, |
|---|
| 487 | Â Â Â e.g., \"pin_a\".<br> </li> |
|---|
| 488 | |
|---|
| 489 | <li>Â <b>Class names</b>Â start always with an upper case letter.<br> </li> |
|---|
| 490 | |
|---|
| 491 | <li>Â <b>Instance names</b>, i.e., names of component instances and |
|---|
| 492 | Â Â Â of variables (with the exception of constants), |
|---|
| 493 | Â Â Â start usually with a lower case letter with only |
|---|
| 494 | Â Â Â a few exceptions if this is common sense |
|---|
| 495 | Â Â Â (such as \"T\" for a temperature variable).<br> </li> |
|---|
| 496 | |
|---|
| 497 | <li>Â <b>Constant names</b>, i.e., names of variables declared with the |
|---|
| 498 | Â Â Â \"constant\" prefix, follow the usual naming conventions |
|---|
| 499 | Â Â Â (= upper and lower case letters) and start usually with an |
|---|
| 500 | Â Â Â upper case letter, e.g. UniformGravity, SteadyState.<br> <li> |
|---|
| 501 | |
|---|
| 502 | <li>Â The two connectors of a domain that have identical declarations |
|---|
| 503 | Â Â Â and different icons are usually distinguished by \"_a\", \"_b\" |
|---|
| 504 | Â Â Â or \"_p\", \"_n\", e.g., Flange_a/Flange_b, HeatPort_a, HeatPort_b.<br> </li> |
|---|
| 505 | |
|---|
| 506 | <li>Â The <b>instance name</b>Â of a component is always displayed in its icon |
|---|
| 507 | Â Â Â (= text string \"%name\") in <b>blue color</b>. A connector class has the instance |
|---|
| 508 | Â Â Â name definition in the diagram layer and not in the icon layer. |
|---|
| 509 | Â Â Â <b>Parameter</b>Â values, e.g., resistance, mass, gear ratio, are displayed |
|---|
| 510 | Â Â Â in the icon in <b>black color</b>Â in a smaller font size as the instance name. |
|---|
| 511 | Â Â <br> <li> |
|---|
| 512 | |
|---|
| 513 | <li>Â A main package has usually the following subpackages: |
|---|
| 514 | Â Â Â <ul> |
|---|
| 515 | Â Â Â <li><b>UsersGuide</b>Â containing an overall description of the library |
|---|
| 516 | Â Â Â Â Â and how to use it.</li>Â |
|---|
| 517 | Â Â Â <li><b>Examples</b>Â containing models demonstrating the |
|---|
| 518 | Â Â Â Â Â usage of the library.</li>Â |
|---|
| 519 | Â Â Â <li><b>Interfaces</b>Â containing connectors and partial |
|---|
| 520 | Â Â Â Â Â models.</li>Â |
|---|
| 521 | Â Â Â <li><b>Types</b>Â containing type, enumeration and choice |
|---|
| 522 | Â Â Â Â Â definitions.</li> |
|---|
| 523 | Â Â Â </ul> |
|---|
| 524 | Â Â Â </li> |
|---|
| 525 | </ol> |
|---|
| 526 | |
|---|
| 527 | </html> |
|---|
| 528 | ")); |
|---|
| 529 |  end Conventions; |
|---|
| 530 | |
|---|
| 531 |  class ParameterDefaults "Parameter defaults" |
|---|
| 532 | |
|---|
| 533 |   annotation (Documentation(info="<html> |
|---|
| 534 | |
|---|
| 535 | <p> |
|---|
| 536 | In this section the convention is summarized how default parameters are |
|---|
| 537 | handled in the Modelica Standard Library (since version 3.0). |
|---|
| 538 | </p> |
|---|
| 539 | |
|---|
| 540 | <p> |
|---|
| 541 | Many models in this library have parameter declarations to define |
|---|
| 542 | constants of a model that might be changed before simulation starts. |
|---|
| 543 | Example: |
|---|
| 544 | </p> |
|---|
| 545 | |
|---|
| 546 | <blockquote> |
|---|
| 547 | <pre> |
|---|
| 548 | <b>model</b>Â SpringDamper |
|---|
| 549 | Â Â <b>parameter</b>Â Real c(final unit=\"N.m/rad\")Â Â = 1e5 \"Spring constant\"; |
|---|
| 550 | Â Â <b>parameter</b>Â Real d(final unit=\"N.m.s/rad\")Â = 0Â Â \"Damping constant\"; |
|---|
| 551 | Â Â <b>parameter</b>Â Modelica.SIunits.Angle phi_rel0 = 0Â Â \"Unstretched spring angle\"; |
|---|
| 552 | Â Â ... |
|---|
| 553 | <b>end</b>Â SpringDamper; |
|---|
| 554 | </pre> |
|---|
| 555 | </blockquote> |
|---|
| 556 | |
|---|
| 557 | <p> |
|---|
| 558 | In Modelica it is possible to define a default value of a parameter in |
|---|
| 559 | the parameter declaration. In the example above, this is performed for |
|---|
| 560 | all parameters. Providing default values for all parameters can lead to |
|---|
| 561 | errors that are difficult to detect, since a modeler may have forgotten |
|---|
| 562 | to provide a meaningful value (the model simulates but gives wrong |
|---|
| 563 | results due to wrong parameter values). In general the following basic |
|---|
| 564 | situations are present: |
|---|
| 565 | </p> |
|---|
| 566 | |
|---|
| 567 | <ol> |
|---|
| 568 | <li>Â The parameter value could be anything (e.g., a spring constant or |
|---|
| 569 | Â Â Â a resistance value) and therefore the user should provide a value in |
|---|
| 570 | Â Â Â all cases. A Modelica translator should warn, if no value is provided. |
|---|
| 571 | Â Â Â <br><br></li> |
|---|
| 572 | |
|---|
| 573 | <li>Â The parameter value is not changed in >Â 95 % of the cases |
|---|
| 574 | Â Â Â (e.g. initialization or visualization parameters, or parameter phi_rel0 |
|---|
| 575 | Â Â Â in the example above). In this case a default parameter value should be |
|---|
| 576 | Â Â Â provided, in order that the model or function can be conveniently |
|---|
| 577 | Â Â Â used by a modeler. |
|---|
| 578 | Â Â Â <br><br></li> |
|---|
| 579 | |
|---|
| 580 | <li>Â A modeler would like to quickly utilize a model, e.g., |
|---|
| 581 | Â Â Â <ul> |
|---|
| 582 | Â Â Â <li>Â to automatically check that the model still translates and/or simulates |
|---|
| 583 | Â Â Â Â Â (after some changes in the library),</li> |
|---|
| 584 | Â Â Â <li>Â to make a quick demo of a library by drag-and-drop of components,</li> |
|---|
| 585 | Â Â Â <li>Â to implement a simple test model in order to get a better understanding |
|---|
| 586 | Â Â Â Â Â of the desired component.</li> |
|---|
| 587 | Â Â Â </ul> |
|---|
| 588 | Â Â Â In all these cases, it would be not practical, if the modeler would |
|---|
| 589 | Â Â Â have to provide explicit values for all parameters first. |
|---|
| 590 | Â Â Â </li> |
|---|
| 591 | </ol> |
|---|
| 592 | |
|---|
| 593 | <p> |
|---|
| 594 | To handle the conflicting goals of (1) and (3), the Modelica Standard Library |
|---|
| 595 | uses two approaches to define default parameters, as demonstrated with the |
|---|
| 596 | following example: |
|---|
| 597 | </p> |
|---|
| 598 | |
|---|
| 599 | <blockquote> |
|---|
| 600 | <pre> |
|---|
| 601 | <b>model</b>Â SpringDamper |
|---|
| 602 | Â Â <b>parameter</b>Â Real c(final unit=\"N.m/rad\"Â , start=1e5) \"Spring constant\"; |
|---|
| 603 | Â Â <b>parameter</b>Â Real d(final unit=\"N.m.s/rad\", start=Â 0) \"Damping constant\"; |
|---|
| 604 | Â Â <b>parameter</b>Â Modelica.SIunits.Angle phi_rel0 = 0Â Â Â Â \"Unstretched spring angle\"; |
|---|
| 605 | Â Â ... |
|---|
| 606 | <b>end</b>Â SpringDamper; |
|---|
| 607 | |
|---|
| 608 | SpringDamper sp1;Â Â Â Â Â Â Â // warning for \"c\" and \"d\" |
|---|
| 609 | SpringDamper sp2(c=1e4, d=0);Â // fine, no warning |
|---|
| 610 | </pre> |
|---|
| 611 | </blockquote> |
|---|
| 612 | |
|---|
| 613 | <p> |
|---|
| 614 | Both definition forms, using a \"start\" value (for \"c\" and \"d\") and providing |
|---|
| 615 | a declaration equation (for \"phi_rel0\"), are valid Modelica and define the value |
|---|
| 616 | of the parameter. By convention, it is expected that Modelica translators will |
|---|
| 617 | trigger a warning message for parameters that are <b>not</b>Â defined by a declaration |
|---|
| 618 | equation, by a modifier equation or in an initial equation/algorithm section. |
|---|
| 619 | A Modelica translator might have options to change this behavior, especially, |
|---|
| 620 | that no messages are printed in such cases and/or that an error is triggered |
|---|
| 621 | instead of a warning. |
|---|
| 622 | </p> |
|---|
| 623 | |
|---|
| 624 | </html> |
|---|
| 625 | ")); |
|---|
| 626 |  end ParameterDefaults; |
|---|
| 627 | |
|---|
| 628 |  package ReleaseNotes "Release notes" |
|---|
| 629 |  class Version_3_0_BugFixes "Version 3.0 with bug fixes" |
|---|
| 630 | |
|---|
| 631 |    annotation (Documentation(info="<html> |
|---|
| 632 | |
|---|
| 633 | <p> |
|---|
| 634 | In this section bug fixes are summarized that have been incorporated |
|---|
| 635 | since the release of version 3.0. |
|---|
| 636 | </p> |
|---|
| 637 | |
|---|
| 638 | <p><br> |
|---|
| 639 | The following <b style=\"color:red\">critical errors</b> have been fixed (i.e. errors |
|---|
| 640 | that can lead to wrong simulation results): |
|---|
| 641 | </p> |
|---|
| 642 | Â |
|---|
| 643 | <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> |
|---|
| 644 |  <tr><td colspan=\"2\"><b>Mechanics.MultiBody.Forces</b></td></tr> |
|---|
| 645 |  <tr><td valign=\"top\"> WorldTorque </td> |
|---|
| 646 |    <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore |
|---|
| 647 | Â Â Â Â Â Â Â Â Â Â Â Â always the default (resolved in world frame) was used, independently |
|---|
| 648 | Â Â Â Â Â Â Â Â Â Â Â Â of the setting of this parameter. </td>Â |
|---|
| 649 | Â </tr> |
|---|
| 650 |  <tr><td valign=\"top\"> WorldForceAndTorque </td> |
|---|
| 651 |    <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore |
|---|
| 652 | Â Â Â Â Â Â Â Â Â Â Â Â always the default (resolved in world frame) was used, independently |
|---|
| 653 | Â Â Â Â Â Â Â Â Â Â Â Â of the setting of this parameter.<br> |
|---|
| 654 | Â Â Â Â Â Â Â Â Â Â Â Â Furthermore, internally WorldTorque was used instead of |
|---|
| 655 | Â Â Â Â Â Â Â Â Â Â Â Â Internal.BasicWorldTorque and therefore the visualization of |
|---|
| 656 | Â Â Â Â Â Â Â Â Â Â Â Â worldTorque was performed twice. </td>Â |
|---|
| 657 | Â </tr> |
|---|
| 658 |  <tr><td colspan=\"2\"><b>Mechanics.Translational.Components.</b></td></tr> |
|---|
| 659 |  <tr><td valign=\"top\"> SupportFriction<br> |
|---|
| 660 | Â Â Â Â Â Â Â Â Â Â Â Â Brake </td> |
|---|
| 661 |    <td valign=\"top\"> The sign of the friction force was wrong and therefore friction accelerated |
|---|
| 662 | Â Â Â Â Â Â Â Â Â Â Â Â instead of decelerated. This was fixed. In order to test the changes, |
|---|
| 663 | Â Â Â Â Â Â Â Â Â Â Â Â Translational.Examples.Friction was enhanced to use also the SupportFriction |
|---|
| 664 | Â Â Â Â Â Â Â Â Â Â Â Â component and a new example Translational.Examples.Brake was introduced. </td>Â |
|---|
| 665 | Â </tr> |
|---|
| 666 | |
|---|
| 667 | </table> |
|---|
| 668 | Â |
|---|
| 669 | Â |
|---|
| 670 | <p><br> |
|---|
| 671 | The following <b style=\"color:red\">uncritical errors</b> have been fixed (i.e. errors |
|---|
| 672 | that do <b style=\"color:red\">not</b> lead to wrong simulation results, but, e.g., |
|---|
| 673 | units are wrong or errors in documentation): |
|---|
| 674 | </p> |
|---|
| 675 | Â |
|---|
| 676 | <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> |
|---|
| 677 |  <tr><td colspan=\"2\"><b>Blocks.Math.</b></td></tr> |
|---|
| 678 |  <tr><td valign=\"top\"> InverseBlockConstraint </td> |
|---|
| 679 |    <td valign=\"top\"> Changed annotation preserveAspectRatio from true to false.</td> |
|---|
| 680 | Â </tr> |
|---|
| 681 | |
|---|
| 682 |  <tr><td colspan=\"2\"><b>Blocks.Sources.</b></td></tr> |
|---|
| 683 |  <tr><td valign=\"top\"> RealExpression<br> |
|---|
| 684 | Â Â Â Â Â Â Â Â Â Â Â Â IntegerExpression<br> |
|---|
| 685 | Â Â Â Â Â Â Â Â Â Â Â Â BooleanExpression </td> |
|---|
| 686 |    <td valign=\"top\"> Changed annotation preserveAspectRatio from true to false.</td> |
|---|
| 687 | Â </tr> |
|---|
| 688 | |
|---|
| 689 |  <tr><td colspan=\"2\"><b>Electrical.Analog.Basic.</b></td></tr> |
|---|
| 690 |  <tr><td valign=\"top\"> SaturatingInductor</td> |
|---|
| 691 |    <td valign=\"top\"> Replaced non-standard \"arctan\" by \"atan\" function.</td> |
|---|
| 692 | Â </tr> |
|---|
| 693 | |
|---|
| 694 |  <tr><td colspan=\"2\"><b>Media.Interfaces.PartialSimpleMedium</b></td></tr> |
|---|
| 695 |  <tr><td valign=\"top\"> pressure<br> |
|---|
| 696 | Â Â Â Â Â Â Â Â Â Â Â Â temperature<br> |
|---|
| 697 | Â Â Â Â Â Â Â Â Â Â Â Â density<br> |
|---|
| 698 | Â Â Â Â Â Â Â Â Â Â Â Â specificEnthalpy </td> |
|---|
| 699 |    <td valign=\"top\"> Missing functions added.</td> |
|---|
| 700 | Â </tr> |
|---|
| 701 | </table> |
|---|
| 702 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
|---|
| 703 | </html>")); |
|---|
| 704 |  end Version_3_0_BugFixes; |
|---|
| 705 | |
|---|
| 706 |   annotation (Documentation(info="<html> |
|---|
| 707 | |
|---|
| 708 | <p> |
|---|
| 709 | This section summarizes the changes that have been performed |
|---|
| 710 | on the Modelica standard library. |
|---|
| 711 | </p> |
|---|
| 712 | |
|---|
| 713 | <ul> |
|---|
| 714 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_3_0\">Version 3.0</a> (Jan., 2008)</li> |
|---|
| 715 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_2_2_2\">Version 2.2.2</a> (Aug. 31, 2007)</li> |
|---|
| 716 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_2_2_1\">Version 2.2.1</a> (March 24, 2006)</li> |
|---|
| 717 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_2_2\">Version 2.2</a> (April 6, 2005)</li> |
|---|
| 718 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_2_1\">Version 2.1</a> (Nov. 11, 2004)</li> |
|---|
| 719 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_1_6\">Version 1.6</a> (June 21, 2004)</li> |
|---|
| 720 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_1_5\">Version 1.5</a> (Dec. 16, 2002)</li> |
|---|
| 721 | <li> <a href=\"Modelica://Modelica.UsersGuide.ReleaseNotes.Version_1_4\">Version 1.4</a> (June 28, 2001 |
|---|
| 722 | Â Â Â and previous versions)</li> |
|---|
| 723 | </ul> |
|---|
| 724 | |
|---|
| 725 | <p> |
|---|
| 726 | Maintenance of the Modelica Standard Library is performed with |
|---|
| 727 | three branches on the subversion server of the Modelica Association: |
|---|
| 728 | </p> |
|---|
| 729 | |
|---|
| 730 | <h4>Released branch</h4> |
|---|
| 731 | <p> |
|---|
| 732 | Example: \"Modelica/tags/V2_2_1/Modelica\" |
|---|
| 733 | </p> |
|---|
| 734 | |
|---|
| 735 | <p> |
|---|
| 736 | This branch contains the released Modelica versions (e.g. version 2.2.1), |
|---|
| 737 | where all available test cases and compatibility checks with other Modelica |
|---|
| 738 | libraries have been performed on the respective release. This version is |
|---|
| 739 | usually shipped with a Modelica modelling and simulation environment and |
|---|
| 740 | utilized by a Modelica user. |
|---|
| 741 | </p> |
|---|
| 742 | |
|---|
| 743 | <h4>Development branch</h4> |
|---|
| 744 | <p> |
|---|
| 745 | Example: \"Modelica/trunk/Modelica\" |
|---|
| 746 | </p> |
|---|
| 747 | |
|---|
| 748 | <p> |
|---|
| 749 | This branch contains the actual development version, i.e., all bug fixes |
|---|
| 750 | and new features based on the last Modelica release. |
|---|
| 751 | New features should have been tested before including them. |
|---|
| 752 | However, the exhaustive tests for a new version are (usually) not performed. |
|---|
| 753 | This version is usually only be used by the developers of the |
|---|
| 754 | Modelica Standard Library and is not utilized by Modelica users. |
|---|
| 755 | </p> |
|---|
| 756 | |
|---|
| 757 | |
|---|
| 758 | <h4>Maintenance branch</h4> |
|---|
| 759 | <p> |
|---|
| 760 | Example: \"Modelica/branches/maintenance/2.2.1/Modelica\" |
|---|
| 761 | </p> |
|---|
| 762 | |
|---|
| 763 | <p> |
|---|
| 764 | This branch contains the released Modelica version (e.g. version 2.2.1) |
|---|
| 765 | where all bug fixes since this release date are included (up to a new release, |
|---|
| 766 | when becoming available; i.e., after a new release, the previous maintenance |
|---|
| 767 | versions are no longer changed). |
|---|
| 768 | These bug fixes might be not yet tested with all test cases or with |
|---|
| 769 | other Modelica libraries. The goal is that a vendor may take this version at |
|---|
| 770 | any time for a new release of its software, in order to incorporate the latest |
|---|
| 771 | bug fixes, without changing the version number of the Modelica Standard Library. |
|---|
| 772 | </p> |
|---|
| 773 | |
|---|
| 774 | <p> |
|---|
| 775 | Incorporation of bug fixes (subversion \"commit\") shall be performed in the following way: |
|---|
| 776 | </p> |
|---|
| 777 | |
|---|
| 778 | <ul> |
|---|
| 779 | <li>Â One person is fixing the bug and another person is checking whether the |
|---|
| 780 | Â Â Â fix is fine.</li> |
|---|
| 781 | <li>Â It is up to the library developer, whether he opens a new branch for |
|---|
| 782 | Â Â Â testing and then merges it with the \"head\" maintenance branch or not.</li> |
|---|
| 783 | <li>Â Every change to the maintenance branch has to be done at the development |
|---|
| 784 | Â Â Â branch (see above) as well.</li> |
|---|
| 785 | <li>Â Every change to the maintenance branch requires introducing a |
|---|
| 786 | Â Â Â description of the bug fix under |
|---|
| 787 | Â Â Â Modelica.UsersGuide.ReleaseNotes.<release-number>_bugFixes.</li> |
|---|
| 788 | <li>Â Every change to the maintenance branch requires changing the date |
|---|
| 789 | Â Â Â |
|---|