François E. Cellier and Matthias Krebs

Slides:



Advertisements
Similar presentations
Introductory Circuit Analysis Robert L. Boylestad
Advertisements

ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Lect.3 Modeling in The Time Domain Basil Hamed
Start Presentation October 11, rd Homework Solution In this homework problem, we wish to exercise the application of the algorithms by Pantelides.
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.
Start Presentation September 27, 2012 The Structural Singularity Removal Algorithm by Pantelides This lecture deals with a procedure that can be used to.
a b  R C I I R  R I I r V Lecture 10, ACT 1 Consider the circuit shown: –What is the relation between V a - V d and V a - V c ? (a) (V a -V d ) < (V.
FIRST AND SECOND-ORDER TRANSIENT CIRCUITS
Start Presentation November 8, 2012 Planar Mechanics We shall now look at a first application of multi- bond graphs: planar mechanics. We shall notice.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Review Resources: Wiki: State Variables YMZ: State Variable Technique Wiki: Controllability.
Start Presentation October 4, rd Homework Problem In this homework problem, we wish to exercise the application of the algorithms by Pantelides.
ECE 3336 Introduction to Circuits & Electronics
The Dymola Bond Graph Library
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Electrical CircuitsI This lecture discusses the mathematical.
Physics 1402: Lecture 11 Today’s Agenda Announcements: –Lectures posted on: –HW assignments, solutions.
Computational Biology, Part 17 Biochemical Kinetics I Robert F. Murphy Copyright  1996, All rights reserved.
Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 4, 2008 Support for Dymola in the Modeling and Simulation of Physical Systems.
Start of Presentation © Prof. Dr. François E. Cellier 3 rd MODPROD Workshop – Keynote February 4, 2009 Technologies for Creating Easily Maintainable Component.
Week2bEECS 42, Spring 2005Prof. White Find i 2, i 1 and i o Circuit w/ Dependent Source Example.
Start of Presentation Maple soft Conference 2006 The Need for Formulae Manipulation in the Object-oriented Modeling of Physical Systems François E. Cellier,
Efficient Simulation of Physical System Models Using Inlined Implicit Runge-Kutta Algorithms Vicha Treeaporn Department of Electrical & Computer Engineering.
Fundamentals of Power Electronics 1 Chapter 20: Quasi-Resonant Converters Chapter 20 Quasi-Resonant Converters Introduction 20.1The zero-current-switching.
Ordinary Differential Equations (ODEs)
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Time Scales Virtual Clocks and Algorithms Ricardo José de Carvalho National Observatory Time Service Division February 06, 2008.
Start Presentation November 29, th Homework – Solution In this homework, we shall attempt the modeling of a planar mechanical system. We shall.
First-Order Circuits. Now that we have considered the three passive elements (resistors, capacitors, and inductors), we are prepared to consider circuits.
Transient Analysis - First Order Circuits
FIRST ORDER TRANSIENT CIRCUITS
Chapter 7 In chapter 6, we noted that an important attribute of inductors and capacitors is their ability to store energy In this chapter, we are going.
ES250: Electrical Science
Start Presentation November 22, th Homework In this homework, we shall attempt the modeling of a planar mechanical system. We shall do so once.
Start Presentation October 25, 2012 Thermal Modeling of Buildings This lecture deals with the model of a space heating system of a building by means of.
ME451 Kinematics and Dynamics of Machine Systems
ECE 2300 Circuit Analysis Dr. Dave Shattuck Associate Professor, ECE Dept. Lecture Set #13 Step Response W326-D3.
Simpson Rule For Integration.
Start PresentationSeptember 21, 2009 Modeling Chemical Reactions in Modelica By Use of Chemo-bonds Prof. Dr. François E. Cellier Department of Computer.
Chapter 4 Techniques of Circuit Analysis So far we have analyzed relatively simple resistive circuits by applying KVL and KCL in combination with Ohm’s.
Electromagnetism Lecture#7 Instructor: Engr. Muhammad Mateen Yaqoob.
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Start Presentation November 1, 2012 Treatment of Discontinuities Today, we shall look at the problem of dealing with discontinuities in models. Models.
Chapter 7 In chapter 6, we noted that an important attribute of inductors and capacitors is their ability to store energy In this chapter, we are going.
Start of presentation September 27, 2012 Algebraic Loops and Structural Singularities The sorting algorithm, as it was demonstrated so far, does not always.
A New Methodology for Systematic Conceptual Design by means of Generalized Discrete Representations Research group conducted by Dr. Offer Shai Department.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
Motivation Thus far we have dealt primarily with the input/output characteristics of linear systems. State variable, or state space, representations describe.
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
ECE 2300 Circuit Analysis Dr. Dave Shattuck Associate Professor, ECE Dept. Lecture Set #14 Special Cases and Approaches with First Order Circuits
Start Presentation November 1, th Homework In this homework, we shall model and simulate a discontinuous system as well as train the incorporation.
Hirophysics.com RC Circuits and its Physical Simulation Richard Robbins.
Start Presentation November 8, th Homework  Solution In this homework, we shall model and simulate a discontinuous system as well as train the.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
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.
Linear Constant-Coefficient Difference Equations
Start Presentation October 4, 2012 Efficient Solution of Equation Systems This lecture deals with the efficient mixed symbolic/numeric solution of algebraically.
Section 4.2 Solving Systems of Equations by Substitution.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
CHAPTER 5 DC TRANSIENT ANALYSIS.
Dynamic Presentation of Key Concepts Module 6 – Part 4 Special Cases and Approaches with First Order Circuits Filename: DPKC_Mod06_Part04.ppt.
Dynamic Presentation of Key Concepts Module 6 – Part 2 Natural Response of First Order Circuits Filename: DPKC_Mod06_Part02.ppt.
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
Basics of Logic gates - Part 1
Linear Constant-Coefficient Difference Equations
DEPT.:-ELECTRONICS AND COMMUNICATION SUB: - CIRCUIT & NETWORK
Business Mathematics MTH-367
FIRST AND SECOND-ORDER TRANSIENT CIRCUITS
Chapter 8 Second Order Circuits
Chapter 7 In chapter 6, we noted that an important attribute of inductors and capacitors is their ability to store energy In this chapter, we are going.
Chapter 2 – Circuit Elements
CHAPTER 59 TRANSISTOR EQUIVALENT CIRCUITS AND MODELS
Presentation transcript:

François E. Cellier and Matthias Krebs Analysis and Simulation of Variable Structure Systems Using Bond Graphs and Inline Integration François E. Cellier and Matthias Krebs ETH Zürich DaimlerChrysler AG

Outline Motivation Problem Mathematical Switch Model Diodes With Free Causality Inline Integration Diodes With Fixed Causality Numerical Accuracy Conclusions

Motivation Many engineering models contain discontinuities that can be modeled by switching events. Although switches can be represented easily in a bond graph, models containing ideal switches are notoriously difficult to simulate. Whereas non-ideal switches resolve the conceptual difficulties of dealing with switching events, the resulting simulation results are sometimes highly inaccurate.

Summary A new simulation algorithm was developed, based on inline integration, that is capable of simulating switching events reliably and accurately. The algorithm was implemented in Dymola/Modelica, but could also be implemented easily in other bond graph modeling environments. The paper describes the conceptual problem of dealing with ideal switching events; it explains, how the new approach circumvents these difficulties; and it demonstrates the solution by means of some simple examples.

A First Example Let us start with the following very simple electronic circuit. It can be modeled and simulated easily in Dymola using the standard Modelica library. The simulation does not cause any particular difficulties.

A Second Example Let us now model and simulate a second, slightly modified, electronic circuit using the standard Modelica library. The diode is modeled as an ideal element. This time around, the simulation dies with a division by zero. A non-ideal diode (with a leakage resistance in its closed position and a leakage conductance in its open position) solves the problem apparently. The default diode model in the standard Modelica library is a leaky diode.

Bond Graph Representation Let us represent the two circuits by corresponding bond graphs. On the former circuit, the causality on the diode is free, whereas it is fixed on the latter.

Mathematical Switch Model The switch can be modeled mathematically by the following equation: sw = 1, switch is open 0, switch is closed { The two possible solutions are: and The left solution produces a division by zero in the open position, whereas the right solution produces a division by zero in the closed position.

Mathematical Switch Model II We conclude that a fixed computational causality of the diode leads invariably to a division by zero in one of the two switch positions. Hence any model that makes use of ideal switches must prevent the causality of a switching element to ever be fixed. We still need to analyze what happens when the causality of the diode is allowed to change.

Diodes With Free Causality Let us analyze the first circuit a bit further. The circuit can be represented by seven equations: Algebraic loop in three equations and three unknowns (uR1, iD, uD). }

Diodes With Free Causality II We use the tearing approach for converting the algebraic loop to its causal form. To this end, we solve the switch equation for iD, while substituting uD and uR1 from the other two equations:  This set of equations works in both switch positions. There is no division by zero.

Free Diodes Avoid Exception Krebs showed in his MS thesis that: As long as every independent switch can change its computational causality freely and independently of all other independent switches, there is no division by zero in either switch position. The causality of a switch can be constrained by either a capacitor or an inductor, in which case we are confronted with a variable index problem. The causality of a switch can alternatively be constrained by a source, in which case we are confronted with a non-physical condition, such as a short-circuit or a floating circuit.

Inline Integration “Inlining” an integrator means appending the solver equation for that integrator to the set of model equations, thereby converting the corresponding differential equation to a difference equation. Individual integrators can be inlined separately. Different inlined integrators can use different integration algorithms.

Inlining The Inductor  Let us inline the inductor that constrains the causality of the diode in the second circuit by appending a backward Euler formula. uL = L · diL /dt iL(t) = iL(t-h) + h · diL(t) /dt iL(t) = iL(t-h) + (h/L) · uL(t) 

The Causality of Inline Integration iL(t) = iL(t-h) + (h/L) · uL(t) This constitutes an algebraic relation between i and u. This now looks like a resistor. Hence the causality is now free. Known, since computed in the past. When using the inline integration algorithm, the causalities of the so integrated storage elements are being freed up. Consequently, the division by zero problem disappears.

Diodes With Fixed Causality Let us analyze the second circuit a bit further. The circuit can be represented by eight equations: Algebraic loop in four equations and four unknowns (uL, iD, diD, uD).

Diodes With Fixed Causality II Let us solve the algebraic loop by tearing: As in the previous example, this set of equations works in both switch positions. There is no division by zero. 

Implementation in Dymola

Numerical Accuracy Let us compare the inlined inductor approach with the leaky diode approach: The leaky diode uses a leakage resistance of 10-5Ω, and a leakage conductance of 10-5 mho.

Numerical Accuracy II Although the leakage resistance and leakage conductance values are very small, the results of the two simulations are quite different. The discrepancy disappears when the leakage resistance is reduced to 10-10Ω, and when the leakage conductance is reduced to 10-10 mho. Inlined inductor leaky diode Using fudge values in models is often dangerous, as the user is not aware of their influence, and often not even of their existence.

Conclusions It has been shown that inline integration can be used to resolve the division-by-zero problem occurring in the simulation of causality-constrained switches. The use of inline integration avoids the introduction of fudge parameters that may falsify the simulation results. Inline integration can be applied to each integrator individually, i.e., there is no need to inline all integrators, only those that constrain switch equations. The bond graph technique enables the modeler to analyze the causality constraints easily and quickly, thereby providing him or her with guidance as to which integrators need to be inlined.

Conclusions II The new version of BondLib, Dymola’s bond graph library, contains inlined inductor and capacitor models. Inlining has to be done manually at the current time, although it would principally be possible to implement an algorithm that finds automatically the integrators that need to be inlined. The current implementation of inlined integrators works with a fixed step size, i.e., doesn’t tie into Dymola’s step-size control algorithm. This is a pity, as another fudge parameter is being introduced in this fashion, namely the fixed step size, h. Yet, this is not a conceptual problem, only an issue with the current implementation.

The End Any Questions?