Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 ThermoBondLib – A New Modelica Library for Modeling Convective Flows François.

Slides:



Advertisements
Similar presentations
Water in the Atmosphere
Advertisements

Start Presentation November 22, 2012 Convective Mass Flows II In todays lecture, we shall perform a number of thought experiments that will help us deepen.
Start Presentation October 11, 2012 Thermodynamics Until now, we have ignored the thermal domain. However, it is fundamental for the understanding of physics.
System Analysis through Bond Graph Modeling Robert McBride May 3, 2005.
D 2 Law For Liquid Droplet Vaporization References: Combustion and Mass Transfer, by D.B. Spalding (1979, Pergamon Press). “Recent advances in droplet.
Gases Follow-up.
Lecture 15. Phases of Pure Substances (Ch.5) Up to now we have dealt almost exclusively with systems consisting of a single phase. In this lecture, we.
First Law of Thermodynamics
Thermal Physics.
Start Presentation November 8, 2012 Planar Mechanics We shall now look at a first application of multi- bond graphs: planar mechanics. We shall notice.
8.5 The Helmholtz Function The change in internal energy is the heat flow in an isochoric reversible process. The change in enthalpy H is the heat flow.
Thermodynamic relations for dielectrics in an electric field Section 10.
The Dymola Bond Graph Library
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,
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, st Homework Problem We wish to analyze.
Universität Stuttgart Modeling Convective Flows Using Bond Graphs University of Arizona 9. Jan 2001 Jürgen Greifeneder, François Cellier 1 Modeling Convective.
Universität Stuttgart ICBGM ´01 Modeling Multi-Phase Systems Using Bond Graphs University of Arizona 9. Jan 2001 Jürgen Greifeneder, François Cellier 1.
Wrapping Multi-bond Graphs: A Structured Approach to Modeling Complex Multi-body Dynamics François E. Cellier and Dirk Zimmer ETH Zürich.
Start Presentation EnviroInfo 2005: Brno September 9, 2005 Object-oriented Modeling of Heat and Humidity Budgets Of Biosphere 2 Using Bond Graphs François.
Dirk Zimmer François E. Cellier Institute of Computational Science Department of Computer Science ETH Zürich A bondgraphic modeling tool and its application.
Universität Stuttgart Modeling Multi-Element Systems Using Bond Graphs 1.Introduction 2.Mixture Properties 3.Transport Phenomena 4.Model of a Pressure.
Start of Presentation Maple soft Conference 2006 The Need for Formulae Manipulation in the Object-oriented Modeling of Physical Systems François E. Cellier,
Therme = Heat Dynamikos = work Thermodynamics = flow of heat THERMODYNAMICS Thermodynamics is a branch of science that deals with the study of inter conversion.
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.
Thermal Analysis and Design of Cooling Towers
KMS 8 th grade Science Chapter 6: States of Matter.
CHEMISTRY 2000 Topic #3: Thermochemistry and Electrochemistry – What Makes Reactions Go? Spring 2008 Dr. Susan Lait.
Chapter 5 Temperature and Heat Another Kind of Energy.
Start Presentation November 22, 2012 The Dymola Thermo-Bond-Graph Library In this lecture, we shall introduce a third bond-graph library, one designed.
GASES.
Thermodynamic Properties of Water PSC 151 Laboratory Activity 7 Thermodynamic Properties of Water Heat of Fusion of Ice.
Physics 12 Giancoli Chapter 15
 Matter takes up space and has mass  Matter is made of atoms, usually chemically bonded into molecules  Exists in different states.
17.4 State Variables State variables describe the state of a system
THERMODYNAMICS Branch of science which deals with the processes involving heat and temperature inter conversion of heat and other forms of energy.
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.
THERMODYNAMICS.
ECO-BOND GRAPHS An Energy-Based Modeling and Simulation Framework for Complex Dynamic Systems with a focus on Sustainability and Embodied Energy Flows.
20 B Week II Chapters 9 -10) Macroscopic Pressure Microscopic pressure( the kinetic theory of gases: no potential energy) Real Gases: van der Waals Equation.
1 So far… We’ve developed a general energy balance We’ve developed a general material balance We’ve only actually looked at systems that are under steady.
CHEMISTRY 2000 Topic #3: Thermochemistry and Electrochemistry – What Makes Reactions Go? Spring 2012 Dr. Susan Lait.
Start Presentation October 11, 2012 The Theoretical Underpinnings of the Bond Graph Methodology In this lecture, we shall look more closely at the theoretical.
Start Presentation December 6, 2012 Chemical Thermodynamics II In this lecture, we shall continue to analyze our chemical thermodynamics bond graphs, making.
Review First Law. Work Work is energy transferred when directed motion is achieved against an external force. There are many types of forces available.
DC Electrical Circuits Chapter 28 (Continued) Circuits with Capacitors.
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.
Heat. What causes the temperatures of two objects placed in thermal contact to change? Something must move from the high temperature object to the low.
Start Presentation December 6, 2012 Chemo-bond Graphs In this lecture, we shall introduce a fourth bond graph library, the ChemBondLib. It is very similar.
Note: You must memorize STP and the gas laws!!. The Kinetic Molecular Theory states that gas particles are ____________ and are separated from one another.
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
PHY1039 Properties of Matter First Law of Thermodynamics and Heat Capacity (See Finn’s Thermal Physics, Ch. 3) March 5 and 8, 2012 Lectures 9 and 10.
Temperature and Kinetic Theory Atomic Theory of Matter Temperature and Thermometers Thermal Equilibrium and the Zeroth Law of Thermodynamics Thermal Expansion.
Solids, Liquids and Gases. States of Matter matter – anything that has mass & takes up space there are 4 states of matter that depend on TEMPERATURE solid.
The Boltzmann Distribution allows Calculation of Molecular Speeds Mathematically the Boltzmann Distribution says that the probability of being in a particular.
Changes in State Chapter 2 Section 2. Energy How does the ice go from being a solid back to being a liquid? Energy is the ability to do work Energy.
Unit 9 Acc Chem Review Note: You must memorize STP and the gas laws!!
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.
Mass and Energy Analysis of Control Volumes – Part 2 Chapter 5b.
Phase of Water and Latent Heats
Thermal Energy Chapter 12 Physics Principles and Problems Zitzewitz, Elliot, Haase, Harper, Herzog, Nelson, Nelson, Schuler and Zorn McGraw Hill, 2005.
Unit 61: Engineering Thermodynamics Lesson 1: Setting the Scene for the Course.
Classical Thermodynamics of Solutions
THEME: Theoretic bases of bioenergetics. LECTURE 6 ass. prof. Yeugenia B. Dmukhalska.
Gestão de Sistemas Energéticos 2015/2016 Exergy Analysis Prof. Tânia Sousa
Chapter 13 and 14. Essential Question: What are three units for pressure and how do you convert units? Warm-Up: What are the three states of matter? List.
First Law of Thermodynamics How is the CO 2 concentration in the atmosphere related to the melting of glaciers? How does sweating protect our bodies from.
Numerical Investigation of Flow Boiling in Double-layer Microchannel Heat Sink.
Asst. Prof. Dr. Hayder Mohammad Jaffal
Presentation transcript:

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 ThermoBondLib – A New Modelica Library for Modeling Convective Flows François E. Cellier ETH Zürich, Switzerland Jürgen Greifeneder University of Kaiserslautern, Germany

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Properties of Bond Graphs Bond graphs represent the power flowing through a physical system. Since every physical system must observe the laws of energy conservation, all such systems can be represented topologically by means of the power flows between neighboring energy storages. In most physical systems, power can be expressed as a product of two adjugate variables, an effort (e) and a flow (f).

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Properties of Bond Graphs II e f P = e · f e: Effort f: Flow Since a bond references two variables, we need two equations to evaluate them. In all systems, the effort and flow variables are evaluated at opposite ends of the bond. The side that evaluates the flow variable is often marked with a small vertical bar, the causality stroke. Representation of a bond

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 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 Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Example: Bond Graph of Electrical Circuit v1v1 v2v2 i0i0 iLiL i1i1 i2i2 iCiC i0i0 i0i0 i0i0 U0U0 v0v0 v0v0 v0v0 v0v0 iLiL iLiL iLiL v1v1 v1v1 v1v1 i1i1 i1i1 i1i1 u1u1 uLuL v2v2 v2v2 v2v2 u2u2 uCuC iCiC iCiC iCiC i2i2 i2i2 i2i2

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Example: Bond Graph of Electrical Circuit II i0i0 i0i0 i0i0 U0U0 v0v0 v0v0 v0v0 v0v0 iLiL iLiL iLiL v1v1 v1v1 v1v1 i1i1 i1i1 i1i1 u1u1 uLuL v2v2 v2v2 v2v2 u2u2 uCuC iCiC iCiC iCiC i2i2 i2i2 i2i2 v 0 = 0

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Example: Bond Graph of Electrical Circuit III i0i0 U0U0 iLiL v1v1 i1i1 i1i1 i1i1 u1u1 uLuL v2v2 u2u2 uCuC iCiC i2i2

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Example: Bond Graph of Electrical Circuit IV U0.e C1.e R1.e U0.f L1.f R1.f R2.f C1.f U0.e = f(t) U0.f = L1.f + R1.f dL1.f /dt = U0.e / L1 R1.e = U0.e – C1.e R1.f = R1.e / R1 C1.f = R1.f – R2.f dC1.e /dt = C1.f / C1 R2.f = C1.e / R2

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Convective Flows When mass moves macroscopically from one place to another, it always carries its volume and its heat along. These are inseparably properties of the material representing the mass. Consequently, a single bond no longer suffices to describe convective flows. Each convective flow is described by two independent variables, e.g. temperature and pressure, or temperature and volume, and therefore, we require at least two parallel bonds.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Convective Flows II Since the internal energy of material has three components: we chose to represent the convective flow by three parallel bonds. U = T · S - p · V +  g · M ....

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Convective Flows III

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Thermo-bond Connectors } efforts, e flows, f } generalized positions, q } directional variable, d indicator variable

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Heat Dissipation Wrapper models

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Heat Dissipation II

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Volume Work

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Capacitive Fields Linear capacitive field: der(e) = inv(C) · f By integration: der(q) = f e = inv(C) · q Nonlinear capacitive field: der(q) = f e = e(q) } der(q) = f e = e(q)e = e(q) {

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Capacitive Fields II Equation of state Caloric equation of state Gibbs energy of formation

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Capacitive Fields III p = T·R·M/V  p·V = T·R·M T = T 0 ·exp((s–s 0  R·(ln(v)  ln(v 0 )))/c v )  T/T 0 = exp((s–s 0  R·(ln(v/v 0 )))/c v )  ln(T/T 0 ) = (s–s 0  R·ln(v/v 0 ))/c v  c v ·ln(T/T 0 ) = s–s 0  R·ln(v/v 0 )

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Capacitive Fields IV g = T·(c p – s)  h = c p ·T g = h  T·s for ideal gases

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Pressure Cooker Water Air Steam SE : 393 K HE (t) C/E PVE HE PVE

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Pressure Cooker II Water Air Steam C/E PVE HE PVE C/E Air in boundary layer Steam in boundary layer HE RF:  p RF:  p HE PVE HE SE : 293 K HE (t) SE : 393 K HE (t)

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation of Pressure Cooker We are now ready to compile and simulate the model.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation Results

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation Results II Heating is sufficiently slow that the temperature values of the different media are essentially indistinguishable. The heat exchangers have a smaller time constant than the heating. During the cooling phase, the picture is very different. When cold water is poured over the pressure cooker, air and steam in the small boundary layer cool down almost instantly. Air and steam in the bulk cool down more slowly, and the liquid water cools down last.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation Results III The pressure values are essentially indistinguishable throughout the simulation. During the heating phase, the pressures rise first due to rising temperature. After about 150 seconds, the liquid water begins to boil, after which the pressure rises faster, because more steam is produced (water vapor occupies more space at the same temperature than liquid water). The difference between boundary layer and bulk pressure values in the cooling phase is a numerical artifact.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation Results IV The relative humidity decreases at first, because the saturation pressure rises with temperature, i.e., more humidity can be stored at higher temperatures. As boiling begins, the humidity rises sharply, since additional vapor is produced. In the cooling phase, the humidity quickly goes into saturation, and stays there, because the only way to ever get out of saturation again would be by reheating the water.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Simulation Results V The mass fraction defines the percentage of water vapor contained in the air/steam mixture. Until the water begins to boil, the mass fraction is constant. It then rises rapidly until it reaches a new equilibrium, where evaporation and condensation balance out. During the cooling phase, the boundary layer cools down quickly, and can no longer hold the water vapor contained. Some falls out as water, whereas other steam gets pushed into the bulk, temporarily increasing the mass fraction there even further.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Air Balloon We got a problem. Whereas the air balloon operates under conditions of constant pressure (isobaric conditions), the gas bottle operates under con- ditions of constant volume (isochoric conditions). Our air model so far is an isobaric model.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Air Balloon II We measure the volumetric flow leaving the gas bottle and generate a volumetric flow of equal size in the modulated flow source. The energy for that flow comes out of the thermal domain (the gas bottle cools down.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Air Balloon III

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Air Balloon: Simulation Results

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Water Loop

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 The Water Loop: Simulation Results

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Conclusions Modeling convective flows correctly using the bond graph approach to modeling, i.e., taking into account volumetric flows, mass flows, and heat flows, requires a new class of bonds, called thermo-bonds. A new bond graph library was introduced that operates on this new class of vector bonds. At the top level, the user may frequently not notice any “black” bonds or “black” component models. The entire model seems to be located at the higher, more abstract thermo-bond graph layer. Yet internally, the “red” thermo-bond graphs are being resolved into the “black” regular bond graphs.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 Conclusions II The new approach to dealing with mass flows offers a compact and fairly intuitive vehicle for describing convective flows in an object-oriented, physically correct manner. Model wrapping techniques shall be introduced at a later time to offer a yet more intuitive user interface. The capacitive fields describe the properties of fluids. As of now, the only fluids that have been described are air, water, and water vapor. In the future, more capacitive fields shall be added to the library, e.g. for the description of different classes of industrial oils as well as different types of glycols.

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 References I Greifeneder, J. and F.E. Cellier (2001), “Modeling convective flows using bond graphs,” Proc. ICBGM’01, Intl. Conference on Bond Graph Modeling and Simulation, Phoenix, Arizona, pp. 276 – 284.Modeling convective flows using bond graphs Greifeneder, J. and F.E. Cellier (2001), “Modeling multi- phase systems using bond graphs,” Proc. ICBGM’01, Intl. Conference on Bond Graph Modeling and Simulation, Phoenix, Arizona, pp. 285 – 291.Modeling multi- phase systems using bond graphs Greifeneder, J. and F.E. Cellier (2001), “Modeling multi- element systems using bond graphs,” Proc. ESS’01, European Simulation Symposium, Marseille, France, pp. 758 – 766.Modeling multi- element systems using bond graphs

Start Presentation Conference 2008 © Prof. Dr. François E. Cellier March 3, 2008 References II Greifeneder, J. (2001), Modellierung thermodynamischer Phänomene mittels Bondgraphen, Diploma Project, Institut für Systemdynamik und Regelungstechnik, University of Stuttgart, Germany.Modellierung thermodynamischer Phänomene mittels Bondgraphen Cellier, F.E. and A. Nebot (2005), “The Modelica Bond Graph Library,” Proc. 4 th Intl. Modelica Conference, Hamburg, Germany, Vol.1, pp The Modelica Bond Graph Library Zimmer, D. and F.E. Cellier (2006), “The Modelica Multi- bond Graph Library,” Proc. 5 th Intl. Modelica Conference, Vienna, Austria, Vol.2, pp The Modelica Multi- bond Graph Library