Bond-Graphs: A Formalism for Modeling Physical Systems Sagar Sen, Graduate Student School of Computer Science H.M. Paynter.

Slides:



Advertisements
Similar presentations
Lect.3 Modeling in The Time Domain Basil Hamed
Advertisements

System Analysis through Bond Graph Modeling Robert McBride May 3, 2005.
Foundations of Physics
© 2007 Pearson Prentice Hall This work is protected by United States copyright laws and is provided solely for the use of instructors in teaching their.
Lect.2 Modeling in The Frequency Domain Basil Hamed
Transducers Devices to transform signals between different physical domains. Taxonomy –Active: input signal modulates output energy; e.g. liquid crystal.
T-Norah Ali Al-moneef King Saud University
ECE53A Introduction to Analog and Digital Circuits Lecture Notes Second-Order Analog Circuit and System.
Lumped Modeling with Circuit Elements, Ch. 5, Text Ideal elements represent real physical systems. – Resistor, spring, capacitor, mass, dashpot, inductor…
Physics 6B Electric Current And DC Circuit Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Circuit Theory What you will use this for –Power management –Signals between subsystems –Possible analog data types How the knowledge will help you –Understanding.
Lecture B Electrical circuits, power supplies and passive circuit elements.
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 2 Basic Circuit Laws
SPH3U – Physics 11 University Preparation – Unit 5 – Electricity & Magnetism Created by: Mr. D. Langlois – GECDSB – SPH3U.
Chapter 32 Inductance.
Chapter 4 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS 367: Model-Based Reasoning Lecture 13 (02/26/2002) Gautam Biswas.
Electromagnetic Oscillations and Alternating Current
Jimmy C. Mathews Advisors: Dr. Joseph Picone Dr. David Gao The BOND GRAPH Methodology for Modeling of Continuous Dynamic Systems and its Application in.
FIRST ORDER TRANSIENT CIRCUITS
Jimmy C. Mathews Advisors: Dr. Joseph Picone Dr. David Gao Powertrain Design Tools Project The BOND GRAPH Methodology for Modeling of Continuous Dynamic.
In Engineering --- Designing a Pneumatic Pump Introduction System characterization Model development –Models 1, 2, 3, 4, 5 & 6 Model analysis –Time domain.
Electric Circuits AP Physics B.
FCI. Direct Current Circuits: 3-1 EMF 3-2 Resistance in series and parallel. 3-3 Rc circuit 3-4 Electrical instruments FCI.
Ch. 6 Single Variable Control
SISO System Input Output SIMO System InputOutputs MISO System Input Output MIMO System InputOutput (a)(b) (c)(d) A general way of classifying the systems.
ARRDEKTA INSTITUTE OF TECHNOLOGY GUIDED BY. GUIDED BY. Prof.Y.B.Vaghela. Prof.Y.B.Vaghela. Asst.prof in electrical Asst.prof in electrical Department Department.
Class 34 Today we will: learn about inductors and inductance
Start Presentation October 11, 2012 The Theoretical Underpinnings of the Bond Graph Methodology In this lecture, we shall look more closely at the theoretical.
Introduction to Electrical Circuits Unit 17. Sources of emf  The source that maintains the current in a closed circuit is called a source of emf Any.
Chapter 32 Inductance. Joseph Henry 1797 – 1878 American physicist First director of the Smithsonian Improved design of electromagnet Constructed one.
Chapter 28 Direct Current Circuits. Introduction In this chapter we will look at simple circuits powered by devices that create a constant potential difference.
SPH3U Electricity & Circuits
Lecture 11-1 Electric Current Current = charges in motion Magnitude rate at which net positive charges move across a cross sectional surface Units: [I]
L C LC Circuits 0 0 t V V C L t t U B U E Today... Oscillating voltage and current Transformers Qualitative descriptions: LC circuits (ideal inductor)
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
Determine the mathematical models that capture the behavior of an electrical system 1.Elements making up an electrical system 2.First-principles modeling.
NETWORK ANALYSIS. UNIT – I INTRODUCTION TO ELECTRICAL CIRCUITS: Circuit concept – R-L-C parameters Voltage and current sources Independent and dependent.
Lecture 7: State-Space Modeling 1.Introduction to state-space modeling Definitions How it relates to other modeling formalisms 2.State-space examples 3.Transforming.
Chapter 20 Circuits And Circuit Elements Schematic Diagrams and Circuits Objectives 1.Interpret and construct circuit diagrams 2. Identify circuits.
Dr. Tamer Samy Gaafar Lec. 3 Mathematical Modeling of Dynamic System.
0 ECE 222 Electric Circuit Analysis II Chapter 4 The Capacitor Herbert G. Mayer, PSU Status 2/24/2016 For use at CCUT Spring 2016.
Lumped Modeling with Circuit Elements, Ch. 5, Text Ideal elements represent real physical systems. – Resistor, spring, capacitor, mass, dashpot, inductor…
EXAM2  Wednesday, March 26, 8:00-10:00 pm  No lecture on that day.  room 112 for students in R21/22/23/24  room 114 for students in R25/26/27  Chapters.
Chapter 25 : Electric circuits
Method of Virtual Work.
Electrical circuits, power supplies and passive circuit elements
ECE 1100: Introduction to Electrical and Computer Engineering
Automatic Control Theory CSE 322
CHAPTER 6 MESB System Modeling and Analysis Hydraulic (Fluid) Systems
Sinusoidal Excitation of Circuits
Direct Current Circuits
Electrical circuits, power supplies and passive circuit elements
Signals and systems By Dr. Amin Danial Asham.
Port-Hamiltonian Description of Electro-Thermal Field-Circuit models
Method of Virtual Work.
5. Modeling of Electrical Systems
ME375 Handouts - Spring 2002ME375-Fall 2002
Scintillas System Dynamics Tutorial
Devil physics The baddest class on campus IB Physics
Resistors & Capacitors in Series and Parallel
AP Physics L09_circuits containing resistors
Lumped Modeling with Circuit Elements, Ch. 5, Text
Engineering Mechanics: Statics
LECTURE #5 System Modeling& Responses
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Chapter 3 Modeling in the Time Domain
Delivered by Mr. Rajitha de Silva Courtesy Ms. Shashika Lokuliyana.
Presentation transcript:

Bond-Graphs: A Formalism for Modeling Physical Systems Sagar Sen, Graduate Student School of Computer Science H.M. Paynter

Bond Graphs, (c) 2005 Sagar Sen2 The Ubiquity of Energy Energy is the fundamental quantity that every physical system possess. Energy is the potential for change. System Energy Efficient Not So Energy Efficient (Falling) Major Heat Energy Loss Eventually Free Energy (Useful Energy): DECREASES Heat Energy Released (Not so useful): INCREASES Total Energy=Free Energy + Other Forms of Energy,is conserved Back on your feet Since no inflow of free energy

Bond Graphs, (c) 2005 Sagar Sen3 Bond Graphs: A Unifying Formalism Why Bond-Graphs (BG)? ThermodynamicMechanicalMagneticHydraulics Electrical

Bond Graphs, (c) 2005 Sagar Sen4 First Example: The RLC Circuit RLC Circuit i i Symbolic BG i Standard BG

Bond Graphs, (c) 2005 Sagar Sen5 Second Example: Damped Mass Spring System Damped Mass Spring System v Symbolic BG Standard BG 1

Bond Graphs, (c) 2005 Sagar Sen6 Lets compare... The Damper is analogous to the Resistor The Spring is analogous to the Capacitor The Mass is analogous to the Inductor The Force is analogous to the voltage source The Common Velocity is analogous to the Loop Current The Standard Bond-Graphs are pretty much Identical!!!

Bond Graphs, (c) 2005 Sagar Sen7 Common Bond Graph Elements SymbolExplanationExamples CStorage element for a q-type variable Capacitor (stores charges), Spring (stores displacement) IStorage element for a p-type variable Inductor (stores flux linkage), mass (stores momentum) RResistor dissipating free energyElectric resistor, Mechanical friction Se, SfEffort sources and Flow sourcesElectric mains (voltage source), Gravity (force source), Pump (flow source) TFTransformerElectric transformer, Toothed wheels, Lever GYGyratorElectromotor, Centrifugal Pump 0,10 and 1 JunctionsIdeal connection between two sub models

Bond Graphs, (c) 2005 Sagar Sen8 Closer Look at Bonds and Ports(1) Element 1Element 2 Ports The energy flow along the bond has the physical dimension of power. DomainEffortFlowPower Expression ElectricalVoltage (V)Current (I)P=VI Mechanical: TranslationForce (F)Velocity (v)P=Fv Mechanical: RotationTorque (T)Angular Velocity (θ)P=Tθ HydraulicsPressure (p)Volume Flow (f)P=pf ThermodynamicsTemperature (T)Entropy Flow (S)P=TS These pairs of variables are called (power-) conjugated variables

Bond Graphs, (c) 2005 Sagar Sen9 Closer Look at Bonds and Ports(2) Two views for the interpretation of the bond 1.As an interaction of energy: The connected subsystems form a load to each other by the energy exchange. A physical quantity is exchanged over the power bond. 2.As a bilateral signal flow: Effort and Flow are flowing in opposite directions (determining the computational direction) Element 1Element 2Element 1Element 2 Element 1Element 2Element 1Element 2 e f e f Element1.e=Element2.e Element2.f=Element1.f Element2.e=Element1.e Element1.f=Element2.f Why is the power direction not shown?

Bond Graphs, (c) 2005 Sagar Sen10 Bond Graph Elements (1): Storage Elements (C-element) Domain Specific Symbols Bond-graph ElementEquations Block Diagram Representation Eg. C [F] is the capacitance F=Kx=(1/C)x K[N/m] is the stiffness and C[m/N] the Compliance Storage elements store all kinds of free energy. C-elements accumulate net flow

Bond Graphs, (c) 2005 Sagar Sen11 Bond Graph Elements (2):Storage Elements (I –element) Domain Specific Symbols f Bond-graph ElementEquations Eg. L[H] is the inductance m [kg] is the mass Block Diagram Representation I-elements accumulate net effort

Bond Graphs, (c) 2005 Sagar Sen12 Bond Graph Elements (3):Resistors (R-element) R-elements dissipate free energy Domain Specific SymbolsBond-graph ElementEquationsBlock diagram expansion Eg. Electrical resistance (ohms), Viscous Friction (Ns/m)

Bond Graphs, (c) 2005 Sagar Sen13 Bond Graph Elements (4):Sources Domain Specific Symbols Sources represent the interaction of a system with its environment Bond graph ElementEquationsBlock diagram representation We can also have modulated sources, resistors etc.

Bond Graphs, (c) 2005 Sagar Sen14 Bond Graph Elements (5):Transformers Domain Specific SymbolsBond graph ElementEquations Block diagram representation Ideal transformers are power continuous, that is they do not dissipate any free energy. Efforts are transduced to efforts and flows to flows n is the transformer ratio

Bond Graphs, (c) 2005 Sagar Sen15 Bond Graph Elements (6):Gyrators Domain Specific SymbolsBond graph ElementEquations Block diagram representation Ideal Gyrators are power continuous. Transducers representing domain transformation. r is the gyrator ratio

Bond Graphs, (c) 2005 Sagar Sen16 Bond Graph Elements (7):0-Junction Domain Specific SymbolsBond graph ElementEquations Block diagram representation The 0-junction represents a node at which all efforts of the connecting bonds are equal 0-junction can be interpreted as the generalized Kirchoff’s Current Law

Bond Graphs, (c) 2005 Sagar Sen17 Bond Graph Elements (8):1-Junction Domain Specific SymbolsBond graph ElementEquations Block diagram representation + - The 1-junction represents a node at which all flows of the connecting bonds are equal 1-junction can be interpreted as the generalized Kirchoff’s Voltage Law

Bond Graphs, (c) 2005 Sagar Sen18 Some Misc. Stuff  Power direction: The power is positive in the direction of the power bond. A port that has incoming power bond consumes power. Eg. R, C.  Transformers and Gyrators have one power bond coming in and one going out. These are constraints on the model!  Duality: Two storage elements are each others dual form. The role of effort and flow are interchanged. A gyrator can be used to decompose an I-element to a GY and C element and vice versa.

Bond Graphs, (c) 2005 Sagar Sen19 Physical System to Acausal Bond Graph by Example (1): Hoisting Device Load Cable Drum Motor Mains Sketch of a Hoisting DeviceIdeal Physical Model with Domain Information (Step 1) Step 1: Determine which physical domains exist in the system and identify all basic elements like C, I, R, Se, Sf, TF, GY

Bond Graphs, (c) 2005 Sagar Sen20 Physical System to Acausal Bond Graph by Example (2): Hoisting Device Step 2: Identify the reference efforts in the physical model.

Bond Graphs, (c) 2005 Sagar Sen21 Physical System to Acausal Bond Graph by Example (3): Hoisting Device Step 3: Identify other efforts and give them unique names

Bond Graphs, (c) 2005 Sagar Sen22 Physical System to Acausal Bond Graph by Example (4): Hoisting Device Step 4: Draw the efforts (mechanical domain: velocity), and not references (references are usually zero), graphically by 0-junctions (mechanical 1-junction) Skeleton Bond Graph

Bond Graphs, (c) 2005 Sagar Sen23 Physical System to Acausal Bond Graph by Example (5): Hoisting Device Step 5: Identify all effort differences (mechanical velocity(=flow) differences) needed to connect the ports of all elements enumerated in Step 1. Differences have a unique name. Step 6: Construct the effort differences using a 1-junction (mechanical: flow differences with 0-junctions) and draw as such in the graph

Bond Graphs, (c) 2005 Sagar Sen24 Physical System to Acausal Bond Graph by Example (6): Hoisting Device Step 7: Connect the port of all elements found at step 1 with 0-junctions of the corresponding efforts or effort differences (mechanical: 1-junctions of the corresponding flows or flow differences)

Bond Graphs, (c) 2005 Sagar Sen25 Physical System to Acausal Bond Graph by Example (7): Hoisting Device Step 8: Simplify the graph by using the following simplification rules: A junction between two bonds can be left out, if the bonds have a through power direction (one incoming, one outgoing) A bond between two the same junctions can be left out, and the junctions can join into one junction. Two separately constructed identical effort or flow differences can join into one effort or flow difference.

Bond Graphs, (c) 2005 Sagar Sen26 Acausal to Causal Bond Graphs (1) : What is Causal Analysis? Causal analysis is the determination of signal direction of the bonds. Energetic connection is interpreted as a bi- directional signal flow. The result is a causal bond graph which can be seen as a compact block diagram. The element ports can impose constraints on the connection bonds depending on its nature.

Bond Graphs, (c) 2005 Sagar Sen27 Acausal to Causal Bond Graphs (2) : Causality Constraints Fixed Causality: When the equations allow only one of the two variables to be the outgoing variable, 1. At Sources: Effort-out causality Flow-out causality Another situation, 2. Non-linear Elements: There is no relation between port variables The equations are not invertible (‘singular’) Eg. Division by zero This is possible at R, GY, TF, C and I elements

Bond Graphs, (c) 2005 Sagar Sen28 Acausal to Causal Bond Graphs (3) : Causality Constraints Constrained Causality: Relations exist between the different ports of the element. TF: One port has effort-out causality and the other has flow-out causality. GY: Both ports have either effort-out causality or flow-out causality. 0-junction: All efforts are the same and hence just one bond brings in the effort. 1-junction: All flows are equal hence just one bond brings in the flow.

Bond Graphs, (c) 2005 Sagar Sen29 Acausal to Causal Bond Graphs (4) : Causality Constraints Preferred Causality: Applicable at storage elements where we need to make a choice about whether to perform numerical differentiation or numerical integration. Eg. A voltage u is imposed on an electrical capacitor ( a C-element), the current is the result of the constitutive equation of the capacitor. Needs info about future time points hence physically not realizable. Also, function must be differentiable. Physically Intuitive! Needs initial state data. Implication: C-element has effort-out causality and I-element has flow-out causality Flow-out causality Effort-out causality

Bond Graphs, (c) 2005 Sagar Sen30 Acausal to Causal Bond Graphs (5) : Causality Constraints Indifferent Causality: Indifferent causality is used when there are no causal constraints! Eg. At a linear R it does not matter which of the port variables is the output. Imposing a flow (Current)Imposing an effort (Voltage) Doesn’t Matter!

Bond Graphs, (c) 2005 Sagar Sen31 Acausal to Causal Bond Graphs (6) : Causality Analysis Procedure 1a. Choose a fixed causality of a source element, assign its causality, and propagate this assignment through the graph using causal constraints. Go on until all sources have their causality assigned. 1b. Choose a not yet causal port with fixed causality (non-invertible equations), assign its causality, and propagate this assignment through the graph using causal constraints. Go on until all ports with fixed causality have their causalities assigned. (Not Applicable in this example) FC FC: Fixed Causality PC: Preferred Causality CC: Constrained Causality IC: Indifferent Causality Choose Se: and Se:-mg

Bond Graphs, (c) 2005 Sagar Sen32 Acausal to Causal Bond Graphs (7) : Causality Analysis Procedure 2. Choose a not yet causal port with preferred causality (storage elements), assign its causality, and propagate this assignment through the graph using the causal constraints. Go on until all ports with preferred causality have their causalities assigned. FC PC Propagated because of constraints CC Choose I:L

Bond Graphs, (c) 2005 Sagar Sen33 Acausal to Causal Bond Graphs (8) : Causality Analysis Procedure FC PC Propagated because of constraints CC PC CC Continued… Choose I:J

Bond Graphs, (c) 2005 Sagar Sen34 Acausal to Causal Bond Graphs (9) : Causality Analysis Procedure 3. Choose a not yet causal port with indifferent causality, assign its causality, and propagate this assignment through the graph using the causal constraints. Go on until all ports with indifferent causality have their causality assigned. Not applicable in our example since all causalities have been already assigned!

Bond Graphs, (c) 2005 Sagar Sen35 Model Insight via Causal Analysis(1) When model is completely causal after step 1a. The model has no dynamics. If a causal conflict arises at step 1a or 1b then the problem is ill- posed. Eg. Two effort sources connected to a 0-Junction. At conflict in step 1b (non-invertible equations), we could perhaps reduce the fixedness. Eg. A valve/diode having zero current while blocking can be made invertible by allowing a small resistance. When a conflict arises at step 2, a storage element receives a non- preferred causality. This implies that this storage element doesn’t represent a state variable. Such a storage element is often called a dependent storage element. This implies that a storage element was not taken into account while modeling. Eg. Elastic cable in the hoisting device. A causal conflict in step 3 possibly means that there is an algebraic loop.

Bond Graphs, (c) 2005 Sagar Sen36 Model Insight via Causal Analysis(2) Remedies: Add Elements Change bond graph such that the conflict disappears Dealing with algebraic loops by adding a one step delay or by using an implicit integration scheme. Other issues: Algebraic loops and loops between a dependant and an independent storage element are called zero-order causal paths (ZCP). These occur in rigid body mechanical systems and result in complex equations.

Bond Graphs, (c) 2005 Sagar Sen37 Order of set of state equations  Order of the system: Number of initial conditions  Order of set of state equations <= Order of the system Sometimes storage elements can depend on one another. Recipe to check whether this kind of storage elements show up: Perform integral preference and differential preference causality assignment and compared. Dependent storage elements: In both cases not their preferred causality Semi-dependent storage elements: In one case preferred and not-preferred in the other. INDICATES that a storage element was not taken into account.

Bond Graphs, (c) 2005 Sagar Sen38 Generation of Equations 1.We first write a set of mixed Differential Algebraic Equations (DAEs). This system comprises of 2n equations of a bond graph have n bonds, n equations compute an effort and n equations compute a flow or derivatives of them. 2.We then eliminate the algebraic equations: Eliminate identities coming from sources We substitute the multiplications with a parameter. At last we substitute summation equations of the junctions in the differential equations of the storage elements. Beware! In case of dependent storage variables we need to take care that accompanying state variables do not get eliminated. These are called semi-state variables.

Bond Graphs, (c) 2005 Sagar Sen39 Mixed DAE to ODE by Example (1) Mixed DAE system for hoisting device

Bond Graphs, (c) 2005 Sagar Sen40 Mixed DAE to ODE by Example (2) Resulting linear system of ODEs

Bond Graphs, (c) 2005 Sagar Sen41 Expansion to Block Diagrams (1) GY.. K 1 I:J TF:D/21 I:m Se:-mg 1 I:L R:R Step 1: Expand all bonds to bilateral signal flows

Bond Graphs, (c) 2005 Sagar Sen42 Expansion to Block Diagrams (2) Step 2: Replace bond graph elements with block-diagram representation

Bond Graphs, (c) 2005 Sagar Sen43 Expansion to Block Diagrams (3) Step 3: Redraw the block diagram in standard form. All integrators in an on going stream (from left to right), and all other operations as feedback loops

Bond Graphs, (c) 2005 Sagar Sen44 Simulation  Presence of implicit equations  Presence of discontinuities  Numerical stiffness  Oscillatory parts Equations coming from the bond-graph model is the simulation model. These are first-order ODEs or DAEs and are solved using numerical integration. 4 aspects that govern the selection of a numerical integrator:

Bond Graphs, (c) 2005 Sagar Sen45 The Big Picture Acausal Bond Graphs Causal Bond Graphs Model Transformation using Graph Grammars for the Bond Graph Formalism Causal Block Diagram Bond Graph in Modelica DAEs Sorted First-Order ODEs Simulation

Bond Graphs, (c) 2005 Sagar Sen46 References  Wikipedia: Definition for Energy  Jan F. Broenink, Introduction to Physical Systems Modeling with Bond Graphs, pp.1-31  Peter Gawthrop, Lorcan Smith, Metamodeling: Bond Graphs and Dynamics Systems, Prentice Hall 1996