实例介绍
Peter A Fritzson算是modelica教材之父了吧,他第一本教材900多页,这本相对易入门,能找到的估计不多。
Introduction to Modeling and simulation of Technical and Physical Systems with Modelica EEE Press 445 Hoes lane Piscataway, NJ 08854 IEEE Press editorial board Lajos Hanzo, Editor in Chief R. Abhari M. El-Hawary P. Malik J. Anderson B-M. Haemmerli s Nahavandi G. W. Arnold M. Lanzerotti T Samad F. Canavero D, Jacobson G. Zobrist Kenneth Moore, Director of Ieee Book and Information Services(BIS) Introduction to Modeling and simulation of Technical and Physical Systems with Modelica Peter fritzson ◆I EEE IEEE Press WILEY A John Wiley sons, Inc, Publication Forfurthcrinformationvisitthebookwcbpagchttp:/www.opcnmodclica.org,theModelicaAssociationwcb pagehttp://www.modelica.org,theauthorsresearchpagehttp://www.ida.liu.se/labs/pelab/modelica,orhome pagehttp://www.ida.liuse/petfr/,oremailtheauthoratpeterfritzson@liu.se.Certainmaterialfromthe ModelicaTutorialandthemOdelicalaNguageSpecificationavailableathttp:/www.modelicaorghasbeen reproduced in this book with permission from the Modelica Association under the Modelica License 2 Copyright o 1998-2011, Modelica Association, see the license conditions (including the disclaimer of warranty)athttp://www.modelica.org/modelica-legal-documents/modelicalicense2.htmlLicensedby Modelica association undcr thc modelica liccnsc 2 Modelica/R)is a registered trademark of the Modelica Association. MathModelica'R) is a registered trademark of MathCore Engineering AB. Dymola( is a registered trademark of Dassault Systemes MATLAB and Mathematica R is a registered trademark of Wolfram Research h a trademark of Sun MicroSystems AB Copyright o 201l by the Institute of Electrical and Electronics Engineers, Inc Published by John Wiley Sons, Inc, Hoboken, New Jersey. All rights reserved Published simultaneously in Canada No part of this publication Imlay be reproduced, stored inl a retrieval syslelll, or transMitted in any lorin or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc, 222 Rosewood Drive, Danvers, MA 01923, (978)750-8400, fax(978) 750-4470,oronthewebatwww.copyright.comRequeststothePublisherforpermissionshouldbe ddressed to the Permissions Department, John wiley sons, Inc, Il l River Street, Hoboken, NJ 07030 (201)748-6011,Tax(201)748-6008,Oronlineathllp://www.wiley.congo/pernission Limit of Liabilily/Disclaimer of Warranty: While the publisher and author have used their best efforts inl preparing this book, thcy makc no rcprcscntations or warranties with rcspcct to thc accuracy or complctcncss of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials The advice and strategies contained herein may not be suitable for your situation. You should consult with professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages For general information on our other products and services or for technical support, please contact our Customer Care Department within the United States at(800)762-2974, outside the United States at (317) 572-3993 or fax(317)5724002 Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic formats. For more information about Wiley products, visit our web site at www.wiley.com Lihrary of congress Cataloging-in-Publication Data Fritzson. Peter A.1952 Introduction to modeling and simulation of technical and physical systems with Modelica eter Fritzson Includes bibliographical rcfcrcnccs and index ISBN978-1-118-010686( cloth Systems engineering-Data processing. 2. Computer simulation. 3. Modelica. I. Title TAl68F76201I 003.3-dc22 2011002187 Printed in si eBook Isn:978-1-118-09425-9 ePDE ISBN:978-1-118-09424-2 10987654321 Contents reface 1. Basic Concepts 1. 1 Systems and Experiments, 2 1.1.1 Natural and Artificial Systems, 3 1.1.2 Experiments, 5 1.2 The Model ce 3 Simulation. 7 1.3.1 Reasons for Simulation. 8 1. 3.2 Dangers of simulation 9 1.4 Building Models, 10 1.5 Analyzing Models, 12 1.5.1Ser ity Analysis. 12 1. 5.2 Model-Based di 5.3 Model verification and validation. 13 1. 6 Kinds of mathematical models. 14 1.6.1 Kinds of Equations, 15 1.6.2 Dynamic Versus Static Models, 16 1.6.3 Continuous-Time Versus Discrete-Time Dynamic Models, 17 1.6.4 Quantitative Versus Qualitative Models, 18 7 USing Modeling and Simulation in Product Design, 19 1. 8 Examples of System Models, 21 1. 9 Summary, 27 1. 10 Literature. 27 2.A Quick Tour of modelica 29 2.1 Getting Started with modelica. 30 2.1.1 Variables and Predefined Types, 35 2.1.2 Comments. 37 2.1.3 Constants. 38 Contents 2. 1. 4 variability. 3 8 5 Default start values. 39 2.2 Object-Oriented Mathematical Modeling, 39 2. 3 Classes and Instances. 41 2.3.1 Creating Instances, 42 2.3.2 Initialization. 43 2.3.3S pecialized Classes. 44 2.3.4 Reuse of Classes by Modifications, 45 2.3.5 Built-in Classes and Attributes, 46 2. 4 Inheritance. 47 5 Generic Classes. 48 2.5.1 Class Parameters as Instances. 48 2.5.2 Class p yp 2.6 Equations, 51 2.6.1 Repetitive equation Structures, 53 2.6.2 Partial Differential Equations, 54 2.7 Acausal Physical Modeling, 54 2.7.1 Physical Modeling Versus Block-Oriented odeling. 55 2.8 The Modelica Software Component Model, 57 2.8.1c ents. 58 2.8.2 Connection Diagrams, 58 2.8.3 Connectors and Connector Classes. 60 2.8.4 Connections. 61 8.5 Implicit Connections with Inner/Outer,62 2.8.6 Expandable Connectors for Information Buses, 63 2.8.7 Stream connectors. 64 2.9 Partial Classes. 65 2.9.1R of Partial cl 2. 10 Component Library Design and Use, 67 2.11 Example: Electrical C nt Library, 67 2.11.1 Resistor. 68 2.11.2 Capacitor, 68 2.11. 3 Inductor. 68 2.11. 4 Voltage source, 69 2.11.5 Ground,70 2. 12 Simple Circuit Model, 70 13 Arrays, 72 2.14 Algorithmic constructs. 74 Contents y 2.14.1 Algorithm Sections and Assignment Statements, 75 2.14.2 Statements. 76 2.14.3 Functi 77 2.14.4 Operator Overloading and Complex Numbers, 79 2.14.5 External functions. 81 2. 14.6 Algorithms viewed as Functions. 82 2. 15 Discrete Event and Hybrid Modeling, 83 2.16 Packa 87 2.17 Annotations. 89 2.18 Naming Conventions, 91 2.19 Modelica Standard Libraries. 91 2.20 Implementation and Execution of Modelica, 94 2.20.1 Hand Translation of the Simple circuit Model, 96 2.20.2 Transformation to State Space Form, 98 2.20.3 Solution method. 99 2.21 History, 103 2.22 Summary, 107 2.23 Literature. 108 2.24 Exercises. 110 3. Classes and inheritance 113 3.1 Contract Between Class Designer and User, 113 3.2 A Class example, 114 3.3 Variables. 115 3.3.1 Duplicate variable Names, 116 3.3.2 Identical Variable Names and Type Names, 116 3.3.3 Initialization of variables. 117 3.4 Behavior as Equations, 117 3.5A Control. 119 3.6 Simulating the Moon Landing Example, 120 3.7 Inheritance. 123 3.7.1 Inheritance of Equations,124 3.7.2 Multiple Inheritance,124 3.7.3 Processing declaration Elements and Use Before Declare. 126 3.7.4 Declaration order of extends Clauses. 127 3.7.5 The MoonLanding Example Using Inheritance. 128 vIll Contents 3.8 Summary, 130 3.9 Literature. 130 4. System Modeling Methodology 131 4.1 Building System Models, 131 4.1.1 Deductive Modeling Versus Inductive Modeling, 132 4. 1. 2 Traditional Approach, 133 4.1.3 Object-Oriented Component-Based Ap pproach, 134 4.1.4 Top-Down Versus Bottom-Up Modeling, 136 4.1.5 Simplification of Models, 136 4.2 Modeling a Tank System, 138 4.2.1 Using the Traditional Approach, 138 4.2.2 USing the Object-Oriented Component-Based Approach, 139 4.2.3 Tank System with a Continuous PI Controller, 141 4.2.4 Tank with Continuous pid controller. 144 4.2.5 Two Tanks Connected Together, 147 4.3 Top-Down Modeling of a DC Motor from Predefined Components. 148 4.3. 1 Defining the System, 149 4.3.2 Decomposing into Subsystems and sketching Communication. 149 4.3.3 Modeling the Subsystems, 150 4.3.4 Modeling Parts in the Subsystems, 151 4.3.5 Defining the Interfaces and Connections 153 4.4 Designing Interfaces-Connector Classes, 153 4.5 Summary, 155 4.6 Literature. 155 5. The Modelica Standard Library 157 5.1 Summary, 168 5.2 Literature. 168 A. Glossary 169 Literature. 174 B OpenModelica and oMNotebook Commands 175 B. 1 OMNotebook Interactive Electronic Book. 175 B 2 Common Commands and Small examples, 178 【实例截图】
【核心代码】
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论