Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, 2012 Object Oriented Modeling The aim of.

Slides:



Advertisements
Similar presentations
Boundary Conditions. Objective of Lecture Demonstrate how to determine the boundary conditions on the voltages and currents in a 2 nd order circuit. These.
Advertisements

Ohms Law Benchmark Companies Inc PO Box Aurora CO
Chapter 10: Designing Databases
Enter. Looking for modelling software? Need ways to understand your process better? Looking for specialist to develop process.
ECO-BOND GRAPHS An Energy-Based Modeling and Simulation Framework for Complex Dynamic Systems with a focus on Sustainability and Embodied Energy Flows.
Lecture 6: Software Design (Part I)
DC Analysis Engr. Fahmi Samsuri, FKEE, UMP 4/6/2017.
System Simulation made easy by. Multi-Physics System Simulator Electrical Electronics, power electronics, rotating machines, spice semiconductors… Mechanics.
Modeling Main issues: What do we want to build How do we write this down.
Modeling Electrical Systems With EMTP-RV
Fundamentals of Electric Circuits
Quiz 1 a) Find the currents i1 and i2 in the circuit in the figure. b) Find the voltage vo. c) Verify that the total power developed equals the total power.
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, D Mechanical Systems In this lecture,
Start Presentation November 8, 2012 Bond Graphs for Mechanical Systems We shall look today in a bit more detail at the modeling of 1D mechanical systems.
System Analysis through Bond Graph Modeling Robert McBride May 3, 2005.
Start Presentation November 8, 2012 Planar Mechanics We shall now look at a first application of multi- bond graphs: planar mechanics. We shall notice.
Introduction to PSpice Simulation Software. The Origins of SPICE In the 1960’s, simulation software begins –CANCER Computer Analysis of Nonlinear Circuits,
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
Unified Modeling Language
The Dymola Bond Graph Library
Start of presentation Advanced Simulation Technologies Conference April 18-22, 2004 François E. Cellier, Ph.D. Professor and Director of Undergraduate.
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, st Homework Problem We wish to analyze.
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Electrical CircuitsI This lecture discusses the mathematical.
Dirk Zimmer François E. Cellier Institute of Computational Science Department of Computer Science ETH Zürich A bondgraphic modeling tool and its application.
Start of Presentation © Prof. Dr. François E. Cellier 3 rd MODPROD Workshop – Keynote February 4, 2009 Technologies for Creating Easily Maintainable Component.
François E. Cellier and Matthias Krebs
An framework for model-driven product design and development using Modelica Adrian Pop, Olof Johansson, Peter Fritzson Programming Environments Laboratory.
Unified Modeling (Part I) Overview of UML & Modeling
Geographic Information Systems
V–2 AC Circuits Main Topics Power in AC Circuits. R, L and C in AC Circuits. Impedance. Description using Phasors. Generalized.
Lesson 24 AC Power and Power Triangle
Objective of the Lecture Describe a basic electric circuit, which may be drawn as a circuit schematic or constructed with actual components.
Start Presentation November 15, th Homework In this homework, we shall exercise the model wrapping technique. To this end, we shall create a mini-library.
Chapter 20: Circuits Current and EMF Ohm’s Law and Resistance
22/12/2014.
A Library for Synchronous Control Systems in Modelica Martin Otter Bernhard Thiele Hilding Elmqvist DLR Dassault Systèmes Institute of System Dynamics.
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
Multimedia Teaching Tool SimArch V1.0 Faculty of Electronic Engineering University of Nis Serbia.
Prepared by: Sanaz Helmi Hoda Akbari Zahra Ahmadi Sharif University of Tech. Summer 2006 An Introduction to.
MathCore Engineering AB Experts in Modeling & Simulation WTC.
ECO-BOND GRAPHS An Energy-Based Modeling and Simulation Framework for Complex Dynamic Systems with a focus on Sustainability and Embodied Energy Flows.
Chapter 9 Moving to Design
Start Presentation November 24, th Homework In this homework, we shall exercise the model wrapping technique. To this end, we shall create a mini-library.
Step Response Series RLC Network.
EENG 2610: Circuit Analysis Class 11: Capacitor and Inductor Combinations RC Operational Amplifier Circuits Oluwayomi Adamo Department of Electrical Engineering.
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
Framework for Virtual Web Laboratory I. Petković M. Rajković.
FUNDAMENTALS OF ELECTRICAL ENGINEERING [ ENT 163 ]
Digital Design Using VHDL and PLDs ECOM 4311 Digital System Design Chapter 1.
Multi-bond Graphs We shall today look at vectors of bonds, called multi-bonds. Especially when dealing with 2D and 3D mechanics, the d’Alembert principle.
Start Presentation October 4, 2012 Efficient Solution of Equation Systems This lecture deals with the efficient mixed symbolic/numeric solution of algebraically.
MANAGING COMPLEXITY Lecture OO01 Introduction to Object-oriented Analysis and Design Abstract Data Types.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
EASTERN MEDITERRANEAN UNIVERSITY EE 529 Circuits and Systems Analysis Mustafa Kemal Uyguroğlu.
Systems Realization Laboratory SysML-based Reference Models for Fluid Power Components Chris Paredis, Raphael Kobi Product & Systems Lifecycle Management.
Piero Belforte, HDT 1999: PRESTO POWER by Alessandro Arnulfo.
Lesson 21: AC Power and Power Triangle
DELLSOFT Technologies Pvt. Ltd.
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Geographic Information Systems
Programmable Logic Devices: CPLDs and FPGAs with VHDL Design
Capacitors and Inductors
Informatics 121 Software Design I
Lecture 2 - Circuit Elements and Essential Laws
The Electric Circuit.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
SysML-based Reference Models for Fluid Power Components
Lecture 2 - Circuit Elements and Essential Laws
Lecture 2 Electrical and Electronics Circuits. After you study, and apply ideas in this Lecture, you will: Understand differences among resistance, capacitance,
Presentation transcript:

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, 2012 Object Oriented Modeling The aim of this lecture is to illustrate the requirements of a software environment for object-oriented modeling of physical systems and to show how these requirements can be met in practice. The lecture offers a first glimpse at features and capabilities of Dymola, a software environment created for the purpose of modeling complex physical systems in an object-oriented fashion. Dymola offers a graphical user interface. Some features of the underlying textual model representation, called Modelica, are also introduced.

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Table of Contents The causality of the model equations Graphical modeling Model structure in ModelicaModel structure in Modelica Model topology in ModelicaModel topology in Modelica Inheritance rules Hierarchical modeling September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier The Causality of the Model Equations U 0 i + R I 0 I 0 R U 0 = f(t) i = U 0 / R I 0 = f(t) u = R· I 0 Identical Objects Different Equations The causality of the equations must not be predetermined. It can only be decided upon after the analysis of the system topology.  -- September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Basic Requirements of OO Modeling Physical objects should be representable by mathematical graphical objects. The graphical objects should be topologically connectable. The mathematical models should be hierarchically describable. To this end, it must be possible to represent networks of coupled objects again as graphical objects. September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier An Example model Circuit1 SineVoltage U0(V=10, freqHz=2500); Resistor R1(R=100); Resistor R2(R=20); Capacitor C(C=1E-6); Inductor L(L=0.0015); Ground Ground; equation connect(U0.p, R1.p); connect(R1.n, C.p); connect(R2.p, R1.n); connect(U0.n, C.n); connect(Ground.p, C.n); connect(L.p, R1.p); connect(L1.n, Ground.p); connect(R2.n, L.n); end Circuit1;  DymolaModelica September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Graphical Information (Annotation) package CircuitLib annotation (Coordsys( extent=[0, 0; 504, 364], grid=[2, 2], component=[20, 20])); model Circuit1 annotation (Coordsys( extent=[-100, -100; 100, 100], grid=[2, 2], component=[20, 20])); Modelica.Electrical.Analog.Sources.SineVoltage U0(V=10, freqHz=2500) annotation (extent=[-80, -20; -40, 20], rotation=-90); Modelica.Electrical.Analog.Basic.Resistor R1(R=100) annotation (extent=[ -40, 20; 0, 60], rotation=-90); Modelica.Electrical.Analog.Basic.Capacitor C(C=1E-6) annotation (extent=[-40, -60; 0, -20], rotation=-90); Modelica.Electrical.Analog.Basic.Resistor R2(R=20) annotation (extent=[0, -20; 40, 20]); Modelica.Electrical.Analog.Basic.Inductor L(L=0.0015) annotation (extent=[40, 20; 80, 60], rotation=-90); Modelica.Electrical.Analog.Basic.Ground Ground annotation (extent=[0, -100; 40, -60]); equation connect(U0.p, R1.p) annotation (points=[-60, 20; -60, 60; -20, 60], style(color=3)); connect(R1.n, C.p) annotation (points=[-20, 20; -20, -20], style(color=3)); connect(R2.p, R1.n) annotation (points=[0, 0; -20, 0; -20, 20], style(color=3)); connect(U0.n, C.n) annotation (points=[-60, -20; -60, -60; -20, -60], style(color=3)); connect(Ground.p, C.n) annotation (points=[20, -60; -20, -60], style(color=3)); connect(L.p, R1.p) annotation (points=[60, 60; -20, 60], style(color=3)); connect(L.n, Ground.p) annotation (points=[60, 20; 60, -60; 20, -60], style(color=3)); connect(R2.n, L.n) annotation (points=[40, 0; 60, 0; 60, 20], style(color=3)); end Circuit1; end CircuitLib; September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Models in Modelica Models in Modelica consist of a description of their model structure as well as a description of their embedding in the model environment: model Model name Description of the model embedding; equation Description of the model structure; end Model name; September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Model Structure in Modelica The model structure in Modelica consists either of a set of equations, a description of the model topology, or a combination of the two types of model structure descriptions. A topological model description is usually done by dragging and dropping model icons from graphical model libraries into the modeling window. These models are then graphically interconnected among each other. The stored textual version of the topological model consists of a declaration of its sub-models (model embedding), a declaration of its connections (model structure), as well as a declaration of the graphical description elements (annotation). September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Model Topology in Modelica Class name Instance name Modifier Connection Connector model MotorDrive PI controller; Motor motor; Gearbox gearbox(n=100); Shaft Jl(J=10); Tachometer wl; equation connect(controller.out, motor.inp); connect(motor.flange, gearbox.a); connect(gearbox.b, Jl.a); connect(Jl.b, wl.a); connect(wl.w, controller.inp); end MotorDrive; September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Resistors in Modelica R i v p v n u connector Pin Voltage v; flow Current i; end Pin; model Resistor "Ideal resistor" Pin p, n; Voltage u; parameter Resistance R; equation u = p.v - n.v; p.i + n.i = 0; R*p.i = u; end Resistor; Voltage type ElectricPotential = Real (final quantity="ElectricPotential", final unit="V"); type Voltage = ElectricPotential; September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Similarity Between Different Elements R i v p v n u model Resistor "Ideal resistor" Pin p, n; Voltage u; parameter Resistance R; equation u = p.v - n.v; p.i + n.i = 0; R*p.i = u; end Resistor; model Capacitor "Ideal capacitor" Pin p, n; Voltage u; parameter Capacitance C; equation u = p.v - n.v; p.i + n.i = 0; C*der(u) = p.i; end Capacitor; C i v p v n u September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Partial Models and Inheritance i v p v n u partial model OnePort Pin p, n; Voltage u; equation u = p.v - n.v; p.i + n.i = 0; end OnePort; model Resistor "Ideal resistor" extends OnePort; parameter Resistance R; equation R*p.i = u; end Resistor; model Capacitor "Ideal capacitor" extends OnePort; parameter Capacitance C; equation C*der(u) = p.i; end Capacitor; i v p v n u R i v p v n u C September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Decomposition and Abstraction Courtesy Toyota Tecno-Service September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Heterogeneous Modeling Formalisms September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Simulation and Animation Modeling Window Animation Window September 20, 2012

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier References Brück, D., H. Elmqvist, H. Olsson, and S.E. Mattsson (2002), “Dymola for Multi-Engineering Modeling and Simulation,” Proc. 2 nd International Modelica Conference, pp. 55:1-8.Dymola for Multi-Engineering Modeling and SimulationProc. 2 nd International Modelica Conference Otter, M. and H. Elmqvist (2001), “Modelica: Language, Libraries, Tools, Workshop, and EU-Project RealSim,” Modelica web-site.Modelica: Language, Libraries, Tools, Workshop, and EU-Project RealSim Modelica web-site September 20, 2012