dlr de chart 1 balance dynamics equations dirk zimmer
play

www.DLR.de Chart 1 > Balance Dynamics Equations > Dirk - PowerPoint PPT Presentation

www.DLR.de Chart 1 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Using Artificial States in Modeling Dynamic Systems: Turning Malpractice into Good Practice Dirk Zimmer DLR, Institute of System Dynamics


  1. www.DLR.de • Chart 1 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Using Artificial States in Modeling Dynamic Systems: Turning Malpractice into Good Practice Dirk Zimmer DLR, Institute of System Dynamics and Control

  2. www.DLR.de • Chart 2 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK A New Way to Model Non-linearities - This presentation offer a new way for the modeler to describe his systems of non-linear equations so that they can be solved more robustly. - To this end, we introduce a new operator and present a corresponding algorithm - The idea originated from many years of practical modeling experience. - So let us start by a practical example.

  3. www.DLR.de • Chart 3 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Example: ECS Air Cycle - In aircraft, bleed air from the engine is used to pressurize the cabin. - Bleed air is hot: 220 ° C - Bleed air is at high pressure: 2.5 bar - So it needs to be cooled down and expanded before it enters the cabin. - One architecture to achieve this is the three wheel bootstrap circuit Source: ECS Blog

  4. www.DLR.de • Chart 4 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - At DLR, we modeled this injection circuit using Modelica: RamAirI? reheater MHX extraction compre? turbine toMixer condenser pseudoI? PHX BleedAi? fan RamAir?

  5. www.DLR.de • Chart 5 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - At DLR, we modeled this injection circuit using Modelica: RamAirI? - The ram air channel reheater MHX provides the cooling extraction reservoir compre? turbine toMixer condenser pseudoI? PHX BleedAi? fan RamAir?

  6. www.DLR.de • Chart 6 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - At DLR, we modeled this injection circuit using Modelica: RamAirI? - The ram air channel reheater MHX provides the cooling extraction reservoir compre? turbine - The air is then cooled and toMixer expanded. It passes four condenser heat exchangers pseudoI? PHX BleedAi? fan RamAir?

  7. www.DLR.de • Chart 7 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - At DLR, we modeled this injection circuit using Modelica: RamAirI? - The ram air channel reheater MHX provides the cooling extraction reservoir compre? turbine - The bleed air is then cooled toMixer and expanded. It passes condenser four heat exchangers pseudoI? PHX - The energy gained in the turbine is used to power compressor and fan by the BleedAi? drive shaft. fan RamAir?

  8. www.DLR.de • Chart 8 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - The model is actually injection conceived as stateless and RamAirI? models no dynamics. reheater MHX - Instead we look for the extraction equilibrium point: compre? turbine - Balance of mechanical toMixer energy at the drive shaft condenser - Balance of thermal energy pseudoI? PHX at the heat exchangers BleedAi? fan RamAir?

  9. www.DLR.de • Chart 9 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - Formulating these balances injection leads to a system with more RamAirI? than 200 non-linear equations reheater MHX extraction - Dymola tries its best but there remain more than 40 compre? turbine iteration variables . toMixer condenser - It is very difficult to find a solution pseudoI? PHX - It is computationally very expensive BleedAi? fan RamAir?

  10. www.DLR.de • Chart 10 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - How does physics reach the injection balance point? RamAirI? - We add an inertia to the reheater MHX drive shaft. extraction - We add thermal inertia to compre? turbine the heat exchangers toMixer condenser - So we have added 5 additional states to our pseudoI? PHX dω / dt∙ I = τ system. - These are artificial states BleedAi? since we are not interested fan in the corresponding dynamcis RamAir?

  11. www.DLR.de • Chart 11 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Three Wheel Bootstrap Circuit - With 5 additional states, injection there remain only single RamAirI? non-linear equations that can be solved sequentially. reheater MHX extraction - The system can be solved in a robust way. compre? turbine toMixer - Simulation with 5 states is condenser still faster than with a system of 40 iteration pseudoI? PHX variables. BleedAi? fan RamAir?

  12. www.DLR.de • Chart 12 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Review: The Method of Artificial States We have applied a common method to cope with a system of non-linear equations: The method of artificial states - We have torn the system apart by introducing artificial states - Instead of prescribing the balance law directly, we are now describing how to reach the balance point as quasi steady state solution. - We can do this, because we know the physics of our system. - In this way, we abuse time-integration as solver for non-linear systems

  13. www.DLR.de • Chart 13 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Classes of Artificial States The method of artificial states appears in many disguises - Adding storages of energy like micro-capacitances, small inertias, spring-dampers, intermediate volumes for fluids, etc. - Adding Controllers Integration-based controllers lead to the equilibrium point - Signal Filters used to tear apart algebraic loops.

  14. www.DLR.de • Chart 14 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Is it Malpractice? Unfortunately, artificial states involve many disadvantages - Stiffness is added to the system - limits step-size - impairs real-time capability - local problem creates global damage - Simulation results are polluted by artificial dynamics - Loss of precision - Time-constants are hard to retrieve and result in fudge parameters Are these disadvantages inevitable?

  15. www.DLR.de • Chart 15 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK What is the Problem? When using artificial states, the modeler evidently makes a distinction between - Dynamic processes that are relevant of the system under study. - Dynamic processes that describe how to solve a non-linear system of equations. He is forced to mix up these dynamics since M&S Frameworks provide no means to make a proper distinction Hence we propose on tool: balance dynamics equations.

  16. www.DLR.de • Chart 16 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Balance Dynamics Equations - The main idea is to give the modeler a way to express his non-linear system as a result of an idealization. - When we added the inertia, we used the following differential equation der(ω)∙ I = τ where I is the fudge parameter. - Ideally we want I → 0 and reach the steady-state solution 0 = τ infinitely fast. To express this we use the new balance operator instead of the derivative operator. balance(ω) = τ - The fudge parameter is gone

  17. www.DLR.de • Chart 17 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK Small Application Example - Let us simulate the following system: d x /d t = y d y /d t = - 0.1∙ a – 0.4∙y s( a ) = 10∙ x - This is the simulation result: 1 0.5 0 x -0.5 -1 0 10 20 30 40 50 60 70 80 90 100 time [s]

  18. www.DLR.de • Chart 18 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK The Problematic Non-linear Equation - x and y are states and we need to solve the last equation for a with s( a ) being defined as: 2 - for a < -1 : s( a ) = a /4 – 3/4 1.5 1 - for a > 1 : s( a ) = a /4 + 3/4 0.5 s(a) 0 s( a ) = a - else: -0.5 -1 -1.5 -2 -5 -4 -3 -2 -1 0 1 2 3 4 5 a - Since the solution by Newton’s method is tricky when the start values jumps over 1 (resp. -1), we have to choose a very small step-size (here 0.01s with Heun).

  19. www.DLR.de • Chart 19 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK How to Use Balance Dynamics Equations? - But we know that s( a ) is a monotonic increasing function. So we can use a balance dynamics equation to get to the solution. d x /d t = y d y /d t = - 0.1∙ a – 0.4∙ y balance( a ) = 10∙ x – s( a ) - The balance dynamics equation can be interpreted as control law: der( a ) ∙T = 10∙ x – s( a ) - If a is too small, a is increased and if a is too high, a is decreased.

  20. www.DLR.de • Chart 20 > Balance Dynamics Equations > Dirk Zimmer > EOOLT 2013, Nottingham, UK How to Interprete Balance Dynamics Equations? d x /d t = y d y /d t = - 0.1∙ a – 0.4∙ y balance( a ) = 10∙ x – s( a ) - This system can now be interpreted in two ways: To solve the ODE To solve the non-linear equation d x /d t = y x = const d x /d t = - 0.1∙ a – 0.4∙ y d a /d t = 10∙ x – s( a ) 0 = 10∙ x – s( a ) - The idea is to use a sub-simulation to solve the non-linear equation and get the solution of the steady-state.

Recommend


More recommend