Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.

Slides:



Advertisements
Similar presentations
Start Presentation October 11, 2012 Thermodynamics Until now, we have ignored the thermal domain. However, it is fundamental for the understanding of physics.
Advertisements

Start of presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, 2012 Object Oriented Modeling The aim of.
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, D Mechanical Systems In this lecture,
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.
System Analysis through Bond Graph Modeling Robert McBride May 3, 2005.
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.
Start Presentation October 18, 2012 Modeling of Bipolar Transistors In this class, we shall deal with an application of mixed electrical and thermal modeling:
Start Presentation October 4, rd Homework Problem In this homework problem, we wish to exercise the application of the algorithms by Pantelides.
Lect.2 Modeling in The Frequency Domain Basil Hamed
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.
Impulse-Bond Graphs Authors: Dirk Zimmer and François E. Cellier, ETH Zürich, Institute of Computational Science, Department of Computer Science Bondgraphic.
François E. Cellier and Matthias Krebs
Start of Presentation Maple soft Conference 2006 The Need for Formulae Manipulation in the Object-oriented Modeling of Physical Systems François E. Cellier,
Jump to first page The Bipolar Junction Transistor A Bond Graph Model Michael C. Schweisguth, Graduate Student François E. Cellier, Professor Dept. of.
Lumped Modeling with Circuit Elements, Ch. 5, Text Ideal elements represent real physical systems. – Resistor, spring, capacitor, mass, dashpot, inductor…
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Start Presentation November 29, th Homework – Solution In this homework, we shall attempt the modeling of a planar mechanical system. We shall.
Lect.2 Modeling in The Frequency Domain Basil Hamed
Electrical Circuits Dr. Sarika Khushalani Solanki
Thinking Mathematically Algebra: Graphs, Functions and Linear Systems 7.3 Systems of Linear Equations In Two Variables.
FIRST ORDER TRANSIENT CIRCUITS
Start Presentation November 22, th Homework In this homework, we shall attempt the modeling of a planar mechanical system. We shall do so once.
Bond-Graphs: A Formalism for Modeling Physical Systems Sagar Sen, Graduate Student School of Computer Science H.M. Paynter.
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.
Start Presentation November 15, th Homework - Solution In this homework, we shall model and simulate a mechanical system as well as exercise the.
Bond Graphs II In this class, we shall deal with the effects of algebraic loops and structural singularities on the bond graphs of physical systems. We.
ECE 546 – Jose Schutt-Aine 1 ECE 546 Lecture -12 MNA and SPICE Spring 2014 Jose E. Schutt-Aine Electrical & Computer Engineering University of Illinois.
Start Presentation October 4, 2012 Solution of Non-linear Equation Systems In this lecture, we shall look at the mixed symbolic and numerical solution.
MTH 104 Calculus and Analytical Geometry Lecture No. 2.
Start Presentation October 11, 2012 The Theoretical Underpinnings of the Bond Graph Methodology In this lecture, we shall look more closely at the theoretical.
November 21, 2005 Center for Hybrid and Embedded Software Systems Example To illustrate how changes in DB can be used to efficiently update a block diagram,
Start Presentation November 15, 2012 Convective Mass Flows I In this lecture, we shall begin looking at the problem of convective mass flows. Irreversible.
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.
Start Presentation November 1, 2012 Treatment of Discontinuities Today, we shall look at the problem of dealing with discontinuities in models. Models.
Start Presentation October 25, th Homework - Solution In this homework, we shall exercise the modeling of a simple electrical circuit using bond.
Fundamentals of Electric Circuits Chapter 16 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
CHAPTER 32 : INDUCTANCE Source = source emf and source current Induced = emfs and currents caused by a changing magnetic field. S R I I 1st example Consider.
Numerical Methods.
Determine the mathematical models that capture the behavior of an electrical system 1.Elements making up an electrical system 2.First-principles modeling.
Start Presentation November 1, th Homework In this homework, we shall model and simulate a discontinuous system as well as train the incorporation.
Start Presentation November 8, th Homework  Solution In this homework, we shall model and simulate a discontinuous system as well as train the.
The simple pendulum (Formulation as a differential-algebraic equation) Consider a small mass m attached to a light inelastic string of length l, with the.
Section 1.2 Functions and Graphs. Relation A relation is a correspondence between the first set, called the domain, and a second set, called the range,
First Order And Second Order Response Of RL And RC Circuit
Dr. Tamer Samy Gaafar Lec. 3 Mathematical Modeling of Dynamic System.
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.
FUNDAMENTALS OF ELECTRICAL ENGINEERING [ ENT 163 ]
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Lumped Modeling with Circuit Elements, Ch. 5, Text Ideal elements represent real physical systems. – Resistor, spring, capacitor, mass, dashpot, inductor…
Automatic Control Theory CSE 322
Modeling and Simulation in Engineering using Modelica
8th Homework In this homework, we shall model and simulate a mechanical system as well as exercise the state selection algorithm. We shall first model.
Description and Analysis of Systems
FIRST AND SECOND-ORDER TRANSIENT CIRCUITS
Topics to be Discussed Steady State and Transient Response.
Lumped Modeling with Circuit Elements, Ch. 5, Text
4th Homework Solution In this homework problem, we wish to exercise the tearing and relaxation methods by means of a slightly larger problem than that.
Problem Sheet 5 Question 4
Electric Circuits Fall, 2017
Chapter 1 Basic Circuit Theory (II)
Chapter 3 Modeling in the Time Domain
5th Homework In this homework, we shall exercise the modeling of a simple electrical circuit using bond graphs. We shall also model the same electrical.
Presentation transcript:

Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional method to their mathematical description shall be discussed. This method makes use of a parameterized description of curves. Subsequently, we shall deal with the problem of variable causality. Finally, a method shall be discussed that permits to solve causality problems elegantly.

Start Presentation November 1, 2012 Table of Contents Parameterized curve descriptionsParameterized curve descriptions Causality of the switch equationCausality of the switch equation Leaking diodesLeaking diodes Singularity of switch equationSingularity of switch equation Inline integrationInline integration Causality of inline integrationCausality of inline integration

Start Presentation November 1, 2012 Parameterized Curve Descriptions It is always possible to describe discontinuous functions by means of parameterized curves. This technique shall be illustrated by means of the diode characteristic. u i blocking conducting s = 0  s s  Domain: Condition: Equations: blocking: s < 0 u = s; i = 0 conducting: s > 0 u = 0; i = s Domain = if s < 0 then blocking else conducting; u = if Domain == blocking then s else 0 ; i = if Domain == blocking then 0 else s ;

Start Presentation November 1, 2012 Switch open: Division by 0! i = 0 Switch closed: u = 0 Division by 0! The Causality of the Switch Equation I Let us consider once more the switch equation in its algebraic form: We can solve this equation either for u or for i : 0 = s · i + ( 1 – s ) · u u = s s – 1 · i Switch open: s = 1 Switch closed: s = 0 i = s s – 1 · u

Start Presentation November 1, 2012 The Causality of the Switch Equation II Neither of the two causal equations can be used in both switch positions. Either one or the other switch position leads to a division by 0. This is exactly what happens in the simulation, when the causality of the switch equation is fixed. The causality of the switch equation must always be free.  The switch equation must always be placed in an algebraic loop. 

Start Presentation November 1, 2012 An Example I C + ~ RiRi U0U0 D RLRL

Start Presentation November 1, 2012 An Example II C + ~ RiRi U0U0 D RLRL Both causalities are possible. Hence there is no problem with the simulation.

Start Presentation November 1, 2012 An Example III

Start Presentation November 1, 2012 A Second Example L C + ~ U0U0 RLRL D The causality is fixed. Thus, a problem exists with the simulation.

Start Presentation November 1, 2012 Not So Ideal Diode I One possibility for circumventing the causality problem consists in defining a leakage resistance R on for the closed switch, as well as a leakage conductance G off for the open switch. u i blocking conducting s = 0  s s  Domain: Condition: Equations: blocking: s < 0 u = s; i = G off · s conducting: s > 0 u = R on · s; i = s Domain = if s < 0 then blocking else conducting; u = s*( if Domain == blocking then 1 else R on ); i = s*( if Domain == blocking then G off else 1 );

Start Presentation November 1, 2012 Not So Ideal Diode II This is the solution that was chosen in the standard library of Modelica. The same solution is also offered in BondLib in the form of a “leaky” diode model.

Start Presentation November 1, 2012 Not So Ideal Diode III

Start Presentation November 1, 2012 Problems I For electrical applications, the solution with the leaking diode is frequently acceptable. One problem has to do with the numerics. When a circuit using the ideal diode is plagued by division problems, the circuit with the leaking diode leads invariably to a stiff system. Stiff systems can be integrated in Modelica by means of the (standard) DASSL integration algorithm. However, this is time consuming and may not be suitable, at least for real-time applications.

Start Presentation November 1, 2012 Problems II In the case of mechanical applications, the method is less suitable, since for example friction characteristics must frequently be computed rather accurately, and since in mechanical applications, the causalities are almost invariably fixed. The masses (and inertias) determine all velocities, and the friction as well as spring forces (and torques) must therefore be determined by the R- and C-elements in a pre-set causality. Consequently, another solution approach should be sought for these applications.

Start Presentation November 1, 2012 “Inline” Integration Algorithm When using Inline Integration, the integration algorithm is directly substituted into the model equations (or inversely: the model equations are being substituted into the integration algorithm). Let us consider an inductor integrated by means of the implicit Euler algorithm. u L = L · di L /dt i L (t) = i L (t  h) + h · di L (t) /dt i L (t) = i L (t  h) + (h/L) · u L (t) 

Start Presentation November 1, 2012 The Causality of Inline Integration i L (t) = i L (t  h) + (h/L) · u L (t) Known, since computed in the past. This constitutes an algebraic relation between i and u. This now looks like a resistor. Hence the causality is now free. 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.

Start Presentation November 1, 2012 Ideal Diode With Inline Integration I

Start Presentation November 1, 2012 Ideal Diode With Inline Integration II

Start Presentation November 1, 2012 References I Elmqvist, H., M. Otter, and F.E. Cellier (1995), “Inline integration: A new mixed symbolic/numeric approach for solving differential-algebraic equation systems,” Proc. ESM’95, European Simulation Multi-conference, Prague, Czech Republic, pp. xxiii – xxxiv.Inline integration: A new mixed symbolic/numeric approach for solving differential-algebraic equation systems Otter, M., H. Elmqvist, and S.E. Mattsson (1999), “Hybrid modeling in Modelica based on the synchronous data flow principle,” Proc. CACSD’99, Computer-Aided Control System Design, Hawaii.Hybrid modeling in Modelica based on the synchronous data flow principle

Start Presentation November 1, 2012 References II Krebs, M. (1997), Modeling of Conditional Index Changes, MS Thesis, Dept. of Electr. & Comp. Engr., University of Arizona, Tucson, AZ.Modeling of Conditional Index Changes Cellier, F.E. and M. Krebs (2007), “Analysis and simulation of variable structure systems using bond graphs and inline integration,” Proc. ICBGM’07, 8 th Intl. Conf. Bond Graph Modeling and Simulation, San Diego, CA, pp Analysis and simulation of variable structure systems using bond graphs and inline integration