Start Presentation ICSC 2005: Beijing October 25, 2005 Object-oriented Modeling in the Service of Medicine François E. Cellier, ETH Zürich Àngela Nebot,

Slides:



Advertisements
Similar presentations
Start Presentation September 12, 2013 Teaching Physics by Modeling Prof. Dr. François E. Cellier Computer Science Department ETH Zurich Switzerland.
Advertisements

Start Presentation October 11, 2012 Thermodynamics Until now, we have ignored the thermal domain. However, it is fundamental for the understanding of physics.
Lect.3 Modeling in The Time Domain Basil Hamed
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.
Principles of Engineering System Design Dr T Asokan
System Analysis through Bond Graph Modeling Robert McBride May 3, 2005.
Thermodynamics versus Statistical Mechanics
Start Presentation November 8, 2012 Planar Mechanics We shall now look at a first application of multi- bond graphs: planar mechanics. We shall notice.
Electric Circuits AP Physics 1.
The Dymola Bond Graph Library
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.
Impulse-Bond Graphs Authors: Dirk Zimmer and François E. Cellier, ETH Zürich, Institute of Computational Science, Department of Computer Science Bondgraphic.
Wrapping Multi-bond Graphs: A Structured Approach to Modeling Complex Multi-body Dynamics François E. Cellier and Dirk Zimmer ETH Zürich.
Dirk Zimmer François E. Cellier Institute of Computational Science Department of Computer Science ETH Zürich A bondgraphic modeling tool and its application.
Object-oriented Modeling of Mechatronics Systems in Modelica Using Wrapped Bond Graphs François E. Cellier and Dirk Zimmer ETH Zürich.
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
Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 ThermoBondLib – A New Modelica Library for Modeling Convective Flows François.
Computational Mechanics & Numerical Mathematics University of Groningen Multi-scale modeling of the carotid artery G. Rozema, A.E.P. Veldman, N.M. Maurits.
CARDIOVASCULAR FITNESS- THE CIRCULATORY SYSTEM
Start of Presentation Maple soft Conference 2006 The Need for Formulae Manipulation in the Object-oriented Modeling of Physical Systems François E. Cellier,
Foundations of Physics
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.
Copyright © 2009 Pearson Education, Inc. Chapter 26 DC Circuits.
Start Presentation November 29, th Homework – Solution In this homework, we shall attempt the modeling of a planar mechanical system. We shall.
CS 367: Model-Based Reasoning Lecture 13 (02/26/2002) Gautam Biswas.
Chapter 28 Direct Current Circuits 1.R connections in series and in parallel 2.Define DC (direct current), AC (alternating current) 3.Model of a battery.
In Engineering --- Designing a Pneumatic Pump Introduction System characterization Model development –Models 1, 2, 3, 4, 5 & 6 Model analysis –Time domain.
Basic of Electricity Discuss the electrical properties of matter. Define voltage, resistance, impedance, current, and circuits.
Unit 7: Electricity and Magnetism
The parallel-plate capacitor charged with q, then: energy density.
Network Analysis - Introduction Transmission Planning Code Workshop 2 1 st May 2008.
Chapter 21 Electromagnetic Induction and Faraday’s Law.
Cardiovascular System.  Main function: Transportation  Blood = transport vehicle  Heart = pump  Blood vessels = network of tubes.
The Thermodynamic Potentials Four Fundamental Thermodynamic Potentials dU = TdS - pdV dH = TdS + Vdp dG = Vdp - SdT dA = -pdV - SdT The appropriate thermodynamic.
Start PresentationSeptember 21, 2009 Modeling Chemical Reactions in Modelica By Use of Chemo-bonds Prof. Dr. François E. Cellier Department of Computer.
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.
System Models Mathematical Models Mechanical System Building Blocks Electrical System Building Blocks Fluid System Building Blocks Thermal Systems Building.
ECO-BOND GRAPHS An Energy-Based Modeling and Simulation Framework for Complex Dynamic Systems with a focus on Sustainability and Embodied Energy Flows.
Eng. R. L. NKUMBWA Copperebelt University School of Technology 2010.
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 October 25, th Homework - Solution In this homework, we shall exercise the modeling of a simple electrical circuit using bond.
Learning Objectives... To understand the stages of the cardiac cycle.
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
Week 3 Capacitance & Inductance Transitions Try your hand at graphing these functions Graph: y = e x Graph: y = e -x Graph: y = 1 - e -x.
Abj1 1.System, Surroundings, and Their Interaction 2.Classification of Systems: Identified Volume, Identified Mass, and Isolated System Questions of Interest:
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.
Semiconductors. O A Semiconductor is a material whose resistivity is between that of a good conductor and a good insulator. O Examples of materials which.
Electricity and Magnetism  16.1 Electrical Potential Energy  16.2 Equipotentials and Electric Fields  Capacitance and dielectrics  17.1 Batteries.
Chapter 13 The Basic Elements and Phasors. Objectives Be able to add and subtract sinusoidal voltages or currents Use phasor format to add and subtract.
ELECTRICITY WITHIN A CIRCUIT Topic 2. Circuits Electric circuits provide a continuous pathway.
Chapter 13 The Basic Elements and Phasors. Objectives Be able to add and subtract sinusoidal voltages or currents Use phasor format to add and subtract.
Basic concepts, variables, and classifications
CHAPTER 6 MESB System Modeling and Analysis Hydraulic (Fluid) Systems
CAPACITANCE AND INDUCTANCE
Teknik kendali.
Mathematical Models of Physical Systems
Port-Hamiltonian Description of Electro-Thermal Field-Circuit models
Scintillas System Dynamics Tutorial
Structured Modeling of Mechatronic Systems in which you meet the modest but talented multiport component.
KEY STAGE 4 THE HEART AND CIRCULATORY SYSTEM.
LECTURE #5 System Modeling& Responses
C H A P T E R 11 A.C. Fundamentals.
Presentation transcript:

Start Presentation ICSC 2005: Beijing October 25, 2005 Object-oriented Modeling in the Service of Medicine François E. Cellier, ETH Zürich Àngela Nebot, Universitat Politècnica de Catalunya

Start Presentation ICSC 2005: Beijing October 25, 2005 System Complexity and the Understandability of Models As the systems that are being analyzed by mathematical models have grown in complexity over the years, they have become increasingly difficult to interpret and maintain. Modelers need to concern themselves with the understandability and maintainability of their models. Tools need to be developed that support them in this endeavor.

Start Presentation ICSC 2005: Beijing October 25, 2005 Object-oriented Modeling The object-oriented modeling paradigm enables the modeler to encapsulate knowledge in such a way that snippets of knowledge can be translated to a language familiar to the domain expert. The complexity of the models is locally contained by encapsulation and hierarchical composition of models. Models are being made more easily understandable by exploiting the two-dimensional nature of planar graphics.

Start Presentation ICSC 2005: Beijing October 25, 2005 Graphical Modeling Models of subsystems can be encapsulated as graphical objects, called icons. The icons can be topologically interconnected to form a two-dimensional network. Sub-networks of graphical objects can be grouped together to form new objects, for which icons can be designed. In this way, systems can be hierarchically composed from sub-systems forming a tree. The leaves of the tree must be described by equations.

Start Presentation ICSC 2005: Beijing October 25, 2005 Bond Graph Modeling Bond graphs are one type of graphical object- oriented models. They describe the power flow through a physical system. Since energy and power flow are common to all types of physical systems, bond graphs are domain independent. The equation-based leaf models of bond graphs can be pre-coded for all domains.

Start Presentation ICSC 2005: Beijing October 25, 2005 The Bond Model The modeling of physical systems by means of bond graphs operates on a graphical description of energy flows. The energy flows are represented as directed harpoons. The two adjugate variables, which are responsible for the energy flow, are annotated above (intensive: potential variable, “e”) and below (extensive: flow variable, “f”) the harpoon. The hook of the harpoon always points to the left, and the term “above” refers to the side with the hook. e f P = e · f e: Effort f: Flow

Start Presentation ICSC 2005: Beijing October 25, 2005 Sources in Bond Graph Representation U 0 i v a v b U 0 + U 0 i Se I 0 I v a v b u 0 Sf u I 0   Voltage and current have opposite directions Energy is being added to the system

Start Presentation ICSC 2005: Beijing October 25, 2005 Passive Electrical Elements in Bond Graph Representation R i v a v b u C i v a v b u L i v a v b u u i R u i C u i I    Voltage and current have same directions Energy is being taken out off to the system

Start Presentation ICSC 2005: Beijing October 25, 2005 Junctions 0 e1e1 e2e2 e3e3 f1f1 f2f2 f3f3 1 e1e1 e2e2 e3e3 f1f1 f2f2 f3f3 e 1 = e 2 e 2 = e 3 f 1 – f 2 – f 3 = 0 f 1 = f 2 f 2 = f 3 e 1 – e 2 – e 3 = 0  

Start Presentation ICSC 2005: Beijing October 25, 2005 An Example I

Start Presentation ICSC 2005: Beijing October 25, 2005 An Example II v 0 = 0 P = v 0 · i 0 = 0 

Start Presentation ICSC 2005: Beijing October 25, 2005 An Example III

Start Presentation ICSC 2005: Beijing October 25, 2005 Causal Bond Graphs Every bond defines two separate variables, the effort e and the flow f. Consequently, we need two equations to compute values for these two variables. It turns out that it is always possible to compute one of the two variables at each side of the bond. A vertical bar symbolizes the side where the flow is being computed. e f

Start Presentation ICSC 2005: Beijing October 25, 2005 “Causalization” of the Sources U 0 = f(t) I 0 = f(t) U 0 i Se Sf u I 0 The source computes the effort. The flow has to be computed on the right side. The source computes the flow. The causality of the sources is fixed. 

Start Presentation ICSC 2005: Beijing October 25, 2005 “Causalization” of the Passive Elements u i R u = R · i u i R i = u / R u i C du/dt = i / C u i I di/dt = u / I The causality of resistors is free.  The causality of the storage elements is determined by the desire to use integrators instead of differentiators. 

Start Presentation ICSC 2005: Beijing October 25, 2005 “Causalization” of the Junctions 0 e1e1 e2e2 e3e3 f1f1 f2f2 f3f3 e 2 = e 1 e 3 = e 1 f 1 = f 2 + f 3  1 e1e1 e2e2 e3e3 f1f1 f2f2 f3f3 f 2 = f 1 f 3 = f 1 e 1 = e 2 + e 3  Junctions of type 0 have only one flow equation, and therefore, they must have exactly one causality bar. Junctions of type 1 have only one effort equation, and therefore, they must have exactly (n-1) causality bars.

Start Presentation ICSC 2005: Beijing October 25, 2005 “Causalization” of the Bond Graph U0.e U0.f L1.fL1.e R1.eR1.f R2.f R2.e C1.fC1.e U0.e R1.f U 0.e = f(t) U 0.f = L 1.f + R 1.f dL 1.f /dt = U 0.e / L 1 dC 1.e /dt = C 1.f / C 1 C 1.f = R 1.f – R 2.f R 2.f = C 1.e / R 2 R 1.e = U 0.e – C 1.e R 1.f = R 1.e / R 1 e

Start Presentation ICSC 2005: Beijing October 25, 2005 The Four Base Variables of the Bond Graph Methodology Beside from the two adjugate variables e and f, there are two additional physical quantities that play an important role in the bond graph methodology: p =   e · dt Generalized Momentum: Generalized Position: q =   f · dt

Start Presentation ICSC 2005: Beijing October 25, 2005 Relations Between the Base Variables e f qp  R C I Resistor: Capacity: Inductivity: e = R( f ) q = C( e ) p = I( f )  Arbitrarily non-linear functions in 1 st and 3 rd quadrants  There cannot exist other storage elements besides C and I.

Start Presentation ICSC 2005: Beijing October 25, 2005 EffortFlow Generalized Momentum Generalized Position efpq Electrical Circuits Voltage u (V) Current i (A) Magnetic Flux  (V·sec) Charge q (A·sec) Translational Systems Force F (N) Velocity v (m / sec) Momentum M (N·sec) Position x (m) Rotational Systems Torque T (N·m) Angular Velocity  (rad / sec) Torsion T (N·m·sec) Angle  (rad) Hydraulic Systems Pressure p (N / m 2 ) Volume Flow q (m 3 / sec) Pressure Momentum Γ (N·sec / m 2 ) Volume V (m 3 ) Chemical Systems Chem. Potential  (J / mol) Molar Flow (mol/sec) -Number of Moles n (mol) Thermodynamic Systems Temperature T (K) Entropy Flow S’ (W / K) -Entropy S (J / K )

Start Presentation ICSC 2005: Beijing October 25, 2005 Hemodynamics The hemodynamics describe the flow of blood through the heart and the blood vessels, i.e., the flow of blood through the cardiovascular system. The hemodynamics of the human body can be interpreted as a hydromechanical system. Blood is similar to water, blood vessels can be inerpreted as pipes, and the heart chambers act as hydraulic pumps. Some of the chambers and vessels contain valves that act like check valves, preventing a backflow.

Start Presentation ICSC 2005: Beijing October 25, 2005 Transporter Model I Diagram Window Icon Window

Start Presentation ICSC 2005: Beijing October 25, 2005 Transporter Model II Equation window Documentation window

Start Presentation ICSC 2005: Beijing October 25, 2005 Container Model Diagram Window Icon Window

Start Presentation ICSC 2005: Beijing October 25, 2005 Valve Model (Transporter) Diagram Window

Start Presentation ICSC 2005: Beijing October 25, 2005 Heart Chamber (Container) Diagram Window Icon Window

Start Presentation ICSC 2005: Beijing October 25, 2005 Left Ventricle (Heart Chamber) Diagram Window

Start Presentation ICSC 2005: Beijing October 25, 2005 The Heart Diagram Window Icon Window

Start Presentation ICSC 2005: Beijing October 25, 2005 The Thorax Diagram Window

Start Presentation ICSC 2005: Beijing October 25, 2005 The Cardiovascular System Icon Window

Start Presentation ICSC 2005: Beijing October 25, 2005 The Cardiovascular System Heart Rate Controller Myocardiac Contractility Controller Peripheric Resistance Controller Venous Tone Controller Coronary Resistance Controller Central Nervous System Control (Qualitative Model) Regenerate Heart Circulatory Flow Dynamics Carotid Sinus Blood Pressure Recode Hemodynamical System (Quantitative Model) TH B2 Q4 D2 Q6 PAC Pressure of the arteries in the brain.

Start Presentation ICSC 2005: Beijing October 25, 2005 Simulation Results (Valsalva Maneuver)

Start Presentation ICSC 2005: Beijing October 25, 2005 Summary Object-oriented graphical modeling has helped us translate a hydro-mechanical model of the cardiovascular system into a representation that medical personnel can interpret and deal with. The knowledge at each layer was suitably encapsulated for limiting the local complexity to a level that can be represented on a single screen. No manual translation from the high-level representation to executable simulation code is needed. The graphical model at each level contains all of the model equations at that level and underneath it. Hence the model can be compiled in a fully automated fashion and simulated thereafter.