Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

1 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

2 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).

3 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

4 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 )

5 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

6 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

7 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

8 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

9 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.

10 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 ....

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

12 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

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

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

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

16 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) {

17 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

18 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 )

19 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

20 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

21 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)

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

23 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.

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

25 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.

26 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.

27 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.

28 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.

29 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.

30 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.

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

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

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

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

35 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.

36 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.

37 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

38 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. 57-65.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. 559-568.The Modelica Multi- bond Graph Library


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

Similar presentations


Ads by Google