Details

Introduction to Modeling and Simulation of Technical and Physical Systems with Modelica


Introduction to Modeling and Simulation of Technical and Physical Systems with Modelica


1. Aufl.

von: Peter Fritzson

61,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 03.10.2011
ISBN/EAN: 9781118094242
Sprache: englisch
Anzahl Seiten: 232

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Master modeling and simulation using Modelica, the new powerful, highly versatile object-based modeling language</b> <p>Modelica, the new object-based software/hardware modeling language that is quickly gaining popularity around the world, offers an almost universal approach to high-level computational modeling and simulation. It handles a broad range of application domains, for example mechanics, electrical systems, control, and thermodynamics, and facilitates general notation as well as powerful abstractions and efficient implementations. Using the versatile Modelica language and its associated technology, this text presents an object-oriented, component-based approach that makes it possible for readers to quickly master the basics of computer-supported equation-based object-oriented (EOO) mathematical modeling and simulation.</p> <p>Throughout the text, Modelica is used to illustrate the various aspects of modeling and simulation. At the same time, a number of key concepts underlying the Modelica language are explained with the use of modeling and simulation examples. This book:</p> <ul> <li> <p>Examines basic concepts such as systems, models, and simulations</p> </li> <li> <p>Guides readers through the Modelica language with the aid of several step-by-step examples</p> </li> <li> <p>Introduces the Modelica class concept and its use in graphical and textual modeling</p> </li> <li> <p>Explores modeling methodology for continuous, discrete, and hybrid systems</p> </li> <li> <p>Presents an overview of the Modelica Standard Library and key Modelica model libraries</p> </li> </ul> <p>Readers will find plenty of examples of models that simulate distinct application domains as well as examples that combine several domains. All the examples and exercises in the text are available via DrModelica. This electronic self-teaching program, freely available on the text's companion website, guides readers from simple, introductory examples and exercises to more advanced ones.</p> <p>Written by the Director of the Open Source Modelica Consortium, <i>Introduction to Modeling and Simulation of Technical and Physical Systems with Modelica</i> is recommended for engineers and students interested in computer-aided design, modeling, simulation, and analysis of technical and natural systems. By building on basic concepts, the text is ideal for students who want to learn modeling, simulation, and object orientation.</p>
<b>Preface xi</b> <p><b>1. Basic Concepts 1</b></p> <p>1.1 Systems and Experiments, 2</p> <p>1.1.1 Natural and Artificial Systems, 3</p> <p>1.1.2 Experiments, 5</p> <p>1.2 The Model Concept, 6</p> <p>1.3 Simulation, 7</p> <p>1.3.1 Reasons for Simulation, 8</p> <p>1.3.2 Dangers of Simulation, 9</p> <p>1.4 Building Models, 10</p> <p>1.5 Analyzing Models, 12</p> <p>1.5.1 Sensitivity Analysis, 12</p> <p>1.5.2 Model-Based Diagnosis, 13</p> <p>1.5.3 Model Verification and Validation, 13</p> <p>1.6 Kinds of Mathematical Models, 14</p> <p>1.6.1 Kinds of Equations, 15</p> <p>1.6.2 Dynamic Versus Static Models, 16</p> <p>1.6.3 Continuous-Time Versus Discrete-Time Dynamic Models, 17</p> <p>1.6.4 Quantitative Versus Qualitative Models, 18</p> <p>1.7 Using Modeling and Simulation in Product Design, 19</p> <p>1.8 Examples of System Models, 21</p> <p>1.9 Summary, 27</p> <p>1.10 Literature, 27</p> <p><b>2. A Quick Tour of Modelica 29</b></p> <p>2.1 Getting Started with Modelica, 30</p> <p>2.1.1 Variables and Predefined Types, 35</p> <p>2.1.2 Comments, 37</p> <p>2.1.3 Constants, 38</p> <p>2.1.4 Variability, 38</p> <p>2.1.5 Default start Values, 39</p> <p>2.2 Object-Oriented Mathematical Modeling, 39</p> <p>2.3 Classes and Instances, 41</p> <p>2.3.1 Creating Instances, 42</p> <p>2.3.2 Initialization, 43</p> <p>2.3.3 Specialized Classes, 44</p> <p>2.3.4 Reuse of Classes by Modifications, 45</p> <p>2.3.5 Built-in Classes and Attributes, 46</p> <p>2.4 Inheritance, 47</p> <p>2.5 Generic Classes, 48</p> <p>2.5.1 Class Parameters as Instances, 48</p> <p>2.5.2 Class Parameters as Types, 50</p> <p>2.6 Equations, 51</p> <p>2.6.1 Repetitive Equation Structures, 53</p> <p>2.6.2 Partial Differential Equations, 54</p> <p>2.7 Acausal Physical Modeling, 54</p> <p>2.7.1 Physical Modeling Versus Block-Oriented Modeling, 55</p> <p>2.8 The Modelica Software Component Model, 57</p> <p>2.8.1 Components, 58</p> <p>2.8.2 Connection Diagrams, 58</p> <p>2.8.3 Connectors and Connector Classes, 60</p> <p>2.8.4 Connections, 61</p> <p>2.8.5 Implicit Connections with Inner/Outer, 62</p> <p>2.8.6 Expandable Connectors for Information Buses, 63</p> <p>2.8.7 Stream Connectors, 64</p> <p>2.9 Partial Classes, 65</p> <p>2.9.1 Reuse of Partial Classes, 66</p> <p>2.10 Component Library Design and Use, 67</p> <p>2.11 Example: Electrical Component Library, 67</p> <p>2.11.1 Resistor, 68</p> <p>2.11.2 Capacitor, 68</p> <p>2.11.3 Inductor, 68</p> <p>2.11.4 Voltage Source, 69</p> <p>2.11.5 Ground, 70</p> <p>2.12 Simple Circuit Model, 70</p> <p>2.13 Arrays, 72</p> <p>2.14 Algorithmic Constructs, 74</p> <p>2.14.1 Algorithm Sections and Assignment Statements, 75</p> <p>2.14.2 Statements, 76</p> <p>2.14.3 Functions, 77</p> <p>2.14.4 Operator Overloading and Complex Numbers, 79</p> <p>2.14.5 External Functions, 81</p> <p>2.14.6 Algorithms Viewed as Functions, 82</p> <p>2.15 Discrete Event and Hybrid Modeling, 83</p> <p>2.16 Packages, 87</p> <p>2.17 Annotations, 89</p> <p>2.18 Naming Conventions, 91</p> <p>2.19 Modelica Standard Libraries, 91</p> <p>2.20 Implementation and Execution of Modelica, 94</p> <p>2.20.1 Hand Translation of the Simple Circuit Model, 96</p> <p>2.20.2 Transformation to State Space Form, 98</p> <p>2.20.3 Solution Method, 99</p> <p>2.21 History, 103</p> <p>2.22 Summary, 107</p> <p>2.23 Literature, 108</p> <p>2.24 Exercises, 110</p> <p><b>3. Classes and Inheritance 113</b></p> <p>3.1 Contract Between Class Designer and User, 113</p> <p>3.2 A Class Example, 114</p> <p>3.3 Variables, 115</p> <p>3.3.1 Duplicate Variable Names, 116</p> <p>3.3.2 Identical Variable Names and Type Names, 116</p> <p>3.3.3 Initialization of Variables, 117</p> <p>3.4 Behavior as Equations, 117</p> <p>3.5 Access Control, 119</p> <p>3.6 Simulating the Moon Landing Example, 120</p> <p>3.7 Inheritance, 123</p> <p>3.7.1 Inheritance of Equations, 124</p> <p>3.7.2 Multiple Inheritance, 124</p> <p>3.7.3 Processing Declaration Elements and Use Before Declare, 126</p> <p>3.7.4 Declaration Order of extends Clauses, 127</p> <p>3.7.5 The MoonLanding Example Using Inheritance, 128</p> <p>3.8 Summary, 130</p> <p>3.9 Literature, 130</p> <p><b>4. System Modeling Methodology 131</b></p> <p>4.1 Building System Models, 131</p> <p>4.1.1 Deductive Modeling Versus Inductive Modeling, 132</p> <p>4.1.2 Traditional Approach, 133</p> <p>4.1.3 Object-Oriented Component-Based Approach, 134</p> <p>4.1.4 Top-Down Versus Bottom-Up Modeling, 136</p> <p>4.1.5 Simplification of Models, 136</p> <p>4.2 Modeling a Tank System, 138</p> <p>4.2.1 Using the Traditional Approach, 138</p> <p>4.2.2 Using the Object-Oriented Component-Based Approach, 139</p> <p>4.2.3 Tank System with a Continuous PI Controller, 141</p> <p>4.2.4 Tank with Continuous PID Controller, 144</p> <p>4.2.5 Two Tanks Connected Together, 147</p> <p>4.3 Top-Down Modeling of a DC Motor from Predefined Components, 148</p> <p>4.3.1 Defining the System, 149</p> <p>4.3.2 Decomposing into Subsystems and Sketching Communication, 149</p> <p>4.3.3 Modeling the Subsystems, 150</p> <p>4.3.4 Modeling Parts in the Subsystems, 151</p> <p>4.3.5 Defining the Interfaces and Connections, 153</p> <p>4.4 Designing Interfaces–Connector Classes, 153</p> <p>4.5 Summary, 155</p> <p>4.6 Literature, 155</p> <p><b>5. The Modelica Standard Library 157</b></p> <p>5.1 Summary, 168</p> <p>5.2 Literature, 168</p> <p><b>A. Glossary 169</b></p> <p>Literature, 174</p> <p><b>B. OpenModelica and OMNotebook Commands 175</b></p> <p>B.1 OMNotebook Interactive Electronic Book, 175</p> <p>B.2 Common Commands and Small Examples, 178</p> <p>B.3 Complete List of Commands, 179</p> <p>B.4 OMShell and Dymola, 185</p> <p>OMShell, 185</p> <p>Dymola Scripting, 185</p> <p>Literature, 186</p> <p><b>C. Textual Modeling with OMNotebook and DrModelica 187</b></p> <p>C.1 HelloWorld, 188</p> <p>C.2 Try DrModelica with VanDerPol and DAEExample Models, 189</p> <p>C.3 Simple Equation System, 189</p> <p>C.4 Hybrid Modeling with BouncingBall, 189</p> <p>C.5 Hybrid Modeling with Sample, 190</p> <p>C.6 Functions and Algorithm Sections, 190</p> <p>C.7 Adding a Connected Component to an Existing Circuit, 190</p> <p>C.8 Detailed Modeling of an Electric Circuit, 191</p> <p>C.8.1 Equations, 191</p> <p>C.8.2 Implementation, 192</p> <p>C.8.3 Putting the Circuit Together, 195</p> <p>C.8.4 Simulation of the Circuit, 195</p> <p><b>D. Graphical Modeling Exercises 197</b></p> <p>D.1 Simple DC Motor, 197</p> <p>D.2 DC Motor with Spring and Inertia, 198</p> <p>D.3 DC Motor with Controller, 198</p> <p>D.4 DC Motor as a Generator, 199</p> <p><b>References 201</b></p> <p><b>Index 207</b></p>
<b>Peter Fritzson</b>, PhD, is Professor and Research Director of the Programming Environment Laboratory at Linköping University. Dr. Fritzson is also Director of the Open Source Modelica Consortium, Director of the MODPROD Center for Model-Based Product Development, and Vice Chairman of the Modelica Association, all organizations he helped to establish. Previously, he served as chairman of the Scandinavian Simulation Society, secretary of EuroSim, and a project leader at Sun MicroSystems.
<b>Master modeling and simulation using Modelica, the new powerful, highly versatile object-based modeling language</b> <p>Modelica, the new object-based software/hardware modeling language that is quickly gaining popularity around the world, offers an almost universal approach to high-level computational modeling and simulation. It handles a broad range of application domains, for example mechanics, electrical systems, control, and thermodynamics, and facilitates general notation as well as powerful abstractions and efficient implementations. Using the versatile Modelica language and its associated technology, this text presents an object-oriented, component-based approach that makes it possible for readers to quickly master the basics of computer-supported equation-based object-oriented (EOO) mathematical modeling and simulation.</p> <p>Throughout the text, Modelica is used to illustrate the various aspects of modeling and simulation. At the same time, a number of key concepts underlying the Modelica language are explained with the use of modeling and simulation examples. This book:</p> <ul> <li> <p>Examines basic concepts such as systems, models, and simulations</p> </li> <li> <p>Guides readers through the Modelica language with the aid of several step-by-step examples</p> </li> <li> <p>Introduces the Modelica class concept and its use in graphical and textual modeling</p> </li> <li> <p>Explores modeling methodology for continuous, discrete, and hybrid systems</p> </li> <li> <p>Presents an overview of the Modelica Standard Library and key Modelica model libraries</p> </li> </ul> <p>Readers will find plenty of examples of models that simulate distinct application domains as well as examples that combine several domains. All the examples and exercises in the text are available via DrModelica. This electronic self-teaching program, freely available on the text's companion website, guides readers from simple, introductory examples and exercises to more advanced ones.</p> <p>Written by the Director of the Open Source Modelica Consortium, <i>Introduction to Modeling and Simulation of Technical and Physical Systems with Modelica</i> is recommended for engineers and students interested in computer-aided design, modeling, simulation, and analysis of technical and natural systems. By building on basic concepts, the text is ideal for students who want to learn modeling, simulation, and object orientation.</p>

Diese Produkte könnten Sie auch interessieren:

Hot-Melt Extrusion
Hot-Melt Extrusion
von: Dennis Douroumis
PDF ebook
136,99 €
Hot-Melt Extrusion
Hot-Melt Extrusion
von: Dennis Douroumis
EPUB ebook
136,99 €
Kunststoffe
Kunststoffe
von: Wilhelm Keim
PDF ebook
99,99 €