207
Mathematical Analysis of Dynamic Process Models Index, inputs and interconnectivity

Mathematical Analysis of Dynamic Process Models Index, inputs

Embed Size (px)

Citation preview

Page 1: Mathematical Analysis of Dynamic Process Models Index, inputs

Mathematical Analysis of Dynamic Process Models Index, inputs and interconnectivity

Page 2: Mathematical Analysis of Dynamic Process Models Index, inputs
Page 3: Mathematical Analysis of Dynamic Process Models Index, inputs

Mathematical Analysis of Dynamic Process Models Index, inputs and interconnectivity

PROEFSCHRIFT

ter verkrijging van de graad doctor aan de Technische Universiteit Delft,

op gezag van de Rector Magnificus Prof.dr.ir. J.T. Fokkema, voorzitter van het College voor Promoties,

in het openbaar te verdedigen op maandag 4 december 2006 om 12:30 uur

door

Aloysius Thomas More Judi SOETJAHJO

geboren te Malang, Indonesia werktuigbouwkundige ingenieur

Page 4: Mathematical Analysis of Dynamic Process Models Index, inputs

Dit proefschrift is goedgekeurd door de promotoren: Prof. ir. O.H. Bosgra Prof. ir. J. Grievink Toegevoegd promotor: Dr.S. Dijkstra Samenstelling promotiecommissie: Rector Magnificus, voorzitter Prof. ir. O.H. Bosgra, Technische Universiteit Delft, promotor Prof. ir. J. Grievink, Technische Universiteit Delft, promotor Dr. S. Dijkstra, Technische Universiteit Delft, toegevoegd promotor Prof. dr. ir. P.M.J. Van den Hof, Technische Universiteit Delft Prof. dr. ir. G. van Straten, Universiteit Wageningen Prof. dr. ir. A.C.P.M. Backx, Technische Universiteit Eindhoven Dr. ir. P.J.T. Verheijen, Technische Universiteit Delft Published and distributed by: Optima Grafische Communicatie Pearl Buckplaats 37 Postbus 84115, 3009 CC Rotterdam The Netherlands Telephone : +31-(0)10 2201149 Telefax : +31-(0)10 4566354 e-mail : [email protected] ISBN: 90 – 8559 – 255 – 0

Page 5: Mathematical Analysis of Dynamic Process Models Index, inputs

Dedicated to my mother : Lia Indriawati

Terima kasih atas doa-doamu, Tuhan beserta kita

Ya Bapaku dalam surga, aku bersyukur padaMu Pimpinlah aku selalu untuk membagi kasihMu,

kebijaksanaanMu and pengetahuanMu

Page 6: Mathematical Analysis of Dynamic Process Models Index, inputs
Page 7: Mathematical Analysis of Dynamic Process Models Index, inputs

i

Preface This thesis is the result of my research experiences during the period of 1992 to 1997 at the Delft University of Technology, on dynamic modelling of a complex interconnected DAE (differential Algebraic Equations) of a Coal Gasification Combined Cycle Plant using Speed-Up (Aspen Tech). This thesis describes specific mathematical problems, namely a high index problem and consistent (re-) initialisation problem that I have encountered during modelling of a process and during interconnecting of process sub models. The literature references used are dated until year 2003. At this time, I wish to express my gratitude to all the people who have contributed to this thesis, although unfortunately I am able to mention just a few! Firstly I would like to thank my promoters Prof. O.H. Bosgra and Prof. J. Grievink, and my co-promoter, Dr. S. Dijkstra for providing a valuable research project. Their support, advice & encouragement even after my resignation from university, ensured that I did not give up on completing this book. Thank you for opening the door to an incredible educational journey for which I am thankful! I am grateful to Dr. P.J.T.Verheijen for our discussions and his critical remarks regarding the presentation of my work. Thank you also to Prof. P.M.J. van den Hof, Prof. G. van Straten, and Prof. A.C.P.M. Backx for serving on the thesis committee and for their valuable comments. Secondly, I would like to thank SBM (Single Buoy Mooring) Chief Operating Officer, Dick van der Zee and GustoMSC Head of the System Engineering Department, Bertus Bernhard, both of whom have always supported me and actively encouraged me to finish this thesis in conjunction with my daily work and responsibilities at GustoMSC. Thank you to Andries Mastenbroek and Paul Spoeltman for their understanding and support. Thirdly, I would like to thank for all my colleagues and students at the Delft University of Technology, all of whom supported me during my research period; Peter Valk, Arie Korving, Gideon Go, Agung Hermawan, Habieb, Trias Hermanu, and Folmer de Haan. My special thanks to Angela Hernandez from GustoMSC for her assistance with linguistic and layout corrections. Finally, thank you to my dearest friend Ton Peters. Thank you for your unconditional support and your everlasting care. Delft, December 2006 A.T.M. Judi Soetjahjo

Page 8: Mathematical Analysis of Dynamic Process Models Index, inputs
Page 9: Mathematical Analysis of Dynamic Process Models Index, inputs

ii

Summary Process modelling plays an important role in process engineering and operation. The process models are to be used for: designing of process equipment and process control, prediction of process behaviour and optimisation of product properties during the process operation. Usually, a complex process model consists of interconnected sub models, i.e. as a composite network of sub models in different layers with increasing detail of model components. Modelling of each sub system as a lumped system described with first principles equations, i.e. balance and constitutive equations, gives a set of first order non-linear DAE (Differential Algebraic Equations) model. A consequence of modelling with DAE is the possibility to get a high index and/or a consistent (re-) initialisation problem. An (differential) index of DAE model can be easily defined as the number of differentiations required to transform the original DAE model to an explicit ODE model. A high index occurs if this required differentiation has to be done more than once. A high index problem can be caused by: the wrong choice of input variables, internal state constraint equations (e.g. reaction equilibrium, phase equilibrium), or sub models interconnection. A consistent (re-) initialisation problem means that it is not possible to set arbitrary values of the accumulation/storage variables at any time. A high index model and a low index model with non minimum differential variables always pose a consistent (re-) initialisation problem. Basically, solving a high index problem needs differentiation, instead of integration only. Besides that most numerical algorithms do not cover a differentiation algorithm, it is not practical to solve an interconnected high index DAE models, because a high index DAE poses also a consistent (re-) initialisation problem. A modeller can get unexpected behaviour on the defined/chosen accumulation/storage variables; i.e. these storage variables can ‘jump’ in their time response. When modelling a large scale interconnected system one should avoid a high index DAE model. There have been many researches carried out to solve a high index DAE model. The distinction of the work in this thesis compared with others is that the detection of a high index problem and an index reduction techniques is developed from the original theory of Kronecker and Rosenbrock [107], i.e. a strict system equivalence operation. A strict system equivalence operation performs the required differentiations while maintaining the input-output behaviour of the system. The theory of Kronecker and Rosenbrock [107] is extended for a first order nonlinear DAE model by using the structural information of the equations, rather than the exact numerical value. This thesis shows, for a first order DAE process model, that it is possible to find a procedure (based on a strict system equivalence operation) for a high index reduction, which does not apply complicated non-linear algebraic manipulations. With this procedure the original model equations and variables will not be destroyed.

Page 10: Mathematical Analysis of Dynamic Process Models Index, inputs

iii

Moreover for a given DAE model it is possible to detect which input variables set will not raise a high index problem, provided that there are no state constraints equations. These state constraints equations can be detected by any choice of an input variables set which give the maximum number of state variables of the model. Interconnection of DAE sub models requires information on possible input variables of each sub model. This input variables set does not have to be unique. Interconnection of sub models will not raise a high index problem, when there is no state constraint equation arising due to the interconnection, i.e. the interconnected low index models resulting to a low index composite model. Despite of advantage on applicability of the structural method, for a rare case it is possible to have an analytical cancellation problem on a high index detection; i.e. the structural algorithm shows that the DAE has a high index; but analytically the DAE does not have a high index. A combination of symbolic and structural approaches can solve this problem and the theory in this thesis can be expanded to such application. Moreover the extension of the high index theory for a distributed system, PDAE (Partial Differential Algebraic Equations) is necessary, since a state constraint problems can arise either in a time domain, or in a spatial domain or a combination of them.

Page 11: Mathematical Analysis of Dynamic Process Models Index, inputs

iv

Table of Contents Preface ……………………………………………………………….. i Summary …………………………………………………………….. ii Chapter 1: Introduction 1.1. Background .………………………………………………… 1 1.2. Motivation ..………………………………………………… 2 1.3. Related works ………………………………………… …… 7 1.4. Problem definition and scope ………………………………… 9 1.5. Approach and outline of the thesis …………………………… 10

Chapter 2: Mathematical Properties of a First Order DAE model 2.1. Introduction ………………………………………………….. 13 2.2. Kronecker Canonical Form …………………………………... 14 2.3. Low index criterion of a DAE model …………………………. 18 2.4. Calculation of the index of a DAE model ……………….……. 19 2.5. Solving a consistent initialisation and a re-initialisation problem 21 2.6. Index reduction of a DAE model ……………………………… 27 2.7. Conclusions …………………………………………………… 38 Chapter 3: Structural Properties of a First Order DAE model 3.1. Introduction ………………………………………………….. 39

3.2. Structure of system matrices 1, ( ), ( )E T s T s − ………………. 40 3.3. Structural properties of a first order non linear DAE model …. 44 3.4. Genericity of structural properties …………………………… 49 3.5. Examples …………………………………………………….. 54 3.6. Conclusions ………………………………………………….. 61 Chapter 4: Application of Low Index Detection and High Index Reduction

of Non-linear DAE Process models 4.1. Introduction ………………………………………………….. 63 4.2. High index reduction through variables differentiation ………. 65 4.3. High index reduction through equations differentiation ………. 77 4.4. Consistent re-initialisation problem ………………………….. 84 4.5. High index problem due to interconnection ………………….. 89 4.6. Conclusions ………………………………………………….. 94

Chapter 5: Input Variables Assignments of a DAE Model 5.1. Introduction …………………………………………………... 95 5.2. Model entities and variables classification …………………… 98 5.3. Low index input variables assignment …………………….….. 105

Page 12: Mathematical Analysis of Dynamic Process Models Index, inputs

Table of Contents

v

5.4. Maximum dynamic degree input variables assignment ………………... 118 5.5. Conclusions ……………………………………………………………. 126 Chapter 6: Interconnection of DAE Models 6.1. Introduction ……………………………………………………………. 127 6.2. Process model ports ……………………………………………………. 128 6.3. Process model connectors ……………………………………………… 133 6.4. Interconnection of sub models …………………………………………. 138 6.5. Conclusions ……………………………………………………………. 152 Chapter 7: Conclusions and Recommendations 7.1. Conclusions ……………………………………………………………. 153 7.2. Recommendations ……………………………………………………… 155 Appendix A: Structural Frame Work ………………………………………… 157 Appendix B: Graph Algorithm ……………………………………………….. 161 Appendix C: Modelling of an ICGCC Plant …………………………………. 171 List of symbols and abbreviations …………………………………………….. 183 References ……………………………………………………………………… 185 Samenvatting …………………………………………………………………… vi Curriculum vitae ……………………………………………………………….. viii

Page 13: Mathematical Analysis of Dynamic Process Models Index, inputs

1

Chapter 1: Introduction

Design engineering practices always require process models as a predicting and calculation tool. The model modularisation, interconnectivity and transparency are essential in model building and model re-use. The mathematical models of process result mostly into a set of interconnected Differential Algebraic Equations (DAE). The research motivation of this thesis is analysis of the mathematical process model structure and its interconnectivity.

“A system is our ‘projection’ of a structure or an ordering of ‘mechanisms’”

1.1. Background Mathematical models are used in many areas of science or engineering to understand the system’s behaviour and/or design of specific system behaviour. This model represents internal behaviour of a system subject to the purpose, assumptions, and simplifications of the modeller. The system internal behaviour is generally described with balances and other constitutive equations. A system can be anything of a single part, organ, or mechanism or a set of interconnected parts, organs, and/or any physical process, that may perform a particular function or composite functions. A dynamic system is a system where its internal properties or quantities undergo a progress of change in time. A mathematical description of a dynamic system is called a mathematical (dynamic) model. A mathematical (dynamic) model (Willems [131]) is a mathematical description of a dynamic system (for a given boundary) that consists of aspects: time and behaviour equations. Behaviour B of a dynamic system manifests to a set of signal trajectories

( ) nz t ∈R on some time interval ( ); ,t a b a b∈ ∈R , satisfied behaviour equations, B { }( ) : Behaviour equations are satisfiednz t= →R R (1.1)

Modelling of a complex process consists of interconnection of sub-models each represented by a set of behaviour equations (1.1). Prior to 1960 – 1980’s, it was common practice for modelling of a system behaviour by a set of Ordinary Differential Equations (ODE) with fixed chosen input variables,

( , , )x f x u t= , (1.2)

where 1: n k nf + + →R R , , nx x ∈R are the model solutions, ku ∈R are the input

variables, and t T∈ denotes the time at some interval T ⊂ R .

Page 14: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

2

Simulation of an ODE model was done by translating it into a Computer Language as interconnection of mathematical library operations, from which it was difficult to recognise the original set of equations, difficult to modify the model, and difficult to re-use the model for other purposes. Nowadays mathematical process modelling and simulation are based on balance equations and constitutive equations resulting into a set of Differential Algebraic Equations (DAE), given by :

F z t z t t( ( ), ( ), ) = 0 , (1.3a) or ( ( ), ( ), ( ), ) 0F z t z t u t t = , (1.3b)

where : mF V → R , V is open in 2 1n+R is a vector defining the model; : nz T → R denotes its solution, with m n≤ and t T∈ denoting the time at some interval T ⊂ R , is a common approach, where the modeller always has the transparent original DAEs model in the simulation engine. This has many advantages for re-usability or model modification.

1.2. Motivation

1.2.1. Industrial needs The development of numerical solving methods and computer hardware in the last decennium make it possible to do large-scale mathematical model simulation/calculation even with a personal computer. Process model simulation on the process industry consists of two main items, namely: the process model building and the process model re-use. On the process model building the modeller needs to make the model equations. For the process model re-use the modeller uses the existing made models and interconnect them with other models when it is necessary. Commercial software such as Aspen [5] and Hysis [61] built a lot of standard model libraries, which can be re-used and interconnected for designing complex processes. Also there is a tendency to migrate the software programmes to open concepts, where different model libraries built in different programmes can be re-used and interconnected. Nowadays engineering design activities include integration of processes from different physical domains, e.g.: electrical, chemical, physical, and mechanical processes. Engineers need to be able to build, re-use and interconnect mathematical models from different physical domains into one common simulation platform. Despite the fast developments in different fields of software programming and hardware availability, industrial practice shows that there are still several problems to be solved on dynamic model building and model interconnection. The available

Page 15: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

3

Conceptual Mathematical Dynamic Model

Computer/Simulation Language Translation

Numerical Language Translation And Computation

simulation tools on the market give different ways for model representations, model aggregation and model interconnectivity of processes from different physical domains. The dynamic modelling process and representation should be standardised in universal-ways. The standardisation in this context also brings a ‘bridge’ between Conceptual Modelling Process and its translation into Computer Language for solving the problems (see Figure 1.1.). Dynamic process model becomes transparent when the ‘gap’ between conceptual and simulation language is not too large, which makes life easier for a lot of engineers to communicate with each other, re-using models from different sources/authors, and doing maintenance or modification of the model when required. On the computation level the computer model should be translated to be able to solve with a numerical engine. Figure 1.1 Modelling and Simulation stages.

In conclusion, the industries application fields need: - an open modelling platform, - universal modelling standardisation, - flexibility on model modularisation, and interconnectivity, - flexibility on model re-use and modification (model transparency), and - easy use and fast model building.

1.2.2. Academic research The mathematical modelling of physical systems consists of the decomposition of complex systems and composition/interconnection of sub-models. This topological decomposition (see figure 1.2) is necessary for several reasons:

1. The real physical processes exist of interconnected sub-systems. 2. The decomposition and composition of sub systems are human tools to

‘create’ a new system.

Model building

Simulation

Page 16: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

4

Figure 1.2. Model decomposition Preisig [104] defines that an elementary model/system is a finite volume body or a finite volume single-phase system. If the elementary model/system has spatial uniform physical properties then this system is called a lumped model/system. If the physical properties are not uniform then it is called a distributed model/system. Figure 1.3. shows an example of a topological decomposition of a distillation system. Part A of this figure gives schematically that this distillation system is a composite of interconnected models (a distillation column, a condenser, a reboiler, several control valves, and controllers). Part B gives schematically that the distillation column consists of interconnected distillation trays sub-model and finally part C shows that a tray sub-model consists of interconnected two elementary phases (liquid and vapour phase), where mass and energy are transferred through the interface.

Model

Topological structure assumptions

Topology Decomposition

Sub-model Interconnection

Sub-sub-model Interconnection

Elementary model Interconnection

Elementary behaviour Behaviour assumptions

Page 17: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

5

Ni,LNi,V

EL,exc

liquid phase

interface

EV,exc

vapour phase

FIC

Condensor

Reboiler

DistilationColumn

ControlValve

Vapourflow

Liquidflow Interface mass & energy transfer

A. Interconnected modelsof a distillation system

B. Interconnected tray submodelsof a distillation column

C. Interconnected elementary liquid &vapour phases in a distillation tray

Figure 1.3. A topological decomposition of a distillation model Basically the modeller will make two kinds of assumptions during the modelling of a dynamic system, namely:

- the topological assumptions - the behavioural assumptions

The topological assumption on the process model decomposition or composition of lumped models describe:

- the interconnection structure of the elementary models, and - the geometry of the elementary models.

The set up of the behavioural equations within an elementary model depends on the behavioural assumptions made by the modeller. Basically there are two types of behavioural assumptions (Marquardt [85]), namely: 1. The primitive behavioural assumptions: The primitive behavioural assumptions are the first assumptions that should be made by the modeller to decide the relevant physical balance equations or balance mechanisms within the system, e.g. component mass balances and energy balance. These must form independent balance equations; therefore the accumulation or storage terms in these balance equations should be also independent. The primitive balance/storage variables are principally the state variables of the model. 2. The constitutive behavioural assumptions: The second behavioural assumptions, made after the set up of the primitive balance equations, are the constitutive behavioural assumptions. These assumptions describe e.g.:

Page 18: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

6

- the transport behaviour assumptions - the reaction behaviour assumptions - the physical properties behaviour assumptions - other behavioural simplification assumptions

The constitutive assumptions must also include the validity range of the used equations. A sub set of behaviour equations (1.1) for a mathematical model representation based on the balance equations and constitutive equations are given on a set of first order differential algebraic equations (DAE (1.3a), (1.3b)). In the last decade it is has been realised that DAEs have two essential different properties than sets of Ordinary Differential Equations (ODEs), namely the term ‘high index’ and ‘consistent (re-) initialisation problem’ of DAE model. A high index DAE model What is a high index DAE model ? A high index DAE model is, roughly speaking, if in the model equations there are (hidden) state constraint equations or better to say, constrained differential variables equations. A high index DAE process model may cause conflict with the primitive assumptions of the modeller about the choice of storage variables and related model equations. These storage variables are no longer independent. In some cases the reaction rate, or the mass transfer rate, or the energy transfer rate are not known or to be considered as the phases or the components are in equilibrium, examples: applying a thermodynamic equilibrium or reaction equilibrium assumptions. These assumptions will result to non-independency of the phases or the components. Basically there are three causes of a high index DAE, namely: a) internal states constraints, e.g.:

- introduction of behavioural constraint equation, e.g.: reaction or phase equilibrium

- introduction of geometrical constraint equation, e.g.: volume constraint on multiphase fluid system

- choice of coordinate system, e.g. pendulum with cartesian coordinate (Mattsson [86])

b) non causal relation of the chosen ‘input’ variables of the model, c) interconnection of DAE sub models Finding an input variables set for a given DAE model (1.3a), which result to a low index DAE model is sometimes not easy. The wrong choice of input variables set can result in a high index model (A.Lefkopoulos [74,75]). It is known that a high index DAE model is numerically difficult to solve. The problems on numerical solving of a high index model are:

- break down of the numerical solver error control, e.g. the error control of implicit numerical solver backward formula (Brenan, Petzold, Campbell [17], Bujakiewicz [21]) increases for a high index DAE model.

Page 19: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

7

- finding consistent initial conditions and solving a consistent re-initialisation problem (B. Leimkuhler et.al [76], C.C. Pantelides [98])

DAE models interconnection A complex mathematical model consists of interconnection of sub-models. The interconnection is the way of ‘transferring goods’ between sub models, ‘the goods’ herein are e.g.: information, material, energy, and momentum. These are generally given in the interconnected sub models variables, e.g.: mass flow, pressure, mass fraction, specific enthalpy, heat flow, temperature, entropy, position, speed, force, electric current, and electric voltage. The interconnection equations can act as constraint equations for the state variables such that the interconnected DAE sub-models gives a high index model. The interconnections between DAE sub-models are important during model building and a model replacement. The questions here are how to interconnect DAE sub-models and to find the external input signals, such that the interconnected DAE model does not have a high index structure. Thus it is important to recognize whether a DAE model has a high index and to detect what is the cause of this high index problem, i.e.:

- to detect if the state variables constraints are due to internal constraint equations within the model, or due to the choice of input variables, or due to the interconnection of sub models,

- to detect which equations result in state variables constraints, - to know if the pre-assumed storage variables are independent, - to look for the solving method for the high index model, either by symbolic

‘index’ reduction or special numerical handling Moreover for interconnecting for DAE sub models, it is important to know:

- which input variables sets will not result in a high index model, and - how to interconnect DAE sub models that it will not result in a high index

composite model.

1.3. Related works A lot of research has been done to explore properties of a DAE model (1.3b). The related works are briefly described in this section.

1.3.1. The index of a DAE model The index property of a linear DAE model was analysed by Rosenbrock [107], G.C. Verghesse, B.C. Levy and T. Kailath [127], Van Dooren [32], J. Demmel and B. Kagstrom [31]. The theory of Rosenbrock [107] is very nice, since it is based on an equivalence system operation. This system operation performs manipulation on the internal variables and equations of the model, but resulting to an equivalent inputs outputs behaviour. The equivalent system operations are done by algebraic manipulations and differentiations on the model equations and/or variables. These are

Page 20: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

8

to calculate the index and reduce the index of a linear DAE model. The disadvantages of these operations are practically difficult to perform and destroy the original variables and equations of the model. Luenberger [81] did an attempt to perform an index reduction of a linear DAE model which includes only row manipulations, i.e. model equations differentiation and variables elimination and substitution. The works of C.W. Gear, L.R. Petzold [44], and Unger, et.al [125, 126] on index detection of non linear DAE model have the root from the work of Luenberger [81]. These algebraic manipulations usually difficult to apply for non linear DAE model and destroy the original character of the equations. The Gear’s algorithm and Unger’s algorithm are practically suitable to calculate the index of a DAE model. The work of Pantelides [98] is based on the solving of a consistent initialisation problem of a DAE model. This algorithm does not involve the structural eliminations and substitutions of variables on the equations. It determines only the minimal subset of the model equations that must be differentiated of which impose constraints on the initial conditions. The disadvantage of this algorithm is possible introducing unnecessary equation differentiation. Mattsson and Söderlind [86] developed a symbolic index reduction technique base on the algorithm of Pantelides for finding the necessary equations to be differentiated. Bujakiewics [21] proposed a numerical solution of a high index model by numerical scaling of the error control using the information from the DAE model structure, without performing any change on the original model equations. The index of a DAE model can be calculated using the structural information of the model. Since a high index and a consistent initialisation problems are different, we want to have an algorithm that can detect a high index and a consistent initialisation problem, calculates the index of the model, and gives proposals to perform an index reduction. The index reduction procedure shall result in an equivalent model. This algorithm should not perform complicated non linear algebraic manipulations, which can destroy the original form of the model equations and model variables.

1.3.2. The interconnection of DAE sub models The work on the linear models interconnection was done by H.H. Rosenbrock, A.C. Pugh [109]. This work is limited to linear state space models with fixed input and output variables. Breedveld [15, 16] gives the concept of bilaterally coupled models interconnection, i.e. that sub models are interconnected through pair of ‘effort’ and ‘flow’ variables. Marquardt [89] uses almost the same concept with bilaterally coupled connection, i.e. the interconnection between sub models is given by the fluxing relations. This fluxing relation calculates the ‘flow’ variable as result of the differences of the ‘flux’ or ‘effort’ variables values. The extension of this work is recently done by B.Maschke, A. van der Schaft [90] for the interconnection of mechanical systems. The new concept of the work of Maschke and A. van der Schaft is formulation of interconnection

Page 21: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

9

equations without pre knowledge of the directionality of the input and outputs variables on the interconnected sub models. In the process modelling, the interconnected sub models can consists of model equations and/or encapsulated sub-routines (e.g. physical properties routines). Moreover the interconnected variables can be bilaterally coupled variables and/or non bilaterally coupled variables. Due to the complexity of interconnected DAE sub models in process modelling, we want to avoid a high index problem due to interconnection. Therefore we need to examine what is the necessary condition to get interconnected low index sub models.

1.3.3. Other related works of a DAE model a. Numerical solving methods of a DAE model Research on the numerical solving methods of DAE are done for example by: K.E. Brenan, S.L. Campbell and L.R. Petzold [17], E. Hairer, C. Lubich, and M. Roche [54], Wijckmans [133]. b. Process modelling and simulation using DAE models Research on the process modelling and simulation using DAE are done for example by: P.I. Barton [6] and C.C. Pantelides [99], Mattsson and Söderlind [86], Nilsson [93], Marquardt [85].

1.4. Problem definition and scope Despite the work that has been done around properties of a DAE model, in my opinion the following academic items are still ongoing discussion:

1. How to detect a high index, calculate the index and perform index reduction of a DAE model based only on the DAE model structure ?

2. How to assign input variables to a DAE model and what is the necessary

conditions to avoid a high index model as a result of the interconnections of low index DAE sub-models ?

These questions give motivation for my research of: Mathematical analysis of dynamic process models – Index, inputs and interconnectivity with main contributions being:

- to clarify the index detection, index calculation, and proposing index reduction based on the mathematical structure of DAE model,

- to find input variables for a DAE model, and - to avoid a high index problem due to interconnection of DAE sub-models.

M.R. Westerweele [135] works emphasize on the process modelling process, i.e. how to avoid a high index in modelling process. Additional equations (restrictive type)

Page 22: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

10

might be necessary to be added, when during modelling a high index structure arises. The work presented in this thesis comes from different view, namely how to analyze a given mathematical model structure of a process model and to reduce a high index from a generic system theoritical approach. This thesis forms an extension of the works that have been done by H.H. Rosenbrock [107] and Bujakiewics [21], i.e. derived a method to detect high index, perform index reduction, finding input variables based on Kronecker form for non linear first order DAE model. The scope will be limited to analyse the structural properties of a first order DAE model for a lumped system description. The DAE model here is the result of modelling using the balance and constitutive equations. The issue of a first order DAE solvability is also outside the scope of this thesis; since the structural approach can not detect independency of DAE equations. The existence of a local consistent initial conditions, as it will be described in Chapter 2, gives only a local necessary condition for an existence of a solution.

1.5. Approach and outline of the thesis The first question in my thesis will be answered in Chapter 2 and Chapter 3. Chapter 4 will describe several examples of high index model detection and reduction, based on the theory developed in Chapter 2 and Chapter 3. The second question in my thesis will be answered in Chapter 5 and Chapter 6, namely it describes a method for finding input variables of a DAE model and gives a sub-models interconnect ability condition. A model diagnosis tool is developed by use of a structural approach to help the modeller during the model building phase to avoid a high index problem. The outline of this thesis is as follows: Chapter 2: Mathematical properties of a first order DAE model This chapter gives as a short description of equivalence system operations to calculate the index of a DAE model and to reduce the index of a DAE model. Further easier methods are derived for a low index detection, index calculation and detection of a consistent (re-) initialisation problem. Moreover this chapter also presents the conjunctures of high index reduction techniques on a non linear first order DAE model and strict system equivalence operation on a linear DAE model. Chapter 3: Structural properties of a first order DAE model This chapter describes the structural properties of a first order non linear DAE model based on the theory developed in Chapter 2. Some definitions of mathematical structure are given, where properties such as structural determinant, structural rank, structural low index criterion, and structural index calculation are derived. The structural theory is used to analyse the properties of a first order non linear DAE model.

Page 23: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

11

Chapter 4: Application of low index detection and high index reduction of nonlinear DAE process models This chapter describes several examples of high index dynamic process models. The high index detection and the high index reduction techniques derived in Chapter 2 are applied in this chapter. Moreover this chapter also gives the difference between a DAE model with a consistent (re-) initialisation problem and the high index DAE. Chapter 5: Input variables assignment of a first order DAE model Modelling with a DAE allows different input sets assignment, which result in low index systems. This chapter describes a structural approach of modelling diagnose tool / algorithm for finding a low index inputs assignments or for detection of state constraint equations. Chapter 6: Interconnection of DAE models This chapter includes definition of model ports, model connector, interconnection, and interconnect ability structure between sub-models. Based on the previous chapters, it will be derived a necessary condition for interconnection of low index sub models that result to a low index interconnected model. Chapter 7: Conclusions and recommendations This chapter includes the main conclusions of my research and recommendations for future work. Appendix A : Structural frame work This appendix describes the structural frame work for development of the theories in Chapter 3. Appendix B : Graph algorithm This appendix describes the principal of a graph algorithm for implementations on the theories in Chapter 3 and Chapter 5. Appendix C : Modelling of an ICGCC plant

Page 24: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 1 : Introduction

12

Page 25: Mathematical Analysis of Dynamic Process Models Index, inputs

13

Chapter 2: Mathematical Properties of a First Order DAE model

The system matrices E, ( )Es A− , and 1( )Es A −− of a DAE model,

( ( ), ( ), ( ), ) 0F z t z t u t t = , with FEz

∂=∂

and FAz

∂=∂

contain all system

properties of the DAE, i.e.: index, consistent re-initialisation, state and non-state variables. ‘A change of a physical system structure may result in ‘an impulsive behaviour’”

2.1. Introduction In Chapter 1 we have seen that mathematical modelling of a physical system leads into interconnected independent first order differential algebraic equations with the general form (1.3b):

( ( ), ( ), ( ), ) 0F z t z t u t t = (1.3b)

In the last decade much research has been carried out into the properties of differential algebraic equations. Historically the properties of linear time invariant DAE models have been analysed (e.g.: Rosenbrock [107], Verghese et.al [127], Van den Weiden [128]). In the 1980’s analysis of a non-linear DAE began as a research topic in modelling and numerical solving areas (e.g.: Brenan, Petzold, Campbell [17], Gear [44], Marquardt [87],[88], Pantelides [97],[98]). Rosenbrock [107] shows the important properties of a linear DAE model (i.e. index of DAE, consistent initialisation, index reduction) via equivalence system operations to transform the DAE into a Kronecker Canonical Form. Practically this transformation is difficult to carry out. The objectives of this chapter are to derive easier methods for detecting a high index problem, calculating the index, and detecting a consistent (re-) initialisation problem based on the information of the system matrices of a DAE model (1.3b),

( , , , ) 0F z z u t = . Those system matrices are , ( )E Es A− , and 1( )Es A −− , where

and F FE Az z

∂ ∂= =∂ ∂

.

Further this chapter describes proposals of index reduction techniques of a DAE model without performing non linear algebraic manipulations. This is to retain the original form of the model equations and model variables. The index reduction techniques will be derived in conjunction with an equivalence system operation (Rosenbrock [107]).

Page 26: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

14

This chapter consists of seven sections. Section 2.2 briefly describes the Kronecker Canonical From (KCF) transformation, to know the index of a DAE model and to perform an index reduction. Section 2.3 describes methods to detect if a DAE model has a high index problem. Section 2.4 gives a method to calculate the index of a DAE model. Section 2.5 describes a consistent (re-) initialisation problem of a DAE model. Section 2.6. gives procedures to reduce the index of a DAE model and finally, section 2.7 gives some conclusions.

2.2. Kronecker Canonical Form Let a non-linear input-output DAE model be given by the equations:

( ( ), ( ), , ) 0( , )

F z t z t u ty g z t

==

(2.1a, 2.1b)

where t ∈ I denotes the time on some interval ⊂I R ; the function : mF V → R , V is open in 2 1m k+ +R is a vector space defining the model; the solution variables and the input variables : , :m kz u→ →I R I R . Moreover the output functions :g W Y→ ,

where 1 and mW Y +⊆ R with the output variables : ny →I R . The index of DAE model (2.1) is defined as follows: Definition 2.1A. Index κ of a DAE model (Brenan, Campbell, Petzold [17], Bujakiewicz [21]) Given a DAE (2.1a): ( ( ), ( ), ( ), ) 0F z t z t u t t = The index κ of a DAE is the minimum number of times that the complete or a part of equation (2.1a) must be differentiated with respect to t, such that the system equations:

( )

( )

( ( ), ( ), ( ), ) 0

( ( ), ( ), ( ), ) 0

( ( ), ( ), ( ), ) 0

F z t z t u t td F z t z t u t tdt

d F z t z t u t tdt

κ

κ

=

=

=

can be transformed into an explicit ODE, i.e. z as a continuous function of z , 1 ( ), ,..., lu u u and t, by algebraic manipulations. (note: l κ≤ ).

A DAE model with a (differential) index greater than one is called a high index DAE otherwise it is a low index DAE.

Page 27: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

15

Definition 2.1B. Perturbation Index p of a DAE model (Hairer et.al [54]) Equation (2.1a) has a perturbation index p if p is the smallest integer such that, for all functions ( )pz t being solutions of the DAE perturbed by ( )u tδ

( ( ), ( ), ( ), ) ( )p pF z t z t u t t u tδ= (2.1c) There exists a bound on the difference between ( )z t and ( )pz t :

( )( 1)

0 0( ) ( ) (0) (0) max ( ) max ( )p

p p t tz t z t C z z u u

ξ ξδ ξ δ ξ−

≤ ≤ ≤ ≤− ≤ − + + + (2.1d)

whenever the expression on the right-hand side is sufficient small. Gear [46] has shown that 1pκ κ≤ ≤ + . Moreover Gear derived that pκ = for DAE having an integral form of:

( )( , , ) ( ) ( ) 0

df zF z z u g z h u

dt= − − = (2.1e)

which includes also DAE of the form (2.2). Since in this thesis, we will analyse the properties of a DAE based on the form of (2.2), then we will not make difference between differential index and perturbation index. We call only the ‘index’ of a DAE (2.2). The definition (2.1) is closely related with a strict system equivalence operations of a linear implicit DAE (Rosenbrock [107]). To understand, suppose

00 0 00 ( , , , )Tz z u tξ = lies on a solution manifold of (2.1a) at time 0t ∈ I and suppose

(2.1a) is locally time independent. Without losing generality for analysis purpose we choose 0 0( , ) (0,0)z z = . Linearisation of (2.1a) at ξ

0 gives:

Ez t Az t Bu t( ) ( ) ( )= + (2.2) where:

E Fz

A Fz

B Fuo o

= ∂∂

= − ∂∂

= − ∂∂

, ,ξ ξ ξe j e j e j0

After Laplace transformation we get the solution of (2.2):

z s T s Ez Bu s( ) ( ) ( )= +−b g b g10 (2.3)

where: [ ]1

( ) ( )m

ijT s t s Es A⎡ ⎤= = −⎣ ⎦ is called the system matrix of (2.2) (Rosenbrock

[107]). Matrix ( )E Aλ − is called pencil of (2.2) (Brenan, Campbell and Petzold [17]). Let T(s) be non-singular, then there is a constant pre-multiplying matrix M and a constant post-multiplying matrix N (i.e. algebraic manipulations on the DAE model equations and variables) that transform (2.2) to a Kronecker Canonical Form (KCF).

Page 28: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

16

This equivalence system operation is also called a restricted system equivalence operation, (Rosenbrock [107]). This is given as follows:

1 10

0

( ) ( ) ( )ˆˆ ˆ( ) ( ) ( )

MT s NN z s MENN z MBu sMT s N z s MEN z u s

− −= +⇒ = +

(2.4a)

where

MT s NsI A

I sJMEN

IJ

z s N z s

u s MBu s

r r

m r

r

m r

( ) , , ( ) ( ),

( ) ( )

=−

+LNM

OQP =

LNM

OQP =

=− −

−00

00

1

with J J Jq= block diag( ,..., )1 ; where:

J i qi =

L

N

MMMM

O

Q

PPPP=

0 1 0

0 10 0

1 2, , ,..., (2.4b)

⇒−

+LNM

OQPFHGIKJ =LNMOQPFHGIKJ +FHGIKJ−

sI AI sJ

z sz s

IJ

zz

u su s

r r

m r

r00

00

1

2

10

20

1

2

( )( )

( )( )

(2.5)

Each of Ji has a size ji and the largest max( )j ji = is called the degree or index of nilpotency (J). For 1j ≥ the DAE (2.4) is called a high index DAE, otherwise it has a low index. For j = 0 the DAE (2.2) is called an index one DAE. In the time domain the first row of (2.5), the ordinary state space part, can be written as:

1 1 1 101 0ˆˆ ˆ ˆ ˆ( ) ( ) ( ) , ( )rz t A z t u t z t z= + = (2.6) The solution of the second row can be done by pre- or post-multiplication with unimodulair polynomial matrix M(s) or N(s) (i.e. algebraic manipulations and differentiations on model equations and variables). This equivalence system operation is called as a strict system equivalence operation (Rosenbrock [107]): M s I sJ z s M s J z M s u sorI sJ N s z s N s J z N s u s

m r

m r

( ) ( ) ( ) ( ) ( )

( ) ( ) ( ) ( ) ( )

+ = +

+ = +

2 20 2

2 20 2

(2.7a)

where M s N s Diag I sJi( ) ( ) [ ]= = + −1

and every block entry of M s N s( ) ( ), has a form of:

Page 29: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

17

[ ]

( )

I sJ

s s

si

j ji i

+ =

− −

L

N

MMMM

O

Q

PPPP−

− −

1

1 11 1

0 10 1

(2.7b)

in the time domain this can be written as:

⇒ = − + −=

=

∑ ∑( ) ( ) ( ) ( )( ) ( )z t J J z J u ti i i

i

ji i i

i

j

2 200

1

20

1

1 1δ (2.8a)

and

⇒ = − + −= =∑ ∑( ) ( ) ( ) ( )( ) ( )z t J J z J u ti i i

i

ji i i

i

j

2 200

20

1 1δ (2.8b)

Where : ( )iδ = i-th time derivate of impulse function. The formulas (2.7a,b) show that for 1j ≥ , the solution of the second row of (2.5) requires row or column differentiations, where this solution (2.8a,b) may introduce impulsive behaviour in case of z 20 0≠ and may require differentiation of ‘input’ variables if ( )u t2 0≠ . Thus for 1j ≥ the DAE (2.2) requires j times differentiations

to be able to transform (2.2) into an ODE with 1 2ˆ ˆ( ), ( )z t z t as functions of

1 1ˆˆ ( ), ( )z t u t and ( )2

0

ˆ( 1) ( )j

ii i

iJ u t

=

−∑ (see definition 2.1).

For j=0, i.e. an index one DAE, the solution (2.2) becomes:

1 1 1 101 0ˆˆ ˆ ˆ ˆ( ) ( ) ( ) , ( )rz t A z t u t z t z= + =

2 2ˆˆ ( ) ( )z t u t= Lemma 2.2 Consider (2.4a,b); then j- degree of nilpotency of J equals to the (differential) index κ . Proof: to solve (2.5) it needs ( 1)j − differentiations (see 2.7b), and one extra

differentiation to calculate ( )z t (see: (2.8a,b)). It follows that the (differential) index κ of (2.2) equals to j-degree of nilpotency of J. With this KCF transformation, we can calculate the index of a DAE model as given on (2.5) and perform an index reduction through a strict system equivalence operation as given on (2.7). The problems on these equivalence system operations are: - difficult to get the transformation matrices M and N to bring to Kronecker

Canonical Form - the model equations and variables are changed

Page 30: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

18

2.3. Low index criterion of a DAE model In case if we only want to know if a DAE model has a low index, the following Lemmas 2.3 or 2.4 give an easy computation procedure: Lemma 2.3 Low Index Criterion - 1 Consider a DAE model (2.2):

T s z s Bu s( ) ( ) ( )= (2.3)

where [ ]( )T s Es A= − and let det T s( ) ≠ 0 ,i.e. non singular, then the DAE (2.3) has a low index if and only if

degdet ( )T s E= rank (2.9)

Proof: Given a DAE (2.3), T(s) and E by a restricted system equivalence operation transformed to (2.5), T s E' ( ), ' ; where:

0 0'( ) , '

0 0r r r

m r

sI A IT s E

I sJ J−

−⎡ ⎤ ⎡ ⎤= =⎢ ⎥ ⎢ ⎥+ ⎣ ⎦⎣ ⎦

J is defined as in (2.7b). Since degdet I sJn r− + = 0 , we have

degdet ( ) degdet ' ( ) degdet .T s T s sI A rr r≡ = − =

Further rank rank ' rank rank E EI

Jr Jr≡ =

LNMOQP = +

00

, but since DAE model has a

low index if and only if rank J = 0 , we have rank E r= if and only if the DAE model has a low index. When the system matrix T(s) is not in KCF, then r can be calculated from deg det ( )T s , as follows :

Given a square matrix ( )( ) ( ) [ ]m mij ij

T s t s s×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R and S is the set of all

permutation σ of numbers 1,2,...,m , then the determinant of ( )T s , det ( )T s is defined (J.G. Broida [18], P. Lancaster [72]) as:

1 21 2

1

det ( ) : ( ) ( ) ( )... ( )

( ) ( )

m

i

mS

m

iS i

T s sign t s t s t s

sign t s

σ σ σσ

σσ

σ

σ

∈ =

=

=

∑ ∏ (2.10a)

where sign( )σ equals –1 for σ odd and 1 for σ even.

Page 31: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

19

Then

1

deg det ( )

deg( ( ) ( ))i

m

iS i

r T s

sign t sσσ

σ∈ =

=

= ∑ ∏ (2.10b)

Lemma 2.4. Low Index Criterion – 2 Consider a DAE model with the following equations:

1 11 1 12 2 1 1

21 1 22 2 2 2

( ) ( ) ( ) ( )0 ( ) ( ) ( )

z t A z t A z t B u tA z t A z t B u t

= + += + +

(2.11)

This means that:

11 12

21 22

0,and

0 0r A AI

E AA A⎡ ⎤⎡ ⎤

= = ⎢ ⎥⎢ ⎥⎣ ⎦ ⎣ ⎦

then (2.11) has a low index if and only if A22 is non-singular. Proof: rank E r = and

deg det ( ) deg det degT ssI A A

A AsI A Ar

r≡−L

NMOQP = −11 12

21 2211 22b g equals to r if only if

A22 is non-singular.

2.4. Calculation of the index of a DAE model The index of a DAE (2.2) can be calculated more simply with the following Lemma 2.5, 2.6. Lemma 2.5 Consider a DAE (2.2) after KCF transformation is represented as DAE (2.5) then the index of the DAE (2.2) is

( ) 1max {0, (power of of ) 1}ij m rs I sJ −− + +

Proof: from (2.5) and (2.7b), we see after a KCF transformation that the max power of s in Es A− −1 is s j−1 determined by the largest :

Page 32: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

20

[ ]

( )

I sJ

s s

s

j j

+ =

− −

L

N

MMMM

O

Q

PPPP−

− −

1

1 11 1

0 10 1

where det I sJ+ = 1 and j is the degree of nilpotency or index of DAE (2.2). The following Lemma 2.6 is derived to calculate the index of DAE (2.2) from its fractional system matrix inverse, since in most cases transformation of a DAE (2.2) into a KCF is not easy. Lemma 2.6. Consider a DAE (2.2) with its system matrix T s Es A( ) = − and its fractional polynomial matrix inverse:

[ ] ( )11 1( ) ( )

det ( )det ( )

, 1,...,

ij ij

ji

ij

T s Es A t s

S sT s

i j m

−− −⎡ ⎤= − = ⎢ ⎥⎣ ⎦

⎡ ⎤⎛ ⎞⎢ ⎥= ⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

=

(2.12)

where sub-matrix S xij ( ) of matrix [ ]m mT s×∈R is m m× matrix obtained by placing

zeros in the i-th row and in j-th column of ( )T s and replacing the ij-th element with 1 (J.G. Broida [18], P. Lancaster [72]):

11 1

1

( ) 0 ( )

( ) 0 1 0

( ) 0 ( )

m

ij ij

m mm

t s t s

S s

t s t s

⎛ ⎞⎜ ⎟⎜ ⎟⎜ ⎟=⎜ ⎟⎜ ⎟⎜ ⎟⎝ ⎠

then the index of DAE (2.2) or the index of T s( ) is given by: index T s S s T sij ji( ( )) max { ,(degdet ( ) degdet ( ) )}= − +0 1 (2.13) Proof. From Kronecker Canonical Form transformation we get:

[ ]1

1 1 10 ˆ ˆ ˆ ˆ, ,0r r

m r

sI A N Es A M N N M MI sJ−

− − −

−⎡ ⎤ = − = =+⎢ ⎥⎣ ⎦

Page 33: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

21

[ ]

( ) ( ) [ ]

( ) ( )

( ) ( )

11

1 11 1 2 2 1 2

1

2

112 2

00

det, ,

det( )

det ( ) ( ) det( ) .

det ( ) ( ) det(

r r

m r

jir r m r

ij

ji m rij

ji ijij ij

sI AEs A N MI sJ

SN sI A M N I sJ M N N N

Es A

MM M

S s P s Es A N I sJ M

S s p s E

−−

− −−

−−−

−⎡ ⎤⇒ − = +⎢ ⎥⎣ ⎦⎡ ⎤⎛ ⎞

⇒ = − + + =⎢ ⎥⎜ ⎟−⎢ ⎥⎝ ⎠⎣ ⎦⎡ ⎤= ⎢ ⎥⎣ ⎦

⎡ ⎤⇒ = + − +⎢ ⎥⎣ ⎦⎡ ⎤ ⎡ ⎤⇒ = +⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦ ( )1) . ( )ij ij

s A k s− ⎡ ⎤− ⎢ ⎥⎣ ⎦ where: deg ( ) degdet ( )p s sE Aij < − it follows:

{ }deg det ( ) max deg ( ),deg det( ) deg ( )

deg det ( ) deg det( ) deg ( )

deg ( ) deg det ( ) deg det( )

ji ij ij

ji ij

ij ji

S s p s Es A k s

S s Es A k s

k s S s Es A

= − +

⇒ = − +

⇒ = − −

Since the index of DAE (2.2) is equal to

( ) 1max {0, (power of of ) 1}ij m rs I sJ −− + + (Lemma 2.5), then it follows:

index T s S s T sij ji( ( )) max { ,(degdet ( ) degdet ( ) )}= − +0 1

2.5. Solving a consistent initialisation and a re-initialisation problem Initial conditions and input variables are required to solve a DAE (2.2). The following gives a definition of consistent initial conditions and solving of a consistent re-initialisation problem. In this section we will that a DAE model will have a problem for the solving a consistent (re-) initialisation, when it has a high index or it has non minimum state variables. Moreover, we will see also that a low index DAE model can have non minimum state variables, which results to a problem for solving a consistent (re-) initialisation.

2.5.1. Solving a consistent initialisation problem Definition 2.7 Consistent Initial Conditions Given a DAE (2.2) and its input signals 0( )u t , then 0 0( ( ), ( ))z t z t is a Consistent Initial Conditions of (2.2) if and only if it satisfies:

Page 34: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

22

a) 0 0 0( ) ( ) ( )Ez t Az t Bu t= + (2.14a)

or b) z t( )0 lies on the solution trajectories of DAE (2.2). (2.14b)

The Kronecker Canonical Form transformation of DAE model (2.2) (see equation 2.5) decomposes the system into a r-dimensional ordinary state space part and a (m-r) dimensional algebraic part, such that the system has r-arbitrary initial conditions z10 and (m-r) fixed initial conditions of z 20 0= to avoid impulsive behaviour. In other words, the original differential variables z t( ) are transformed and decomposed into r- state variables ( )z t1 and (m-r) algebraic variables (non-state)

( )z t2 . For given input variables 0( )u t at time 0t t= the m equations (2.14a) have m+r’ variables 0 0( ( ), ( ))z t z t , where r’ is the column rank of E. The column rank of E gives the number of differential variables on the DAE (2.2). From the KCF it follows, Corollary 2.8 For a given DAE model (2.2) with 'r differential variables, where

' column ( )r rank E= . There are only r-variables of 0( ( ))z t that can be assigned arbitrarily to compute a set of consistent initialisation values 0 0( ( ), ( ))z t z t of DAE (2.2), where deg det ( )r T s= and 'r r≤ . This number r is called the ‘dynamic degree of freedom’ or the ‘system order’ of the DAE (2.2). Proof: See the KCF transformation, where :

[ ]

0deg det ( ) deg det 0

deg det

r r

m r

r r

sI Ar T s I sJ

sI Ar

−⎡ ⎤= = +⎢ ⎥⎣ ⎦= −≡

and column rank of 0

' column rank ( )0rI

E r r rank J rJ

⎡ ⎤≡ = = + ≥⎢ ⎥

⎣ ⎦

For a given low index DAE with a minimum state variables, i.e. Column rank( ) 'E r r= = , then this gives:

Page 35: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

23

Corollary 2.9 Given a low index DAE of the form (2.2) with ( ) ( )colum rank E rank E= , 'r r= , then there are r-differential variables of 0( ( ))z t that can be assigned arbitrarily to compute a set of consistent initialisation values 0 0( ( ), ( ))z t z t of DAE (2.2), where

deg det ( )r T s= . We see from Corollary 2.8 and 2.9 that the degree of freedom to assign initial values

( )oz t arbitrarily is given by deg det ( )r T s= . This means that not all of the variables ( )oz t can be assigned arbitrarily to calculate consistent initial values 0 0( ( ), ( ))z t z t for

a high index DAE model or a low index DAE model with non minimum state variables. Solving Consistent Initialisation Problem (P.I. Barton [7]) Usually a Consistent Initialisation Problem is solved as an algebraic problem to satisfy criterion (2.14a) on definition 2.7, i.e. for the existence of a solution. The following gives a sufficient condition for solving of a consistent initialisation problem. Consider a DAE of the form:

1 11 1 12 2 1 1

21 1 22 2 2 2

( ) ( ) ( ) ( )0 ( ) ( ) ( )

z t A z t A z t B u tA z t A z t B u t

= + += + +

(2.11)

Solving of a general consistent initialisation problem of (2.11) at a given time

0t t= ∈ ⊂I R and given input variables 0( ) ku t ∈R is formulated as a solving set of

algebraic non-linear equations for the unknown vector ( )1 1 20 0 0( ), ( ), ( )z t z t z t :

1 0 11 1 0 12 2 0 1 1 0

21 1 0 22 2 0 2 2 0

30 1 0 31 1 0 32 2 0 13 1 0 23 2 0

( ) ( ) ( ) ( )0 ( ) ( ) ( )

( ) ( ) ( ) ( ) ( )

z t A z t A z t B u tA z t A z t B u t

A z t A z t A z t B u t B u t

= + += + += + + +

(2.15a,b,c)

Where: 30 1 0 31 1 0 32 2 0 13 1 0 23 2 0( ) ( ) ( ) ( ) ( )A z t A z t A z t B u t B u t= + + + are r independent initial equations.

If the matrix 11 12

21 22

30 31 32 ( *) ( *)

0

m r x m r

I A AA A

A A A+ +

−⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥−⎣ ⎦

is non singular then a set of initial

conditions ( )1 1 20 0 0( ), ( ), ( )z t z t z t can be calculated.

Page 36: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

24

Specific case 1 Usually one gives a set of 1 0 1 0( ) , 1,...,i iz t z i r= = to compute initial condition

vector ( )1 1 20 0 0( ), ( ), ( )z t z t z t . This is a special case of an initialisation equations set (2.15c) and the consistent initialisation problem is formulated as algebraic solving of the following equations:

1 0 11 1 0 12 2 0 1 1 0

21 1 0 22 2 0 2 2 0

1 0 1 0

( ) ( ) ( ) ( )0 ( ) ( ) ( )

( ) , 1,...,i i

z t A z t A z t B u tA z t A z t B u t

z t z i r

= + += + += =

if the matrix 11 12

21 2200 0

I A AA AI

−⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

or 22A is non-singular, then a set of initial

conditions ( )1 1 20 0 0( ), ( ), ( )z t z t z t can be calculated. We see here (as given on Lemma 2.4 and Corollary 2.9) that solving a consistent initialisation problem by specifying r-independent initial conditions 0( ( ))z t can be only applied for a low index DAE model with minimum state variables. Specific case 2: Corollary 2.10. Steady state solution is a consistent initial condition (Kroner et.al [68]): Given a DAE (2.10) with a given input variables us . The DAE (2.10) will have a steady state solution of , ,z z zs s sb g b g= 0 if and only if:

T sA AA As( ) = ≡LNM

OQP0

11 12

21 22

is non-singular

Since a steady state solution of a DAE lies on the solution trajectory, then a steady state solution, , ,z z zs s sb g b g= 0 , is a consistent initial condition of a given DAE for the given input variable values us .

2.5.2. Solving a consistent re-initialisation problem Obviously system behaviour can be subjected to discontinuities of non-state variables or input signals. Below we define a consistent re-initialisation condition.

Page 37: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

25

Definition 2.11. Consistent Re-initialisation Condition Given a DAE (2.11) of the form :

1 11 1 12 2 1 1

21 1 22 2 2 2

( ) ( ) ( ) ( )0 ( ) ( ) ( )

z t A z t A z t B u tA z t A z t B u t

= + += + +

at t t+ →= +lim

εε

0 0 , for given non-state variable (discontinuities) as:

u tu t t t

u t t t t( )

( ),( ),

==

= = +RST + +

0 0

0 εand/or 2 0 0

22 0

( ),( )

( ),z t t t

z tz t t t t ε+ +

=⎧= ⎨ = = +⎩

(note 2( ), ( )u t z t do not need to be continuous and differentiable) then vector ( )1 1 2( ), ( ), ( )z t z t z t+ + + is called Consistent Re-initialisation Condition of

(2.11) for given input signals ( )( )u t+ under the condition of C1 continuity of the state variables, i.e.:

1 10( ) ( )z t z t+= if and only if it satisfies:

1 11 1 12 2 1 1

21 1 22 2 2 2

( ) ( ) ( ) ( )0 ( ) ( ) ( )

z t A z t A z t B u tA z t A z t B u t

+ + + +

+ + +

= + += + +

From definition 2.11, it follows : Corollary 2.12. Consistent Re-initialisation Criterion - 1 DAE (2.11) has the property of consistent re-initialisation if and only if:

22A is non-singular or the DAE model (2.11) has a low index with minimum state variables. From corollary 2.9, it follows: Corollary 2.13. Consistent Re-initialisation Criterion – 2 Consider a DAE with given matrices E and T s( ) has the property of consistent re-initialisation if and only if : The column rank of E (or number of differential variables) = degdet ( )T s

Page 38: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

26

For a high index DAE the number of differential variables (the column rank (E)) is greater than degdet ( )T s . This means that a high index does not have a consistent re-initialisation property. Note: In some cases an index one DAE model does not have a consistent re-initialisation property, since the column rank of E (or number of differential variables) > degdet ( )T s . This is called a low index DAE model with non minimum state variables. Process modelling based on the balance and constitutive equations always gives a DAE model which has the integral form, i.e.:

( )( , , ) ( ) ( ) 0

df zF z z u g z h u

dt= − − = (2.16a)

These equations are usually represented as non minimal state variables and can be transformed/written into a minimal state representation as follows:

( ) ( )

0 ( )

x g z h u

x f z

= +

= − (2.16b)

An index one DAE model given with non minimum states representation can be transformed into an index one DAE model with minimum state representation, without performing additional differentiation. Brull and Pallaske [20] give an example of an index one DAE, which does not satisfy consistent re-initialisation criterion, given in the following: Consider an index one DAE of the form: T x x x T x x x f x x u

g x x u11 1 2 1 12 1 2 2 1 2

1 20( , ) ( , ) ( , , )

( , , )+ =

= (2.17a)

can be written on an index one DAE , and satisfies consistent re-initialisation criterion as follows:

( , , )( , , )( , )

z f x x ug x x up x x z

=

=

= −

1 2

1 2

1 2

00

(2.17b)

where:

( , ) ( , ) ( , )

( , ); ( , )

p x x T x x x T x x xpx

T x xpx

T x x

1 2 11 1 2 1 12 1 2 2

111 1 2

212 1 2

= +

∂∂

=∂∂

=

and

Page 39: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

27

2.6. Index reduction of a DAE model There are 3 main difficulties in solving a high index DAE:

1. it may require differentiation operators (see 2.8.a,b), 2. the algebraic solving consistent (re-) initialisation problem (see corollary

2.13), 3. the break down of error control on standard multistep implicit numerical

methods (Brenan, et.al. [17])

Besides that, the degree of freedom of the state variables having C1 continuity in a high index model is less than the primitive state variable or ‘storage’ variables as assumed by the modeller. Bujakiewicz [21] proposed a modified multistep implicit Backward Difference Formulae (BDF), where ‘numerical differentiation’ is implemented for the error control. This is done by ‘scaling’ of error control by the information from the matrix ( )Es A− −1 . The drawbacks of this method are:

1. We do not know the numerical stability and performance of the method for large scale DAE models.

2. This numerical solving technique may not be easy and can be time consuming for a large scale DAE model.

3. Solving algebraic consistent (re-) initialisation problem remains problematic.

Another method to solve high index DAE models is through symbolic index reduction to find a low index DAE model representation. Several advantages why we want to get low index DAE models, are:

1. the problem on algebraic solving of a consistent (re-) initialisation does not exist

2. to be able to use a standard (multistep) implicit numerical solving method 3. to know information about the state variables in the model

The extra information is obtained from the index reduction steps, namely: 1. the (hidden) states constraint equations and 2. to alert the modeller in case the chosen ‘inputs’ variables imply non causal

behaviour

In the following we give two methods of index reduction namely: modified row strict system equivalence and modified column strict system equivalence operation, but first we are going to examine the strict system equivalence operation for an input output linear DAE model that is given as follows: Ez Az Buy Cz

= +=

(2.18a)

or in Laplace domain with zero initial values gives: T s z s Bu s

y s Cz s( ) ( ) ( )

( ) ( )==

(2.18b)

where: T s Es A( ) ( )= −

Page 40: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

28

Rosenbrock [107], Van Den Weiden [128] transform (2.18b) into a Kronecker Canonical Form (see also (2.4a)): MT s N z s MBu s

y s CN z s( ) ( ) ( )

( ) ( )==

(2.19)

where: z N z= and:

0( ) 0r r

m r

sI AMT s N I sJ−

−⎡ ⎤= +⎢ ⎥⎣ ⎦

The relation (2.18b) can be written as:

1 1

22

1 2

ˆ0 ( ) 0ˆ0 ( ) 0

( ) ( )0

r r

m r

sI A B z sI sJ B z s

u s y sC C−

⎡ ⎤− −⎡ ⎤ ⎡ ⎤⎢ ⎥+ − =⎢ ⎥ ⎢ ⎥⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦⎣ ⎦ ⎣ ⎦

(2.20)

where: MBBB

CN C C=LNMOQP =1

21 2,

Moreover Rosenbrock [107] and Van der Weiden [128] introduced the term “input decoupling zeros at infinity”, when B2 0= and “ output decoupling zeros at infinity”, when C2 0= . On the “input decoupling zeros at infinity” the strict system equivalence operation can be performed with the equations/rows differentiation and algebraic manipulation, without introducing differentiation on the input variables. On the “output decoupling zeros at infinity” the strict system equivalence operation can be performed with columns/variables differentiation and algebraic manipulation, without introducing unnecessary differentiation on the input variables. To test if there exists “input and/or output decoupling zeros at infinity” we can examine the maximum power of s on the entries of the following matrix:

i p Es Aii p Es A Biii p Es A

) max{ , ( ) }) max{ , ( ) }) max{ , ( ) }

power of s in power of s in power of s in C

11

21

31

000

= −

= −

= −

(2.21)

when p p2 1< then we have “input decoupling zeros at infinity” and for p p3 1< we have “output decoupling zeros at infinity”

2.6.1. Index reductions through equation differentiations/modified row strict system equivalence operation In this section we will give an index reduction technique based on the analysis of KCF transformation properties (see 2.4 to 2.8). Figure 2.1 again schematically shows the

Page 41: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

29

KCF transformation and required differentiations to get a low index presentation of a DAE model: Given DAE KCF A low index DAE ( )Es A− Figure 2.1 A schematic of an index reduction via a KCF transformation r.s.e = restricted system equivalence operation s.s.e = strict system equivalence operation Generally it is not easy to bring a DAE to a Kronecker Canonical Form and for a non-linear DAE practically it is even more difficult. Thus we prefer to perform index reduction in original DAE structure, schematically given on figure 2.2. Given DAE ( )Es A− A low index DAE Figure 2.2. A schematic of an index reduction without a KCF transformation The idea on figure 2.2 is to minimize changes on the model equations by first performing the required differentiation and last algebraic manipulations to extract state and non-state variables. To perform this transformation, there are two questions:

1. How to find the required differentiation based on information of the system matrix Es A− ?

2. How to abstract state and non-state variables ? Answer question 1: See (2.12) the required row differentiations are given on column-wise power of s on the matrix:

1 ( )( )

det( )ijn s

Es AEs A

− ⎡ ⎤− = ⎢ ⎥−⎣ ⎦

, where ( ) det ( )ij jin s S s=

‘differentiations’ algebraic manipulations sI A

I sJr −

+LNM

OQP

00

sI AI

r −LNM

OQP

00 (s.s.e)

(2.7) (r.s.e) (2.4)

differentiations algebraic manipulations

extracting: - state & - non-state var

Extended DAE model

Page 42: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

30

which is equivalent (2.7b) of abstracting required differentiation from the column of matrix: I sJ+ −1 Example 2.1: Given an index 3 DAE : z t z tz t z t

z t

1 2

2 3

3

000

( ) ( )( ) ( )

( )

+ =+ =

= (2.22)

with system matrix Es As

s− =L

NMMM

O

QPPP

b g1 00 10 0 1

and det( ) 1Es A− =

Information of the required differentiations are abstracted from the column of the

matrix: ( )2

11

( )0 1

10 0 1

ijs s

n sEs A s−

⎡ ⎤−⎢ ⎥⎡ ⎤

− = = −⎢ ⎥⎢ ⎥⎣ ⎦ ⎢ ⎥

⎢ ⎥⎣ ⎦

namely: 2-times differentiation of 3-rd equation (given on the power of s on 3-rd column) and once differentiation of 2-nd equation (given on the power of s on 2 column). The strict system equivalence operation, results in a low index DAE, and is schematically given as follows:

- (a) subtract from the first row the once differentiated second row - (b) add to result of (a) the twice differentiated third row - (c) subtract from the second row the once differentiated third row

1 00 10 0 1

1 00 10 0 1

1 0 00 1 00 0 1

2ss

ss

L

NMMM

O

QPPP

−L

NMMM

O

QPPP

L

NMMM

O

QPPP

~ ~ (2.23)

or the operation (a),(b),(c) can be done by first performing differentiations then algebraic manipulation, schematically given as follows:

Page 43: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

31

( )( )( )( )

( )( )

123

1 00 10 0 1

3 0 0

2 03 0 0

2

2

ss

s

s ss

(2.24)

where: ( )2 =

==

once differentiation of equation 2(3) once differentiation of equation 3(3) twice differentiation of equation 3

Answer question 2: From the strict system equivalence operation above, we can make a conjuncture that non-state variables can be deduced from differentiated parts of the DAE, resulting in a low index DAE. The following gives a rule of extracting non-state variables for index reduction based on how a strict system equivalence operation works. Conjuncture 2.14a: Extracting non-state variables Given a high index DAE model : ( , , , ) 0F z z u t = denotes with F and its extended high index DAE model of the form:

FD f

D fkk

( )

( )

11 0

L

N

MMMMM

O

Q

PPPPP= (2.25)

where:

F = original high index DAE model D fk

k( ) = a partition of extended set (2.25) formed by differentiation of part of

the equations of F . These partitions are ordered from the lowest degree of differentiation required of the sub-set of equations on F to the highest one. The information of required equations to be differentiated is from the columns of the matrix 1 1[ ( )] ( )T s Es A− −= −

-1 1

-1

Page 44: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

32

e.g.: on the example 2.1:

D f s

D fs s

s

( )

( )

:

:

11

22

2

2

3 0 0

23

00 0

c h→FHGIKJ →

Suppose each partition of extended DAE equations, D fk

k( ) , has p equations and

contains q variables (size ( )p qx ), where q qi ≤ are differentiated variables, then from this differentiated partition p non-state variables can be chosen from qi

variables zd with ∂

LNMM

OQPP

( )( )D fz

kk

d

is non-singular.

The resulting extended DAE equations with chosen non-state variables are strict system equivalence with the original DAE, since algebraic manipulation on the strict system equivalence operation equals to the elimination of these non-state variables from extended DAE equations. Application of the operation above on example 2.1 is given as follows:

(a) from : D fs s

s( ) :2

2

2

2

23

00 0

FHGIKJ → we choose : second and third variables as non-

state variables : ′ ′′z zd d2 3, (b) from D f s( ) :1

13 0 0c h→ we choose : third variable as non-state variable:

′z d3 Thus an extended equivalent low index model is: z zz zzzz zz

d

d

d

d d

d

1 2

2 3

3

3

2 3

3

00

00

00

+ ′ =+ ′ ==

′ =′ + ′′ =′′ =

(2.26)

and elimination of all non-state variables will give: zzz

1

2

3

000

===

(2.27)

as expected from a strict system equivalence operation. More examples of high index problem and reduction are given in the Chapter 4.

Page 45: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

33

Notes: 1. The difference in the result given above with the algorithm as proposed by

Mattsson and Soderlind [86] is: a. the required differentiations are directly derived from information of the

system matrix, Es A− −1 . b. the result above gives the direct conjuncture with strict system equivalence

operation for index reduction as described in section 2.2. 2. Since strict system equivalence is not unique the choice of non-state variables from

extended DAE equations may also not be unique. 3. The advantages of the DAE index reduction above are:

a. variables elimination is not required, where for a non-linear DAE system variables elimination is not easy

b. physical DAE equations structure does not change 4. Index reductions through equations differentiation is recommended if we have

“input decoupling zeros at infinity”

2.6.2. Index reductions through variables differentiation/modified column strict system equivalence operation In some cases we have a DAE with “output decoupling zeros at infinity”, Example 2.2: z z z z uz z z z

z z u

y zy z

1 1 2 3

2 1 2 3

1 2

1 1

2 2

22

0

= − + − += − +

= + +

==

(2.28)

if the DAE (2.28) contains variable z3 , which is not of interest or does not appear in the output of the system, we can write (2.28) in:

ss

zzzu

yy

T ss

s

+ − −− + −− − −

L

N

MMMMMM

O

Q

PPPPPP

L

N

MMMM

O

Q

PPPP=

L

N

MMMMMM

O

Q

PPPPPP

=+ −− + −− −

L

NMMM

O

QPPP

1 1 2 11 2 1 01 1 0 1

1 0 0 00 1 0 0

000

1 1 21 2 11 1 0

1

2

31

2

, ( )

(2.29) with:

Page 46: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

34

( )Es As s

ss

s sss

ss

ss

s ss

− =

−+

−+

− ++

+ +−+

++

++

+ ++

L

N

MMMMMM

O

Q

PPPPPP

−1

2

14

24

3 24

14

24

14

34

24

3 14

and

1 1

2

1

2 41 2 3 244 4 4( ) , ( )

1 2 144 4 42 2

42 4

4( )

4

sss

s s s sEs A B C Es Ass

s s ss sss

sC Es A Bs

s

− −

⎡ ⎤+⎢ ⎥ − − − −+ ⎡ ⎤⎢ ⎥

⎢ ⎥−⎢ ⎥ + + +− = − = ⎢ ⎥⎢ ⎥ −+ ⎢ ⎥⎢ ⎥⎢ ⎥+ + +⎣ ⎦⎢ ⎥+ −

⎢ ⎥+⎣ ⎦+⎡ ⎤

⎢ ⎥+− = ⎢ ⎥−⎢ ⎥

⎢ ⎥+⎣ ⎦

(2.30) The DAE (2.28) has a system order (a dynamic degree of freedom) = 1, index = 2 and 1 “output decoupling zero at infinity”. We can perform restricted system equivalence operation with matrices:

3 3

1 2 00 1 0 ,0 0 1

M N I ×

⎡ ⎤⎢ ⎥= =⎢ ⎥⎢ ⎥⎣ ⎦

(2.31)

this transforms(2.29) into:

s ss

zzzu

yy

s

− + −− + −− − −

L

N

MMMMMM

O

Q

PPPPPP

L

N

MMMM

O

Q

PPPP=

L

N

MMMMMM

O

Q

PPPPPP

+ −−LNM

OQP

1 3 2 0 11 2 1 01 1 0 1

1 0 0 00 1 0 0

000

2 11 0

1

2

31

2

,

A strict system equivalence operation can be performed by multiplying the 3rd column with s and by adding to the 2nd column, this resulting in:

s

This has a form as the left side lower part of KCF

Page 47: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

35

s szzzu

yy

C sE A B

ss

ss

− + −− −− − −

L

N

MMMMMM

O

Q

PPPPPP

L

N

MMMM

O

Q

PPPP=

L

N

MMMMMM

O

Q

PPPPPP

− =

++−+

L

N

MMM

O

Q

PPP−

1 3 2 0 11 2 1 01 1 0 1

1 0 0 00 1 0 0

000

2 44

4

1

2

31

2

1, ( ) (2.32)

or:

z z z z uz z zz z u

or

z z z uz z zz z uz z z

y zy z

1 2 1 2

1 2 3

1 2

4 1 2

1 2 3

1 2

1 2 4

1 1

2 2

2 30 20

30 200 2

+ = − += − += + +

= − += − += + += + −

==

(2.33)

The DAE equation set (2.32), (2.33) are strictly system equivalent with (2.28). The DAE (2.33) has index one. Application of a high index reduction of DAE (2.28) using the method from section 2.6.1 will give unnecessary differentiation of the input variables, since it requires differentiating the 3rd equation of (2.28). Again figure 2.3 gives schematically the steps on the high index reduction, and example 2.2 shows how this operates. Given DAE ( )Es A− A low index DAE Figure 2.3. A schematic of an index reduction without a KCF transformation The question that arises is:

- How to find the transformation matrix M ?

algebraic manipulations

‘differentiation’

extracting: - state & - non-state var

DAE with some variables transformation

Page 48: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

36

Conjucture 2.14b: Consider a high index input output DAE model of the form:

( )( )

z A z A z A z B uA z A z B uA z B u

y C C z z z

T ssI A A A

A AAT

n n

1 11 1 12 2 13 3 1

21 1 22 2 2

31 1 3

1 2 1 2 3

11 12 13

21 22

31

00

0

00 0

= + + += + += +

=

=− − −

− −−

L

NMMM

O

QPPP

×

is non-singular

(2.34) with variables z3 as “output decoupling zeros at infinity”, then there exists a constant matrix M , which performs a restricted system equivalence operation on T s B( ) resulting in:

M T s B

P s P s BP s P s I B

A A BA B

( )

( ) ( )( ) ( )

*

*

*

*

=− −−

L

N

MMMM

O

Q

PPPP

11 12 11

21 22 12

21 22 2

31 3

0

00 0

(2.35)

P s P s P s P s11 12 21 22( ), ( ), ( ), ( ) are first order polynomials in s and

MB B B B BT

= 11 12 2 3* * * * . The sizes of the rows of these polynomials are given

with n and m. The column operation of a strict system equivalence are given with arrows on (2.35), which transforms (2.35) to:

P s P s BQ Q I BA A BA B

11 12 11

21 22 12

21 22 2

31 3

0

00 0

( ) ( ) *

*

*

*

− −−

L

N

MMMM

O

Q

PPPP (2.36)

The entries of constant matrix M can be constructed from identity matrix I having the same size as the system matrix T s( ) and replacing the first m-rows with column vector of Ker A( )13 , i.e.:

s

mn

Page 49: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

37

Ker A a a a

aa

a

aa

a

aa

a

m

n n

m

m

mn

( ) , ,...,

, , ,

13 1 2

11

12

1

21

22

2

1

2

=

=

F

H

GGGG

I

K

JJJJ

F

H

GGGG

I

K

JJJJ

F

H

GGGG

I

K

JJJJ

RS||

T||

UV||

W||

b g b g b gm r

(2.37)

is given as follows:

M

Ker A T

I

a

a

a

am

n

mnI n m n m

=

L

N

MMMM

O

Q

PPPP=

L

N

MMMMMMM

O

Q

PPPPPPP− × −

( )( )

( ) ( )

13 00 0

1 00 0 1

11

1

1 0

0

0

0 0

1 0

0 0 1

(2.38)

Each new differential equation constructed of a linear combination from the entries of column vector Ker A( )13 will remove variables z3 , i.e:

a z a A z A z B u i miT

iTb g b g ( ), ,...,1 11 1 12 2 1 1= + + = (2.39)

Therefore a restricted system equivalence operation on the DAE (2.34) using matrix M as in (2.38) will result in (2.35), where the first m rows on the z3 entries (3rd

column) are zero. This makes it possible to eliminate the s terms on the following (n-m) rows through a strict system equivalence operation (see (2.35) and (2.36)). In Chapter 4 we will use this kind of operations to do the high index reduction without performing unnecessary differentiation on the equations. Notes:

1. In case we have variables that have to be differentiated, that are in the differential equations and not in non-linear of the algebraic equations, we are able to apply the column wise strict system equivalence as described above.

2. Another advantage of this technique besides avoiding unnecessary equations differentiation is: only the first m equations are transformed by the restricted system equivalence and the other remaining equations are unchanged. The n-m unchanged differential equations can easily be replaced by steady state equations, since the s term / differential variable will disappear through strict system equivalence operation. This implies that the method can be easily applied for non-linear DAE model as long as the given n-differential equations are linear and the remaining algebraic equations can be non-linear algebraic relations.

Page 50: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 2 : Mathematical properties of first order DAE model

38

2.7. Conclusions The objectives of this chapter are to derive easy methods: to detect a high index problem, to detect a consistent (re-) initialisation problem, to calculate index of a DAE model, and to propose index reduction techniques without non linear algebraic manipulations. The index reduction should not destroy the original model equations and variables. The method should not use complicated algebraic manipulations, e.g. by transformation to a Kronecker Canonical Form.

Given DAE model, ( , , , ) 0F z z u t = , with the matrices ,F FE Az z

∂ ∂= =∂ ∂

. The high

index problem of the DAE model can easily be detected by the use of information of the system matrices, ( ),Es A E− only. A DAE model has a low index if

( ) deg det( )rank E Es A= − . The dynamic degree of freedom r of a DAE model, i.e. the number of state variables that can be set arbitrarily to solve a consistent (re-) initialisation problem, can be calculated from deg det( )r Es A= − . Problem on finding consistent (re-) initialisation condition means that it is not possible to set all values of the state variables arbitrarily to solve the consistent initial conditions of a given DAE model. This problem is caused by a high index problem or non minimum state variables on an index one problem. An index reduction of a DAE model can be performed using information from ( )Es A− −1 for the required differentiation and extracting non-state variables from the differentiated part of original DAE. It is demonstrated that this operation is a strict system equivalent. There are two kinds of the high index reduction techniques, namely strict system equivalence operation through equations differentiation (Conjuncture 2.14a) and strict system equivalence operation through variables differentiation (Conjuncture 2.14b). Both proposed methods will preserve the original model equations and variables.

Page 51: Mathematical Analysis of Dynamic Process Models Index, inputs

39

Chapter 3: Structural Properties of a First Order DAE model

The structural information of system matrices 1, ( ), ( )E Es A Es A −− − can be used to analyse the structural properties (dynamic degree of freedom, index, and required differentiation for index reduction) of a first order non linear DAE model. ‘Every system has a structure’

3.1. Introduction This chapter gives the notions of structural properties of a first order non-linear DAE model,

( ( ), ( ), ( ), ) 0F z t z t u t t = (1.3b) for the low index criterion, index calculation, and the required row/equations differentiations for index reduction. The objectives of this chapter are to analyse the properties of a DAE model based on the structural information on the matrices : ( )struc E , (( ))struc Es A− ,

1( )struc Es A −− , instead of the exact numerical values of the system matrices. The

structural matrices ( )struc E and ( )struc A contain structural information of Fz

∂∂

and

Fz

∂∂

respectively. These structural properties will be described in conjunction with the

properties of a DAE model derived in chapter 2. Moreover this chapter will explore the bounds of the exact numerical properties of a DAE model compared with its structural properties. The definitions of structural theory to be used in this chapter are adopted from Ching-Tai Lin [28] and Unger [126]. This is shortly described in Appendix A. The algorithm to implement the structural theory in this chapter is using the graph algorithm developed by Bujakiewics [21]. The principal of a graph algorithm is described in Appendix B. The structural approach chosen in this section is different with the structural approach done by C.C. Pantelides [98] and Unger et.al. [126]. Our structural approach is based

on the structural analysis of matrices 1( ), ( ) Es A Es A −− − and matrix E as given in Chapter 2. Pantelides’ algorithm [98] is used to determine the required differentiation to allow consistent initialisation of high index DAE. The drawback of Pantelides’

Page 52: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

40

algorithm is that it can give unnecessary differentiation (see example 3.3 in section 3.5). Unger et.al [126] developed structural index detection and calculation of structural dynamic degree of freedom based on the Gear index transformation algorithm (C.W. Gear [45]). The drawback of Gear’s approach is the algebraic row manipulation, where the required equation differentiation on the original equation set is difficult to recognize. This chapter consists of six sections. Section 3.2 describes the definitions of the

structure of the system matrices 1, ( ), ( )E Es A Es A −− − . Section 3.3 derives the structural properties of a DAE model. Section 3.4 examines the genericity of the structural properties. Section 3.5 gives several examples and section 3.6 gives the conclusions of this chapter.

3.2. Structure of system matrices E, T(s), T(s)-1 In this section first we will define and derive the structural properties of system

matrices 1( ), ( ( )), ( ( ))struc E struc T s struc T s− in relation with the system matrices 1, ( ), ( )E T s T s− of a DAE model (1.3b).

Suppose a given DAE (1.3) ( ( ), ( ), ( ), ) 0F z t z t u t t = with its system matrices :

FEz

∂=∂

and FAz

∂=∂

respectively. The following matrices are defined:

3.2.1. Structure of system matrix E Definition 3.1. Structural rank of a matrix E Consider a constant matrix with ( e ) , m m

ij ijstruc E struc E ×⎡ ⎤= ∈⎣ ⎦ R , and:

0

o , if e 0 e

, otherwiseij

ijstrucx

≡⎧= ⎨⎩

(3.1)

Let m m

ES ×⊂ R be the set of all possible numerical representation of iE of struc E , then the maximum of all values rank iE is called the structural rank of E , i.e:

: max i EE S irank struc E rank E∈= (3.2)

Corollary 3.2.

rank E rank struc E≤ (3.3)

Note: Corollary 3.2. is the consequence of definition 3.1.

Page 53: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

41

Consider the definition of rank (see J.G. Broida [18]). Suppose Eγ γ γ

γ×∈R is a minor

with order γ generated from m mE ×∈R with 1 mγ≤ ≤ and Sγ be the set of all

permutation σ of { , ,..., }1 2 γ , then a γ γ× minor Eγγ satisfies

1

det ( ) 0ii

S iE sign e

γ

γγγ σ

σσ

∈ == ≠∑ ∏ (3.4)

then follows, Corollary 3.3

* ** *

with det 0

with *> , det 0

rank E E E

E E

η ηη η

η ηη η

η

η η

= ⇔ ∃ ≠ ∧

∀ =

Now if struc E is known then let Γγ

γ is it’s minor with order γ and satisfies

det oΓγγ ≠ , then follows,

Corollary 3.4

* ** *

with det o

with *> , det o

rank struc E η ηη η

η ηη η

η

η η

= ⇔ ∃ Γ Γ ≠ ∧

∀ Γ Γ =

3.2.2. Structure of system matrix T(s) Definition 3.5. Structure of polynomial matrix T(s) The structure of polynomial matrix ( ) [ ]m mT s s×∈R is defined as

0 1

( ) ( ( ))

1, 2,..., ,1, 2,..., ,

0 ( ) 0: ( ) :

( ) ...

ij ij

ijk kij

ij k

strucT s struc t s

i mj m

if t swhere struc t s

s if t s a a s a s

⎡ ⎤= ⎣ ⎦==

≡⎧= ⎨ = + + +⎩

(3.5)

Page 54: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

42

Definition 3.6. Structural determinant of polynomial matrix T(s)

Consider a square matrix ( )( ) ( ) [ ]m mij ij

T s t s s×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R and suppose S is the set of all

permutation σ of numbers 1,2,...,m , then the determinant of ( )T s , det ( )T s is defined (e.g. J.G. Broida [18], P. Lancaster [72]) as:

1 21 2

1

det ( ) : ( ) ( ) ( )... ( )

( ) ( )

m

i

mS

m

iS i

T s sign t s t s t s

sign t s

σ σ σσ

σσ

σ

σ

∈ =

=

=

∑ ∏ (2.10a)

where sign( )σ equals –1 if σ odd, and 1 if σ even. Then the determinant of the structure of matrix ( )T s is defined as:

1

det ( ) ( ) ( )i

m

iS i

strucT s sign struc t sσσ

σ∈ =

=∑ ∏ (3.6a)

Suppose that ( )struc T s is given, ( ) [ ]m mT s s×∈R , where the zero polynomials

( )T s are known. Since the terms of determinant containing zero polynomials must be zero also, we may use the set:

{ : ( ) o, =1,2,..., }iistruc t s i mσσΓ = ≠

instead of S. Further since ( ) ( )struc a struc a− = + then (3.6a) can be written as:

1

det ( ) ( )i

m

ii

strucT s struc t sσσ∈Γ =

=∑∏ (3.6b)

As we know from Chapter 2 that the information of the degree of determinant of system matrix of a DAE model, i.e.: deg det ( )T s is used for the low index criterion (2.9), to calculate the index of a DAE model (2.13), and to calculate the dynamic degree of freedom of a DAE model to solve a consistent re-initialisation problem (Corollary 2.8). Since we want to analyse the properties of the system matrix by using the information of ( )struc T s , instead of the matrix ( )T s itself, the following relations for deg det ( )struc T s are derived by using the Definition 3.6 and Corollary A.3 (see appendix A). Corollary 3.7.

1deg det ( ) max deg ( )

i

m

ii

struc T s t sσ σ∈Γ=

= ∑ (3.7)

Proof:

Page 55: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

43

1

1

deg( ( ))

1

deg( ( ))

1

max deg( ( ))

det ( ) ( )

m

i ii

i

i i

mi ii

t s

mi

im t s

i

t s

struc T s struc t s

s

s

s

σ

σ

σ σ

σσ

σ

σ

=

∈Γ=

∈Γ =

∈Γ =⎛ ⎞∑⎜ ⎟⎝ ⎠

∈Γ⎛ ⎞∑⎜ ⎟⎝ ⎠

=

=

=

=

∑ ∏

∑ ∏

1deg det ( ) max deg ( )

i

m

ii

struc T s t sσ σ∈Γ=

⇒ = ∑

and the following Lemma 3.8. gives the relation between deg det ( )T s and deg det ( )struc T s . Lemma 3.8. Let ( ) [ ]m mT s s×∈R be non-singular, then

0 deg det ( ) deg det ( )T s struc T s≤ ≤ (3.8)

Proof: Since ( ) [ ]m mT s s×∈R is non-singular then det ( ) 0 deg det ( ) 0T s T s≠ ⇒ ≥ , further from (A.5) it follows that :

1

1

1

1

deg det ( ) deg ( ) ( )

deg ( ) ( )

deg ( ) ( )

(since ( ( ). ( ))= ( ). ( ) then

= deg ( ) ( )

i

i

i

i

mi

im

iim

ii

mi

i

T s sign t s

struc sign t s

sign struc t s

struc p s q s struc p s struc q s

sign struc t s

σσ

σσ

σσ

σ

σ

σ

σ

σ

∈Γ =

∈Γ =

∈Γ =

=

=

⎛ ⎞≤ ⎜ ⎟⎜ ⎟

⎝ ⎠⎛ ⎞

= ⎜ ⎟⎜ ⎟⎝ ⎠

⎛⎜⎝

∑ ∏

∑ ∏

∑ ∏

∏deg det ( )struc T s

σ∈Γ

⎞⎟⎜ ⎟⎠

=

Page 56: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

44

3.2.3. Structure of system matrix T-1(s) Definition 3.9. Structural matrix inverse 1( ( ))struc T s − Consider ( ) [ ]m mT s s×∈R , the structural matrix inverse of ( )T s is defined as:

( )1 1( ( )) : ( ( ))

det ( ),

det ( )

1, 2,...,1, 2,...,

ij ij

ji

ij

struc T s struc t s

struc S sstruc T s

i mj m

− −=

⎛ ⎞⎛ ⎞⎜ ⎟= ⎜ ⎟⎜ ⎟⎝ ⎠⎝ ⎠==

(3.9)

where the relation for the sub-matrix ( ( ))ijstruc S s as given on (2.12), is obtained by

placing zeros in the i-th row and in j-th column of ( ( ))struc T s and replacing the ij-th

element with or 1ox :

11 1

0

1

( ( )) 0 ( ( ))

( ( )) 0 0

( ( )) 0 ( ( ))

m

ij ij

m mm

struc t s struc t s

struc S s x

struc t s struc t s

⎛ ⎞⎜ ⎟⎜ ⎟⎜ ⎟=⎜ ⎟⎜ ⎟⎜ ⎟⎝ ⎠

3.3. Structural properties of a first order non linear DAE model

3.3.1. Structural low index criterion The following are given: A DAE model (1.3b) : ( ( ), ( ), ( ), ) 0F z t z t u t t = and its structural matrices

( ) Fstruc E strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠, ( ( )) ( ) F Fstruc T s struc Es A struc s

z z⎛ ∂ ∂ ⎞= − = −⎜ ⎟∂ ∂⎝ ⎠

as

defined in (3.1) and (3.3). Suppose the deg det ( ( ))struc T s can be calculated as given in Corollary 3.7. Further the ( ( ))rank struc E can be calculated following Definition 3.1. It follows from the low index criterion –1 (Lemma 2.3);

Page 57: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

45

Corollary 3.10. Structural Low Index Criterion The DAE (1.3) has a structurally low index if: deg det ( ( )) ( )struc T s rank struc E= (3.10)

3.3.2. Structural system matrix inverse In Chapter 2 we see that the inverse of the system matrix of a DAE,

[ ] 11( )T s Es A −− = − , can be used to calculate the index of a DAE (section 2.4) and to know the required differentiations on the DAE equations for index reduction (section 2.6). In this section we will show the relation between the structural information of matrix

inverse of a DAE ( ) 1( ( )struc T s − and the inverse of the system matrix itself 1( )T s− . The following is given: A DAE model (1.3) : ( ( ), ( ), ( ), ) 0F z t z t u t t = and its structural matrices

( ) Fstruc E strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠, ( ( )) ( ) F Fstruc T s struc Es A struc s

z z⎛ ∂ ∂ ⎞= − = −⎜ ⎟∂ ∂⎝ ⎠

as

defined in (3.1) and (3.3). Suppose: the matrices ( ( ))ijstruc S s can be constructed base

on the Definition 3.9, each deg det ( ( ))ijstruc S s and deg det ( ( ))struc T s can be calculated using Definition 3.6 and Corollary 3.7. Then with Lemma 2.6 (see Chapter 2), it follows : Corollary 3.11. Structural index of a DAE

( ( )) max {0, (deg det ( ) deg det ( ) 1)}ij jiindex struc T s struc S s struc T s= − +

(3.11) The following will show the bounds for a fractional polynomial entry of matrix

1( )T s− and the index of a DAE model (1.3b). Given the fractional polynomial and the structural matrix inverse of the system matrix of a DAE model (1.3b):

Page 58: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

46

[ ] ( )11 1( ) ( )

det ( ),

det ( )

, 1,...,

ij ij

ji

ij

T s Es A t s

S sT s

i j m

−− −⎡ ⎤= − = ⎢ ⎥⎣ ⎦

⎡ ⎤⎛ ⎞⎢ ⎥= ⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

=

(2.12)

( )1 1 ( ) : ( ( ))

det ( ),

det ( )

, 1, 2,...,

ij ij

ji

ij

struc T s struc t s

struc S sstruc T s

i j m

− −=

⎛ ⎞⎛ ⎞⎜ ⎟= ⎜ ⎟⎜ ⎟⎝ ⎠⎝ ⎠=

(3.9)

From (2.12) and (3.9) we see that:

1deg( ( )) (deg det ( ) deg det ( ))ij

jit s S s T s− ≡ −

and

1deg( ( )) (deg det ( ) deg det ( ))ij

jistruc t s struc S s struc T s− ≡ −

Following Lemma 3.8, we have: 0 deg det ( ) deg det ( )ji jiS s struc S s≤ ≤ and 0 deg det ( ) deg det ( )T s struc T s≤ ≤

Then this result in the following inequalities:

1deg det ( ) deg( ( )) deg det ( )ij jistruc T s t s struc S s−− < ≤

and 1deg det ( ) deg( ( )) deg det ( )ij jistruc T s struc t s struc S s−− < ≤

It follows, Corollary 3.12

a) The upper bound of degree of a polynomial entry of system matrix inverse 1deg( ( ))

ijt s− is deg det ( )jistruc S s ,

Page 59: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

47

b) 1deg( ( ))ijstruc t s− gives the ‘best’ estimate of 1deg( ( ))ijt s− .

Special cases: for deg det ( ) deg det ( )jistruc S s struc T s≥

From Lemma 3.8, we have: 0 deg det ( ) deg det ( )ji jiS s struc S s≤ ≤ and

0 deg det ( ) deg det ( )T s struc T s≤ ≤ since deg det ( ) deg det ( )jistruc S s struc T s≥ , for:

a) deg det ( ) deg det ( )ji jistruc S s S s= and deg det ( ) deg det ( )struc T s T s= ,

then deg det ( ) deg det ( ) deg det ( ) deg det ( )ji jiS s T s struc S s struc T s− = −

or 1 1deg( ( )) deg( ( ))ij ij

t s struc t s− −= .

b) deg det ( ) deg det ( )ji jistruc S s S s> and deg det ( ) deg det ( )struc T s T s>

then deg det ( ) deg det ( ) deg det ( ) deg det ( )ji jiS s T s struc S s struc T s− < −

or 1 1deg( ( )) deg( ( ))ij ij

t s struc t s− −< .

c) deg det ( ) deg det ( )ji jistruc S s S s> and deg det ( ) deg det ( )struc T s T s=

then deg det ( ) deg det ( ) deg det ( ) deg det ( )ji jiS s T s struc S s struc T s− < −

or 1 1deg( ( )) deg( ( ))ij ij

t s struc t s− −< .

d) deg det ( ) deg det ( )ji jistruc S s S s= and deg det ( ) deg det ( )struc T s T s>

then deg det ( ) deg det ( ) deg det ( ) deg det ( )ji jiS s T s struc S s struc T s− > −

or 1 1deg( ( )) deg( ( ))ij ij

t s struc t s− −> .

It seems that in most cases the degree of structural polynomial entry

1deg( ( ))ij

struc t s− gives the upper bound of 1deg( ( ))ij

t s− , except in the case (d).

It follows, Corollary 3.13 The degree of a structural polynomial entry of system matrix inverse

1deg( ( ))ij

struc t s− gives in the most cases the upper bound of the degree of the

Page 60: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

48

polynomial entry 1deg( ( ))ij

t s− for deg det ( ) deg det ( )struc T s T s≥ and

deg det ( ) deg det ( ) jistruc S s struc T s≥ .

The index of a DAE model is given in the Lemma 2.6 (Chapter 2) as:

( ( )) max {0, (deg det ( ) deg det ( ) 1)}ij jiindex T s S s T s= − + , then from Corollary

3.12 and Corollary 3.13 it follows : Corollary 3.14 The upper bound of the index of a DAE model (1.3b) is

( ( )) max {0, (deg det ( ) 1)}ij jiindex T s struc S s≤ +

From Chapter 2, section 2.6.1, we see that the required equations differentiation to reduce the index of a DAE model are given on the maximum column-wise power of s

on the polynomial matrix 1 1( ) ( ( ))ij

ijT s t s− −⎡ ⎤= ⎢ ⎥⎣ ⎦. The relation (2.12) gives that

1 det ( )( )

det ( )ji

ijS s

t sT s

− ⎛ ⎞= ⎜ ⎟⎝ ⎠

. Here follows that an equation differentiation is only required

when deg det ( ) deg det ( ) jiS s T s> . It follows from the Corollary 3.12 and

Corollary 3.13, that: Corollary 3.15. The column-wise maximum degree of the structural polynomial entries of system

matrix inverse, 11

max deg( ( ))ij

m

i jstruc t s−

=⎛ ⎞⎜ ⎟⎝ ⎠

is the ‘best’ estimate for required

amount of differentiation of j-th equation for index reduction of a DAE model.

3.3.3. Structural system order In Chapter 2, Corollary 2.8 gives that for a given DAE (2.2) with system matrix ( )T s , there are only r-variables of 0( ( ))z t that can be assigned arbitrarily to compute a set of consistent initial values of the DAE, 0 0( ( ), ( ))z t z t , where deg det ( )r T s= .This is called the ‘dynamic degree of freedom’ or the ‘system order’ of the DAE. For a non-linear first order DAE model (1.3), where the structural information of the system matrix is given, ( ( ))struc T s , the structural dynamic degree of freedom or structural system order of the DAE can be calculated (see Corollary 3.7.), as:

deg det ( ( ))r struc T s= .

Page 61: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

49

From Lemma 3.8. is given that : 0 deg det ( ) deg det ( )T s struc T s≤ ≤ . Here follows, Corollary 3.16. Structural dynamic degree of freedom The structural system order or structural dynamic degree of freedom of a DAE (1.3) ( r ) gives the upper bound of the system order or dynamic degree of freedom of a DAE (1.3) ( r ), i.e.: 0 r r≤ ≤ .

3.4. Genericity of structural properties Previous sections 3.1, 3.2, 3.3. show that the structural properties of system matrices, i.e. ( ( ))rank struc E , structural index, degree of structural polynomial of system matrix inverse, and structural system order form the upper bounds of the exact values of corresponding properties of the system matrices. Since we deal with the properties of non-linear DAE models, in most cases the result of the structural analysis is the same as with the exact values, i.e. only for a few numerical coincidences or for a few model structures then the analysis from structural properties gives the upper bound values. Therefore in this section we introduce the structural definiteness and genericity aspects of the structural properties of a DAE model. The term ‘definiteness’ of a structural property is to be defined that this structural property is equal to the corresponding exact numerical property. The term ‘genericity’ is introduced by Wonham [134], where a property will only fail for limited cases.

3.4.1. Structural definiteness of system matrices Definition 3.17. Matrix rank structural definiteness Suppose m mE ×∈R and rank struc E γ= , where (positive integer)γ +∈ then the rank of E is said to be structurally definite:

rank E rank struc E

γ⇔ =

=

Definition 3.18. System order structural definiteness Consider a DAE with m m× system matrix T s( ) with its structural system matrix struc T s ( ) . This DAE has the system order r T s= degdet ( ) and structural system order deg det ( )r struc T s= . If r r= , the system order has a structurally definite system order. It follows from Corollary 3.11., Definition 3.17., Definition 3.18., Corollary 3.19. Low index structural definiteness Consider a DAE with m m× system matrices ( )T s and E has a structurally definite low index if:

Page 62: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

50

a) rank E is structurally definite and b) system order of T s( ) is structurally definite

and c) degdet ( )struc T s rank struc E = Definition 3.20. System index structural definiteness Consider a DAE with m m× system matrix T s( ) and structural system matrix struc T s ( ) , then the index of the DAE is said to be structurally definite if:

( ( )) ( ( ))index T s index struc T s= Definition 3.21. Structural definiteness of the degree of a fractional polynomial entry

of 1( )T s−

Consider a DAE with m m× system matrix inverse 1( )T s− and structural system

matrix inverse 1 ( )struc T s− , where :

[ ] ( )11 1( ) ( )

det ( ),

det ( )

, 1,...,

ij ij

ji

ij

T s Es A t s

S sT s

i j m

−− −⎡ ⎤= − = ⎢ ⎥⎣ ⎦

⎡ ⎤⎛ ⎞⎢ ⎥= ⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

=

(2.12)

and

( )1 1 ( ) : ( ( ))

det ( ),

det ( )

, 1, 2,...,

ij ij

ji

ij

struc T s struc t s

struc S sstruc T s

i j m

− −=

⎛ ⎞⎛ ⎞⎜ ⎟= ⎜ ⎟⎜ ⎟⎝ ⎠⎝ ⎠=

(3.9)

Then the degree of a fractional polynomial entry of 1( )T s− , i.e. 1deg( ( ))ij

t s− , to be

structurally definite if:

1 1deg( ( )) deg( ( ))ij ij

t s struc t s− −=

Page 63: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

51

Corollary 3.22.

Suppose 1( )ijt s− and 1( ( ))ij

struc t s− is an inverse fractional polynomial entry matrix

of 1( )T s− and 1 ( )struc T s− of a DAE (1.3) respectively, then this inverse fractional polynomial entry is structurally definite if:

(deg det ( ) deg det ( )) (deg det ( ) deg det ( ))ji jiS s struc S s T s struc T s= ∧ =

Proof:

1deg( ( )) (deg det ( ) deg det ( ))ij

jit s S s T s− ≡ − .

Since 0 deg det ( ) deg det ( )ij ijS s struc S s≤ ≤ and

0 deg det ( ) deg det ( )T s struc T s≤ ≤ and, then

1(deg det ( ) deg det ( )) deg( ( )) (deg det ( ) deg det ( ))ij

ji jiS s struc T s t s struc S s T s−− ≤ ≤ −

where the equality sign is only applicable when : (deg det ( ) deg det ( )) (deg det ( ) deg det ( ))ji jiS s struc S s T s struc T s= ∧ =

3.4.2. Genericity aspects Definition 3.23. Genericity (Wonham [134]) Suppose that np ∈R is a vector of parameters of the problem we are interested in,

and that a given property Π holds for large sets of values p . Further a variety nV ∈R is defined as

V p p i i ki= = =: ( ) , , ,...,φ 0 2n s ,

where φ i p( ) are a finite number of polynomial functions. V is called proper if nV ≠ R and nontrivial if V ≠ ∅ . Then property Π is called generic if there exists a

proper variety V such that Π fails only for points p V∈ . In this section we will show that the structural definiteness properties of system order, system index, rank of a constant matrix, and low index criterion are generic.

Page 64: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

52

Lemma 3.24. Genericity of structural system properties

a) Structural definiteness of system order is a generic property b) Structural definiteness of the difference of the degrees of fractional polynomial

entry of T s−1( ) , i.e. 1deg ( )ijt s− is a generic property

c) Structural definiteness of rank of a constant matrix is a generic property d) Structural definiteness of low index criterion is a generic property

Proof:

a) Consider ( )( ) ( ) [ ]m mij ij

T s t s s×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R and let

Γ Γr ii

n

sign t s ri

= ∈ ==

∏{ :deg ( ) ( ) }σ σ σ 1

and α ij be the coefficient of the

highest order term of t xij ( ) . Further let A i ri= ∈{ : }α σσ Γ , and let α be a

vector of element of A , then we can define a polynomial function:

1( ) ( )

ir

mi

isign σ

σφ α σ α

∈Γ == ∑ ∏

From the definition of Γr we can distinguish two cases: i) Γr = 1, i.e. element of the set Γr is one, then there exists only one permutation result to the highest structural degree. ii) Γr ≥ 2, i.e. elements of the set Γr are more than one, then there exists more than one permutation result to the highest structural degree. ad i) It means:

1

1

( ) 0

deg ( ) ( )

i

r

i

r

mi

i

mi

i

sign

sign t s r

σσ

σσ

σ α

σ

= ∈Γ

= ∈Γ

⇔ =

from which follows that the system order is structurally definite.

ad ii) Notice that φ α( ) = 0 if and only if

1

1

( ) 0

deg ( ) ( )

ir

ir

mi

im

ii

sign

sign t s r

σσ

σσ

σ α

σ

∈Γ =

∈Γ =

=

⇔ <

∑ ∏

∑ ∏

from which follows that the system order is not structurally definite. Thus if we define V = ={ : ( ) }α φ α 0 , (which is proper and non-trivial) then the structural system order definiteness property fails only for points α ∈V . This means for a given

Page 65: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

53

( ) [ ]m mstruc T s s×∈R the structural system order definiteness fails only for “unlucky” coefficient values of the highest order of t sij ( ) of the matrix set of

( ) [ ]m mT s s×∈R having the same structure as ( ) [ ]m mstruc T s s×∈R . Therefore this property is a generic property.

b) to prove that a fractional polynomial entry of structural matrix inverse is a generic property, we consider Corollary 3.11.:

( )1deg ( ) : deg det ( ) deg det ( )ij jit s S s T s− = −

and the same as in Lemma 3.24a for the polynomial matrix

( )( ) ( ) [ ]m mji ji ij

S s s s s×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R , we define set

1{ : deg ( ) ( ) deg det ( )}

i

ms i ji

isign s s struc S sσσ σ

=Γ = ∈Γ =∏ and β ij be the

coefficient of the highest order term of ( )jis s . Further let B i si= ∈{ : }β σσ Γ , we can

define a polynomial function:

1 1( , ) ( ) ( )

i ir s

m mi i

i isign signσ σ

σ σφ α β σ α σ β

∈Γ ∈Γ= =

⎛ ⎞⎛ ⎞⎜ ⎟⎜ ⎟=⎜ ⎟⎜ ⎟

⎝ ⎠⎝ ⎠∑ ∑∏ ∏

The difference of degree of the fractional polynomial entries of T s−1( ) is not structurally definite only for some points ( , ) ( , )α β φ α β such that = 0 . This

polynomial ( , )φ α β shows that either 1

( )i

r

mi

isign σ

σσ α

∈Γ =

⎛ ⎞⎜ ⎟⎜ ⎟⎝ ⎠∑ ∏ = 0 or

1( ) 0

is

mi

isign σ

σσ β

∈Γ =

⎛ ⎞⎜ ⎟ =⎜ ⎟⎝ ⎠∑ ∏ will give a structurally indefiniteness of the fractional

polynomial ( )1deg ( )ijt s− as given in Corollary 3.22.

c) the following gives the proof of the generic property of the rank of constant matrix. It resembles much to the proof of Lemma 3.24a. Consider a constant matrix

m mE ×∈R and let Γ( )( )ηη is a set of largest minors of struc E have structural rank η

with Γ Γ Γ Γ( )( ) { : ,det }ηη

ηη

η ηησ= ∈ ≠ 0 . Further let { : }

iiA e σ ησ= ∈Γ and let e be

a vector of the elements of A (see (3.4)) then we can define a function:

1( ) ( )

iii

e sign eη

ησ

σφ σ

∈Γ == ∑ ∏

again we can distinguish between:

Page 66: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

54

i) Γ( )

( )ηη = 1, there exists only one permutation which results in the largest minor

Γ Γηη

ηη, with det o≠

ii) Γ( )( )ηη ≥ 2 , there exists more than one permutation which results in the largest

minor Γ Γηη

ηη, with det o≠

ad i) The rank is structurally definite ad ii) Notice that ( ) 0eφ = if and only if

1( ) 0

iii

sign eη

ησ

σσ

∈Γ ==∑ ∏

If we define { : ( ) 0}V e eφ= = , (which is proper and non trivial) then the rank of a constant matrix is not structurally definite only for some points e V∈ . Again this means for a given m mstruc E ×∈R the structural rank definiteness fails only for “unlucky” values of the entries of the matrix m mE ×∈R having the same structure as

m mstruc E ×∈R . Therefore this property is a generic property. d) to prove the genericity property of structural low index criterion, let’s define a function :

1 1( , ) ( ) ( )

i ir

m mi i

i ie sign sign e

η

σ σσ σ

φ α σ α σ∈Γ ∈Γ= =

⎛ ⎞⎛ ⎞⎜ ⎟⎜ ⎟=⎜ ⎟⎜ ⎟

⎝ ⎠⎝ ⎠∑ ∑∏ ∏

from the proof of Lemma 3.24a and Lemma 3.24c, it is obvious that the low index criterion is not structurally definite only for some points ( , ) such that ( , ) 0e eα φ α = .

3.5. Examples The following examples give results of all 3 methods (structural method, Pantelides’s algorithm and Unger’s algorithm). Example 3.1: Consider the following DAE:

1 2 1 2

1 2 3

1 2

00 2

z z z zz z z

z z u

+ = − += − += − − +

where u f t= ( ) is a given input variable

with matrices:

Page 67: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

55

E struc E A struc Ax x x x

x x x

x x

=L

NMMM

O

QPPP

=L

NMMM

O

QPPP

=L

NMMM

O

QPPP

=L

NMMM

O

QPPP

− −

1 1 0

0 0 0

0 0 0

1 1 0

1 1 1

1 2 0

0 0 0 0

0 0 0

0 0

, , , o

o o o

o o o

o

o

and :

1 1 0( ) [ ] 1 1 1

1 2 0

s sT s Es A

+ −⎡ ⎤⎢ ⎥= − = − −⎢ ⎥⎢ ⎥⎣ ⎦

,

0

( )

0

o o o

o o

s s

struc T s x x x

x x

⎡ ⎤⎢ ⎥

= ⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

A symbolic analysis using Maple 8 gives results: A1) det( ) 3sE A s− = +

It means (following Corollary 2.8): (dynamic degree of freedom)=deg det ( )deg det( )1

r T sEs A= −

=

( ) 1rank E = . It follows from Lemma 2.3 that the DAE has a low index. B1)

20

3 3

1 10

3 3

3 21

3 3

1( )

s

s s

s

s s

s

s s

Es A

−+ +

+−

+ +

− −+ +

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥− =⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

It means (following Lemma 2.6) that the index of the DAE is 1. C1) Column rank (E) =2 and the DAE dynamic degree of freedom = 1; thus this DAE does not satisfy a consistent re-initialisation problem (see Chapter 2, Corollary 2.12). This DAE will be satisfy a consistent re-initialisation problem by algebraic manipulation or algebraic transformation given as follows:

4 1 2

1 2 4

1 2 3

1 2

000 2

z z zz z zz z z

z z u

= − += + −= − += − − +

Page 68: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

56

The structural analysis gives the following results: A2) det ( )struc sE A s− = It means (following Corollary 3.7):

(structural dynamic degree of freedom)=deg det ( )deg det ( )1

r struc T sstruc Es A= −

=

rank = 1struc E . It follows from Corollary 3.10 that the DAE has a structural low index. B2)

1 det ( ) ( ) , for , 1,...,3

det ( )ji

ij

struc S sstruc T s i j

struc T s−

⎡ ⎤⎛ ⎞⎢ ⎥= =⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

, where:

1

det ( ) 1 ,det ( )1

ji

o sstruc S s o s struc T s s

s s

⎡ ⎤⎢ ⎥⎡ ⎤ = =⎣ ⎦ ⎢ ⎥⎢ ⎥⎣ ⎦

, with 1ox ≡ ,

then follows:

struc Es As

s

s

( )− =

L

N

MMMM

O

Q

PPPP−1

1

1

1

0 1

0 1

1 1

.

This means that the DAE has a structurally index one. This results renders with the symbolic analysis above. Unger’s algorithm gives: a structural index = 1 and the number of dynamic degree of freedom = 1 Pantelides’ algorithm gives: the third equation needs to be differentiated, which also results in unnecessary required differentiation of the input signal u . Example 3.2: Consider the following DAE:

1 1 2 3

2 1 2 3

1 2

22

0

z z z z uz z z z u

z z

= − + − += − − + += +

where u f t= ( ) is a given input variable

Page 69: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

57

with matrices: 0 0 0 0

0 0 0 0

0 0

o o1 0 0 1 1 2

0 1 0 o o 1 2 1

0 0 0 o o o 1 1 0 o

, , ,

x x x x

x x x x

x x

E struc E A struc A− −

− −

⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥= = = =⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦

and

1 1 2( ) [ ] 1 2 1

1 1 0

sT s Es A s

+ −⎡ ⎤⎢ ⎥= − = + −⎢ ⎥⎢ ⎥− −⎣ ⎦

, ( )

0

o o

o o

o o

s x x

struc T s x s x

x x

⎡ ⎤⎢ ⎥⎢ ⎥=⎢ ⎥⎢ ⎥⎣ ⎦

A symbolic analysis using Maple 8 gives results: A1) det( )sE A s− =

It means (following Corollary 2.8): (dynamic degree of freedom)=deg det ( )deg det( )1

r T sEs A= −

=

( ) 2rank E = . It follows from Lemma 2.3 that the DAE does not have a low index.

B1)

2

1 2 2 3

1 2 3

1 2 3 3

1( )

s

s s s

s

s s s

s s s s

s s s

Es A

− − +−

+

+ + + +

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥− = ⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

It means (following Lemma 2.6) that the index of the DAE is 2. Following the Conjuncture 2.14a (Chapter 2, section 2.6.1) the 3rd equation needs to be differentiated once to reduce the index of the DAE and by choosing 2z as an algebraic variable, i.e.

2'

2z z→ , then the following index one DAE can be constructed:

Page 70: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

58

2

2

1 1 2 3'

1 2 3

1 2'

1

2

2

0

0

z z z z u

z z z z u

z z

z z

= − + − +

= − − + +

= +

= +

The structural analysis gives the following results: A2) det ( )struc sE A s− = It means (following Corollary 3.7):

(structural dynamic degree of freedom)=deg det ( )deg det ( )1

r struc T sstruc Es A= −

=

rank = 2struc E . It follows from Corollary 3.10 that the DAE does not have a structural low index. B2)

1 det ( ) ( ) , for , 1,...,3

det ( )ji

ij

struc S sstruc T s i j

struc T s−

⎡ ⎤⎛ ⎞⎢ ⎥= =⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

, where:

2

1 1det ( ) 1 1 ,det ( )ji

sstruc S s s struc T s s

s s s

⎡ ⎤⎢ ⎥

⎡ ⎤ = =⎢ ⎥⎣ ⎦⎢ ⎥⎣ ⎦

, with 1ox ≡ ,

then follows:

11

11

1

1

11

1

( )

s

s

s

s

sstruc Es A −

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥− =⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

.

This means that the DAE has a structurally index two. This result renders with the symbolic analysis above and the 3rd equation need to be differentiated once to perform index reduction. Unger’s algorithm gives: the structural index = 2 and the number of dynamic degree of freedom = 1.

Page 71: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

59

Pantelides’ algorithm gives: to allow a consistent initialisation problem the third equation needs to be differentiated once. The structural approach has the advantages of a more efficient computational effort than a symbolic approach (Bujakiewics [21], Unger et.al [126]), and in some cases symbolic analysis is not feasible, e.g. the models use external program routines. Despite the advantages of this structural approach it still fails for some “unlucky values” or indefiniteness of the properties. This case is shown by the following example 3.3. Example 3.3: (This example shows the difference between Pantelides’ algorithm [98] and our algorithm) Consider a DAE:

1 2 1

1 2 2 3

1 2

0 2

z z zz z z z

z z u

+ = −+ = − +

= − − +

where u f t= ( ) is a given input variable and

0 0 0

0 0 0 0

0 0

o o o1 1 0 1 0 0

1 1 0 o 0 1 1 o

0 0 0 o o o 1 2 0 o

, , ,

x x x

x x x x

x x

E struc E A struc A−

− −

⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥= = = =⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦

and

1 0( ) [ ] 1 1

1 2 0

s sT s Es A s s

+⎡ ⎤⎢ ⎥= − = + −⎢ ⎥⎢ ⎥⎣ ⎦

,

0

( )

0

o

o o

s s

struc T s s s x

x x

⎡ ⎤⎢ ⎥

= ⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

A symbolic analysis using Maple 8 gives the following results: A1) det( ) 2sE A s− = +

It means (following Corollary 2.8): (dynamic degree of freedom)=deg det ( )deg det( )1

r T sEs A= −

=

( ) 1rank E = . It follows from Lemma 2.3 that the DAE has a low index.

Page 72: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

60

B1)

20

2 2

1 10

2 2

1 2 11

3 2

1( )

s

s s

s

s s

s s

s s

Es A

+ +

− +

+ +

− +−

+ +

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥− =⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

It means (following Lemma 2.6) that the index of the DAE is 1. C1) Column rank (E) =2 and the DAE dynamic degree of freedom = 1; thus this DAE does not satisfy a consistent re-initialisation problem (see Chapter 2, Corollary 2.12). This DAE will satisfy a consistent re-initialisation problem by algebraic manipulation or algebraic transformation given as follows:

4 1

4 2 3

1 2

1 2 4

0 20

z zz z z

z z uz z z

= −= − += − − += + −

The structural analysis gives the following results: A2) det ( )struc sE A s− = It means (following Corollary 3.7):

(structural dynamic degree of freedom)=deg det ( )deg det ( )1

r struc T sstruc Es A= −

=

so the system order is structurally definite, but rank E is not structurally definite since rank struc E rank E while == 2 1. The structural algorithm shows that the DAE does not have a structurally low index. B2)

1 det ( ) ( ) , for , 1,...,3

det ( )ji

ij

struc S sstruc T s i j

struc T s−

⎡ ⎤⎛ ⎞⎢ ⎥= =⎜ ⎟⎢ ⎥⎝ ⎠⎣ ⎦

, where:

2

1det ( ) 1 ,det ( )ji

o sstruc S s o s struc T s s

s s s

⎡ ⎤⎢ ⎥

⎡ ⎤ = =⎢ ⎥⎣ ⎦⎢ ⎥⎣ ⎦

, with 1ox ≡ ,

then follows:

Page 73: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

61

0 1

0 1

1

1

11

1

( )

s

s

sstruc Es A −

⎡ ⎤⎢ ⎥⎢ ⎥− = ⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

.

This means that the DAE has a structurally index two and the third equation needs to be differentiated to perform index reduction. Unger’s algorithm gives results as structurally index two problem with one dynamic degree of freedom. Pantelides’ algorithm gives results to allow a consistent initialisation problem the third equation needs to be differentiated once.

3.6. Conclusions The objectives of this Chapter are to analyse the properties of a DAE model ,

( , , , ) 0F z z u t = , based on the structural information of the matrices ( ),struc E

( ),struc Es A− 1( )struc Es A −− instead of the exact numerical values of these system matrices. This structural analysis results in a meaningful result based only on a

priori pattern of the matrices E Aand , i.e. ( ) ,Fstruc E strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠

( ) Fstruc A strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠, where it may be that the exact numerical values take more

computational effort or as not even feasible. A high index problem of a DAE model can be detected from the structural information of the system matrices, ( ),struc E ( )struc Es A− . The DAE model has a low index if

( ( )) deg det ( )rank struc E struc Es A= − . The analysis of the dynamic degrees of freedom to allow a consistent (re-) initialisation of a DAE model based on the structural information, i.e.

deg det ( )r struc Es A= − , gives the upper bound of the exact values. The analysis of the index of a DAE model base on the structural information of the

matrix 1( )struc Es A −− gives mostly the upper bound of the exact values. The required differentiations for an index reduction of a DAE model can also be derived

from the information of the matrix 1( )struc Es A −− .

Page 74: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 3 : Structural properties of first order DAE model

62

Analysis of the properties of a DAE model based on the structural information of the system matrix ( )Es A− and matrix E provides generic properties for the low index criterion, dynamic degree of freedom (system order), and the required equation differentiation for high index reduction. Despite of advantage on the applicability of the structural method, there is still a problem of analytical cancellation (the “unlucky values”), which cannot be detected. A possible combination of symbolic and structural analysis may form a solution in the future.

Page 75: Mathematical Analysis of Dynamic Process Models Index, inputs

63

Chapter 4: Application of Low Index Detection and High Index Reduction of Non-linear DAE Process models

The DAE model structure of a given system can be changed from a low index to a high index structure due to a change of its behavioural description, new assumption or interconnection. The high index structure arises due to constraint equations of its state variables. This states constraint can be caused by behavioural constraint, e.g. equilibrium and / or by topological constraint, e.g. interconnection. Strict system equivalence operation for a high index reduction shows that the internal representations of a physical system are non-unique for the same inputs outputs behaviour. “Any (complex) system is ‘controllable’ if its structure is recognized”

4.1. Introduction Mathematical modelling of a physical system is always subjected to assumptions. These assumptions are made to reduce complexity of a process modelling. The model assumptions can be distinguished in two types: behavioural assumptions and topological assumptions. The behavioural assumptions include “the unmodelled phenomena” and “the unmodelled quantities” within the system, when:

- the contribution of some phenomena or quantities are negligible, e.g: contribution of potential and kinetic energy on the energy balance equations are neglected.

- the dynamic change of some phenomena or quantities are negligible, e.g: (pseudo) steady state assumptions of some phenomena, ignoring dynamics of some quantities due to “fast” dynamic change of these quantities in comparison with other quantities, phase and/or reaction equilibrium

- the information of some phenomena or quantities are not available, e.g: non availability of: the reaction rate relation, mass transfer rate coefficient.

The topological assumptions include “the unmodelled structure/parts”, “the unmodelled geometry” of the system and the topological system decomposition itself, example:

- ideally mixed fluid system - pipe connections between unit operations in a system are not modelled - three dimensional system is modelled as one dimensional system

The behavioural assumptions can be closely related to the topological assumptions, see example in section 4.3. This example shows that a contradiction on system assumptions can result in a high index model. Our approach of physical modelling is based on the physical balance equations and its constitutive equations. The set up of balance equations assumes that “the accumulating/storage” quantities are independent state variables of the system. The independency of the state variables on the balance equations, we call the “primitive assumption” of the model. De Groot and Mazur [52, page 85] recommended

Page 76: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

64

describing the state variables of the system with the extensive variables (mass, energy, impulse, etc) rather than the intensive variables (concentration, temperature, pressure): “Extensive variables have been chosen to describe the states of the system because of the difficulties encountered if one tries to introduce from the start intensive thermodynamic state variables for non-equilibrium states”. The intensive variables of the system can be derived from extensive variable relations (as additional constitutive equations in the system description). The examples for the problem indicated by De Groot and Mazur [52] as a consistent re-initialisation problem will be given in the section 4.4. Sometimes the primitive assumption on the independency of the extensive state variables of the system is “disturbed” by behavioural and/or topological assumptions, which can lead to “states constraint / states dependency”. Mathematically we call this phenomenon a high index problem. The result of this “constraint” is that the original independency of given r number state variables is reduced to less than r number new state variables of the system. Mathematically we call the number independent state variables as the dynamic degree of freedom of the model. Section 4.5 shows that the interconnection between two subsystems can cause a high index problem. This chapter describes several examples of high index problems on the process modelling. We will use the mathematical theory derived on Chapter 2 and Chapter 3 for detection of a low index DAE model, the calculation of the structural index of a DAE model. We will also use index reduction techniques (see Chapter 2 section 2.6.1 and section 2.6.2.) to transform a high index to an index one model. Further the consistent re-initialisation criterion (see Chapter 2 section 2.5.2) is to be used to check if a DAE model has minimum state variables. Most of the models in this chapter are adopted from existing literature, some of them are made for example purposes only. A lot of constitute equations are presented only as “a function of variables”, example: a mass flow Fout through a valve is a function of its inlet pressure Pin and its outlet pressure Pout , presented as: F f P Pin in out= ( , ) ,

instead of: F C P Pin v in out= − , where Cv is the valve parameter. This is done for two reasons, first our structural approach neither requires the exact analytical functions nor the numerical values, second, to reduce the complex presentation of a system description, where we need only its structural information. This chapter is divided into five sections. In section 4.2, examples for column wise/variable differentiation for high index reduction are presented through examples of a chemical and a phase equilibrium model. In section 4.3, examples for row wise/equation differentiation for high index reduction are given. Section 4.4 presents examples for a non-consistent re-initialisation problem and its solution. Section 4.5 shows an example for a high index problem due to interconnection.

Page 77: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

65

4.2. High Index reduction through variables differentiation The high index reduction technique as described in section 2.6.2, i.e. Conjuncture 2.14b is mentioned for a high index reduction of a DAE model, where some of the internal variables are “not interested as outputs of the model” and can be removed from the model equations. The strict system equivalence operation is done by variable differentiations. It must be noted that the steady state equations as a result of the strict system equivalence operation through variables differentiation do not contribute the input-output behaviour. Therefore these equations may be removed from the final model equations. The value of the removed variables from the balance equations may not be derived from the steady state relations as the result of a strict system equivalence operation, the real value of this variable can only be derived from index reduction through equations differentiation, see example in section 4.4. The following examples of the steam-reforming reactor and the distillation tray model show the technique presented in Section 2.6.2., Conjuncture 2.14b.

4.2.1. Reaction equilibrium model (steam reforming reactor model) In a catalytic methane-steam reforming reactor synthese gas (mixture mainly of CO and H2) is produced, as the feedstock of a lot of chemical processes, e.g.: ammonia synthesis and hydro-cracking process or as feedstock for a fuel cell. Schematically such a catalytic methane-steam reforming reactor is shown in figure 5.1. The major feed of the reactor is methane and steam and the product is a mixture of CH CO CO H H O4 2 2 2, , , , . The main reactions are:

a. methane-steam reaction (see reaction scheme 4.1a) b. water-gas shift reaction (see reaction scheme 4.1b)

The system boundary in figure 4.1 given with dash line and model variables are: Fin, Fout = inlet and outlet mass flow Pin,Pout

= inlet and outlet pressure hin, hout = inlet and outlet specific enthalpy xi,in,xi,out = inlet and outlet gas mass fraction with i=CH4,CO,CO2,H2,H2O Qadd,Qloss = additional and loss of heat P, T= gas pressure and temperature within the reactor Figure 4.1. A catalytic methane-steam reforming reactor

Fin, Pin, hin, xi,in

Fout, Pout, hout,

Qadd Qloss

i = CH4,CO,CO2,H2,H2O

Page 78: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

66

CH H O H CO

CO H O CO H

rCH

shiftr4 2 2

2 2 2

4 3+ ⎯ →⎯⎯ +

+ ⎯ →⎯ +

(4.1a, 4.1b)

r k P xx x Px K T

r f x x x x T P

CH CH CH outCO out H out

H O CH

shift CO CO H H O

4 4 4

2

2

2 2 2

3

4

1

= −FHG

IKJ

=

.. .. ( )

( , , , , , )

,, ,

(4.1c, 4.1d)

The reaction rates of both reactions are given on the equations (4.1c) and (4.1d). The kinetic reaction rate (4.1c) is adopted from Take et.al [119] for methane-steam reforming reaction with a Ni-Al2O3 catalyst. In most cases the water-gas shift reaction rate relation is not available and is assumed to be taking place on equilibrium condition. Herewith this reaction is assumed as “fast” dynamic reaching its equilibrium condition. This replaces the reaction rates given in the reaction schemes (4.1a) and (4.1b) with the following reaction schemes ((4.1a) and (4.2a)): CH H O H CO

CO H O CO H

r

K

CH

shift

4 2 2

2 2 2

4 3+ ⎯ →⎯⎯ +

+ ← →⎯⎯ +

(4.1a, 4.2a)

where the equilibrium relation of water-gas shift is:

K Tx xx xshift

CO out H out

CO out H O out

( ).

., ,

, ,

= 2 2

2

(4.2b)

The model equations are given with the system’s assumptions:

- one “well-mixed” gas phase in the reactor, - neglecting contribution of kinetic and potential energy,

When the component on the model are given with: i CH CO CO H H O j CH shift= =4 2 2 2 4, , , , ; , and stoichiometric reactions coefficient matrix

ϑ ij

T

=− −

− −LNM

OQP

1 1 0 3 10 1 1 1 1

(4.3)

The component mass balance, energy balance and its constitutive system equations are given as follows:

Page 79: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

67

dMdt

F x F x V riin i in out i out eff ij j

j

= − +=∑, , ϑ

1

2

(4.4 - 4.8)

hin in out out add loss

dE F h F h Q Qdt

= − + − (4.9)

M M M x MT ii

i i out T= ==∑

1

5

, , (4.10-4.15)

M V E M h P VT eff T out eff= = −ρ. , . . (4.16,4.17) ρ = =f T P x h f T P xi out out i out1 2( , , ), ( , , ), , (4.18,4.19)

3 4( ), ( )in in out outF f P P F f P P= − = − (4.20,4.21)

2

4 4 4

2

3, ,

1 ,4

. .: .

. ( )CO out H out

CH CH CH outH O CH

x x Pr r k P x

x K T⎛ ⎞

= = −⎜ ⎟⎜ ⎟⎝ ⎠

(4.1c)

K Tx xx xshift

CO out H out

CO out H O out

( ).

., ,

, ,

= 2 2

2

(4.2b)

In this equations set 2 : shiftr r= is replaced by (4.2b), hence a high index problem occurs. where: M Mi T, = components mass and total mass hold up

hE = thermodynamic energy hold up ρ = gas mixture density xi = mass fraction of component i k K TCH CH4 4

, ( ) = kinetic rate constant / parameter and the temperature dependent equilibrium constant for methane-steam reaction K Tshift ( ) = the temperature dependent equilibrium constant for water-gas shift reaction Veff = effective void volume of the reactor (as a model parameter) This model is given with 20 differential algebraic equations ((4.4 – 4.21), (4.1c) (4.2b)) with 20 unknowns, namely:

4 ,, , , , , , , , , , , ,T h out in out CH shift i i outM E P T h F F r r M xρ

and the chosen input variables are: u x h P P Q Qi in in in out add lossT= ( , , , , , ), , where

i CH CO CO H H O= 4 2 2 2, , , , . Consider the DAE model equations above as F z z u( , , ) = 0 with model variables:

4,( , , , , , , , , , , , )Ti h i out out CH shift T in outz M E x h r r M T P F Fρ= , then we can

construct the structural system matrix struc Es A( )− , where matrices

E struc Fz

= ∂∂

and A struc Fz

= ∂∂

.

Page 80: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

68

The result of structural analysis gives: a) rank struc E = 6 b) degdet ( ) struc sE A− = 5 , means that the number of dynamic degree of freedom

of this model is 5 c) the maximum power of s on the structural matrix ( )Es A− =−1 1. This means that the DAE model has structural index = 2. The maximum power of s on the structural matrix ( )Es A− =−1 1 are on the 14th row of ( )Es A− −1 with column numbers: 7,8,9,10,11,12,13,14,15,16,20. This means that if a high index reduction can be done by:

i) the equations differentiation, where we need to differentiate once the equations: (4.10), (4.11), (4.12), (4.13), (4.14), (4.15), (4.16), (4.17), (4.18), (4.19), (4.2b) and then chose the state or non-state variables (as described in Chapter 2, section 2.6.1.), or

ii) the variable differentiation, where we need to do restricted system equivalence operation on the DAE model such that the 14th variable ( )rshift is vanished from the differential equations and perform strict system equivalence operation. This operation can be chosen when we are not interested in the variable rshift as the output of system.

If we choose the second possibility (ii) then we can apply a restricted system equivalence operation as described in Chapter 2 – section 2.6.2. The entry of pre-multiplying matrix M is as follows, Given the stoichiometric coefficients of the rshift on the balance equations, as uninterested variable of the system output is

[ ]0 1 1 1 1 ; then ( ) is:a Ker a= − −

[ ]

1 0 0 00 1 0 0

0 1 1 1 1 , , ,0 0 1 00 0 0 10 1 1 1

Ker

⎧ ⎫⎛ ⎞ ⎛ ⎞ ⎛ ⎞ ⎛ ⎞⎪ ⎪⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟⎪ ⎪⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟⎪ ⎪⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟− − = ⎨ ⎬⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟⎪ ⎪⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟⎪ ⎪⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟−⎪ ⎪⎝ ⎠ ⎝ ⎠ ⎝ ⎠ ⎝ ⎠⎩ ⎭

and the matrix M is:

Page 81: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

69

M =

−L

N

MMMMMMMMMMM

O

Q

PPPPPPPPPPP ×

1 0 0 0 0 0 00 1 0 0 1 0 00 0 1 0 1 0 00 0 0 1 1 0 00 0 0 0 1 0 00 0 0 0 0 1 0

0 0 1 20 20

Perform pre-multiplication of the model equations ((4.4 – 4.21), (4.1c) (4.2b)) with this matrix M (restricted system equivalence operation), gives the following set of equations:

dMdt

F x F x V r

dMdt

F x x F x x V r

dMdt

F x x F x x V r

dMdt

F x x F x x V r

dMdt

F x F

CHin CH in out CH out eff CH

Ain CO in H O in out CO out H O out eff CH

Bin CO in H O in out CO out H O out eff CH

Cin H in H O in out H out H O out eff CH

H Oin H O in

4

4 4 4

2 2 4

2 2 2 2 4

2 2 2 2 4

2

2

2

2

= − −

= − − − +

= + − + −

= + − + +

= −

, ,

, , , ,

, , , ,

, , , ,

,

.

( ) ( ) .

( ) ( ) .

( ) ( ) .

out H O out eff CH eff shift

in in out out add loss

x V r V r

dEdt

F h F h Q Q

2 4, . .− −

= − + −

(4.22 – 4.26a, 4.27) M M M M M M M M MA CO H O B CO H O C H H O= − = + = +

2 2 2 2 2; ;

(4.28 – 4.30) and equations ((4.10 – 4.21), (4.1c) (4.2b)). Since the variable rshift is not interesting as an output of the system, we can perform a

strict system equivalence operation to remove dM

dtH O2 from equation (4.26a) (see

Chapter 2 - Conjuncture 2.14b). Replace this equation (4.26a) with the new one (4.26b) for the new equivalent index one with 23 differential algebraic equations for the methane-steam reforming reactor, given as follows:

(Ker [0 –1 1 1 –1])T

Page 82: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

70

dMdt

F x F x V r

dMdt

F x x F x x V r

dMdt

F x x F x x V r

dMdt

F x x F x x V r

F x F x

CHin CH in out CH out eff CH

Ain CO in H O in out CO out H O out eff CH

Bin CO in H O in out CO out H O out eff CH

Cin H in H O in out H out H O out eff CH

in H O in out H O

4

4 4 4

2 2 4

2 2 2 2 4

2 2 2 2 4

2 2

2

2

0

= − −

= − − − +

= + − + −

= + − + +

= −

, ,

, , , ,

, , , ,

, , , ,

,

.

( ) ( ) .

( ) ( ) .

( ) ( ) .

, . .out eff CH eff shift

in in out out add loss

V r V r

dEdt

F h F h Q Q

− −

= − + −

4

(4.22 – 4.26b,4.27) M M M M M M M M MA CO H O B CO H O C H H O= − = + = +

2 2 2 2 2; ;

(4.28 – 4.30) and equations (4.10 – 4.21), (4.1c), (4.2b). for 23 unknowns variables: M M M M E P T h F F r r M x

i CH CO CO H H OT A B C out in out CH shift i i out, , , , , , , , , , , , , , ,

, , , ,,ρ

4

4 2 2 2=

Moreover the equation (4.26b) can be removed from the model equations without any effect for model inputs-outputs behaviour, such that we also remove the variable rshift from the model description. The final model equations are given by 22 index one differential algebraic equations (4.22 – 4.25,4.27), (4.28 – 4.30), (4.10 – 4.21), (4.1c), (4.2b) for 22 unknowns variables: M M M M E P T h F F r M x

i CH CO CO H H OT A B C out in out CH i i out, , , , , , , , , , , , , ,

, , , ,,ρ

4

4 2 2 2=

having 5 dynamic degrees of freedom. The index one model equations also satisfy the consistent re-initialisation criterion (see Chapter 2 – Corollary 2.12). The number of differential variables are equals to the dynamic degrees of freedom. We may specify these 5 number dynamic degree of freedom variables, e.g: M M M M ECH A B C4

0 0 0 0 0( ), ( ), ( ), ( ), ( ) to calculate the remaining variables:

M P T h F F r M x

dMdt

dMdt

dMdt

dMdt

dEdt

T out in out CH i i out

CH A B C

( ), ( ), ( ), ( ), ( ), ( ), ( ), ( ), ( ), ( ),

( ), ( ) , ( ) , ( ) , ( )

,0 0 0 0 0 0 0 0 0 0

0 0 0 0 04

4

ρ

as consistent (re-)initialisation conditions of the model equations.

Page 83: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

71

4.2.2. Non reacting phase equilibrium distillation tray model There have been a lot of works done on the dynamic modelling of phase equilibrium tray distillation column, e.g. Luyben [82], Gallun and Holland [42], Gani [43], Aspen Tech [5,118], Brooks [19]. Some of these models made by oversimplification of the physical behaviour within the system, e.g: equal vapour flow rate through all the trays, and/or steady state assumption of the energy balance equation. Ranzi et.al. [106] shows that model prediction using the steady state heat balance equation gives less accurate solution than using the dynamic heat balance equation. Pantelides [97] and Ponton [103] give a systematic approach for a phase equilibrium tray modelling to avoid a high index problem. Krishna, Taylor and Kooijman [64, 66,120] describe the modelling of non-equilibrium phase for a tray distillation column. In this section we will show the index reduction technique for a phase equilibrium distillation tray model in conjunction with a strict system equivalence operation as given in Chapter 2 section 2.6.2. In the following figure 4.2 (a) gives a schematic of a tray distillation column and figure 4.2 (b) presents a tray of this unit operation. (b) (a) Figure 4.2. A tray distillation column Moreover figure 4.3 (a) gives a schematic representation of a distillation tray model, with the following assumptions:

- well mixed liquid phase and vapour phase - neglecting tray weeping and entraintment - only one vapour phase within system boundary - no heat loss through system boundary - neglecting contribution of kinetic and potential energy

entrainmen

weepin

vapour

liquid

Page 84: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

72

and figure 4.3 (b) gives a schematic mass transfer and energy transfer through phase interface.

(a) (b) Figure 4.3 where: Vin, Vout = vapour inlet and outlet mass flow rate yi,in, yi,out = inlet and outlet mass fraction of component i in vapour phase hv,in, hv,out = vapour inlet and outlet specific enthalpy Pv,in, Pv,out = vapour inlet and outlet pressure Lin, Lout = liquid inlet and outlet mass flow rate xi,in, xi,out = inlet and outlet mass fraction of componet i in liquid phase hl,in, hl,out = liquid inlet and outlet specific enthalpy Ni,L,Ni,V = mass transfer of component i from the liquid (vapour) phase to the vapour (liquid) phase EL,exc, EV,exc = interfacial energy transfer Non equilibrium model Krishna and Taylor [120] give the relations for interfacial mass and energy transfer: N k a x x N xN k a y y N y

i n componentsE a T T N hE a T T N h

i L i l i l i itf i out L i out

i V i v i v i out i itf V i out

L exc l l itf l out L l out

V exc v v v out itf V v out

, , , , , ,

, , , , , ,

, ,

, , ,

( )( )

( )( )

= − += − +

= − += − +

= , ,..., ( )

,

1 2αα

(4.31 – 4.35) where the first part of the right hand side of the equations (4.31 – 4.35) are the transfer due to diffusion and the second one is due to convection. Further:

Lin,xi,in,hl,in

Ni,Ni,

EL,eEv,e

Lout,xi,out,hl,

Vout,yi,out,hvout,P

Vin,yi,in,hv,in,Pv,i

liquid phase vapour phase

interface

ZL Aef

Page 85: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

73

N N N NL i Li

n

V i Vi

n

= == =∑ ∑, ,;

1 1

(4.36, 4.37)

N N i nE E

i L i V

L exc V exc

, ,

, ,

; , ,...,= ==

1 2 (4.38, 4.39)

0 1 2= =K x y T P i ni itf i itf i itf itf, , ,( , , , ) ; , ,..., (4.40) where: k a k a a ai l i l i v i v l l v v, , , ,, , ,α α = mass and energy transfer coefficients

N NL V, = total liquid / vapour mass transfer through the phase interface Ki itf, = interface equilibrium relation x yi itf i itf, ,, = liquid / vapour mass fraction of component i on phase interface Titf = temperature on phase interface. The interface transport behaviour is described with 4 5N + non-linear independent algebraic equations with 4 5N + unknowns, namely: N N E E N N x y Ti L i V L exc V exc L V i itf i itf itf, , , , , ,, , , , , , , , and the input variables of these

algebraic equations are x y h h T T Pi out i out l out v out l out v out, , , , , ,, , , , , , . Equilibrium Model In some cases the interfacial transport parameters are not available or the interface transport phenomenon are modelled with N +1 phase equilibrium equations given as follows: 0 1 20

= =

= −

K x y T P i n componentsT T

i eq i out i out v out

v out l out

, , , ,

, ,

( , , , ) ; , ,..., ( ) (4.41, 4.42)

The component mass balance and energy balance of a tray are given as: dM

dtL x L x N

dMdt

V y V y N

i n componentsdEdt

L h L h E

dEdt

V h V h E

i Lin i in out i out i L

i Vin i in out i out i V

Lin l in out l out L exc

Vin V in out V out V exc

,, , ,

,, , ,

, , ,

, , ,

( )

= − +

= − +

= − +

= − +

= , ,...1 2 (4.43 - 4.46)

Since N N E Ei L i V L exc V exc, , , ,+ + == 0 and 0 , then we can write (4.43 – 4.46) as:

Page 86: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

74

dM

dtL x L x N

dMdt

V y V y N

i n componentsdEdt

L h L h E

dEdt

V h V h E

i Lin i in out i out i L

i Vin i in out i out i L

Lin l in out l out L exc

Vin V in out V out L exc

,, , ,

,, , ,

, , ,

, , ,

( )

= − +

= − −

= − +

= − −

= , ,...1 2 (4.47 – 4.50)

and the constitutive equations are given as follows:

M M M ML i Li

n

V i Vi

n

= == =∑ ∑, ,;

1 1

(4.51, 4.52)

M x M M y M i n componentsi L i out L i V i out V, , , ,; ; , ,..., ( )= = = 1 2 (4.53, 4.54)

E M h PV E M h PVL L l out L V V v out V= − = −, ,; (4.55, 4.56) M V V A ZL L L L eff L= =ρ ; . (4.57, 4.58)

M VV V V= ρ (4.59) V V Vtray L V= + (4.60) P P P Pv out l out, ,;= = (4.61, 4.62) L f Zout L= 1( ) (4.63) V f P P Zin v in L= 2 ( , , ), (4.64) ρ ρL l out l out i out V v out v out i outf T P x f T P y= =3 4( , , ) ; ( , , ), , , , , , (4.65, 4.66) h f T P x h f T P yl out l out l out i out v out v out v out i out, , , , , , , ,( , , ) ; ( , , )= =5 6 (4.67, 4.68) the equations (4.63) and (4.64) give the mass transport relations through the system boundary. The phase equilibrium equations of the tray model are given by 5 19N + differential algebraic equations (4.47 – 4.68), with 5 19N + unknown variables: M M E E x y N E M M V V P Z P PT T h h

i L i V L V i out i out i L L exc L V L V L v out l out

l out v out l out v out L V

, , , , , , , ,

, , , ,

, , , , , , , , , , , , , , , ,, , , , ,ρ ρ

where: M Mi L i V, ,, = liquid / vapour phase mass hold up of component i M ML V, = total liquid / vapour phase mass hold up E EL V, = liquid / vapour phase energy hold up V VL V, = liquid / vapour phase volume ρ ρL V, = liquid / vapour phase density

Page 87: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

75

P Pl out, , = equilibrium pressure and liquid outlet pressure with the model parameters are: Vtray = total tray volume within the system boundary Aeff = tray area

and the input variables are: L V x y h h Pin out i in i in l in v in v in, , , , , ,, , , , , . The model parameters are the tray volume and tray area,V Atray eff, . Structural analysis of this tray model gives that this model forms an index two DAE model, with the number of the dynamic degree of freedom being N +1. The index reduction can be done through vanishing the variables Ni L, from the component balance equations (4.47) and vanishing the variable EL exc, from the energy balance equation (4.49). Again this operation can be done if these two variables are not interested as the outputs of the model. The operation performs through pre-multiplication of the system equations with the following matrix:

M

IN N

=

−−

L

N

MMMMMMMMMMMMMMM

O

Q

PPPPPPPPPPPPPPP+ × +

1 0 0 1 0 0 00 1 0 0 1 0

0 0 1 0 0 1 0 00 0 1 0 00 0 1 0

0 0 1 0 00 0 1 1 0

0 1 00 0 0

5 19 5 19( ) ( )

Pre-multiplication of the system equations with the first N-rows of matrix M results in linear combinations of liquid phase and vapour phase mass balance, where the variables Ni L, are removed. This is also done for the energy balance equation, see matrix M on the (2N+1)th row. Other equations are intact.

After strict system equivalence operation to remove the remaining ddt(.)

terms from

the component balance equations (4.48) and the energy balance equation (4.50) through variable differentiation, results in the following equivalent set of index one differential algebraic equations:

N

N

Page 88: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

76

dMdt

L x V y L x V y

V y V y Ni n components

dEdt

L h V h L h V h

V h V h E

i Min i in in i in out i out out i out

in i in out i out i L

Min l in in v in out l out out v out

in V in out V out L exc

,, , , ,

, , ,

, , , ,

, , ,

( )

= + − −

= − −

= + − −

= − −

01 2

0

= , ,... (4.69 – 4.72)

M M M i n componentsE E E

i M i L i V

M L V

, , , ; , ,..., ( )= + == +

1 2 (4.73,4.74)

and equations (4.41,4.42,4.51 – 4.68). Analogue with the example in Section 4.2.1; the variables N Ei L L exc, ,, are not interesting as outputs of the model so the equations (4.70) and (4.72) can be removed without any change in its inputs-outputs behaviour. This gives index one differential algebraic model equations, which satisfy the consistent (re-) initialisation criterion, since the number of differential variables is equal to the dynamic degrees of freedom, N +1. This gives the same result as proposed by Ponton [103]. The high index reduction for a high index problem on modelling of multiphase reactive equilibrium system can be done with the same procedure as presented above. Different to the approach presented above, Aspen Tech [5,118] gives a model relations / library for a distillation tray with further simplifications, namely:

- neglecting of the change of vapour hold up, therefore the tray pressure dynamic is neglected

- neglecting the contribution of pressure and volume variation on the (thermodynamic) energy balance

This gives the following index one set of 3 14N + differential algebraic equations: dM

dtL x V y L x V y

i n componentsdEdt

L h V h L h V h

i Lin i in in i in out i out out i out

Lin l in in v in out l out out v out

,, , , ,

, , , ,

( )

= + − −

= + − −

= , ,...1 2 (4.75, 4.76)

M M yL i Li

n

i outi

n

= == =∑ ∑, ,;

1 1

1 (4.77, 4.78)

M x M i n componentsi L i out L, , , , ,..., ( )= = 1 2 (4.79) E M hL L l out= , (4.80)

Page 89: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

77

M V V A ZL L L L eff L= =ρ ; . (4.81) P P P Pv out l out, ,;= = (4.82)

L f Zout L= 1( ) (4.83) V f P P Zin v in L= 2 ( , , ), (4.84) ρ L l out l out i outf T P x= 3( , , ), , , (4.85) h f T P x h f T P yl out l out l out i out v out v out v out i out, , , , , , , ,( , , ) ; ( , , )= =4 5 (4.86,4.87) 0 1 20

= == −

K x y T P i n componentsT T

i eq i out i out v out

v out l out

, , , ,

, ,

( , , , ) ; , ,..., ( ) (4.88,4.89)

for 3 14N + unknown variables : M x y M E h h V Z T T P P P L Vi L i out i out L L l out v out L L L l out v out l out v out out in, , , , , , , , ,, , , , , , , , , , , , , , , ,ρ for

the following input variables : L x y h h P Vin i in i in l in v in v in out, , , , , ,, , , , , and the model parameter is the tray area Aeff .

4.3. High index reduction through equations differentiation In some cases a strict system equivalence operation through variable differentiation for a high index reduction is not possible, e.g.: the high index reduction on the pendulum model (Mattsson and Soderlind [86]). The following example also gives a case, where equation differentiations are required for the index reduction.

4.3.1. Two phases incompressible fluid system with volume constraint Consider two phases of incompressible liquid-liquid flows through a constant volume static mixer (figure 4.4). Phase-1 is denoted with “A” and phase-2 is denoted with “B”. Moreover the volume fractions of A and B are given by ε εA B, . The mass balance equations and other constitutive equations are given as follows, Figure 4.4

Fin,A,Pin,A

Fin,B,Pin,B

Pin,mixer Pout,mixer

Fout,Pout

Page 90: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

78

ρ ε

ρ ε

A mixerA

in A out A

B mixerB

in B out B

V ddt

F F

V ddt

F F

. .

. .

, ,

, ,

= −

= −

(4.90, 4.91a) ε εA B+ = 1 (4.92) F F F Fout A A A tot out B B B tot, ,;= =ρ ε ρ ε (4.93, 4.94) F f P PF f P P F f P P

P P f F

out out mixer out

in A in A in mixer in B in B in mixer

in mixer out mixer out

== =

− =

1

2 3

42

( , )( , ) ; ( , )

( )

,

, , , , , ,

, ,

(4.95 – 4.98) where: Fin,A, Fin,B = inlet mass flow rate of A and B FoutA, Fout,B = outlet mass flow rate of A and B Fout = total outlet mass flow rate Pin,A, Pin,B = inlet pressure of fluid A and fluid B Pin,mixer, Pout, mixer = inlet and outlet pressure of the mixer Pout = outlet pressure ρ ρA B, = density of fluid A and fluid B ε εA B, = volume fraction of fluid A and fluid B Vmixer = volume of the mixer This model consists of 9 differential algebraic equations set with 9 unknowns: ε εA B in A in B out A out B out in mixer out mixerF F F F F P P, , , , , , , ,, , , , , , , with the input variables:

P P Pin A in B out, ,, , and the model parameters: ρ ρA B mixerV, , The structural analysis gives: a) rank struc E = 2 , degdet ( )struc sE A− = 1 b) the maximum power of s in the structural matrix ( )Es A− =−1 1. It means that this

DAE model has a structural index of two c) The 3rd column on the 3rd to 9th rows of matrix ( )Es A− −1 shows that the maximum

power of s is one. This means that when we want to do a high index reduction then we need to differentiate the third equation.

We may chose ddt B Bε ε→ ′ or

ddt A Aε ε→ ′ as non-state variable.

Suppose we chose the first one, then this gives results as an index one model with 10 differential algebraic equations:

ρ ε

ρ ε

A mixerA

in A out A

B mixer B in B out B

V ddt

F F

V F F

. .

. .

, ,

, ,

= −

′ = − (4.90, 4.91b)

Page 91: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

79

ε εA B+ = 1 (4.92) F F F Fout A A A tot out B B B tot, ,;= =ρ ε ρ ε (4.93, 4.94)

F f P PF f P P F f P P

P P f F

out out mixer out

in A in A in mixer in B in B in mixer

in mixer out mixer out

== =

− =

1

2 3

42

( , )( , ) ; ( , )

( )

,

, , , , , ,

, ,

(4.95 – 4.98)

0A Bddt

ε ε ′+ = (4.99)

with the 10 unknowns: ε ε εA B B in A in B out A out B out in mixer out mixerF F F F F P P, , , , , , , , ,, , , , , ,′

4.3.2. Condenser model This paragraph describes the dynamic model of a one phase totally condenser unit, as schematically given in the figure 4.5: Figure 4.5. where: Vin, Lout = inlet of vapour mass flow rate and outlet of liquid mass flow rate Pin, Pout = inlet and outlet pressure hvin, hlout = vapour specific enthalpy inlet and liquid specific enthalpy outlet Qcool = additional cooling energy The assumptions for this model are:

- each phase (vapour and liquid) is well mixed - no heat loss to the environment - the condensation process takes place in thermodynamically equilibrium

Vin, Pin, hvin

Lout, Pout, hlout Qcool

Page 92: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

80

As it has been derived in the previous example of the distillation tray model, that the system is in a phase equilibrium, then the balance equations of each phase is not independent. The balance and constitutive equations of the condenser are given as follows: dMdt

V L

dEdt

V h L h Q

Tin out

Tin vin out lout cool

= −

= − − (4.100, 4.101)

M M M M V M VT L V L L L V V V= + = =; ;ρ ρ (4.102 – 4.104) V V VL V cond+ = (4.105) E E E E M h PV E M h PVT L V L L lout L V V v V= + = − = −; ; (4.106 – 4.108) ρ ρL Vf T P f T P= =( , ) ; ( , ) (4.109 – 4.110) P f T= ( ) (4.111) h f T P h f T Plout V= =( , ) ; ( , ) (4.112, 4.113) V f P P L f V P Pin in out L out= =( , ) ; ( , , ) (4.114, 4.115) where: M ML V, = liquid and vapour mass hold up M ET T, = total mass and energy hold up ρ ρL V, = liquid and vapour density V VL V, = liquid and vapour volume hV = vapour phase specific enthalpy P T, = equilibrium pressure and temperature

These are 16 differential algebraic equations with 16 unknown variables: M E M M E E V V h h T P V LT T L V L V L V L V lout v in out, , , , , , , , , , , , , , ,ρ ρ and the input variables

are h P P Qv in in out cool, , , , . The volume of condenser Vcond is given as the model parameter. Structural analysis of this model gives: a) rank struc E = 2 , deg det ( ) 2struc Es A− = . This means the model has two

number of dynamic degree of freedom and it does not have a high index, i.e. the index of the DAE model is one.

b) column rank E = 2 and since the number of dynamic degree of freedom is two,

then this DAE model satisfies consistent re-initialisation criterion. In the following we will see that splitting the condenser model into two subsystems, vapour phase and liquid phase, will result in a high index model. Figure 4.6 shows the original system (figure 4.6a) is decomposed into two subsystems (figure 4.6b)

Page 93: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

81

(a) (b) Figure 4.6. The system hold up is decomposed into two subsystems. The vapour phase is on subsystem S-I and the liquid phase is on subsystem S-II. Modeling of sub system S-I, with the assumption that liquid phase hold up is neglected, gives the following 10 differential algebraic equations: S-I: dM

dtV L

dEdt

V h L h Q

Vin out

I

Vin v in out

Il outI

cool

= −

= − −, ,

(4.116, 4.117)

M V E M h PVV V C V V v C= = −ρ ; (4.118, 4.119) ρ ρV Vf T P P RT= =1( , ) )(for ideal gas (4.120)

P f T P A BT C

A B C= =+FHGIKJ =2 ( ) .exp ; , , )(e.g. physical property constants

(4.121) P Pout

I = (4.122) h f T P h f T Pv l out

I= =3 4( , ) ; ( , ), (4.123, 4.124)

V f P Pin in= 5( , ) (4.125) with 10 unknowns : M E L h h P P T VV V out

Il outI

v V outI

in, , , , , , , , ,, ρ and the input variables

are : h P Qv in in cool, , , and the model parameter is the volume of condenser VC . Where: L h Pout

Il outI

outI, ,, = liquid outlet mass flow, specific enthalpy and pressure from

subsystem S-I

LIout, PI

out, hIlout

Vin, Pin, hvin Vin, Pin, hvin

Qcool

Lout, Pout, hlout Lout, Pout, hlout

VC

S-I

S-II

Qcool

Page 94: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

82

Modeling of sub system S-II, with the assumption that the vapour hold up is neglected, gives the following 7 differential algebraic equations: dM

dtL L

dEdt

L h L h

LoutI

out

LoutI

l outI

out l out

= −

= −, ,

(4.126a, 4.127)

M V E M h P VL L L L L l out outI

L= = −ρ ; , (4.128, 4.129)

ρ L outI

l out outIf T P h f T P= =( , ) ; ( , ), (4.130, 4.131)

L f P V Pout outI

L out= ( , , ) (4.132) with 7 unknowns : M E V h T LL L L L l out out, , , , , ,,ρ and the input variables are :

L h P PoutI

l outI

outI

out, , ,, . Structural analysis for the subsystem S-II gives an index one DAE model, but for the subsystem S-I gives: a) ( ) 2 and deg det ( ) 1rank struc E struc Es A= − = , and b) the structural index of the DAE model for subsystem S-I is two c) Index reduction requires differentiation of the following equations (4.118-4.121) (4.123) gives results of:

D F d Fdt

V ddt

dMdt

h dMdt

M dhdt

V dPdt

dEdt

dTdt

df T PdT

dPdt

df T PdP

ddt

dTdt

df TdT

dPdt

dTdt

df T PdT

dPdt

df T PdP

dhdt

CV

vV

Vv

CV

V

v

( )( )

:

( , ) ( , )

( )

( , ) ( , )

11

1 1

2

3 3

0

0

0

0

0

= = −

= + − −

= + −

= +

= + −

ρ

ρ

(4.133a – 4.137a) following Conjuncture 2.14a (see Chapter 2) we have to chose 5 non-state variables. Table 4.1 gives 6 possibilities to chose the state and non-state variables,

Page 95: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

83

No. State variables Non state variables 1 EV M h P TV v V, , , ,ρ 2 MV h P T Ev V V, , , ,ρ 3 hv ρV V VP T E M, , , , 4 ρV P T E M hV V v, , , , 5 P T E M hV V v V, , , ,ρ 6 T E M h PV V v V, , , ,ρ

Table 4.1 e.g. for the choice of the 1st possibility, we replace all dxdt

x x M h P TV v V or ; , , , ,= ρ with algebraic (non-state / dummy) variables

′ =x x M h P TV v V; , , , ,ρ where ∂

∂ ′D F

x

( )1

is non-singular, such that the sub system

S-I is given by the following 15 differential algebraic equations having index one :

′ = −

= − −

M V LdEdt

V h L h Q

V in outI

Vin v in out

Il outI

cool, ,

(4.126b, 4.127)

00

0

0

0

1 1

2

3 3

= ′ − ′= ′ + ′ − ′ −

= ′ ∂∂

+ ′ ∂∂

− ′

= ′ ∂∂

+ ′

= ′ ∂∂

+ ′ ∂∂

− ′

ρ

ρ

V MM h M h P V E

T f T PT

P f T PP

T f TT

P

T f T PT

P f T PP

h

C V

V v V v C V

V

v

( , ) ( , )

( )

( , ) ( , )

(4.133b – 4.137b)

and equations (4.128 – 4.132), with 15 unknowns variables M E L h h P P T VV V out

Il outI

v V outI

in, , , , , , , , ,, ρ and ′ ′ ′ ′ ′M h P TV v V, , , ,ρ This example shows a contradictory assumption will result in a high index model. The assumption that system is on thermodynamically phase’s equilibrium (4.121), but there is only one phase on subsystem S-I. This example also shows that the high index reduction can lead to the necessity of differentiation of physical properties relations (4.120, 4.121, 4.123), where practically it is not always possible, i.e. if these physical properties relations are given as external subroutines then it is not easy to perform this differentiation. Another possibility to avoid a high index model of such condenser model as presented in subsystem S-I is through steady state simplification, i.e. Aspen Tech [5, 118] model

Page 96: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

84

library of the condenser model. This is not a strict system equivalence with the original system description.

4.4. Consistent re-initialisation problem This paragraph presents several examples for index one DAE models, which can suffer consistent re-initialisation problem, i.e. not satisfying consistent re-initialisation criterion (see Chapter 2 – Corollary 2.12).

4.4.1. Intensive variables as state variables Figure 4.7. Fin, Fout = inlet and outlet liquid mass flow rate Pin, Pout = inlet and outlet pressure hin, hout = inlet and outlet specific liquid enthalpy P0 = ambient pressure VL = liquid volume hold up Figure 4.7 shows a simply ideally mixed liquid in a tank given by the following index one model with 8 differential algebraic equations: dM

dtF F

dEdt

F h F h

Lin out

Lin in out out

= −

= − (4.138, 4.139)

M V E M h PVL L L L L out L= = −ρ ; 0 (4.140, 4.141) ρ L outf T h f T= =1 2( ) ; ( ) (4.142, 4.143) F f P P F f P V Pin in out L out= =3 0 4 0( , ) ; ( , , ) (4.144, 4.145) with 8 unknowns variables: M E h V T F FL L out L L in out, , , , , , ,ρ and input variables are h P P Pin in out, , , 0 , where: M EL L, = mass and energy hold up ρ L T, = liquid density and temperature Previously it is stated that the use of intensive variable can lead to solving of a consistent (re-) initialisation problem. This is demonstrated in the following.

Fin ,Pin, hin

Fout, Pout, hout

P0

VL

Page 97: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

85

In the model equations (4.138-4.139) we chose the extensive variable M EL L, as our state variables. Representing these model equations with intensive variables as its state variables, e.g.:

V ddt

dVdt

F F

V h ddt

h dVdt

V dhdt

P dVdt

F h F h

LL

LL

in out

L outL

L outL

L Lout L

in in out out

ρ ρ

ρ ρ ρ

+ = −

+ + − = −0

(4.146, 4.147)

ρ L outf T h f T= =1 2( ) ; ( ) (4.148, 4.149) F f P P F f P V Pin in out L out= =3 0 4 0( , ) ; ( , , ) (4.150-4.151) This gives 6 differential algebraic equations with 6 unknown variables ρ L L out in outV h T F F, , , , , . Structural analysis of DAE (4.146 – 4.151) gives: a) 2 and deg det ( ) 2 rank struc E struc Es A= − = . This means that the DAE model (4.146 – 4.151) has no high index structure and the number of dynamic degree of freedom is two. b) column rank struc E = 3 (for variables , ,L L outV hρ ) can be interpreted that the number of the dynamic degree of freedom for consistent (re-) initialisation is three, but it is not. The dynamic degree of freedom of the DAE model is two. Clearly this example shows the problem of consistent (re-) initialisation can be caused through the choice of the state variable, i.e. the intensive variables instead of the extensive variables. Note: The consistent re-initialisation problem can also occur for the previous example on section 4.2.1 and on section 4.2.2, namely: a) In the example 4.2.1, if we replace:

dM

dtdM

dtdM

dtA CO H O with − 2 (see (5.23))

dMdt

dMdt

dMdt

B CO H O with + 2 (see (5.24))

dMdt

dMdt

dMdt

C H H O with 2 2+ (see (5.25))

b) In the example 5.2.2, if we replace: dM

dtdM

dtdM

dti M i L i V, , , with + (see (5.69))

dEdt

dEdt

dEdt

M L V with + (see (5.70))

Page 98: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

86

4.4.2. Tubular reactor ethane cracking model In the following we describe a non-isothermal tubular reactor ethane-cracking model adopted from (Froment [39], van Goethem [51]). The thermal cracking of hydrocarbons is carried out in long coils inside a gas-fired furnace. Figure 4.8 schematically shows such a reactor. The feed of the reactor is mainly ethane C H2 6 and steam H O2 . The feed steam can contain some other impurities, e.g. C H C H2 4 3 6, . The main products of this cracking unit are ethylene C H2 2 and propylene C H3 6 and other side products as hydrogen H2 , methane CH4 , etc. The products of this cracking unit are the building blocks of the petrochemical industry. The cracking reactor scheme of this craking process are: 1

2

3 2

4

5

6

7

2 6 2 4 2

2 4 2 2 6

2 6 3 8 4

3 6 2 2 4

2 2 4 3 6

2 2 2 4 4 6

2 4 2 6 3 6 4

1

2

3

4

5

6

7

.

.

.

.

.

.

.

C H C H H

C H H C H

C H C H CH

C H C H CH

C H CH C H

C H C H C H

C H C H C H CH

r

r

r

r

r

r

r

⎯ →⎯ +

+ ⎯ →⎯

⎯ →⎯ +

⎯ →⎯ +

+ ⎯ →⎯

+ ⎯ →⎯

+ ⎯ →⎯ +

Figure 4.8. Schematic configuration of ethane cracking unit

z=0; Fj(0),T(0),P(0)

z=L; Fj(L),T(L),P(L)

j=CH4,C2H2,C2H4,C2H6,C3H6,C3H8,C4H6,H2,H2O

dt=pipe internal diameter

rb= pipe bending radius

heat flux, q(z)

Page 99: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

87

where: Fj(0), T(0), P(0) = mol feed flow rate of component j, temperature and pressure at the entry of the reactor tube Fj(L), T(L), P(L) = mol product flow rate of componet j, temperature and pressure at the outlet of the reactor tube q(z) = heat flux supply to the reactor The steady state place independent balance and consititutive equations are given as follows:

dFdz

d r j i

FC dTdz

q z d d H r

G dudz

dPdz

fd

N fL

u

j tij i

i

t p tt

i ii

t

bend bendg

= = =

= + −

− − = +FHG

IKJ

=

=

π α

π π

ρ

2

1

7

2

1

7

2

41 2 8 1 2 7

4

22

; , ,..., ; , ,...,

( ) ( )Δ

(4.152, 4.153, 4.154a)

F F M F G dt j

im t

t= ==∑

1

9 2

4; π

(4.155, 4.156)

PM RT M Pu GRTm g m= =ρ ; (4.157, 4.158)

r f F F P T i jH f T i

C f T

i i j t

i i

p

= = =

− = ==

1

2

15

1 2 7 1 2 81 2 7

( , , , ) ; , ,..., ; , ,...( ) ( ) ; , ,...,

( )Δ

(4.159, 4.160, 4.161) These are 29 equations with 29 unknowns variables: F j T P u F M r i H i Cj g t m i i p( , ,..., ), , , , , , , ( , ,..., ),( )( , ,..., ),= = − =1 2 8 1 2 7 1 2 7ρ Δ

and model input variables are: F q z G9 , ( ), , where : α ij = stoichiometric coefficient of i-th reaction for the component j ri = molar reaction rate per unit of volume of i-th reaction Ft = total molar flow rate Cp = molar specific heat capacity of the gas mixture

( )−ΔHi = molar heat of i-th reaction T P, = temperature and pressure of gas mixture in the reactor tube G = superficial mass flow velocity u = gas velocity f fbend, = tube and tube bending friction factor Nbend = number of bendings of reactor tube Mm = mean molecular weight ρ g = density of gas mixture R = gas constant

Page 100: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

88

The first three sets of equations (4.152, 4.153, 4.154) give the component molar balance, the energy balance and the impulse balance equations. The equations (4.155-4.156) give the relations for the total molar flow, and equation (4.157) is the ideal gas relation. The equation (4.158) is obtained from the substitution of equation (4.157) to the following equation:

u G

g

(4.162)

and the equations (4.159) are the kinetic reaction rate equations, where each reaction rate here is only presented as a function of F F P Tj t, , , . The details of these reaction rate equations can be found in Van Goethem [51]. Van Goethem [51] solved this model by the use of an implicit integration algorithm in gPROMS [50], where the model equations are detected to have a high index structure, but our structural analysis of this model gives results: a) 10 and deg det ( ) 10rank struc E struc Es A= − = , which means that the model has a structural index one with the number of dynamic degree of freedom is 10. b) column rank struc E = 11, which means that the model does not satisfy consistent (re-) initialisation criterion (see Chapter 2 – Corollary 2.12) This is an example of a solving of consistent (re-) initialisation problem that has been detected as a high index problem, but it is not. A consistent re-initialisation model structure can be made through the following transformation:

dFdz

d r j i

FC dTdz

q z d d H r

dPdz

fd

N fL

u

P Gu P

j tij i

i

t p tt

i ii

u

t

bend bendg

u

= = =

= + −

= +FHG

IKJ

= − −

=

=

π α

π π

ρ

2

1

7

2

1

7

2

41 2 8 1 2 7

4

22

; , ,..., ; , ,...,

( ) ( )Δ

(4.152, 4.153, 4.154b, 4.154c) together with equations (4.155 – 4.161) give an index one DAE model having consistent re-initialisation structure, where the number of dynamic degree of freedom equals to the number of differential variables, i.e. 10. Although the following differentations are not required, Froment [39] presented the solution as the ‘index reduction’ through Pantelides’ algorithm for a consistent initialisation problem [98]. It needs to differentiate the following equations (4.155) (4.156), (4.158). This gives result to :

Page 101: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

89

D F d Fdz

M u dPdz

Pu dMdz

M P dudz

GR dTdz

dFdz

dFdz

M dFdz

F dMdz

mm

m

t j

j

mt

tm

( )( )

:11

1

8

0

0

0

= + + − =

− =

+ =

=∑

The following 3 variables are chosen as “dummy/algebraic” ′z variables, where

D Fd z

( )1

′− is non singular :

dudz

u dFdz

F dMdz

Mtt

mm→ ′ → ′ → ′; ;

where an index one consistent (re-) initialisation model is given by the following 32 differential algebraic equations:

dFdz

d r j i

FC dTdz

q z d d H r

Gu dPdz

fd

N fL

u

j tij i

i

t p tt

i ii

t

bend bendg

= = =

= + −

− ′ − = +FHG

IKJ

=

=

π α

π π

ρ

2

1

7

2

1

7

2

41 2 8 1 2 7

4

22

; , ,..., ; , ,...,

( ) ( )Δ

(4.152, 4.153, 4.154d)

M u dPdz

PuM M Pu GR dTdz

FdFdz

M F F M

m m m

tj

j

m t t m

+ ′ + ′ − =

′− =

′+ ′ ==∑

0

0

01

8

(4.155’, 4.156’, 4.158’) together with equations (4.155 – 4.161) and having 32 unknown variables F j T P u F M r i H i Cj g t m i i p( , ,..., ), , , , , , , ( , ,..., ),( )( , ,..., ),= = − =1 2 8 1 2 7 1 2 7ρ Δ and

′ ′ ′u F Mt m, , .

4.5. High index problem due to interconnection The following gives analysis of a high index problem due to interconnection of two ideally mixed tanks, as given in the figure 4.9. This example gives that a high index problem can arise, when inputs of the interconnected subsystems are not matched (see Chapter 6).

Page 102: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

90

The system boundary of each subsystem in the figure 4.9 is given with dashed lines and the model equations of each subsystem and its interconnection equations are also shown in the figure 4.9. Subsystem S-I is described by 4 index one differential algebraic equations, with 4 unknowns variables M H P Fin1 1 1, , , and the input variables are P Fin out, 1 . Subsystem S-II is described by 4 index one differential algebraic equations, with 4 unknowns variables M H P Fout2 2 2, , , and the input variables are P Fout in, 2 . Figure 4.9. Two interconnected ideally mixed tanks Compound system S-I + S-II is described by 10 differential algebraic equations, where two of them are additional interconnection equations, to solve 10 unknowns variables M H P F M H P F F Fin out in out1 1 1 2 2 2 1 2, , , , , , , , , . The input variables are P Pin out, . The DAE

model equations are given as follows:

11

1 1 1

1 1

1 1( , )

in out

in in

dM F FdtM A HP gH

F f P P

ρρ

= −

===

(4.163a, 4.164, 4.165, 4.166)

H1 H2

P1 P2 Fin, Pin

Fout1, P1 Fin2, P2

Fout, Pout

dMdt

F F

M A HP gH

F f P P

in out

in in

1

1 1 1

1 1

1 1

= −

===

ρρ

( ,

A1=area tank 1 A2=area tank 2

dMdt

F F

M A HP gH

F f P P

in out

out out

22

2 2 2

2 2

2 2

= −

===

ρρ

( ,

F FP P

out in1 2

1 2

==

S-I S-II

S-I : S-II :interconnection :

Page 103: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

91

22

2 2 2

2 2

2 2( , )

in out

out out

dM F FdtM A HP gH

F f P P

ρρ

= −

===

(4.167a, 4.168, 4.169, 4.170)

1 2

1 2

out inF FP P

==

(4.171, 4.172)

The structural analysis of this interconnected sub-models gives: a) rank struc E struc sE A and = − =2 1degdet ( ) that means that the model has a

high index with the number of dynamic degree of freedom is one. b) Analyzing the structural information from struc Es A ( )− −1 gives that this DAE

model has index two. In the following different ways for the high index reductions will be shown: (i) Based on the information of the matrix struc Es A ( )− −1 , a high index reduction

can be done through differentiation of the equations (4.164),(4.165),(4.168), (4.169), (4.172), gives:

dMdt

A dHdt

dMdt

A dHdt

dPdt

g dHdt

dPdt

g dHdt

dPdt

dPdt

11

1 22

2

1 1 2 2

1 2

0 0

0 0

0

− = − =

− = − =

− =

ρ ρ

ρ ρ

;

;

and the following 5 variables ′z can be chosen as non-state variables (i.e. algebraic

variables), where d Fd z

( )1

′− is non singular :

dMdt

M dHdt

H dHdt

H dPdt

P dPdt

P22

11

22

11

22→ ′ → ′ → ′ → ′ → ′; ; ; ;

where an index one consistent (re-) initialisation model is given by the following 15 differential algebraic equations:

Page 104: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

92

11

1 1 1

1 1

1 1'2 2

2 2 2

2 2

2 2

1 2

1 2

( , )

( , )

in out

in in

in out

out out

out in

dM F FdtM A HP gH

F f P P

M F FM A HP gH

F f P PF F

P P

ρρ

ρρ

= −

===

= −=====

(4.163a, 4.164, 4.165, 4.166, 4.167b, 4.168, 4.169, 4.170, 4.171, 4.172)

dMdt

A H M A H

P gH P gHP P

11 1 2 2 2

1 1 2 2

1 2

0 0

0 00

− ′ = ′ − ′ =

′− ′ = ′− ′ =′− ′ =

ρ ρ

ρ ρ

;

; (4.173 – 4.177)

or by substitution and elimination of all non-state variables, we get the following index one DAE model:

11

1 1 1

1 1

1 1

21 2

1

2 2 2

2 2

2 2

1 2

1 2

( , )

( )

( , )

in out

in in

in out in out

out out

out in

dM F FdtM A HP gH

F f P PA F F F FA

M A HP gH

F f P PF F

P P

ρρ

ρρ

= −

===

− = −

=====

(4.163a, 4.164, 4.165, 4.166, 4.167c, 4.168, 4.169, 4.170, 4.171, 4.172)

Note: Substitute equation (4.171), F Fout in1 2= , to equation (4.167c), we get:

F FA A

A F A Fout in in out1 21 2

2 11= =+

+b g (4.173)

Page 105: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

93

ii) Another method for the high index reduction can be done by performing variable transformation as explained in section 4.2. This is done by replacing the first equation (4.163) with the combination linear of equation (4.163a) and (4.167) that removes variable Fout1 . This gives the following:

dMdt

F F

dMdt

F F

M A H M A HP gH P gHF F P PF f P P F f P PM M M

tin out

in out

out in

in in out out

t

= −

= −

= == =

= == == +

22

1 1 1 2 2 2

1 1 2 2

1 2 1 2

1 2

1 2

ρ ρρ ρ

;;;

( , ) ; ( , )

a) when we are not interested on variable F Fin out2 1, as outputs of the system then we

can perform column wise strict system equivalence operation resulting in an index one DAE model:

dMdt

F F

F FM A H M A HP gH P gH

F F P PF f P P F f P PM M M

tin out

in out

out in

in in out out

t

= −

= −= == == == == +

0 2

1 1 1 2 2 2

1 1 2 2

1 2 1 2

1 1 2 2

1 2

ρ ρρ ρ

;;

;( , ) ; ( , )

Note: The equations 20 in outF F= − and 1 2out inF F= do not have any contributions on inputs outputs behaviour. Therefore these two equations may be removed from the equation set above. b) but when we are interested in variable F Fin out2 1, as outputs of the system, we may

not perform column wise strict system equivalence operation as described above. The index of the DAE model can be reduced through differentiation of equations (4.165), (4.166), (4.167), (4.168), (4.170), (4.173), and choose the variables

′ ′ ′ ′ ′ ′M M H H P P1 2 1 2 1 2, , , , , are non-state variables, then we get the equivalent index one model equations:

Page 106: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 4 : Application of a High Index Detection and Reduction

94

dMdt

F F

M F FM A H M A HP gH P gH

F F P PF f P P F f P PM M M

tin out

in out

out in

in in out out

t

= −

′ = −= == == == == +

2 2

1 1 1 2 2 2

1 1 2 2

1 2 1 2

1 1 2 2

1 2

ρ ρρ ρ

;;

;( , ) ; ( , )

′ − ′ = ′ − ′ =′− ′ = ′− ′ =

′− ′ = − ′ − ′ =

M A H M A HP gH P gH

P P dMdt

M Mt

1 1 1 2 2 2

1 1 2 2

1 2 1 2

0 00 0

0 0

ρ ρρ ρ

;;

;

Substitution and elimination of the non-state variables give the result:

dMdt

F F

A A F A F A FM A H M A HP gH P gH

F F P PF f P P F f P PM M M

tin out

in in out

out in

in in out out

t

= −

+ = += == == == == +

( );

;;

( , ) ; ( , )

1 2 2 2 1

1 1 1 2 2 2

1 1 2 2

1 2 1 2

1 1 2 2

1 2

ρ ρρ ρ

In this example, we see that the resulting low index DAE model from a strict system equivalence operation, i.e. an index reduction, is non unique.

4.6. Conclusions The objectives of this Chapter are to show several examples of a high index model. The examples show that a high index problem can be caused due to internal states constraint equations or due to sub models interconnection. A consistent (re-) initialisation problem on a low index model is caused due to a non minimum state variables presentation. It is recommended to use physical extensive variables as the state variables. A high index reduction can be done through equation differentiations or variable differentiations, called a strict system equivalence operation. The resulting low index model due to a strict system equivalence operation can be non unique.

Page 107: Mathematical Analysis of Dynamic Process Models Index, inputs

95

Chapter 5: Input Variables Assignment of a DAE Model

Input variables of a DAE model are sets of possible model variables acting from the model boundaries, such that the DAE has a low index. The constraining equations for a high index DAE model are invariant under the choice of input variables resulting to the highest model’s degree of freedom.

“A dissonance is always recognisable......”

5.1. Introduction This Chapter describes the choice of input signals to a DAE model for their role in interconnection between DAE sub models. In Chapter 2,3 and 4 we have seen that a dynamic process model leads to a first order non-linear DAE given by the equation (1.3b): ( ( ), ( ), ( ), ) 0F z t z t u t t = . It was thought that the choice of input variables ( )u t for a process model is straight forward. A schematic of external influences through the model boundaries into or acting to the processes, as given on figure 5.1.

u1

u2 Model

Model boundaryu3

u4

u5

u6

Figure 5.1. Model input variables. In the process modelling activity it became clear that the choice of input variables for a DAE model is not always straight forward. The reasons for this are: a) Most modelling activity is more implicit behavioural or model equations

description driven. It is not about the relation of signals paths or variables within the equations and how to solve these equations in relation to the external variables.

b) The equations within a DAE model can be implicit. Therefore sometimes the input variables are not easy to recognise from the model equations.

c) The input and output variables are dependent on the model equations within the model itself. Arbitrary signals/variables can not be chosen for input variables of a model.

Page 108: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

96

d) The input variables for a model can not be arbitrary assigned for a given set of model equations, see the following example 5.1. Lefkopoulos and Stadtherr [74,75] also pointed out that the wrong choice of input variables can result in a high index DAE model.

e) Sometimes the directionality of input variables of a DAE model in relation with its interconnection with other DAE model is not fixed, see example 5.2.

Example 5.1. A simplified ideal gas buffer models

Fin,Pin

Fout,Pout

Figure 5.2. A simplified gas buffer model The model equations are:

in out

in

out

dM F Fdt

PVMRT

P PP P

= −

=

==

Where:

inlet gas mass flowoutlet gas mass flowbuffer gas inlet pressure buffer gas outlet pressure

buffer gas mass hold up buffer gas pressure buffer volume (model parameter)

in

out

in

out

FFP

PMPVR

======== buffer gas constant (model parameter)

buffer gas temperature (assume as a model parameter)T =

These are 4 model equations with 6 variables: , , , , ,in in out outF P F P M P . There are 2 variables must be assigned as a model input variables. It seems that they can not be assigned arbitrarily, i.e. ,in outF F must be the input variables for this model. Example 5.2. Figure 5.3 gives schematically interconnected 2 gas buffer models with inlet and outlet pressure drop equations represented in the figure as inlet and outlet ‘valve models’. There are two possible directionalities of pressure flow variables ,P F between the outlet of the buffer 1 and the inlet of the buffer 2.

Page 109: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

97

P

F

P

F

Model boundary Model boundary

Figure 5.3. Interconnection directionalities of two gas buffer models Interconnection of a DAE model with another DAE model depends on the possible input variables assignments to these DAE sub-models. From a model-user point of view, it is very useful when the information of possible input variables assignment to a model is available. Moreover we have already seen on the section 4.5 (Chapter 4), that interconnections between low index sub models can still lead to a high index model. A modeller expects that each storage variable on each sub model has always at least

1C continuity, i.e. that there is no storage variable that gives a ‘jump’ or an ‘impulsive’ behaviour due to changes in the model variables values, other than the change on a sudden change on the storage variable itself. Therefore the modeller expects a preservation of the amount of dynamic degree of freedom in the storage variables on each sub model where sub-models are interconnected. In other words, we want that interconnection of low index sub models should result in a low index model. Thus the essentials questions to be answered in this chapter are:

a) what are the input variables of a DAE model ? b) how can we choose the input variables sets ? c) can we always choose a set of input variables of a DAE model to give a low

index DAE ? to answers those questions this Chapter 5 is divided into the following sections:

- Section 5.2 describes the DAE model entities and variable classifications. This section also gives the definition of input variables to a DAE model.

- Section 5.3 describes a method for finding input variables sets, namely the low index input variables sets assignment for a DAE model.

- Section 5.4 describes if there is no input variables set that gives a low index DAE, then we will see that the state constraint equations are invariant under

Page 110: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

98

the choice of a maximum degree input variables sets assignment for a DAE model.

- Section 5.5 gives conclusions of this chapter.

Finding the input variables of a DAE model is done by using the structural theory in Chapter 3 and extending the graph algorithm as described in Appendix B.

5.2. Model entities and variables classification

5.2.1. Model entities P.I. Barton [6] and Nilsson [93] describe that principally there are 5 model entities (see figure 5.4), namely:

1. Model parameters as the time invariant quantities that are not, under any circumstances, determined from the results of a calculation.

2. Model variables as the quantities describing time dependent behaviour of a model.

3. Model equations as the behavioural description that determines the time trajectories of the model variables.

4. Model initial values. The model initial values are the chosen consistent set of initial values at time t0 of a model. (note: for partial differential (algebraic) equations the model boundary values are also required)

5. Model ports or connections are model boundaries. Each model port consists of the chosen sub set of the model variables to interact with its environment.

Figure 5.4. Schematic of model entities Usually the DAE model equations are given as:

( ( ), ( ), ) 0F z t z t t = (1.3a) or

( ( ), ( ), ( ), ) 0F x t x t w t t = (5.1)

Parameters

Variables

Initial & Boundary values

Equations

Connections

Connections

MODEL

Page 111: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

99

Where: [ ]( ) ( ) ( )z t x t w t= , t a b∈( ), denotes time on some interval

( ) ; ,a b a b ∈R ; ( ) , ( )n nz t z t∈ ∈R R , 2 1: ,n mF + →R R , \0,n m m n∈ ≤I . The DAE model’s consistent initial values ( ( ), ( ))o oz t z t are mostly calculated by algebraic solving of the equations by providing r values of arbitrary chosen initial conditions (see Chapter 2, section 2.5). Principally the model interconnections are the chosen set of variables by the modeller to interconnect or interact the model with its environment. Process modelling environments like Aspen [5], gProms [50], Hysis [61] use several classes of model connections. Examples:

- stream model connection, includes information of flow, pressure, components, temperature, enthalpy

- heat or power connection, includes information of heat flow or power from or into a model

A subset of these variables within a model connection can be the input variables of the model.

5.2.2. Model variable classifications Consider a DAE model ( ( ), ( ), ) 0F z t z t t = (1.3a) or it can be written as F x t x t w t t( ( ), ( ), ( ), ) = 0 (5.1) where:

( )( ), ( ) , ( ) , , ,r px t x t w t t a b a b∈ ∈ ∈ ∈R R R denotes time on interval a bb g and 2: , with ( )r p mF m r p× × → < +R R R R

With the variables in this DAE model (5.1) are: 1. x t( ) as the state variables and 2. w t( ) as the non-state variables 5.2.2.1. State variables ( )x t Willems [131] introduced the term system memory for understanding the term ‘state’ of a system in the time domain, Definition 5.1. System memory (Willems [131]) A system has memory if there are C1 continuous or stepwise continuous internal signals x t z t( ) ( )⊆ where the value of each variable x to( ) at time to can be reconstructed from the value of x t( ) , where t to< .

Page 112: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

100

We call these variables as physical memory variables or state variables. Mathematically the memory-effect of the system behaviour is given by a difference or differential variable. The states of the system are not unique, i.e. new state variables can be defined by state variables transformations. However starting with the primitive balance equations, we can choose the accumulation terms as the primitive state variables of the system. The accumulation or storage variables in the balance equations are the memory of the system, Proposition 5.2. Storage variable. A storage variable of a system given in the balance equation is a state variable of the physical system. Since we expect that a storage property of a system at time to depends only on the past value at t to< and must be C1 continue at ∀ ∈t a b( ) De Groot and Mazur [52], and Preisig [104] recommend using the fundamental extensive quantities as the common starting point of the choice of the state variables in the balance equations. This will give the minimal physical state realisation of the model. As shown in Chapter 2 and Chapter 3, mathematically we can calculate the number of dynamic degrees of freedom of a system, i.e. the number of independent state variables, is given as deg det ( )struc Es A− . Our primitive assumption of independent balance equations gives that from the physical modelling point of view, the number of dynamic degrees of freedom is equal to the number of balance equations in the system. This applies when there is no state constraints equation in the system or if the model has a low index. 5.2.2.2. Non-state variables ( )w t The non-state variables of a model can be distinguished into:

- external variables, i.e. input variables. These are the variables determined by model equations and that can be chosen as the variables from the external acting to the model.

- internal model variables: the model variables which are derived from the state variables and/or external variables.

Input variables The following will define input variables of a DAE model. Definition 5.3. Autonomous and non-autonomous physical process model Consider a DAE model (1.3a): F z t z t t( ( ), ( ), ) = 0 Where: t a b∈( ), denotes time on some interval ( ) ; ,a b a b ∈R ;

( ) , ( )n nz t z t∈ ∈R R and 2 1: ,n mF + →R R , \0,n m m n∈ ≤I .

Page 113: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

101

An autonomous physical process model or an autonomous continuous model behaviour is given by equation (1.3a) with m=n, if a model behaviour at time

, ( ),o ot z t will determine a future behaviour ( ), for oz t t t≥ . A non-autonomous physical process model is given by equation (1.3a) where m n< . There are k n m= − variables that can be chosen as input variables. The amount of k-variables is called degree of freedom (DOF) of (1.3a) Definition 5.4. Input variable Consider a model S given by a DAE model (1.3a) or (5.1):

F z t z t t( ( ), ( ), ) = 0 or F x t x t w t t( ( ), ( ), ( ), ) = 0

where: ( ); ,t a b a b∈ ∈R denotes time on time interval ( )a b , z t x t w t( ) ( ) ( )= , x t( ) = state variables , ( ) , ( )n nz t z t∈ ∈R R and

2 1: n mF + →R R ; , \ 0,n m m n∈ <I .

Then input variables u t( ) of S are possible sets of k n m= − system variables, u t z t( ) ( )⊆ , Under conditions that: a. u t ii ( ), = 1,..., k may have a free form (e.g. pulse, step, polynomial) b. The resulting DAE , with a chosen set of input variables u t( ) :

( ( ), ( ), ( ), ) 0( ) ( )

F z t z t u t tu t f t

==

or with w t v t u t( ) ( ), ( )= l q : F x t x t v t u t tu t f t

( ( ), ( ), ( ), ( ), )( ) ( )

==

0

is a fully determinated DAE (number of equations = number of variables.

then this fully determined DAE together with its initial conditions will determine the behaviour of the model.

c. At each time instant t a b∈( ) , the property of physical storage variable, proposition 5.2 holds, i.e. pre-assumed physical storage variable is C1 continue on t a b∈( )

d. x t( ) and v t( ) do not anticipate the chosen u t( ) (see b.) for t a b∈( ) , and behaviour equation (b) is satisfied

Page 114: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

102

We call u t( ) as (causal) input variables, when conditions a,b,c,d in the definition 5.4. are fulfilled. A set of causal input variables for a DAE model (1.3a) also gives a low index DAE model (1.3b). Therefore in the following we will derive how to detect a low index input variables set. Consider an under determined DAE model (1.3a) ( ( ), ( ), ) 0F z t z t t = with its system matrix written as:

( )( ) 0 , with

( ) , and , ,m n

T s z

T s Es A E A m n×

=

= − ∈ <R (5.2)

Then there is k m n= − variables that must be set for (5.2) to become a fully determined DAE. If we assign these a variable from (5.2) as time function equation: z u ti i= ( ) then we can represent (5.2) as:

~( )T sz u

iT

iμLNMMOQPP =FHGIKJ

0 (5.3)

where n

iμ ∈R is a vector for which the i-th element is 1, and all other elements are 0.

Obviously, to get a fully determined DAE (i.e. a square matrix) we have to assign time functions for k variables. If the choice of these k-time functions variables is free from the internal properties of the system, we may have a high index DAE or the resulting system may even be inconsistent. Therefore it makes sense to define a low index input assignment as follows, Definition 5.5. A low index input assignment Given a DAE model (1.3a) ( ( ), ( ), ) 0F z t z t t = with m equations and n variables z , if the set of k m n= − variables can be set as external independent time functions variables where the resulting DAE is consistent and has a low index, then these k variables are called ‘a low index input variables set / assignment’ for the given DAE model. Example 5.3 Figure 5.5.Input variables of a tank model

P Fin, Pin Fout, Pout

Page 115: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

103

Consider a liquid tank with valves as shown in the figure 5.5. The DAE model of this system is: dMdt

F F

M Ag

P

F f P PF f P P

in out

in in

out out

= −

=

==

( )

( , )( , )

1

2

Where :

1

2

mass hold up within the tank hydraulic pressure at the bottom of the tank inlet pressure outlet pressure function describing inlet valve model function describing outlet valve model

in

out

MP

PP

ff

======

tank area (model parameter) gravity acceleration constant (model parameter)

Ag

==

These are 4 differential algebraic equations with 6 unknowns: M P P P F Fin out in out, , , , , . Thus two from these six variables should be chosen results to a fully determined DAE model. Table 5.1 shows the 15 possibilities to assign the ‘input’ variables to the model,

No Variable set No Variable set 1 M, P 9 P, Fout 2 M, Pin 10 Pin, Pout 3 M, Pout 11 Pin, Fin 4 M, Fin 12 Pin, Fout 5 M, Fout 13 Pout, Fin 6 P, Pin 14 Pout, Fout 7 P, Pout 15 Fin, Fout 8 P, Fin

Table 5.1. Possible ‘input’ variables In this example, we can show that only the variable sets as shown in table 5.2 give the low index assignment, while others are not. In particular the set { , }M P as ‘input’ variables give a non-consistent DAE.

No Variable set 10 Pin, Pout

12 Pin, Fout

13 Pout, Fin

15 Fin, Fout

Table 5.2. Low index input variables sets

Page 116: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

104

Example 5.3. shows also that: 1. The causal or low index input variables set is not trivially given by all

variables with indices “in” , e.g. { , }F Pin in is not a causal input set for this model.

2. The causal or low index input variables set is not necessary to be unique 3. There are two variables, which may not be chosen as an input variable of the

model namely: M or P , since it will give a high index DAE model. We call later these variables the “compelled internal variables”

The notion of finding a low index input variables set of a given DAE model motivates us to make an algorithm to do this work. This will described in the section 5.3. Several definitions for model variable classification are given as follows, Consider a DAE model (1.3a), ( ( ), ( ), ) 0F z t z t t = , is represented by S , with m equations and n variables z , where m < n and let Z z i ni= ={ : , ,..., } 1 2 . Further, let

{all distinct low index input variables sets assignments of }U S=

then we can define: Internal variables Definition 5.6. Internal variables An internal variable is a variable, which is derived from the state variables and/or external/input variables of a DAE model. Definition 5.7. Compelled internal variables A variable c Z∈ is called a compelled internal variable if c U∉ ∀ ∈U U . Compelled internals are those variables that ensure the resulting DAE model to have a high index if chosen to be as input variables. These are in particular the state variables and all other variables that are as a function of state variables only, e.g. the intensive variables. Definition 5.8. Necessary input variables A variable u Z∈ is called a necessary input variable if u U∈ ∀ ∈U U . In other words, necessary input variables are those variables that are elements of all low index assignments of an under determined DAE model. This variable is externally acting independently to the system. Definition 5.9. Optional input variables A variable is called an optional input variable if it is neither necessary, nor compelled, nor internal variable. This variable can act externally independent on the system. Definition 5.10. Output variables For a given fully determined DAE model, any variable z Zi ∈ can be chosen as an output of the model.

Page 117: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

105

5.3. Low index input variables assignment

5.3.1. Finding a low index input variables set The next proposition is used for finding a low index input assignment for the given DAE model using the Structural Low Index Criterion developed in Chapter 3, Corollary 3.10. The implementation of finding a low index input assignment is by using the Lemma B.1 and Lemma B.2 as given in Appendix B. Proposition 5.11. A low index input assignment of a DAE model Consider an underdetermined DAE model (1.3a) F z t z t t( ( ), ( ), ) = 0 or it can be

written in its system matrix equation: 0Es A z⎡ ⎤− =⎣ ⎦ , where , ,m nE A m n×∈ <R .

We can extend this underdetermined system matrix, such that the new system matrix is given as:

0( )

n

Es AT s

I K⎡ ⎤−

= ⎢ ⎥⎣ ⎦

(5.4)

where : * *( ) ( ), *n nT s s n m n×∈ = +R and the second row of T s( ) , I Kn gives additional equations of the form: z u u u i ni d d dm

= + + + =1 2

1 2, , ,..., ; the set these equations is denoted as F . Further u u ud d dm1 2

, ,..., are m new dummy variables

and n mK ×∈R with struc K has no zero elements. Let T s( ) be structurally non-singular, and GT is the graph obtained from T s( ) as defined in Lemma B.2. The vertices of bipartite graph GT are V G f f f f f fT m n n n m1 1 2 1( ) { , ,..., ,..., , , }= + + and V G z z z u u uT n d d dm2 1 2 1 2

( ) { , ,..., , , ,..., }= . Let M MW be the result of a Maximum Weighted Matching algorithm on GT . Further let GE be the graph obtained from E as defined in Lemma B.1 and let M MC be the result of a Maximum Cardinality Matching algorithm on GE . Then each M MW gives rise to a low index input variables set assignment ( )MWU M ,

U( ) : ( , ) , ,..,M z f z M i nMW i m i i MW= ∃ ∈ =+ 1l q (5.5a) with W MW M MC( ) = (see Lemma B.1 and Lemma B.2). (5.5b) Note: Since T s( ) is structurally non-singular it follows that M m nMW = + , and hence there exists a permutation σ ∈Γ , such that ( , )f z Mi MWiσ ∈ .

Page 118: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

106

Let F is the new n equations set forms by z u u u i ni d d dm= + + + =

1 21 2, , ,..., .

For each M MW found, a set of exactly m matched edges of vertices

1 2 1{ , ,..., } ( )D n n n m TF F f f f V G+ + +⊂ = ⊂ with all m vertices of D u u u V Gd d d Tm

= ⊂{ , ,..., } ( )1 2 2 which can be removed, since

D u u u V Gd d d Tm= ⊂{ , ,..., } ( )

1 2 2 are only dummy variables. So, if we delete all edges

corresponding to FD . The remaining k n m= − equations vertices F F FUD D= ⊃ are matched with k variables of zi which can be assigned as input variables. Since the removed edges FD had zero weight, the remaining edges still have a maximum weighted matching. This gives a low index input variables set assignment with W MW M MC( ) = (see Lemma B.1 and Lemma B.2). The original underdetermined DAE model and the found low index input assignment can be represented as (5.3):

~( )T sz u

iT

iμLNMMOQPP =FHGIKJ

0 (5.3)

Example 5.4. Consider an under determinated DAE model: z z z zz z z

z z z

1 1 2 3

2 2 5

2 4 50

= − + −= − += + +

(5.6)

With 3 equations and 5 variables z z z z z1 2 3 4 5, , , , . Two of these variables must be assigned as input variables. To detect a low index input variables set assignment, we construct additional equations with additional dummy variables given as follows (see Proposition 5.11):

f z z z zf z z zf z z z

f z u u u

f z u u u

f z u u u

f z u u u

f z u u u

d d d

d d d

d d d

d d d

d d d

1 1 1 2 3

2 2 2 5

3 2 4 5

4 1

5 2

6 3

7 4

8 5

0

1 2 3

1 2 3

1 2 3

1 2 3

1 2 3

:::

:

:

:

:

:

= − + −= − += + += + +

= + +

= + +

= + +

= + +

(5.7)

The system matrix of this DAE model can be written as (see (5.4)):

Page 119: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

107

1 1 1 0 0 0 0 0

0 1 0 0 1 0 0 0

0 1 0 1 1 0 0 0

1 0 0 0 0 1 1 1

0 1 0 0 0 1 1 1

0 0 1 0 0 1 1 1

0 0 0 1 0 1 1 1

0 0 0 0 1 1 1 1

( )

s

s

T s

+ −

+ −

− − −

− − −

− − −

− − −

− − −

− − −

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥=⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

(5.8)

To find a low index input variables set of this DAE from equations (5.7) or the system matrix (5.8), we can construct the graph of the DAE with its edges ( , ),( , )f z f ui i i di

, as shown in the figure 5.6. The thick lines are a result of maximum weighted matching. The value “1” on the edges are the weighted edges, other edges are zero weighted. Figure 5.6. A maximum weighted matching graph of the DAE (5.8) From a maximum weighted matching graph figure 5.6 of DAE (5.6, 5.7) and following the Proposition 5.11, the equations 4 5 7{ , , }DF f f f= matched to vertices u u ud d d1 2 3

, ,

can be removed. The variables z z3 5, can be chosen as input variables. Since the cardinality of maximum cardinality matching of matrix E is two and the weight of maximum weighted matching of (5.8) is also two, then following Corollary 3.10 this input variables set is a low index input assignment. The DAE (5.7) can be written as a consistent and fully determined low index DAE:

f1

f2

f3

f4

f5

f6

f7

f8

z1

z2

z3

z4

z5

ud1

ud2

ud3

1

1

Page 120: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

108

( )( )

z z z zz z z

z z zz u tz u t

1 1 2 3

2 2 5

2 4 5

3 1

5 2

0

= − + −= − += + +==

(5.9)

Another maximum weighted matching graph of DAE (5.7) can be found and result in a consistent and fully determined low index DAE of (5.7) is:

( )( )

z z z zz z z

z z zz u tz u t

1 1 2 3

2 2 5

2 4 5

3 1

4 2

0

= − + −= − += + +==

(5.10)

In this example 5.4 shows that there are two sets of the low index input assignment for this model, namely: 1 3 5U { ( ), ( )}z u t z u t= = = and 2 3 4U { ( ), ( )}z u t z u t= = = or set of all low index input variables sets is 3 5 3 4{{ , },{ , }}U z z z z= .

5.3.2. Finding the necessary input variables To find the set of all low index assignments, we need the notion of the necessary input variables as defined in section 5.2.2 (Definition 5.8). Clearly that all necessary inputs are elements of U( ) : ( , ) , ,..,M z f z M i nMW i m i i MW= ∃ ∈ =+ 1l q following the Proposition 5.11. We can check for each u ∈U whether it is a necessary input or not by deleting the corresponding equation from I Kn of (5.4) and removing one of the introduced dummy variables. This gives new matrix:

T ssE A

I Kn

**( ) =

−LNM

OQP−

0

1

(5.11)

where * ( 1) ( 1)n mK − × −∈R and the dummy variable set is { , ,..., }u u ud d dm1 2 1−

.

If no new maximum weighted matching can be found for the graph of T s*( ) with a maximum cardinality matching of E then the deleted variable, which was assigned as an input variable, is a necessary input.

Page 121: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

109

Example 5.5. Consider the DAE from example 5.4,

f z z z zf z z zf z z z

f z u u u

f z u u u

f z u u u

f z u u u

f z u u u

d d d

d d d

d d d

d d d

d d d

1 1 1 2 3

2 2 2 5

3 2 4 5

4 1

5 2

6 3

7 4

8 5

0

1 2 3

1 2 3

1 2 3

1 2 3

1 2 3

:::

:

:

:

:

:

= − + −= − += + += + +

= + +

= + +

= + +

= + +

(5.7)

We found that a low index input assignment set for this DAE is

1 3 1 5 2U { ( ), ( )}z u t z u t= = = . To check whether z u t5 2= ( ) is a necessary input, then we delete the equation f8 and the dummy variable ud3

to get:

f z z z zf z z zf z z z

f z u u

f z u u

f z u u

f z u u

d d

d d

d d

d d

1 1 1 2 3

2 2 2 5

3 2 4 5

4 1

5 2

6 3

7 4

0

1 2

1 2

1 2

1 2

:::

:

:

:

:

= − + −= − += + += +

= +

= +

= +

(5.12)

The graph for this new set DAE (5.12) and the found maximum weighted matching with the maximum cardinality matching of its E matrix is given in the figure 5.7. From a maximum weighted matching graph figure 5.7 of the DAE (5.12) and following Proposition 5.11, the equations F f fD = { , }4 5 matched to vertices u ud d1 2

,

can be removed and the variables z z3 4, can be chosen as input variables. In this example we see that z u t5 2= ( ) is not a necessary input variable. Further we can show that z u t3 1= ( ) is a necessary input variable, since no maximum weighted matching with maximum cardinality of its state variable (matrix E ) can be found through deletion of equation f6 and removing one dummy variable ud3

from the DAE (5.7). Remarks: To do a necessary input variable check, we have to start from complete T s( ) for each u ∈U

Page 122: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

110

Figure 5.7.Maximum weighted matching graph of the DAE (5.12)

5.3.3. Finding the compelled internal variables To check if zi is a compelled internal variable, we search a maximum weighting matching with the maximum cardinality of its matrix E of the graph of T s( ) with zi as input variable. If a match cannot be found, then zi is a compelled internal, else it is not. Note: z u ti = ( ) , u t( ) is not a variable of DAE, but an external chosen value. Therefore this equation has only one vertex zi . Example 5.6. Consider the DAE of the example 5.4:

f z z z zf z z zf z z z

1 1 1 2 3

2 2 2 5

3 2 4 50

:::

= − + −= − += + +

(5.6)

Suppose we will examine whether z1 is a compelled internal or not, then we examine a maximum weighted matching for z u t1 = ( ) , the DAE with additional new dummy variables are given as follows:

f1

f2

f3

f4

f5

f6

f7

z1

z2

z3

z4

z5

ud1

ud2

1

1

Page 123: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

111

f z z z zf z z zf z z z

f z u tf z u u u

f z u u u

f z u u u

f z u u u

d d d

d d d

d d d

d d d

1 1 1 2 3

2 2 2 5

3 2 4 5

4 1

5 2

6 3

7 4

8 5

0

1 2 3

1 2 3

1 2 3

1 2 3

:::

: ( ):

:

:

:

= − + −= − += + +== + +

= + +

= + +

= + +

(5.13)

where the equation f4 is only connected to the variable z1 , i.e. z u t1 1= ( ) to be chosen as an input variable (see figure 5.8). The resulting maximum weighted matching graph is given in the figure 5.8. The found input variables are z u t z u t1 1 5 2= =( ), ( ) and the weight of this maximum weighted matching is one. Since the cardinality of the maximum cardinality matching of its matrix E is two. Then this matching is not a low index assignment, thus the variable z1 is a compelled internal variable. Figure 5.8. a maximum weighted matching of the DAE (5.13)

f1

f2

f3

f4

f5

f6

f7

f8

z1

z2

z3

z4

z5

ud1

ud2

ud3

1

Page 124: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

112

5.3.4. Finding all low index input variables assignments In section 5.3.2.we have shown how to find the necessary input variables. Let’s call the set of all necessary input variables as UN0 . This set of the necessary input variables is a sub set of any found low index input assignment, i.e.: U UN0 ⊆ ( )M MW . This means to find all low index input assignment we need to find all optional (low index) input variables, which can be done in the following: Proposition 5.12. : Finding all low index input assignment Consider an underdetermined DAE model (1.3a):

: ( ( ), ( ), ) 0S F z t z t t = with m equations and n variables, m n< . Suppose with the Proposition 5.11, we can find a set of k n m= − low index input variables U0( )M MW , where k k1 ≤ of these input variables are the necessary input variables, given with the set U UN0 0⊆ ( )M MW , e.g.:

1 11 1{ ( ), ( ),..., ( )}i i i i i k i kz u t z u t z u t+ + + += = = . The remaining

found input variables are optional input variables belongs to the matching U0( )M MW is denoted as U U UO0 0 N0= ( ) \M MW . To find all optional input variables for the low index input variables sets of the DAE (1.3a), we construct an search branch algorithm, as follows: 1. A subsequence finding new low index input assignment with setting one of the

optional input variables as an input variable: Consider an undetermined DAE set: : ( ( ), ( ), ) 0S F z t z t t = with m equations and n variables, m n< . This DAE S becomes fully determined by having a low index input assignment U U U0 N0 O0= ∪ with the number of elements of UN0 is k1 . When UO0 ≠ ∅ then we can make an underdetermined DAE:

{ }N0

*1 1 O0

U: ( ( ), ( ), ) 0 ( ), 1,..., ( ), U

i

i i j j jz

S F z t z t t z u t i k z u t z∈

= = = ∪ = ∈∪ (5.14) The equations set (5.14) consists of m k+ 1 +1 equations with n variables. Let U U UC1 N0 O0= = = ∈ ∪ ∈{ ( ), ,... , }z u t i k z zi i j1 1 be the set of chosen input variables

for new branch DAE S1 and further we can extend S1* with n k− +( )1 1 new equations

of the remaining variables, where each of this equation is given as, z uk di

m

i=

=∑

1

, udi

are dummy variables, such that we can reconstruct:

Page 125: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

113

1( 1)

0( )

n k

Es AT s

I K− +

⎡ ⎤−= ⎢ ⎥⎢ ⎥⎣ ⎦

and apply Proposition 5.11 to find a new low index input assignment set U1

* consists of l n m k1 1 1= − − +( ) ( ) variables. The complete low index input variables assignment for S1 is U U U1 C1 1

*= ∪ . We can perform test on this branch S1 which elements of U1 are necessary input variables or optional input variables due to the choice of UC1 as a subset of U1 , i.e. U U U1 N1 O1= ∪ . The same procedure of finding new low index assignment for the next branch can be applied, using information from U ,UN1 O1 and so on. Therefore we called this method as the subsequence finding new low index input assignment with setting one of the optional input variables from the previous branch as an input variable.. 2. A subsequence finding new low index input assignment with setting one of the

optional input variables, chosen on the other branch, as an internal variable Consider an undetermined DAE set: : ( ( ), ( ), ) 0S F z t z t t = with m equations and n variables, m n< . This DAE S becomes fully determined by having a low index input assignment U U U0 N0 O0= ∪ with the number of elements of UN0 is k1 . When UO0 ≠ ∅ then we can make an underdetermined DAE:

{ }N0

*2 1 O0

U: ( ( ), ( ), ) 0 ( ), 1,..., \ ( ), U

i

i i j j jz

S F z t z t t z u t i k z u t z∈

= = = = ∈∪ (5.15) The equations set (5.15) consists of m k+ 1 equations with n variables, further we can construct:

1

0( )

n k

Es AT s

I K−

⎡ ⎤−= ⎢ ⎥⎢ ⎥⎣ ⎦

where on the second row of T s( ) , i.e. I Kn k− 1

, are the equations of remaining

n k− 1 variables (which are not chosen as input variables) as functions of dummy

variables, i.e. z uk di

m

i=

=∑

1

. Since the variable z j must be excluded to be an input

variable (chosen to be an internal variable), then we need to delete the corresponding equation of z j on the I Kn k− 1

and removing one dummy variable, gives:

Page 126: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

114

1

**

1

0( )

n k

Es AT s

I K− −

⎡ ⎤−⎢ ⎥=⎢ ⎥⎣ ⎦

where 1( 1) ( 1)* n k mK − − × −∈R and the dummy variable set is { , ,..., }u u ud d dm1 2 1−

. Applying Proposition 5.11 to find a new low index input assignment set U2

* consists of l n m k2 1= − −( ) variables for S2 . Let C2 1 N0U { ( ), 1,... , U }i i iz u t i k z= = = ∈ be the set of chosen input variables for new branch DAE S2 , then the complete low index input assignment for S2 is U U U2 C2 2

*= ∪ . Moreover we can perform a test on this branch S2 which elements of U2 are necessary input variables or optional input variables, i.e. U U U2 N2 O2= ∪ . Also from this branch if UO2 ≠ ∅ , then the same procedure of finding new low index assignment for the next branch can be applied, using information from U ,UN2 O2 and so on. Therefore we called this method as the subsequence finding new low index input assignment with setting one of the optional input variables from the previous branch as an internal variable. Each step when its optional input set is not empty will create two branches and finding new low index input assignment with one branch performs (1) and the other branch performs (2) as described above. This method to find all low index input assignment sets of a DAE model is implemented by Y.G.G.J. Go [48] in DIAG as an extension of the graph algorithm of Bujakiewics [21]. Example 5.7: Consider the following underdetermined DAE, 3 equations with 6 variables: S z z z z

z z z zz z z

: 1 1 2 3

2 2 5 6

2 4 60

= − + −= − + += + +

(5.16)

DIAG gives the following family tree of the DAE with low index assignments:

Page 127: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

115

Figure 5.9. where: a. S S z u t z u t z u t0 3 4 5= ∪ = = ∪ = = = U UN0 O0{ ( )} { ( ), ( )} Level 1: b. S S z u t z u t z u t1 3 4 5= ∪ = = ∪ = ∪ =( { ( )}) { ( )} { ( )}UN0 , where { ( )} { ( )}z u t z u t3 4= ∪ = are set as the input variables of S1 and { ( )}z u t5 = is found by finding a low index assignment (as described above in Proposition 5.12). Testing on the found additional input variable set { ( )}z u t5 = gives the result that this variable is an optional input for S1 , i.e. UO1 = { }z5 . c. S S z u t z u t z u t2 3 5 6= ∪ = = ∪ = =( { ( )}) { ( ), ( )}UN0 where { ( )}z u t3 = is set as the necessary input variable of S2 and { ( ), ( )}z u t z u t5 6= = is found by finding a low index assignment, with a requirement that the z4 becomes an internal variable of S2 . Testing on the found additional input variables { ( ), ( )}z u t z u t5 6= = gives the result that these variables are necessary input variables for S2 . Thus the optional input variable set of S2 , UO2 = ∅ . Thus S2 is an end node. Level 2: d. S S z u t z u t z u t11 3 4 5= ∪ = = ∪ ={ ( ), ( )} ( )} { where { ( )} { ( )}z u t z u t3 4= ∪ = is already set as an input variable from the previous node S1 and { ( )}z u t5 = is an additional setting of an input variable from the optional input set of S1 . Since the node S1 has only one element of optional input variable then S11 is an end node.

S0

Level 1

Level 2

S1 S2

S12 S11

Page 128: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

116

e. S S z u t z u t z u t12 3 4 6= ∪ = = ∪ ={ ( ), ( )} ( )} { where { ( )} { ( )}z u t z u t3 4= ∪ = is already set as an input variable from the previous node S1 and { ( )}z u t5 = is the input variable { ( )}z u t6 = is found by a low index assignment, with a requirement that the z5 becomes an internal variable of S12 . This node is also an end node. Collecting all low index input assignments for the DAE S from the end nodes, gives the following sets: UUU

2

11

12

===

{ , , }{ , , }{ , , }

z z zz z zz z z

3 5 6

3 4 5

3 4 6

The searching algorithm implemented on DIAG will remedy any possible combination of input variables resulting in a high index structure (when in the DAE model there is no constraining states equations), even the DAE model has only optional input variables, i.e. the necessary input variables set UN0 = ∅ , the following example 5.8 shows this case. Example 5.8: Consider an underdetermined DAE model, with 3 equations and 5 variables: z z z z

z z z zz z z

1 1 2 3

1 2 3 5

1 2 4

00

= − + += − + −= + −

(5.17)

DIAG found the following 5 low index input assignments: U z z z z z z z z z z= {{ , },{ , },{ , },{ , },{ , }}3 4 3 4 3 5 5 2 5 4 None of these input variables are a necessary input variable, but none of the found sets give { , }z z2 4 as a low index input assignment, since this will lead to a high index model.

5.3.5. Example: finding low index input assignments of a binary tray distillation column model In this section we will demonstrate the application for finding all low index input assignments using the tray model presented in Chapter 4. The DIAG algorithm needs only the structural information of the model, namely: the equation number and the

Page 129: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

117

variables on the corresponding equation. The operator “$” is used to replace ddt

(.) in

the original DAE equation. This is to give the weight “1” for the maximum weighted matching of the graph of the DAE model. A binary tray distillation column model Consider the behavioural equations of a binary tray distillation column model consist of the equations (4.69, 4.71, 4.73, 4.74, 4.51 – 4.68, 4.41, 4.42). In this case, for binary components, the equation (4.69) consists of two component balance equations. The equations (4.70) and (4.72) are removed, since the variables N Ei L L exc, ,, are vanish from the outputs of the model. The structural information of these equations is written as: Input file (structural information):

1 1, 1, 1, 1, 1,2 2, 2, 2, 2, 2,3 , , , ,4

. = {$ , , , , , , , , }

. = {$ , , , , , , , , }

. = {$ , , , , , , , , }

.

M in in in in out out out outM in in in in out out out out

M in l in in v in out l out out v out

eqn f M L x V y L x V yeqn f M L x V y L x V yeqn f E L h V h L h V heqn f 1, 1, 1,

5 2, 2, 2,

= { , , }. = { , , }

M L VM L V

M M Meqn f M M M

67 1, 2,8 1, 2,9 1, 1,10 2, 2,

. = { , , }

. = { , , }

. = { , , }

. = { , , }

. = { , , }

M L VL L LV V V

L L outL L out

eqn f E E Eeqn f M M Meqn f M M Meqn f M M xeqn f M M x

. , , }, , }

, , , , }, , , , }, , }

, }, , }

, }, }

,

,

,

,

,

eqn f M M yeqn f M M yeqn f E M h P Veqn f E M h P Veqn f M Veqn f V Zeqn f M Veqn f V Veqn f P Peqn f

V V out

V V out

L L l out L

V V v out V

L L L

L L

V V V

L V

v out

= {. = {. = {. = {. = {. = {. = {. = {. = {. =

,

,

11 1 1

12 2 2

13

14

15

16

17

18

19

20

ρ

ρ

{. = {. = {

= = = =

P Peqn f L Zeqn f V P P Zeqn f T P x xeqn f T P y yeqn f h T P x xeqn f h T P y y

l out

out L

in v in L

L l out l out out out

V v out v out out out

l out l out l out out out

v out v out v out out out

,

,

, , , ,

, , , ,

, , , , ,

, , , , ,

, }, }

, , , }. { , , , , }. { , , , , }. { , , , , }. { , , , ,

21

22

23 1 2

24 1 2

25 1 2

26 1 2

ρρ

}. { , , , , , }. { , , , , , }. { , }

, , , , ,

, , , , ,

, ,

eqn f x x y y T Peqn f x x y y T Peqn f T T

out out out out v out

out out out out v out

v out l out

= = =

27 1 2 1 2

28 1 2 1 2

29

and the output of algorithm for finding low index assignment is as follows:

Page 130: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

118

OUTPUT Problem name = tray.dgn Number of set variables = 0 Number of unknowns = 38 Number of equations = 29 Degree of freedom = 9 Structurally consistent? Yes Structural rank E = 3 Structural order (dyn.degree of freedom) = 3 Structural index Low Low index input assignment: Assignment [1]: L V x x y y h h Pin out in in in in l in v in v in, , , , , , , ,, , , , , , ,1 2 1 2 Assignment [2]: L V x x y y h h Vin out in in in in l in v in in, , , , , , , ,, , , , , ,1 2 1 2 Necessary input variables: 1, 2, 1, 2, , ,, , , , , , ,in out in in in in l in v inL V x x y y h h Compelled internal variables: M M M M M M M M E E E x x y yV V Z P P P h h T T L

M M L V L V L V L V M out out out out

L V L L V l out v out l out v out l out v out out

1 2 1 1 2 2 1 2 1 2, , , , , , , , , ,

, , , , , ,

, , , , , , , , , , , , , , ,, , , , , , , , , , , ,ρ ρ

Optional input variables: , ,v in inP V A wrong choice of input variables for this binary tray distillation column model will result to a high index model. An example of a such input variables set is:

, 1, 2, 1, 2, , , ,, , , , , , , ,in v out in in in in l in v in v inL P x x y y h h P . The high index model is caused

due to the choice of ,v outP as an input variable.

5.4. Maximum dynamic degree input variables assignment

5.4.1. Finding maximum degree input variables assignment In case the given DAE model has constraining state equations (a high index structure) then there is no possibility of finding a low index input assignment. In such DAE model structure, we define the following: Definition 5.13. A maximum dynamic degree input assignment Given a DAE model (1.3a): ( ( ), ( ), ) 0F z t z t t = with m equations and n variables z , if the set of k m n= − variables can be set as external independent time functions variables where the resulting DAE is consistent and has a maximum dynamic degree of freedom, then these k variables are called a maximum dynamic degree assignment for the given DAE.

Page 131: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

119

Hence, it follows that: Corollary 5.14. A low index input assignment is a maximum dynamic degree assignment, i.e. if the low index criterion for the found input assignment is satisfied. Further we define a constraining state equations set as follows: Definition 5.15. A constraining state equations set A constraining state equations set is a subset of equations in the DAE model by which the state variables are constrained, i.e. the DAE model has always a high index structure for any choice of maximum dynamic degree input variables set. From definition 5.15, we can say, Proposition 5.16. If a DAE model has a constraining equations set, then this equations set is invariant for any maximum dynamic degree input variables assignment. The detection of a maximum dynamic degree assignment is quite similar with the detection method to find a low index input assignment. The difference is only that the low index criterion is not included. This gives by the following: Proposition 5.17. A maximum dynamic degree input assignment Consider an underdetermined DAE model (1.3a) ( ( ), ( ), ) 0F z t z t t = or can be

written as 0Es A z⎡ ⎤− =⎣ ⎦ , where , ,m nE A m n×∈ <R . Let we can extend this

underdetermined system matrix, such that the new system matrix is given as:

0( )

n

Es AT s

I K⎡ ⎤−

= ⎢ ⎥⎣ ⎦

where : * *( ) ( ), *n nT s s n m n×∈ = +R and the second row of T s( ) , I Kn gives additional equations of the form: z u u u i ni d d dm

= + + + =1 2

1 2, , ,..., ; the set these equations is denoted as F . Further u u ud d dm1 2

, ,..., are m new dummy variables

and K Rn m∈ × with struc K has no zero elements. Let T s( ) be structurally non-singular, and GT is the graph obtained from T s( ) as defined in Lemma B.2. The vertices of bipartite graph GT are V G f f f f f fT m n n n m1 1 2 1( ) { , ,..., ,..., , , }= + + and V G z z z u u uT n d d dm2 1 2 1 2

( ) { , ,..., , , ,..., }= . Let M MW is the result of a Maximum Weighted Matching algorithm on GT , then each M MW gives rise to a maximum dynamic degree input assignment:

Umd ( ) : ( , ) , ,..,M z f z M i nMW i m i i MW= ∃ ∈ =+ 1l q (5.18a)

Page 132: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

120

with { }

1,...,,( ) max

MCMMC

i iW MW M i

== − (5.18b)

The method to find all maximum degree input assignments for a DAE model having constraining equations is also quite analogue with the method for finding all low index input assignments. Again the difference is only the criterion used; for finding all maximum dynamic degree input assignments, we used the maximum weighted matching criterion (5.18a, 5.18b). Example 5.9: Consider the following DAE model:

1 1 1 2 3 5

2 2 2 4 7

3 3 2 3 4 6

: : :

f z x x x xf z x x xf z x x x x

= − + − += − − −= − + +

(5.19)

4 1 1

5 2 2

6 3 3

7 1 2

8 1 3 7

9 7 8 9

: 0: 0: 0: 0: 0: 0

f x zf x zf x zf x xf x x xf x x x

= −= −= −= += + += + −

This DAE model consists of 9 equations 1 2 9( , ,..., )f f f and 12 unknowns

1 2 3 1 2 3 9( , , , , , ,..., )z z z x x x x . There are 3 variables that must be assigned as input variables of the model. Finding input variables give the following result: OUTPUT Problem name = example.dgn Number of set variables = 0 Number of unknowns = 12 Number of equations = 9 Degree of freedom = 3 Structurally consistent? Yes Structural rank E = 3 Structural order (dyn.degree of freedom) = 2 Structural index High Index Maximum dynamic degree input assignment: Assignment [1]: x x x6 4 8, ,

Page 133: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

121

Assignment [2]: x x x6 4 9, , Assignment [3]: x x x6 5 8, , Assignment [4]: x x x6 5 9, , With these 4 maximum dynamic degree input assignments, we will analyse the struc Es A( )− and struc Es A( )− −1 . Figure (a) shows the struc Es A( )− for input assignment [1]: x x x6 4 8, , , figure (b) for input assignment [2]: x x x6 4 9, , , figure (c) for input assignment [3]: x x x6 5 8, , and figure (d) for input assignment [4]: x x x6 5 9, , . struc Es A( )− =

1 2 3 1 2 3 5 7 9

s o o 1 1 1 1 o oo s o o 1 o o 1 oo o s o 1 1 o o o1 o o 1 o o o o oo 1 o o 1 o o o oo o 1 o o 1 o o oo o o 1 1 o o o oo o o 1 o 1 o 1 oo o o o o o o 1 1

z z z x x x x x x

1 2 3 1 2 3 5 7 8

s o o 1 1 1 1 o oo s o o 1 o o 1 oo o s o 1 1 o o o1 o o 1 o o o o oo 1 o o 1 o o o oo o 1 o o 1 o o oo o o 1 1 o o o oo o o 1 o 1 o 1 oo o o o o o o 1 1

z z z x x x x x x

(a) (b)

1 2 3 1 2 3 4 7 9

s o o 1 1 1 o o oo s o o 1 o 1 1 oo o s o 1 1 1 o o1 o o 1 o o o o oo 1 o o 1 o o o oo o 1 o o 1 o o oo o o 1 1 o o o oo o o 1 o 1 o 1 oo o o o o o o 1 1

z z z x x x x x x

1 2 3 1 2 3 4 7 8

s o o 1 1 1 o o oo s o o 1 o 1 1 oo o s o 1 1 1 o o1 o o 1 o o o o oo 1 o o 1 o o o oo o 1 o o 1 o o oo o o 1 1 o o o oo o o 1 o 1 o 1 oo o o o o o o 1 1

z z z x x x x x x

(c) (d) Figure 5.10. struc Es A( )− of the example 5.9. The figures (5.10a) and (5.10b) show struc Es A( )− −1 , where for input assignment [1] and [2] is represented by the figure (5.11a), since they have the same structure of

Page 134: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

122

struc Es A( )− and the same case for input assignment [3] and [4] is represented by the figure (5.11b). From figure (5.11) we can see that for any maximum dynamic degree input assignment the equations need to be differentiated (or constraining state equations) to perform a high index reduction is invariant, namely the 4th, 5th and 7th equations, given on the power of s on the 4th, 5th and 7th column of the matrix struc Es A( )− −1 . struc Es A( )− −1 =

8

-1 -2 1 -1

-1 -2 1 -1 -1 1

-2 -1 1 1 -2 -2

-1 -2 -1 -1

1 -2 -1 -1 -1

-2 1 -1 -2 -2

-1

-1 -1

-1 -1

(or )1 2 3 1 2 3 5 7 9

1 1 1

1 11

11 1 1 1

1 1 1 11 1 1 1 1

z z z x x x x x x x

o s s s s oo s s o s s s s oo s s o s s s s oo s s o s s oo s s o s s s oo s s o s s s o

s s s s oo s s o oo s s o

− −

− −

8

-1 -2 -2 -1 -1 1 -1 -2

-1 -2 -2 -1 2

-1 -1 -1 1 -1

-1 -2 -2 -1 -1 -1 -2

-1 2 -2 -1 -1 -2

-1 -1 1 -1

-1

-1 -1 -1

-1 -1 -1

(or )1 2 3 1 2 3 4 7 9

1 1 11 1 111 11 1 1 1

1 1 1 11 1 1 1 11 1 1 1 1 1

z z z x x x x x x x

s s s s s s s s os s s s s os s s s s os s s s s s s os s s s s s os s s s o

s s s s os s s os s s

(a) (b)

Figure 5.11. struc Es A( )− −1 of the example 5.9. Moreover if we suppress x4 to be an input variable, but as an internal model variable, then the maximum dynamic degree input assignments are only given by the assignment [3] and assignment [4]. For these assignments the information of matrix struc Es A( )− shows a structurally singularity of variable x4 on the lower right part, as given in the figure (5.12). On such structure it is possible to do a high index reduction through variable differentiation, as described in Chapter 2, if the variable x4 is not interested as an output variable of the model.

Page 135: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

123

( )struc Es A− = (or )1 2 3 1 2 3 4 7 8 9

1 1 11 1 11 1 1

1 11 1

1 11 11 1 1

1 1

z z z x x x x x x x

s o o o o oo s o o o oo o s o o o

o o o o o o oo o o o o o oo o o o o o oo o o o o o oo o o o o oo o o o o o o

Figure 5.12. Structural singular variable detection of example 5.9

5.4.2. Example: finding maximum dynamic degree input assignments for a steam reformer model In this section we will demonstrate the application of DIAG for finding maximum degree input assignments using the high index methane steam reforming reactor model presented in Chapter 4. The presented description is as exactly as the input file to DIAG, namely only the equation numbers and the structural information of these

equations and the operator “$” is used to replace ddt

(.) . A high index methane steam-

reforming reactor model is given by the equations (5.4 – 5.21, 5.1c, 5.2b). The structural analysis for input variables detection using DIAG gives the following result: OUTPUT Problem name = methsteam.dgn Number of set variables = 0 Number of unknowns = 30 Number of equations = 20 Degree of freedom = 10 Structurally consistent? Yes Structural rank E = 6 Structural order (dyn.deg. of freedom) = 5 Structural index: High Index Maximum dynamic degree input assignment: Assignment [1]: x x x x x h Q Q F FCH in CO in CO in H in H O in in add loss in out4 2 2 2, , , , ,, , , , , , , , , Assignment [2]: x x x x x h Q Q F PCH in CO in CO in H in H O in in add loss in out4 2 2 2, , , , ,, , , , , , , , , Assignment [3]: x x x x x h Q Q F PCH in CO in CO in H in H O in in add loss out in4 2 2 2, , , , ,, , , , , , , , , Assignment [4]: x x x x x h Q Q P PCH in CO in CO in H in H O in in add loss in out4 2 2 2, , , , ,, , , , , , , , ,

Structurally singular variable

Page 136: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

124

Assignment [5]: x x x x x h Q Q F rCH in CO in CO in H in H O in in add loss in shift4 2 2 2, , , , ,, , , , , , , , , Assignment [6]: x x x x x h Q Q r PCH in CO in CO in H in H O in in add loss shift out4 2 2 2, , , , ,, , , , , , , , , Assignment [7]: x x x x x h Q Q F rCH in CO in CO in H in H O in in add loss out shift4 2 2 2, , , , ,, , , , , , , , , Assignment [8]: x x x x x h Q Q P rCH in CO in CO in H in H O in in add loss in shift4 2 2 2, , , , ,, , , , , , , , , If we suppress the variable rshift as an input variable of the model then we have 4 maximum dynamic degree input assignments [1 – 4]. Suppose we choose input assignment [2]. The struc Es A( )− is given in the figure (5.13). Here we can see that there is structural singularity on the rshift . This structural singularity is invariant for input assignment [1 – 4]. This means that we are able to perform column / variable differentiation for a index reduction if the variable rshift is not interested as a model output (see Chapter 4). Moreover the struc Es A( )− −1 is given on the figure (5.14), where the constraining states are detected on the 7th to 16th and 20th equations, which are analogue as detected with input assignment [4] used as the example in Chapter 4.

Page 137: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

125

struc Es A( )− =

123456789

1011121314151617181920

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20s o o o o o 1 o o o o o 1 o o o o o o 1o s o o o o o 1 o o o o 1 1 o o o o o 1o o s o o o o o 1 o o o o 1 o o o o o 1o o o s o o o o o 1 o o 1 1 o o o o o 1o o o o s o o o o o 1 o 1 1 o o o o o 1o o o o o s o o o o o 1 o o o o o o o 11 1 1 1 1 o o o o o o o o o 1 o o o o o1 o o o o o 1 o o o o o o o 1 o o o o oo 1 o o o o o 1 o o o o o o 1 o o o o oo o 1 o o o o o 1 o o o o o 1 o o o o oo o o 1 o o o o o 1 o o o o 1 o o o o oo o o o 1 o o o o o 1 o o o 1 o o o o oo o o o o o o o o o o o o o 1 o 1 o o oo o o o o 1 o o o o o 1 o o 1 o o 1 o oo o o o o o 1 1 1 1 1 o o o o 1 1 1 o oo o o o o o 1 1 1 1 1 1 o o o 1 o 1 o oo o o o o o o o o o o o o o o o o 1 1 oo o o o o o o o o o o o o o o o o 1 o 1o o o o o o 1 1 o 1 1 o 1 o o 1 o 1 o oo o o o o o o 1 1 1 1 o o o o 1 o o o o

Figure 5.13. struc Es A( )− of the methane steam reforming reactor Model variables: 1 2 3 4 5 6 7 8 9 10

11 12 13 14 15 16 17 18 19 204 2 2 2 4 2 2

2 4

= = = = = = = = = =

= = = = = = = = = =

M M M M M E x x x x

x h r r M T P P FCH CO CO H H O CH CO CO H

H O out CH shift T in out

, , , , , , , , , ,

, , , , , , , , ,ρ Input variables: x x x x x h Q Q F PCH in CO in CO in H in H O in in add loss in out4 2 2 2, , , , ,, , , , , , , , ,

Structurally singular variable

Page 138: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 5 : Input Variables Assignment …

126

struc Es A( )− =−1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

1 02 1 1 1 1 1 1 1 1 1 1 0 13 1 1 1 1 1 1 1 1 1 1 0 14 1 1 1 1 1 1 1 1

1 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1

s s s s s s s s s s s s s s s s s s ss s s s s s s ss s s s s s s ss s s s s s

− − − − − − − − − − − − − − − − − − −

− − − − − − − −

− − − − − − − −

− − − − − − 1 1 0 15 1 1 1 1 1 1 1 1 1 1 0 16 07 1 1 1 1 1 1 1 1 1 1 0 18 1 1 1 1 1 1 1 1 1 1 0 19

1 1

1 1 1 1 1 1 1 1

2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 2 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

s ss s s s s s s ss s s s s s s s s s s s s s s s s s ss s s s s s s ss s s s s s s s

− −

− − − − − − − −

− − − − − − − − − − − − − − − − − − −

− − − − − − − −

− − − − − − − −

s s s s s s s s− − − − − − − −1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 0 1

10 1 1 1 1 1 1 1 1 1 1 0 111 1 1 1 1 1 1 1 1 1 1 0 112 1 1 1 1 1 1 1 1 1 1 0 113 1 1 1 1 1 1 1 1 1 1 0 114 1 1 1 1 1 1 0 1 115

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1

s s s s s s s ss s s s s s s ss s s s s s s ss s s s s s s s

s s s s s s s s s s ss s s s

− − − − − − − −

− − − − − − − −

− − − − − − − −

− − − − − − − −

− − − −1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1

1 1 1 1 1 1 1 1 1 1 0 116 1 1 1 1 1 1 1 1 1 1 0 117 1 1 1 1 1 1 1 1 1 1 0 118 1 1 1 1 1 1 1 1 1 1 0 119 1 1 1 1 1 1 1 1 1 1 1 120

s s s ss s s s s s s ss s s s s s s ss s s s s s s ss s s s s s s ss s s

− − − −

− − − − − − − −

− − − − − − − −

− − − − − − − −

− − − − − − − −

− − − − − − −1 1 1 1 11 1 1 1 1 1 1 1 1 1 0 1 1s s s s Figure 5.14. struc Es A( )− −1 of the methane steam reforming reactor

5.5. Conclusions DAE model variables can be classified as the necessary input variables, the optional input variables, and the compelled internal variables. The input variables of a DAE model are determined by its internal DAE model equations. The input variables are those model variables that utilise the maximum dynamic degrees of the model and rise to causal input-output relations. A low index input variables set is causal input variables for a DAE model. The low index input variables set for a DAE model does not need to be a unique set. The constraining state equations within a DAE model are invariant for all possible input variables sets resulting in the maximum dynamic degree of freedom of the DAE model.

Page 139: Mathematical Analysis of Dynamic Process Models Index, inputs

127

Chapter 6: Interconnection of DAE models

Interconnection of DAE sub models consist of the interconnected variables on the model ports and the model connectors. The interconnected variables can be a pair of bilaterally coupled variables or a non bilaterally coupled variables. The model connector is a linear equality equations. The interconnected variables of DAE sub models must be matched for the variable type, variable unit of measurement, and its directionality. A matched interconnection of low index DAE sub models resulting to a low index DAE model. ‘A connector has no behavioural description’

6.1. Introduction Most kinds of modelling and simulation approaches for (complex) physical systems are done by interconnecting sub-models. This has several advantages: it is seen as a ‘natural’ modelling of interconnected sub systems of a physical process, it can re-use modular models of sub systems, and it may reduce the complexity of a physical modelling process. Although modularisation and interconnection between sub models have been implemented in different modelling and simulation software packages there are several essential different concepts about: what is a model connector and how to interconnect sub models. There are two views of the model connectors. Marquardt [89] defines a connector as a ‘fluxing’ relation (see figure 6.1). The definition of a connector as a ‘fluxing’ relation is analogue with the approach of the bilateral coupling of sub models (Breedveld [15,16]). In this approach a model connector is described with a behaviour equation, i.e. a fluxing relation. Another definition of a model connector, e.g. in Aspen [5], gProms [50] and Hysis [61], is given as an ‘equality’ relation. A model connector relates a variable from one sub model to the other variable from other sub model in an equality equation. Interconnection in several of the modelling and simulation tools require sub models with a fixed set of input and output variables, by which the sub models can be interconnected to each other, e.g. Simulink [113], and others not, e.g. Aspen [5], gProms [50], Hysis [61].The disadvantage of modelling with fixed input and output variables is the possibility of an unnecessary requirement to introduce a dynamic component between two interconnected sub models, i.e. when algebraic loops occur. The disadvantage of without knowing the matching of possible input and output variables of interconnected sub models is a potential arising of a high index problem due to interconnection.

Page 140: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

128

“......complementary to a device, a connection responds to state information with flux information.”(Marquardt [89]) Figure 6.1. Schematic representation of a fluxing connection (Marquardt [89]) Recently Aspen [5] and Hysis [61] applied a pressure and flow checker on the interconnection of sub models. The modeller should choose if the total model is a pressure driven or a flow driven. A pressure driven model means that the pressure will be an external/input variable specified outside the model boundary. A flow driven model means that the flow will be an external/input variable outside the model boundary. Aspen [5] and Hysis [61] provide a check through the interconnected sub models when the pressure and flow variables can be solved without pressure states constraint, i.e. the pressure variables on two interconnected sub models are not the compelled variables. This approach forms a part of the solution to avoid a high index problem on a pressure-flow interconnected sub models. Motivated by the different definitions of model connectors and the necessity to avoid a high index problem due to interconnection of sub models, this Chapter 6 will describe an approach for model connection definition and interconnection matching of sub systems. The goal is to get a match of interconnected structural low index sub models, where the resulting total model has a structurally low index. This Chapter is outlined as follows, section 6.2. describes some type of model ports and their variables classifications, section 6.3 gives a description of model connectors, section 6.4. gives aspects on interconnection of sub models, and section 6.5 gives some conclusions.

6.2. Process model ports

6.2.1. Process model ports A process model port or model (variables) connection is a model boundary where the chosen sub set of the model variables passes through this boundary to interact with its environment. A process model can have several model ports, where different groups of variables go through a model port. Figure 6.2 schematically shows a process model with several model ports.

Sub-system 1

Sub-system 2

x1 x2

φ1 φ2

state information

flux information

fluxing relation, φ1,2:=f(x1,x2)

Page 141: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

129

Port

1 Port 5Model

Port 2

Port 7

Port 3Port 4

Port 6Port 8

Figure 6.2 Schematic model ports A model port can be classified into the physical domain of variables through this port. Example of such classifications are.:

a) Material port, e.g. contains information of : material flow, material temperature, material pressure, material component fraction, material specific enthalpy.

b) Mechanical port, e.g. contains information of : force, acceleration, velocity, position, torque, angular acceleration, angular velocity, angular position.

c) Energy port, e.g. contains information of : power, heat flow, entropy flow, temperature.

d) Information/signal port, e.g. contains information for the controller input and output variables.

Moreover if necessary, each port can be indicated as an ‘inlet’ or ‘outlet’ port, e.g. an inlet material port, an outlet material port. Figure 6.3 schematically shows an example of a model with inlet and outlet material ports.

Model

Inlet material port Outlet material port

(mass flow outlet)(pressure outlet)(temperature outlet)(specific enthalpy outlet)

out

out

out

out

FPTh

(mass flow inlet)(pressure inlet)(temperature inlet)(specific enthalpy inlet)

in

in

in

in

FPTh

Figure 6.3. Example of a model with inlet and outlet material ports

6.2.2. Model variables classifications on a model port Mathematically the variables through a model port can be distinguished into two classes (O.Bosgra [13], Breedveld [15, 16]), namely:

a) pair bilaterally coupled variables b) non bilaterally coupled variables

Page 142: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

130

The bilaterally coupled variables consist of a pair ‘flow (f)’ and ‘effort (e)’ quantities with different directionalities (i.e. one as input and other as output) through a model port. The non bilateral coupled variables do not form a pair of variables going through a model port. A model port can consist of a pair of bilaterally coupled variables only or non bilaterally coupled variables only or a combination of both type of variables. Table 6.1 shows the possible pairs of ‘flow (f)’ and ‘effort (e)’ for different physical domains, adopted from Breedveld [15, 16]. Physical Domain Flow (f) variable Effort (e) variable Hydraulic/pneumatic/material flow

F (flow rate) P (pressure)

Mass transfer N (mass fraction flow rate)

x (mass fraction)

Mechanical translation v (velocity) f (force) Mechanical rotation ω (angular velocity) Γ (torque) Thermal/energy transfer T (temperature) S (entropy flow), Q

(heat flow) Electromagnetic i (current) V (voltage) Chemical NF (diffusion flow) μ (chemical potential)

Table 6.1. Bilaterally coupled flow and effort variables The directionalities of the ‘flow’ and ‘effort’ variables on a model port depends on the transport equation(s) described within the model corresponding to the particular model port. A model can have a model port with:

- a ‘flow’ variable as an input variable and an ‘effort’ variable as an output variable. We can call this ‘a flow driven model port’, or

- an ‘effort’ variable as an input variable and a ‘flow’ variable as an output variable. We can call this ‘an effort driven port’, or

- either a flow driven or an effort driven port, i.e. the directionalities of the flow and effort variables are not fixed (as long as one is an input and the other is an output variable).

Mathematically a DAE model variables can be classified into (see Chapter 5):

a) compelled internal variables, i.e. treating them as inputs will lead to a high index model,

b) optional input variables, i.e. these variables can be chosen as input variables and don’t have an affect on the index of the model,

c) necessary input variables, i.e. these variables are the necessary input variables, i.e. as elements for all low index input assignment of the model.

The following example 6.1 of a binary tray distillation model gives the relation between the physical and mathematical model variables classification.

Page 143: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

131

Example 6.1. Variable classifications on model ports of a binary tray model Given a binary tray distillation column model as described in Chapter 4, section 4.2.2. consists of equations (4.69, 4.71, 4.73, 4.74, 4.51 – 4.68, 4.41, 4.42). We have seen in Chapter 5, section 5.3.5 that this model gives 2 sets of a low index input assignment: Assignment [1]: L V x x y y h h Pin out in in in in l in v in v in, , , , , , , ,, , , , , , ,1 2 1 2 Assignment [2]: L V x x y y h h Vin out in in in in l in v in in, , , , , , , ,, , , , , ,1 2 1 2 The binary tray model has the following variables classifications:

a) Necessary input variables: 1, 2, 1, 2, , ,, , , , , , ,in out in in in in l in v inL V x x y y h h b) Compelled internals:

M M M M M M M M E E E x x y yV V Z P P P h h T T L

M M L V L V L V L V M out out out out

L V L L V l out v out l out v out l out v out out

1 2 1 1 2 2 1 2 1 2, , , , , , , , , ,

, , , , , ,

, , , , , , , , , , , , , , ,, , , , , , , , , , , ,ρ ρ

Optional input variables: , ,v in inP V Figure 6.4a and 6.4b show the 4 material ports of the binary tray distillation model, with the corresponding variables classifications through these ports.

Vapour material outlet port

Vapour material inlet port

A binary tray distillation model

Pv,outVout

y1,out y2,out hv,out

(*)

(*) = Bilaterally coupled variables(**) = Non bilaterally coupled variables

(*)

(**) (**)

(**) (**)

Pv,inVin

y1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out

u = Necessary input variable

z

u

= Compelled internal variable

= Optional input variable

Figure 6.4a. A binary tray model ports

Page 144: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

132

Vapour material outlet port

Vapour material inlet port

A binary tray distillation model

Liquid material inlet port

Liquid material outlet port

Pv,outVout

y1,out y2,out hv,out

(*)

(*) = Bilaterally coupled variables(**) = Non bilaterally coupled variables

(*)

(**) (**)

(**) (**)

Pv,inVin y1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out

u = Necessary input variable

z

u

= Compelled internal variable

= Optional input variable

Figure 6.4b. A binary tray model ports The vapour material outlet port is an example of a flow driven model port and the vapour material inlet port is either a flow or pressure (effort) driven model port. The combination of optional input variables can be on one model port, but it can also relate to another model port. This depends on the model equations. Example 6.2. A valve model Given a simplified valve model:

. (out v in out

in out

F C P PF F

= −=

For the choice of a flow driven inlet port then its outlet port must be a pressure driven port (see figure 6.5a). For the choice of a pressure driven inlet port then its outlet port can be either pressure driven or flow driven (see figure 6.5b).

Fin

Pin

Fout

Pout

Fin

Pin

Fout

Pout

Fin

Pin

Fout

Pout

Figure 6.5a Figure 6.5b In principal for a given DAE model, we can make model port’s sets which include information of the variable classifications on each model port. This will be very useful for the re-use and interconnection of a model with the other models.

Page 145: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

133

6.3. Process model connectors

6.3.1. Process model connectors The function of a process model connector is only to pass information or quantity from (one) sub model(s) to other sub model(s). There is no process of change of this quantity on the model connector itself. Therefore a model connector does not describe any behaviour of a system. Mathematically interconnection of sub models can be formulated as follows, Proposition 6.1. a model connector Given N physical sub models, each of them can be described with a DAE sub model (1.3a): ( ( ), ( ), ) 0i i iF z t z t t = , with 1...i N= . Suppose icz , with

, 1...ic iz z i N⊂ = , are the subset of interconnected variables for each sub model, then the model connector between the DAE sub models can be expressed as ‘a physical consistent equality equation’ :

0icLz = (6.1) where:

a) physical consistent means that: - the interconnected variables are of the same type - the interconnected variables have the same unit of measurement - the interconnected variables have the same variable value range

b) the matrix L is having entries 1,-1,0 depending on the interconnected variables icz

A model connector can have various manifestations. Figure 6.6. shows schematic of a model connector. This kind of model connector can be called ‘a N-branches summation model connector’. Moreover figure 6.7. shows an application of a model connector as shown in figure 6.6. This is a flow distribution system supplied by 2 pumps in parallel to three separate pipes.

Page 146: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

134

Sub model1

Sub model2

Sub modeli

Sub modelN

Z1

Z2

Zi ZN

Sub modeli+1Zi+1

Zi+2

Note: 2iz + represents an external signal acting on a model connector

Figure 6.6. N branches summation model connector

_ 1out pumpF

_ 2out pumpF

_ 1in valveF

_ 2in valveF

_ 3in valveF

Valve 1

Valve 2

Valve 3

Pump 1

Pump 2

Figure 6.7. Example of a process model connector The interconnection equation for the flow variables is given by the equation:

_ 1 _ 2 _ 1 _ 2 _ 3out pump out pump in valve in valve in valveF F F F F+ = + + From Proposition 6.1, it can derived 3 types of model connectors described here follows, Proposition 6.2. Equality interconnection N interconnected DAE sub models of (1.3a) has an equality type interconnection when the interconnected variables icz have the same quantity or value, i.e.:

1 2 ... , 1,...iz z z i N= = = = with i is the sub model number and iz is the interconnected variable between the sub models. This type of model connector is called ‘a N-branches equality connector’. Schematically the equality interconnection is given on figure 6.8.

Page 147: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

135

Sub model1 =

=

=

Sub model2

Sub model3

Sub modelN

Z1 Z2

Z3

ZN

Figure 6.8. N branches equality model connector The variables on the interconnected sub models can be stacked as a vector of variables. This is to be applied on the equality stream connection in Aspen [5]. Figure 6.9. schematically shows the vector variables interconnection between two sub models, where ijz are the interconnected variables with for sub model 1 or 2i = and j the

variable from corresponding sub model.

Sub model1

Sub model2

======

z11z12z13

z1j

z21z22z23

z2j

Figure 6.9. A vector equality model connector Each equality connector forms ‘a 2-branches node connector’. The second and third type of process model connectors derived from Proposition 6.1 is a mixer or a splitter connector, Proposition 6.3. A Mixer or a splitter connector N interconnected DAE sub models of (1.3a) have a mixer or a splitter type interconnection when an interconnected variable icz from a sub model is composed of sum of other interconnected variables icz from other sub models, i.e.:

1 2 1 10 ... ... i i i Nz z z z z z− += + + + − + + + with i is the sub model number and iz is the interconnected variable between the sub models.

Page 148: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

136

A mixer connector and a splitter connector are schematically given on figure 6.10a. and figure 6.10b. respectively.

Sub model1

Sub model2 Sub model

i

Sub modelN

Z1

Z2 Zi

ZN

Sub modeli

Sub modelN

Zi

ZN

Sub model1

Sub model2

Z1

Z2

Figure 6.10a. A mixer connector Figure 6.10b. A splitter connector The Proposition 6.1. gives a framework of a process model connector, where physically there is no process of change within this connector. In some cases there are confusions between a model connector and a sub model description, e.g. between a mixer connector and a mixer model. In a mixer model the property of material to be mixed can change, example the specific enthalpy of the outlet stream from a mixer model is changed with respect to each inlet stream specific enthalpy. Thus a mixer model should not be categorized as a model connector.

6.3.2. Process model connectors for bilaterally coupled variables In section 6.2.2. is described that bilaterally coupled model port variables consists of a pair ‘effort (e)’ and ‘flow (f)’ variables. Sometimes the ‘effort’ variable is called as the ‘potential’ variable. Each branch of a model connector, connecting bilaterally coupled sub models, shall also consist of this pair ‘effort’ and ‘flow’ variables. The relations on a bilaterally coupled model connector follows the ‘Generalized Kirchoff’s 1st Law’, namely: ‘on a node with N branches, the sum of ‘flow’ variables is zero’ This follows the model connector relation (6.1), i.e. : 0cLz = , and the potential or effort variables value on a given node is equal to all directions. The schematic figures of bilaterally coupled model connectors are shown in figure 6.11 and figure 6.12a, 6.12b. The variables , 1,...,ie i N= represent the interconnected ‘effort’ variables and the variables , 1,...,if i N= are the interconnected ‘flow’ variables. On each branch of a bilaterally coupled model connector, the ‘effort’ and ‘flow’ variables shall not have the same direction.

Page 149: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

137

Sub model1

Sub model2

Sub modeli

Sub modelN

f1

f2

fifN

Sub modeli+1fi+1

fi+2

=

0Lf =e1

e2

ei

ei+1

ei+2

eN

e1 = e2 = …= eN Figure 6.11. A bilaterally coupled model connector

=

=

ein eout

fin fout

=

=

ein eout

fin fout

Figure 6.12a. Equality bilaterally coupled connectors

=ein

eout1

eout2

eoutn

fin

fout1

fout2

foutn

=

ein1

ein2

einn

fin1

fin2

finn

eout

fout

Figure 6.12b. A possible directionalities on a splitter and a mixer bilaterally coupled connectors Since the potential variables values on a node/model connector is equal to all directions, i.e.: 1 2 ... Ne e e= = = , then it follows that: Proposition 6.4. Directionality of effort variables on a model connector For a node or model connector with N branches, then the effort variables quantities are determined only by the effort value of one of the branches. Figure 6.12b shows the examples schematic of Proposition 6.4. The variables 1 ...in out outn ke e e e= = = = and 1 ...out in inn ke e e e= = = = , i.e. all effort variables on the node can be replaced with one variable ke .

Page 150: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

138

6.4. Interconnection of sub models

6.4.1. Mathematical formulation of interconnected sub models Suppose we have an interconnected DAE sub models as shown on figure 6.13; where

the input variables are chosen by the modeller, [ ]1 2T

i cu u u u u= .

Sub model1

Sub model2

Sub modeli

Sub modelN

Sub modeli+1

L

1cz

2cz

icz

1i cz +

Ncz

cu

1u

2u

iu

1iu +

Nu

Figure 6.13. Interconnected sub models Mathematical formulation of interconnected DAE sub models as shown in figure 6.13 can be formulated as follows, Proposition 6.5. Interconnected DAE sub models – 1 Consider N underdetermined DAE sub-models. Each sub-model is described with a DAE model (1.3a) having system matrix ( )iT s , with mi equations and ni variables

iz , m ni i< . Let ( )1 2T

i Nz z z z z= is a vector of n n n nN= + + +1 2

model variables and m m m mN= + +1 2 is the total number of model equations. Each DAE sub model has a low index input assignment. Suppose there are uTn variables that can be specified as external input variables

[ ]Ti cu u u= . With un is the number of specified variables iu (the external input

variables acting on these interconnected DAE sub models) and ucn is the number of specified variables cu (the external input variables acting on the model connectors), then uT u ucn n n= + . The number of total external input variables is

uT cn n m m= − − , where cm is the number of the model connector equations.

Page 151: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

139

Let mc equations of 0ccLz u+ = be the set of model connector equations for these interconnected sub models with cn variables \cz z u⊂ and ucn variables cu .

Suppose [ ]Ti cz z z= , then we can write these interconnected sub-models as:

( ) ( ) 00 0

i ii c i

c c

z uP s P s Bz uL I⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤

=⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦⎣ ⎦ ⎣ ⎦

(6.2)

The relation (6.2) consist of cm m+ equations and cm m+ variables, where it applies that uT cn n m m− = + . ( ), ( )i cP s P s are polynomial function of ‘s’. The structural index property of the DAE (6.2) can be analysed using the theory as described in Chapter 3. Example:

( ( )) max {0, (deg det ( ) deg det ( ) 1)}c ij jiindex struc T s struc S s struc T s= − +

where : ( ) ( )

( )0

i cc

P s P sT s

L⎡ ⎤

= ⎢ ⎥⎣ ⎦

Example 6.3. an interconnected valves and a gas buffer model Figure 6.14 shows interconnected 2 valves models and 1 gas buffer model. They are interconnected with model connectors as shown L1 and L2. The model ports and a connector port are given as: 1,2,2’,3,4,5,6,7. Each port connected variables ,i iF P (gas mass flow rate and pressure) from the sub models, where i=1,...,7 according to the ports number. Thus the interconnected sub models have 17 variables, consisting of 16 ports variables ,i iF P and 1 pressure hold up variable from the gas buffer. The simplified interconnected model equations are given as follows:

2 ' 3 4

2 '

3

4

Gas buffer:. ( )dP R T F F F

dt VP PP PP P

= − −

===

2 1 1 2

1 2

Valve 1:

-F Cv P PF F

==

2 2 5 6

5 6

Valve 2:

-F Cv P PF F

==

1

2 2 '

2 2 '

Connector L :F FP P

==

2

4 5 7

4 5

4 7

Connector L :F F FP PP P

= +==

The model parameters are: 1 2, , , ,v vR T V C C . There are in total 13 model equations with 17 variables. Thus we need to specify 4 input variables on the model boundaries to solve these interconnected sub models.

Page 152: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

140

L1

L2

1 2 2'

3

4

5

7

6

F1P1

F2P2

F2'P2'

F3P3

F4P4

valve1

valve2F5P5

F6P6

F7P7

Gas buffer

Figure 6.14. Interconnection of valves and a gas buffer Using the structural graph algorithm as described in Chapter 3, we can test that the following input variables sets will give a structural low index interconnected DAE sub models: 3 7 1 6 3 7 1 6 3 7 1 6( , , , ) or ( , , , ) or ( , , , )F F P P F F F F F F F P or

3 7 1 6( , , , )F F P F .

6.4.2. Finding input signals for interconnected DAE sub models Theoretically we can find input signals for interconnected DAE sub models by using the extension of Proposition 5.11, i.e. by adding the interconnection equations and searching to the input variables of the interconnected sub models. This is described as follows: Proposition 6.6. Interconnected DAE sub-models-2 Consider N underdetermined sub-models. Each sub-model is described with a DAE model (1.3a) having system matrix ( )iT s , with mi equations and ni variables iz ,

m ni i< . Let ( )1 2T

i Nz z z z z= is a vector of n n n nN= + + +1 2 model

variables and m m m mN= + +1 2 is the total number of model equations. Further let 0cLz = is the set of model connector equations for this system with mc equations and nc variables cz z⊂ ; where m n mc ≤ − . We can write these interconnected sub-models as:

Page 153: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

141

( ( )) 0 0

0 0 0

0

i

c

n d

zdiag T s

zL

uI K

⎛ ⎞⎡ ⎤⎜ ⎟⎢ ⎥⎜ ⎟⎢ ⎥⎜ ⎟⎢ ⎥ =⎜ ⎟⎢ ⎥⎜ ⎟⎢ ⎥⎜ ⎟⎢ ⎥⎣ ⎦ ⎝ ⎠

(6.3)

with:

( ( )) 0 0

0 0( ) , ( ) ( )

0

i

c i i i

n

diag T s

LT s T s E s A

I K

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥= = −⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

the second row gives the additional interconnection equations and the third row of (6.3) gives additional equations of the form

1 2 m m nc ci d d dz u u u+ −

= + + + , where

u u ud d dm mc nc1 2, , ,

+ − are new dummy variables.

Analogue with Proposition 5.11 in Chapter 5 (for finding a index input variables set), let GT is the graph obtained from ( )cT s and let M MW is the result of a maximum weighted matching algorithm, then each of M MW gives rise to a maximum dynamic degree input assignment. Further let GEi

be the graph for iE and let M MCi be the result of a maximum

cardinality-matching algorithm on GEi, then this input assignments is a low index

input assignment if W MW M MCii

N

( ) ==∑

1

.

Thus if a low index input assignment set can be found for the interconnected sub models, then the model connector Lzc = 0 does not form a constraint for the state variables. Suppose for the individual DAE sub model we can find a low index input assignment, but for the interconnected DAE sub models there is no low index input assignment set, then part or all of the model connector of Lzc = 0 forms constraint equations for the state variables on the interconnected DAE models.

m

mc

n

n nc m+mc-nc

Page 154: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

142

Example 6.4. Interconnected tank model This example gives an illustration of the states constraint equations due to interconnection equations. The interconnected tanks model in Chapter 4, section 4.5 is used. The model equations are given (4.163a – 4.172) as follows: Tank 1:

11in out

dM F Fdt

= − (4.163a)

1 1 1M A Hρ= (4.164)

1 1P gHρ= (4.165)

1 1( , )in inF f P P= (4.166) Tank 2:

22in out

dM F Fdt

= − (4.167a)

2 2 2M A Hρ= (4.168)

2 2P gHρ= (4.169)

2 2( , )out outF f P P= (4.170) Model connectors:

1 2out inF F= (model connector equation) (4.171)

1 2P P= (model connector equation) (4.172) Each tank model has the following variables classifications for a low index input assignment, Tank model 1 :

- Compelled internal variables = 1 1 1{ , , }M P H - Optional input variables = { , }in inF P - Necessary input variables = 1{ }outF

Tank model 2 :

- Compelled internal variables = 2 2 2{ , , }M P H - Optional input variables = { , }out outF P - Necessary input variables = 2{ }inF

Applying Proposition 6.4. and using the graph algorithm as described in Chapter 5 for finding index input sets of the interconnected tank models, give the following results:

Page 155: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

143

Output: Problem name = tanks.dgn Number of set variables = 0 Number of unknowns = 12 Number of equations = 10 Degree of freedom = 2 Structurally consistent? Yes Structural rank E = 2 Structural order (dyn.degree of freedom) = 1 Structural index : High Index Maximum dynamic degree input assignment: Assignment [1]: F Fin out, Assignment [2]: F Pin out, Assignment [3]: P Fin out, Assignment [4]: P Pin out, We see that no low index input assignment can be found, i.e. the interconnected sub-models has an internally high index or the interconnection equation introduces a high index structure. As we expected, if the interconnection equations are the cause of the high index structure then for any maximum dynamic degree input assignment the interconnection equations belong to the required equations to be differentiated for a high index reduction. To demonstrate this case we chose the input assignment [1] for the input variables. The structure of struc Es A( )− and struc Es A( )− −1 are given as follows: struc Es A( )− = struc Es A( )− =−1

1 2 3 4 5 6 7 8 9 101 s o o o o o 1 o o o2 1 o 1 o o o o o o o3 o o 1 o 1 o o o o o4 o o o o 1 o o o 1 o5 o s o o o o o 1 o o6 o 1 o 1 o o o o o o7 o o o 1 o 1 o o o o8 o o o o o 1 o o o 19 o o o o o o 1 1 o o

10 o o o o 1 1 o o o o

1 2 3 4 5 6 7 8 9 101 s 1 1 o s 1 1 o s 12 s 1 1 o s 1 1 o s 13 s 1 1 o s 1 1 o s 14 s 1 1 o s 1 1 o s 15 s 1 1 o s 1 1 o s 16 s 1 1 o s 1 1 o s 17 1 s s o 1 s s o 1 s8 1 s s o 1 s s o 1 s9 s 1 1 1 s 1 1 o s 1

10 s 1 1 o s 1 1 1 s 1

-1 -1 -1

-1 -1 -1

-1 -1 -1

-1 -1 -1

-1 -1 -1

-1 -1 -1

-1 -1 -1

-1 -1 -1

where column wise of struc Es A( )− gives the following variables: 1 2 3 4 5 6 7 8 9 101 2 1 2 1 2 1 2= = = = = = = = = =M M H H P P F F P Pout in in out, , , , , , , , , The result of the matrix struc Es A( )− −1 shows that the 2nd, 3rd, 6th, 7th, 10th model equations (i.e. equations (4.164), (4.165), (4.168), (4.169), (4.172)) need to be differentiated for a high index reduction, which is the same as we found in Chapter 4, section 4.5 for a different input assignment. We also see that the interconnection equation 10th or (4.172) belongs to the set of differentiated equations for a high index

Page 156: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

144

reduction. Since each tank model has a low index structure then in this case the interconnection causes the high index structure. Implementation of Proposition 6.6. for finding input signals face a practical problem for large scale interconnected DAE sub models (e.g. 200 equations with 220 variables) that consist of more than 90% algebraic variables. The algorithm will find a lot of possible input assignments sets, with some of the chosen variables are algebraic internal variables. In the following section, it will be described a matching interconnection of DAE sub models by the use of possible information of model ports variables classifications. The remaining possible input variables at the boundaries of interconnected sub models can be chosen for the input variables to solve the model. Additional structural check following Proposition 6.5 can be done to ensure that the chosen input variables set and the interconnection does not give a structural high index model.

6.4.3. Interconnection matching For each DAE sub model, we can find all possible low index input assignment sets and proceed variables classifications on each model port. Thus for each model there are sets of possible input variables on its model ports. Proposition 6.7. Interconnection matching Interconnection matching of given interconnected DAE sub models means that for each model connector of the form 0cLz = does not form a constraint equation for the states or compelled internal variables of the interconnected model ports of the DAE sub models. This means that:

a) a matching connector for ‘a N-branches summation model connector’ shall have one connector output or one (optional) input variable to a DAE sub model (see figure 6.15a),

b) a matching connector for ‘a N-branches equality model connector’ shall have only one connector input or one (compelled) output variable from a DAE sub model (see figure 6.15b).

Sub model

1

Sub model2

Sub modeli

Sub modelN

Z1

Z2

Zi ZN

Sub modeli+1Zi+1

Zi+2

Figure 6.15a. a summation connector with 1iz + as an (optional) input variable

Page 157: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

145

Sub model1

Sub model2

Sub modeli

Sub modelN

Z1

Z2

Zi ZN

=

Sub modeli+1Zi+1

Zi+2

Figure 6.15b. an equality connector with 1iz + as a model output variable When all N sub models have interconnected optional input/output variables, e.g. all N sub models are valve models, then the choice for the interconnection matching are free. Example 6.5. See figure 6.14. Given interconnection of 2 valves and a gas buffer models. The interconnected variables on the model connector 2L are 4 5 7 4 5 7, , , , ,P P P F F F . Since 4P P= , the pressure on the buffer model is a state variable, then 4P is a compelled internal variable. Therefore the pressure on this connector 2L will be determined by 4P , i.e. no other pressure variable can be set. Besides the Proposition 6.7, practically the interconnection matching of sub models shall also satisfy the following criteria for the interconnected variables:

- the variables shall have the same variable type (e.g. real, integer) - the variables shall have the same unit of measurement - the variables shall have the same variable range (this is to check the validity

range of the interconnected sub models) Since the interconnected sub models have low index input assignment sets and they are match interconnected, i.e. there will be no state variables constraint equations due to the interconnection, then the total interconnected sub models shall have a structural low index input assignment set. Proposition 6.8. Low index interconnected sub models A model consisting of interconnected low index sub-models will have a low index assignment if the interconnected connector’s are matched. The input variables of interconnected DAE sub models are the remaining low index free input variables on the model boundaries or on the model connectors.

Page 158: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

146

Example 6.6. Interconnection matching of binary trays of distillation column models See figure 6.3a and figure 6.3b on the example 6.1. We can make a match interconnection between two trays of distillation column as shown in the figure 6.16a and figure 6.16b.

hl,in

hl,out

hl,in

hl,out

A binary tray-1 distillation model

Pv,outVout

y1,out y2,out hv,out

Pv,inVin

y1,in y2,in hv,in

Lin x1,in x2,in

Lout x1,out x2,out

A binary tray-2 distillation model

Pv,outVout

y1,out y2,out hv,out

Pv,in Viny1,in y2,in hv,in

Lin x1,in x2,in

Lout x1,out x2,out=

= = = = = = = =

Figure 6.16a. An interconnection matching of 2 trays of distillation column

A binary tray-1 distillation model

Pv,outVout

y1,out y2,out hv,out

Pv,inVin y1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out

A binary tray-2 distillation model

Pv,outVout

y1,out y2,out hv,out

Pv,in Viny1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out=

= = = = = = = =

Figure 6.16b. An interconnection matching of 2 trays of distillation column

Page 159: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

147

6.4.4. Example of application on sub-models interconnection of a distillation column model Figure 6.17. A schematic of a distillation column model Tray model and feed tray model: The tray model used in this example is as given in Chapter 4, section 4.2.2. This is applied for a binary components system. The feed tray model is made through a slightly small modification of this tray model on the components and energy balances. It consists of 29 equations with 42 variables, given as follows:

11 1 1 1 1

22 2 2 2 2

1 1 1 2 2 2

1 2 1 2

;

;

min in in in in in out out out out

min in in in in in out out out out

min fin in lin in vin out lout out vout

m L V m L V

m L V

L L L V V

dM F z L x V y L x V ydt

dM F z L x V y L x V ydt

dE F h L h V h L h V hdt

M M M M M ME E EM M M M M M

= + + − −

= + + − −

= + + − −

= + = += += + = +

1 1 2 2

1 1 2 2

;;

V

L L out L L out

V L out V L out

M M x M M xM M y M M y

= == =

Feed Tray Model

Tray Model

Total Condensor Model

Reboiler Model

Fin, z1in,z2in,hfin

Lbot, Poutbot

Lreflux Ltop, Pouttop

Vin, Pvin

Qcond

Qreboil

Page 160: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

148

1

2

3 1 2 4 1 2

5 1 2

;;

.

;( )

( , , )( , , , ); ( , , , )

( , , ,

L L lout L V V vout V

L L L V V V

L V tray

L eff L

lout vout

out L

in vin L

L lout lout out out V vout vout out out

lout lout lout out ou

E M h PV E M h PVM V M VV V V

V A Z

P P P PL f ZV f P P Z

f T P x x f T P y yh f T P x x

ρ ρ

ρ ρ

= − = −= =

+ =

=

= ==

== =

= 6 1 2

1 1 2 1 2 2 1 2 1 2

); ( , , , )0 ( , , , , , ); 0 ( , , , , , )

t vout vout vout out out

out out out out vout out out out out vout

lout vout

h f T P y yK x x y y T P K x x y y T P

T T

== =

= The low index input assignments of this model are: Assignment [1]: F z z h L x x h V y y h Pin in in fin in in in lin out in in vin vin, , , , , , , , , , , ,1 2 1 2 1 2 Assignment [2]: F z z h L x x h V y y h Vin in in fin in in in lin out in in vin in, , , , , , , , , , , ,1 2 1 2 1 2 Total Condenser Model: The model in this section presents a binary components total condenser model as an extension of the condenser model in Chapter 5, section 5.3.1. The last two equations are the valve equations for the vapour flow inlet and top liquid product flow. The model consists of 29 equations with 35 unknowns, as follows:

11 1 1

22 2 2

1 1 1 2 2 2

1 2 1 2

1 1 2 2

1 1

;

;;

;

min in reflux out top out

min in reflux out top out

min vin reflux lout top lout cond

m L V m L V

m L V

L L L V V V

L L out L L out

V L

dM V y L x L xdt

dM V y L x L xdt

dE V h L h L h Qdt

M M M M M ME E EM M M M M MM M x M M xM M y

= − −

= − −

= − − −

= + = += += + = += == 2 2V LM M y=

Page 161: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

149

1

2

3

4 1 2 5 1 2

6 1 2 7 1 2

1 1 2 1

;;

( )( , )

( )

( , , , ); ( , , , )( , , , ); ( , , , )

0 ( , , ,

L L lout L L V V V V

L L L V V V

L V cond

L L

L L

reflux L

L lout L out out V v

lout lout L out out V v

out out

E M h P V E M h PVM V M VV V VZ f VP f P ZL f P

f T P x x f T P y yh f T P x x h f T P y y

K x x y

ρ ρ

ρ ρ

= − = −= =

+ ===

=

= == =

= 2 2 1 2 1 2, , ); 0 ( , , , , , )v out out v

lout v

y T P K x x y y T PT T

==

V f P P L f P Pin vin top outtop L= =8 9( , ); ( , ) The low index input assignments for this model are given as follows: Assignment [1]: y y h Q P Pin in vin cond outtop vin1 2, , , , , Assignment [2]: y y h Q P Vin in vin cond outtop in1 2, , , , , Assignment [3]: y y h Q L Vin in vin cond top in1 2, , , , , Assignment [4]: y y h Q L Pin in vin cond top vin1 2, , , , , Reboiler Model The following set of differential algebraic equations describes a reboiler model for binary components for a distillation column, consists of 27 equations with 34 unknowns:

11 1 1

22 2 2

1 1 1 2 2 2

1 2 1 2

1 1 2 2

1 1 2

;

;;;

min in out out bot out

min in out out bot out

min lin out vout bot lout reboil

m L V m L V

m L V

L L L V V V

L L out L L out

V L out V

dM L x V y L xdt

dM L x V y L xdt

dE L h V h L h Qdt

M M M M M ME E EM M M M M MM M x M M xM M y M

= − −

= − −

= − − +

= + = += += + = += == = 2

;;

L out

L L lout L L V V vout vout V

L L L V V V

M yE M h P V E M h P VM V M Vρ ρ

= − = −= =

Page 162: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

150

1

2

3 1 2 4 1 2

5 1 2 6 1 2

1 1 2 1 2

( )( , )( , , , ); ( , , , )

( , , , ); ( , , , )0 ( , , , , , ); 0

L V reboil

L L

L L

L lout L out out V vout vout out out

lout lout L out out vout vout vout out out

out out out out vout vout

V V VZ f VP f P Z

f T P x x f T P y yh f T P x x h f T P y y

K x x y y T P K

ρ ρ

+ ==== =

= == = 2 1 2 1 2( , , , , , )out out out out vout vout

lout vout

x x y y T PT T=L f P Pbot L outbot= 7 ( , )

The low index input assignments for this model are: Assignment [1]: L x x h V Q Pin in in lin out reboil outbot, , , , , ,1 2 Assignment [2]: L x x h V Q Lin in in lin out reboil bot, , , , , ,1 2 The following shows that by the choice of assignments of each model, a complete distillation column model can be built from matching of sub-models interconnection, as given in figure 6.18.

Page 163: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

151

An interconnection matching on a distillation column model:

Feed tray

Pv,outVout

y1,out y2,out hv,out

Pv,in Viny1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out

Tray-N

Pv,outVout

y1,out y2,out hv,out

Pv,in Viny1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out= = = = = = = = =

Fin

z1in

z2in

hfin

Reboiler

Pv,outVout

y1,out y2,out hv,out

Poutbot

Lin x1,in x2,in hl,in

Lbot x1,out x2,out hl,out

Tray-1

Pv,outVout

y1,out y2,out hv,out

Pv,in Viny1,in y2,in hv,in

Lin x1,in x2,in hl,in

Lout x1,out x2,out hl,out= = = = = = = = =

Qreboiler

= = = = = = = = =

Condenser

Pout,top

Pv,in Viny1,in y2,in hv,in

Ltop x1,out x2,out hl,out

Lout x1,out x2,out hl,out= = = = = = = = =

Qcond

Figure 6.18. Interconnected sub models on a tray distillation column model

Page 164: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 6 : Interconnection of DAE models

152

6.5. Conclusions The objective of this Chapter is to investigate when interconnection of DAE sub models will not result in a high index problem. There are three important main ingredients for interconnection of DAE sub models, namely: model ports, model connectors, and interconnection matching. Model ports are the model boundaries. Each model port consists of the chosen model variables to interact with its environment. Model connectors are non behavioural equality equations, which relates variables from a model port to other variables on other models ports. The knowledge of model ports and their variable classifications for each DAE sub model are important for interconnecting and re-use of DAE sub models. Application modelling and simulation programs should give information about the variable classifications on the model ports. Interconnection matching of structural low index DAE sub models shall result to a structural low index model. A matching interconnection means that there is no state constraint equation introduced by the interconnection equation. Application modelling and simulation programs should give information when a model connector forms a non-matching connection.

Page 165: Mathematical Analysis of Dynamic Process Models Index, inputs

153

Chapter 7: Conclusions and Recommendations

7.1. Conclusions Usually, a complex process model consists of interconnected sub models. Modelling of each sub model based on balance and constitutive equations gives a first order non-linear differential algebraic equations (DAE) model. The consequences of modelling with DAE are the possibility to get a high index and/or a consistent (re-) initialisation problem. A high index problem arises due to the state constraint equations within the DAE model. A consistent (re-) initialisation problem means that it is not possible to set arbitrary values to the state or accumulation variables at any time. A high index model and a low index model with non-minimum state variables pose a consistent (re-) initialisation problem. A high index problem can be caused by: non-causal choice of the input variables, internal state constraints, and sub models interconnection. In process modelling a low index DAE model with a consistent (re-) initialisation problem can be caused by the choice of intensive variables as the state variables instead of the extensive variables. Apart from the possibility that the state independency of a DAE model can conflict with the intention of the modeller, a high index DAE model is numerically difficult to solve. The proposed method of process modelling is to avoid a high index and/or consistent (re-) initialisation problem are consistently derived from Rosenbrock and Kronecker [107]. The approach to do this is to develop procedures to detect the problems and to reduce the index during process modelling. The strategy followed in this research has four features. First, examining the mathematical structure of a DAE model that gives a high index and/or a consistent (re-) initialisation problem and deriving easier methods to solve the problems. Second, to apply the proposed methods to a first order non-linear DAE model. Third, to develop a method for searching low index input variables of a DAE model and to detect possible state variables constraint equations. Finally to give the necessary condition so that the interconnection of sub models will not lead to a high index problem. The results of the research shows that it is possible to implement algorithms in the process modelling environment to detect a high index problem, to detect a consistent (re-) initialisation problem, to calculate the index of a DAE model and to reduce the index of a DAE model without non-linear algebraic manipulations. The index reduction without non-linear algebraic manipulations will preserve the original DAE models and variables. Moreover, it is possible to detect when sub models interconnection will lead to a high index problem. The conclusions related to detection of a high index and consistent (re-) initialisation problem, to calculation of the index and execution of an index reduction in process modelling are summarized here as follows:

Page 166: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 7 : Conclusions and Recommendations

154

1. Solving a high index DAE model needs differentiation manipulations. This thesis describes high index reduction techniques for a non-linear first order DAE model in conjunction with the strict system equivalence operation on the linear DAE model (Rosenbrock [107]). A high index model reduction can require equations differentiation or variables differentiation.

2. The proposed procedures for a high index reduction do not need to apply complicated non-linear algebraic manipulations. The original model equations and variables will not be destroyed. The information to gather which variables or equations need to be differentiated for a high index reduction is derived from the

structural information of the system matrix ( )Es A− or 1( )Es A −− . The conclusions related to finding input variables of a DAE model and the requirement of DAE sub models interconnection are summarized here as follows: 3. The input variables of a first order non-linear DAE model are determined by its

internal DAE model equations. The input variables are those model variables that utilise the maximum dynamic degree of the model and give rise to causal input-output relations. Low index input variables are causal input variables of a DAE model.

4. The sets of low index input variables of a model are possibly non unique. This thesis describes a procedure to find low index inputs sets assignment for a first order non-linear DAE model with no internal state constraint equations. When a first order non-linear DAE model has internal state constraints equations, then these equations can be detected for any maximum degree inputs set assignment.

5. In this thesis a graph algorithm is used to analyse the process model structure and input variables assignment. Actually the process-modelling environment must assist the modeller to make a well-structured process model. In our perspective the graph algorithm can support this activity. A graph algorithm can be used to assist the modeller in the book keeping of process model equations and variables and warning the modeller for a possible state constraints condition during the model building.

6. The interconnection of low index DAE sub models shall be such that no state constraint is introduced by interconnection, i.e. resulting in a low index composite model. The interconnected input-output variables of sub models are matched.

7. A model-building tool can be developed to collect all inputs sets for a low index assignment of a DAE model. Process modelling environment should provide information to the user to be able to get low index interconnected models matching.

Process model building activities can be resumed into the following steps:

a) Set up model behaviour equations, b) Checking if there are states constraint equations by finding a maximum

degree inputs assignment set, c) Execute index reduction if it is required, d) Checking consistent re-initialisation problem, e) Execute state transformation if it is required, f) Finding low index inputs assignment sets.

Page 167: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 7 : Conclusions and Recommendations

155

A DAE model diagnosis tool during a process model building is required for:

a) Detection of internal states constraints equations (a high index model), b) Proposing a high index reduction, c) Finding: low index input variables sets, optional input variables and

compelled internal variables, d) Detection of a consistent re-initialisation problem.

The theory and algorithm described in this thesis can be imbedded in the process modelling tools.

7.2. Recommendations 1. This thesis describes only the mathematical structure and interconnectivity of

lumped systems given by first order non-linear DAE models. We believe that the phenomenon of the ‘index’ problem is not only a time domain aspect, but also it exists in the spatial domain. Campbell and Marszalek [24] presented examples of the ‘index’ problem in the spatial domain, therefore further research on the mathematical structure and interconnectivity of process models described with partial differential algebraic equations is required (PDAE).

2. The recent development of powerful symbolic manipulation software makes it

possible to make a model building diagnosis tool using symbolic manipulator software instead of using the structural approach. Using symbolic manipulation tool in model building might improve the ‘unlucky’ values for a high-index detection with structural analysis.

3. To be able to re-use and interconnect low index models made from different

modelling environments, then it is necessary to develop standardisation on the model attributes, especially for the model ports, and the model connectors. The users need also to get information about which sets of input variables for the model will give a low index model.

Page 168: Mathematical Analysis of Dynamic Process Models Index, inputs

Chapter 7 : Conclusions and Recommendations

156

Page 169: Mathematical Analysis of Dynamic Process Models Index, inputs

157

Appendix A: Structural Frame Work

A.1. Structure Ching-Tai Lin [28] introduced the concept of “structure” for a linear time-invariant system. He distinguishes between entries of matrices that are known with 100 percent precision – called fixed entries (usually only zeros) and those that are known only approximately. If two equally sized matrices have all their fixed entries on the same positions, then they are said to have the same structure. Unger et.al. [126] formulated a definition of structure also: Definition A.1 (Unger et.al. [126]): Structure. Whenever there is a numerical (or symbolical) representation of operands in R such that a certain operation in R yields a nonzero result then the result of the corresponding structural representation of this operation is ∗. Conversely, if there is no such numerical (or symbolical) representation then the structural result is 0. Next we use 'o' to represent operands that are exactly zero with 100 percent certainty. All other operands, including those with a very small value or even a value of zero (0) – but not with 100 percent certainty – are represented by ‘∗’. The operands ‘∗’ can be extended with information of the structure of polynomial entries.

A.2. Structural Operation The structural framework herein will be used to analyse the structure of polynomial

matrices ( )( ) ( ) , 1, 2,..., , 1, 2,...,ij ijP s p s i m j m⎡ ⎤= = =⎢ ⎥⎣ ⎦

,

where ( ) [ ]ijp s s∈ and [ ]sR denote the set of all polynomial :p →R R ,

0 1 0( ) , , , , , 0,kk k kp s a a s a s a a s a k= + + + ∈ ≠ ∈R N , (A.1)

with k is the degree of polynomial ( )p s . Consider also ( ) 0p s = as a polynomial on

[ ]sR . For this purpose let’s consider the algebraic system ( , ,.)Λ + , where

0 1 2{o, , , ,...}s s sΛ = and where the binary operators of addition and multiplication are defined as follows:

Page 170: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix A : Structural Frame Work

158

addition + × →:Λ Λ Λ

j

i max{ , }

o o=o o

o

j

i i j i j

s s

s s s s s

+ + =

+ = + =

multiplication . :Λ Λ Λ× →

j

i

o.o=o o. o

.o o .i j i j

s

s s s s +

=

= =

Furthermore, if a ∈Λ , then let the unitary operators + →:Λ Λ and − →:Λ Λ be defined as + =a a and − =a a respectively. Definition A.2. Structure of a polynomial function Suppose , [ ]p q s∈R are polynomials with degree k l, ,

0 1 0

0 1 0

( ) , , , , , 0,

( ) , , , , , 0,

kk k k

ll l l

p s a a s a s a a s a k

q s b b s b s b b s b l

= + + + ∈ ≠ ∈

= + + + ∈ ≠ ∈

R NR N

or ( ) 0( ) 0

p sq s

==

(has no degree)

then, the operator : [ ]struc s → ΛR is defined as:

k

o if ( ) 0( ) :

otherwise

p xstruc p s

s

≡⎧⎪= ⎨⎪⎩

(A.2)

( )struc p s is called the structural representation of ( )p s and the structural

degree of p x( ) is defined as: deg ( ) , ( ) [ ] \{0}struc p s k p s s= ∀ ∈R (A.3)

and

( ( ) ( )) ( )+ ( )( ( ). ( )) ( ). ( )

struc p s q s struc p s struc q sstruc p s q s struc p s struc q s

+ ==

(A.4)

Example A.1:

Given 3 2( ) 2 7 1p s s s s= − − + + . Its structural representation is 3( )struc p s s= and deg ( ) 3struc p s =

Page 171: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix A : Structural Frame Work

159

Corollary A.3. Suppose , [ ],deg ( ) ,deg ( )p q s p s k q s l∈ = =R

11 0

11 0

( ) ...

( ) ...

k kk k

l ll l

p s p s p s p

q s q s q s q

−−

−−

= + + +

= + + +

then : deg( ( ) ( )) deg( ( ). ( ))

deg ( ) deg ( )p s q s struc p s struc q s

struc p s struc q s== +

(A.5)

and if ( ( ) ( ) 0p s q s+ ≠ and k l≠ ) then deg( ( ) ( )) deg( ( ) ( ))

max{deg ( ),deg ( )}p s q s struc p s struc q s

struc p s struc q s+ = +

= (A.6)

and if (( ( ) ( ) 0) ( ) ( 0))k lp s q s k l p q+ ≠ ∧ = ∧ + ≠ then deg( ( ) ( ))p s q s k+ = (A.7) and if (( ( ) ( ) 0) ( ) ( 0))k lp s q s k l p q+ ≠ ∧ = ∧ + = then deg( ( ) ( ))p s q s k+ < (A.8)

Page 172: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix A : Structural Frame Work

160

Page 173: Mathematical Analysis of Dynamic Process Models Index, inputs

161

Appendix B: Graph Algorithm

B.1. Introduction This appendix describes shortly the graph algorithm as implemented by Bujakiewitcz [21] and Y.G.G.J.Go [48] to calculate the structural properties of a DAE model, i.e. the structural rank of E , the structural dynamic degree of freedom deg det ( )struc Es A− , and the required differentiations for index reduction from

matrix 1( )struc Es A −− . This is for a given DAE model of the form :

( ( ), ( ), ( ), ) 0F z t z t u t t = ; where Fstruc E strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠ and

Fstruc A strucz

⎛ ∂ ⎞= ⎜ ⎟∂⎝ ⎠.

The definitions of structural aspects are given on the Chapter 3 and Appendix A. The graph algorithm here is used to relates the structure between equations and variables in a DAE model. The implementation of the graph algorithm is using graph library of LEDA (Naeher, et.al. [91]). For further reading of the graph theory and algorithm can be found in Bondy [11], Bujakiewics [21], G. Chartrand [27] and Naeher et.al. [91].

B.2. Graph terminology A graph G of a set of m DAE equations consists of a finite nonempty set of vertices V(G) and set of edges E(G). The vertices are ordered on one side the equation number,

1( 1... ) ( )if i m V G= ∈ , and other side are the variables 2( 1... ) ( )jz j m V G= ∈ .

An edge ( , ) ( )i i je f z E G= ∈ joins vertices , ( )i jf z V G∈ . The connected vertices

, ( )i jf z V G∈ are called adjacent in G.

A graph G is called a bipartite graph if its vertices set V(G) can be portioned into two non-empty subset 1 1 2( ) { , ,..., }mV G f f f= and 2 1 2( ) { , ,..., }mV G z z z= and every edge ( )ie E G∈ joins vertices f V G z V Gi i∈ ∈1 2( ) ( ) and , there is no edge between two vertices from V G1( ) or between two vertices from V G2 ( ) .

Page 174: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

162

B.3. Maximum cardinality matching A subset of edges M G E G( ) ( )⊆ is called matching if there is no two edges of M G( ) sharing the same vertex. The set of all subset-matched edges is denoted as SM G( ) . Further a matching of graph G is denoted as M . A cardinality of a set A is defined as the number of elements in A and is denoted as A . Therefore the cardinality of matching edges M G( ) is defined as the number of

edges in M G( ) and is denoted as M G( ) . A matching edges of maximum cardinality in G is called the maximum cardinality matching (set), M MC , where:

M M GMC M G SM G= ∈max ( )( ) ( )

(B.1)

If a graph G with cardinality of its vertices V G p( ) = has a matching of cardinality

M G p( ) =2

then such a matching is called a perfect matching, M MP , which has a

perfect matching set M MP . Since every matching of G has at most p/2 edges, a perfect matching is a maximum matching. Lemma B.1 (Y.G.G.J.Go [48])

Consider a constant matrix with ( ) , m mij ij

struc E struc e E ×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R and:

struc exij o, if e

otherwiseij

0=≡RST

0,

Let the bipartite graph G is defined as follows:

a) Let ( ) 2V G m= b) Let V G( ) be split up into two distinct sets:

1

2

( ) { ( ) : 1, 2,..., } equation vertices( ) { ( ) : 1, 2,..., } variable vertices

i

j

V G f V G i mV G z V G j m

= ∈ = ≡= ∈ = ≡

c) Let E G f z struc e xi j ij( ) {( , ): }= = 0 Now, let the resulting matching of the Maximum Cardinality Matching set algorithm on the constant matrix E be M MC , then we have:

MCrank struc E M= (B.2)

Page 175: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

163

Proof: Let rank struc E γ= . It follows from Corollary 3.4 (Chapter 3) that there is a permutation σ γ of {1,2,..., }which result to:

∃Γ ≠ ∧

=γγ

γγ

γγ

γγγ γ

with det o

with * > , det o

Γ

Γ Γ**

**

this is equivalent with if there are matching edges of equation vertices and variable vertices due to the same permutation σ γ of {1,2,..., } : ∃ ∈ = ∧/∃ ∈ =

{( , ) ( ), , ,... }

{( , ) ( ), , ,... *}

f z M G i

f z M G ii i

i i

σ σ

σ σ

γγ γ γ

1 2

1 2

with * >

since it is a maximum matching, then it can be written as: ∃ ∈ ={( , ) , , ,... }f z M i

i i MCσ σ γ1 2 with its cardinality : M MC = γ . It follows that: MCrank struc E M= .

Example B.1 (see Chapter 3: Example 3.3) Consider a DAE model as given on example 3.3. with

0 0

0 01 1 01 1 0 , ( )0 0 0

x x o

E struc E x x oo o o

⎡ ⎤⎡ ⎤ ⎢ ⎥⎢ ⎥ ⎢ ⎥= =⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦

⎣ ⎦

Figure B.1 shows two matching graphs of ( )struc E , where:

1 1 2 3 2 1 2 3{ , , }, { , , }V f f f V z z z= = and 1 2 3 4( ) { , , , }E G e e e e= .

The cardinality of graph edges ( ) 4E G = . The maximum matching set is 1 4 2 31 2{ , } or { , }MC MCM m m M m m= = , with

the maximum cardinality matching 1 2 2MC MC MCM M M= = = .

Thus : ( ) 2MCrank struc E M= = .

Page 176: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

164

z1

z2

z3

f1

f2

f3

m1 or e1

m4 or e4

e2

e3

Matching-1

f1

f2

f3

e1

e4

m2 or e2

m3 or e3

Matching-2

z1

z2

z3

Figure B.1. Maximum Matching Graph of ( )struc E

B.4. Maximum weighted matching A weighted graph G of is a graph obtained from assigning a weight w ei( ) to e E Gi ∈ ( ) . The weight W G( ) of weighted graph G is defined as W G w ei

e E Gi

( ) ( )( )

=∈∑ (B.3)

A weighted matching set in a weighted graph of G is denoted as Mw and a maximum (cardinality) weighted matching set in a weighted graph of G , denoted as M MW , is a matching set in for which the weight of weighted graph is maximum, denoted as,

M W M

W M

w e

MW

M S w

M S ie E G

w Mw

w Mwi

MW

: arg

arg max

arg max ( )( )

=

=

=

∈∈∑

b gb g (B.4)

Since a perfect matching is a maximum matching we can also define, Definition B.2. (Bujakiewicz [21]) A maximum weighted matching set M MW of graph G is one of the perfect matching of G which maximizes the sum of weights of its edges, is denoted as:

M M M w eMW w MP M S ie E G

w MP

i

: :max ( )( )

= ∈RST|

UVW|∈∈∑ (B.5)

The weight of the maximum weighted matching, is denoted as:

( )( ) : max ( )

w MPi

MW M S ie E G

W M w e∈∈

= ∑ (B.6)

Page 177: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

165

Therefore: the cardinality of the maximum weighted matching set is equal to the cardinality of the perfect matching set, MW MPM M= , and

( ) ( )MW MPW M W M≥ . (B.7) Corollary B.3. (Y.G.G.J.Go [48]) Consider structural matrix struc T s struc Es A t sij ij ( ) ( ) ( ( )) ,= − =

with ( ) , m mij ij

struc E struc e E ×⎡ ⎤= ∈⎢ ⎥⎣ ⎦R , ( ) , m m

ij ijstruc A struc a A ×⎡ ⎤= ∈⎢ ⎥⎣ ⎦

R

and:

struc ex

struc aa

xij ij o, if e

otherwise

o, if otherwise

ij0

ij0=

≡RST=

≡RST0 0

, ,

Further suppose the weighted bipartite graph be defined as follows:

a) ( ) 2V G m= b) V G( ) be split up into two equally sized subsets:

1

2

( ) { : 1,2,..., } equation vertices( ) { : 1,2,..., } variable vertices

i

j

V G f i mV G z j m

= = ≡= = ≡

c) E G f z struc e x struc a xi j ij ij( ) {( , ): }= = ∨ = 0 0 d) and let the weighting w E G N: ( ) → be defined as,

00

0

1, ( ( ))( )

0, ( ( ))

x E W Gw x

x E W G

⎧ ∀ ∈⎪= ⎨∀ ∉⎪⎩

where E W G f z E G struc e xi j ij( ( )) {( , ) ( ): }= ∈ = 0 . Suppose M MW denotes the resulting matching set of the Maximum Weight Matching algorithm, then: i) T s( ) is structurally singular , andMWM m⇔ < (B.8) ii) if T s( ) is structurally non-singular then

( )deg det ( ) MWr struc T s W M= = (B.9) Proof:

i) a) The “if” part can be proven by contradiction statement, namely:

Page 178: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

166

Let MWM m< and suppose that T s( ) is structurally non-singular, then we have:

T s( ) is structurally non-singular

such that ( , ) ( ), 1, 2,...,iif z E G i mσσ⇔ ∃ ∈Γ ∈ =

⇔ ∃ ∈ perfect matching set M SMP M with cardinality MPM m= and following the Definition B.2:

MW MPM M m= = . From which follows the contradiction with the

assumption that MWM m< . b) The “if only” part follows by the same way, while letting T s( ) be structurally non-singular and supposing MWM m< .

ii) Let T s( ) be structurally non-singular, then for each matching set M G M MW( ) ∈ there exists a structural permutation σ ∈Γ such that ( , ) ( )f z M Gi iσ ∈ for 1,2,...,i m= . Furthermore ,deg ( ) (( , ))

i ii it s w f zσ σ= , and following Corollary 3.7 (see

Chapter 3)

,1

deg det ( ) max deg ( )i

mi

ir struc T s t sσ σ∈Γ

== = ∑ , hence:

1max (( , ))

( )

( )

i

i MW

mi

i

ie M

MW

r w f z

w e

W M

σ σ∈Γ=

=

=

=

The degree of determinant structural matrix ( )T s is equal to the weights of maximum weighted matching of the graph of ( )T s . Example B.2 (see Chapter 3: Example 3.2) Given a DAE with :

1 1 2( ) [ ] 1 2 1

1 1 0

sT s Es A s

+ −⎡ ⎤⎢ ⎥= − = + −⎢ ⎥⎢ ⎥− −⎣ ⎦

, ( )

0

o o

o o

o o

s x x

struc T s x s x

x x

⎡ ⎤⎢ ⎥⎢ ⎥=⎢ ⎥⎢ ⎥⎣ ⎦

Page 179: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

167

Figure B.2. shows the maximum weighted matching sets of graph of ( ( ))struc T s . The weighted edge is shown with value = 1. According to (B.9) in Corollary B.2 that:

deg det ( )( )

( )1

i MW

ie M

MW

r struc T sw e

W M∈

==

==

Thus the structural dynamic degree of freedom of this DAE = 1, and

det ( ) rstruc T s ss

==

z1

z2

z3

f1

f2

f3

Max.weighted matching-1

f1

f2

f3

Max.weighted matching-2

z1

z2

z3

1

1

Figure B.2. Maximum weighted matching

B.5. Calculation of struc(T-1(s)) Following the Definition 3.9 (Chapter 3): Consider ( ) [ ]m mT s s×∈R , the structural matrix inverse of ( )T s is defined as:

( )1 1( ( )) : ( ( ))

det ( ),

det ( )

1, 2,...,1, 2,...,

ij ij

ji

ij

struc T s struc t s

struc S sstruc T s

i mj m

− −=

⎛ ⎞⎛ ⎞⎜ ⎟= ⎜ ⎟⎜ ⎟⎝ ⎠⎝ ⎠==

(3.9)

Page 180: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

168

where the relation for the sub-matrix ( ( ))ijstruc S s as given on (2.12), is obtained by

placing zeros in the i-th row and in j-th column of ( ( ))struc T s and replacing the ij-th

element with or 1ox :

11 1

0

1

( ( )) 0 ( ( ))

( ( )) 0 0

( ( )) 0 ( ( ))

m

ij ij

m mm

struc t s struc t s

struc S s x

struc t s struc t s

⎛ ⎞⎜ ⎟⎜ ⎟⎜ ⎟=⎜ ⎟⎜ ⎟⎜ ⎟⎝ ⎠

The same procedure to calculate det ( )struc T s as described in section B.2; we can calculate each entry of det ( )jistruc S s .

Example B.2 (see Chapter 3: Example 3.2) Given a DAE with :

1 1 2( ) [ ] 1 2 1

1 1 0

sT s Es A s

+ −⎡ ⎤⎢ ⎥= − = + −⎢ ⎥⎢ ⎥− −⎣ ⎦

,

1 1( ) 1 1

1 1 00

o o

o o

o o

s x x sstruc T s x s x s

x x

⎡ ⎤⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥= = ⎢ ⎥⎢ ⎥⎢ ⎥⎢ ⎥ ⎣ ⎦

⎣ ⎦

with det ( )struc T s s= ; Suppose we are going to calculate 33det ( )struc S s , where :

33

1 0 ( ) 1 0

0 0 1

sstruc S s s

⎡ ⎤⎢ ⎥= ⎢ ⎥⎢ ⎥⎣ ⎦

Figure B.3. shows the maximum weighted matching for the graph of 33( )S s , where

33 33deg det ( ) 2sr struc S s= = . Thus :

33

2

33det ( ) srstruc S s s

s

=

=

It follows that :

Page 181: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

169

2

1 33det ( ) ( )det ( )ij

struc S sstruc t sstruc T s

ss

s

− =

=

=

z1

z2

z3

f1

f2

f3

Max.weighted matchingS33(s)

1

1

Figure B.3. Maximum weighted matching of 33( )S s

We can calculate the other fractional polynomial entries of the matrix 1( ( ))struc T s− of the DAE on the example 3.2. above, resulting to the following:

11

11

1

1

11

1

( )

s

s

s

s

sstruc T s−

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥=⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

.

Page 182: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix B : Graph Algorithm

170

Page 183: Mathematical Analysis of Dynamic Process Models Index, inputs

171

Appendix C: Modelling of an ICGCC Plant We have tried to apply the structural analysis technique and interconnection matching as presented in this thesis for the dynamic modelling of a complex interconnected index-one sub-models, namely the dynamic modelling of integrated coal gasification combined cycle (ICGCC) plant, as schematically given in the following figure C.1. The modelling strategy will be briefly described in the section C.2. Further this section is not mention to analyse the dynamic behaviour and control strategy of an ICGCC. Analysis of the dynamic behaviour and control strategy of an ICGCC plant can be found e.g. in P.Schoen [112].

WaterAir

Coal

Heat RecoverySteam Generator

CoalGasifier

SyngasCooler

GasCleaning Saturator

AirSeparation

Plant

Syngas

ElectricPower

Water

Steam

Quenchgas

Oxygen

Nitrogen

Steam

Flue

gas

Steam Turbine Gas Turbine AirCompressor

Figure C.1. An Integrated Coal Gasification Combined Cycle Plant (P.Schoen [112]) At the time of the research SpeedUp [118] is chosen for the modelling and simulation environment for the example problem, since it is supported with enhanced numerical solver and physical properties database. Although through the process modelling exercises we have faced with a lot of consistent initialisation problems, index problem and interconnection problem. The index problem rises as internally states constraint problem or as the result of interconnection. Moreover the index problem is also caused due to wrong choice of the input variables. This is partially because SpeedUp [118] library models does not give any hints about the choice of input variables. Therefore based on the theoretical results of this thesis we hope that in the near future the

Page 184: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

172

conceptual object oriented modelling for interconnection matching of index-one sub-models and a better diagnosis environment for index problem will be available in the process modelling tools. In the following we will describe briefly about the ICGCC process, modelling approach and show some simulation results.

C.1. Process description of an Integrated Coal Gasification Combined Cycle Plant

Coal still gives major contribution as the raw material of the electrical production. This is caused by the large worldwide reserves, constant price and the suitability for the fuel of a large-scale electrical power generation plant (> 100 MW). An integrated coal gasification combined cycle (ICGCC) plant offers a better efficiency and low emissions compared with conventional coal combustion electrical power plant. In the early 1990’s several demonstration ICGCC plants were built worldwide. One such plant is at Buggenum, the Netherlands. This plant has been in operation since 1996 to produce electricity of 250 MW for the Netherlands electricity-net. Schematically the ICGCC Buggenum is shown in the figure C.1. This consists of the Shell coal gasifier reactor, the syngas cooler, the gas cleaning unit, the air separation plant, the heat recovery steam generator and the steam and gas turbines (Demkolec [30], P. Schoen [112]) The production of electricity begins when fine pulverised coal together with steam feed and oxygen feed from the air separation plant are burned and gasified in a reactor at about 1600 oC under a pressure of about 28 bar. The membrane pipes wall cooling is installed for keeping the reactor wall at temperature and the produced steam is integrated in the steam cycle. The produced gas from the gasifier is called the syngas, which mainly consists of 60 % CO, 25 % H2 and the remaining 15 % are N2, H2O, CO2, CH4, COS and H2S. This hot syngas in quenched with cold recycled gas at the top of the reactor to a temperature of about 900 oC. After leaving the gasifier, the product gas flows through the syngas cooler unit where further cooling occurs until a temperature of about 235 oC is achieved. The heat released in the syngas cooler is used to produce medium pressure steam, which is integrated with the steam cycle. The coal gasifier and syngas cooler plant is shown in the figure C.2. After the syngas cooler the product gas is cleaned in the gas cleaning unit (see figure C.3). The COS is converted to H2S in a catalytic converter unit and almost all H2S is removed in the H2S absorber unit. To lowered the adiabatic flame temperature of syngas combustion in the gas turbine, before the combustion the cleaned syngas is pre-mixed with dilute nitrogen (nitrogen gas product from air separation plant) and saturated with water in a saturator. The gas outlet from the saturator is used as the fuel of gas turbine to produce electricity. The heat of flue gas leaving the gas turbine is recovered in the heat recovery steam generator, which produces mainly high and medium pressure steam for the steam turbines. The saturator unit, heat recovery steam generator and the turbines are schematically shown on the figure C.4. A cryogenic air distillation plant produces the oxygen needed for the gasification of coal in the gasifier (see figure C.5). This plant mainly consists of an integrated condenser-reboiler double columns distillation unit. The high pressure section (bottom

Page 185: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

173

column) operates at about 7 – 10.5 bar and the low pressure section (upper column) operates at about 1.8 – 3 bar. The products of this plant are mainly oxygen feed for the gasifier (with purity about 95 %), dilute nitrogen for the saturator (with oxygen impurity of less then 1%). The air compressor of the gas turbine supplies the air feed needed for this air separation plant. P. Schoen has done the dynamic modelling and control study of the ICGCC plant described in section in ACSL [2]. The problem was encountered in ACSL programming is incapability to solve implicit interconnected DAE models. Therefore the ICGCC model is re-modelled in the SpeedUp [118]. The description of the ICGCC sub-models can be found in F.R. Habieb [56], A.Hermawan [57], T. Hermanu [58], H.J. de Lange [73]. The integrated model of the ICGCC consists of about 6500 differential algebraic equations with about 900 state variables. Moreover due to the confidentially of the real plant data, the models are made based on data on the open literatures.

Page 186: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

174

Figure C.2. A Schematic flowsheet of a Shell Coal gasifier and Syngas cooler unit (T. Hermanu [58], P.Schoen [112], Van der Burgt [23])

Oxygen (GOX)

FRC

FRC

FRC

PC

Coal

Steam

Water

Steam to Heat Recovery Steam generator

Dry Solid Removal Unit

Syngas to Gas Cleaning Unit

Recycle Booster Compressor

Page 187: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

175

Figure C.3. A Schematic flowsheet of Syngas cleaning plant (Demkolec [30], P. Schoen [112]) Figure C.4. A Schematic process flowsheet of the saturator unit and STEG unit (H.J. de Lange [73], P. Schoen [112])

Syngas to Saturator

Rich H2S absorbent

LC

Economiser

Evaporator

Superheater Reheater

Saturator

Feed

Steam from Syngas-cooler

P

HP Steam Turbine

MP/LP Steam Turbine Gas Turbine Air Compressor

Fuel heater

Water

To Condenser

Nitrogen (DGAN) from Air Separation Plant

Air

Syngas from Gas Cleaning unit

Compressed Air to Air Separation Plant

Water

Heat Recovery Steam Generator

Flue gas

Electric Generator

PC

PC

Syngas from Syngas-cooler

Water

Wet Cleaning Unit

COS →H2S Converter

Cooler

Steam

Slop water Slop water

Lean H2S absorbent

FlashTank

H2S Absorber

SC

Page 188: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

176

Figure C.5. A schematic process flowsheet of an air separation plant (J.M. Abrardo et.al [1], Demkolec [30], A. Hermawan [57])

C.2. Modeling strategy The goals of the dynamic modelling of the ICGCC are to make a model, which can be used for prediction of the steady state behaviour and dynamic interactions, and to study the control strategies. The outline of modelling strategy is given as follows:

1. Topological decomposition: The plant model topological decomposition is done in 4 levels:

a) Sub-plant level: the ICGCC is decomposed into 4 functional units compounds, namely: the syngas plant (see figure C.2), the gas

LC DPC

LC

FRC

PC

Air from Air Compressor

mol sieve

Main Heat Exchanger

Nitrogen (DGAN) to Saturator

HP column

LP column

Oxygen (GOX) to Gasifier

Pure Nitrogen (PGAN)

Subcooler

Subcooler

Reboiler Condenser

Page 189: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

177

cleaning plant (see figure C.3), the combined cycle plant (see figure C.4) and the air separation plant (see figure C.5)

b) Unit level: each sub-plant level is decomposed in several unit operations, e.g. the syngas plant consists of the gasifier unit, the syngas cooling unit, the dry solid removal unit and the recycle compressor.

c) Sub-unit level: each unit operation can be decomposed into several sub-units, e.g. the syngas cooler consists of economisers, boilers and superheaters.

d) Phase level: a phase ψ is defined as a non-decomposable or elementary model aggregate, since all intensive properties on this phase ψ are to be considered spatial uniformly. An example on the modelling of the syngas cooler, each heat exchanger wall is assumed to have one uniform temperature. Modelling of spatial uniform phase will result in a set of differential algebraic equations.

Through the sub-models decomposition, indirectly we have defined the system boundaries of each sub-model. 2. Set up of model connectors (or flowsheet set up) The following step on the modelling approach is to define the interaction variables through the sub models, by defining the model connectors. These model connectors can be grouped in several classes:

a) Material model connector, e.g. this includes the information of mass flow, pressure, temperature, mol fraction and specific enthalpy

b) Energy model connector, e.g. this includes the information of heat and temperature

c) Information model connector, e.g. this includes one variable connection for the controller.

Further in this step, we prepare which part of the sub models will interact through bilaterally coupling connectors or not. 3. Defining Overall Unit of Measurements The overall Unit of Measurements is decided before the set-up of the model equations in each sub-model, e.g. SI unit of measurements 4. Sub-model set-up The sub-model set-up is in principally composed of the following steps:

a) Choice of the interesting/important physical mechanisms described within the system (i.e. behavioural assumptions). In general this results to a set of DAE’s consists of the balance and constitutive equations (model equations entity).

b) Collecting interconnection variables on model ports

Page 190: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

178

c) Collecting and defining the type and range of model variables (model variables entity).

d) Collecting the model parameters (model parameters entity). e) Collecting the model initial values (model initial values entity) f) Defining the required model unit conversion factors if required.

5. Sub-model mathematical properties check The mathematical properties check of each sub-model, includes:

a) Equations independency check b) The structural consistent (re-) initialisation and index check c) Collecting sub-model input assignments d) Checking if the proposed bilaterally coupling for the sub model can be

achieved

6. Sub-model stand alone simulation test and evaluation The model behaviour and robustness must be tested and evaluated for the steady state and dynamic behaviour in its defined model applicability range. 7. Sub-models interconnection matching, testing and evaluation The sub-models interconnection matching, testing and evaluation are the last step on the strategy of modelling of interconnected sub-models. In the most cases this interconnection matching, testing and evaluation are done in several steps as ‘a growing’ interconnected sub-models.

C.3. Examples of the simulation results In the following we will show several model simulation results. The dynamic responses are the open-loop responses, namely when only the liquid hold-ups are controlled.

Page 191: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

179

The coal gasifier – steady state performance:

0.7 0.75 0.8 0.85 0.9 0.95 1 0

0.01

0.02

0.03

0.04

0.05

O2 (95% purity)/Coal mass flow

CO2 mole fraction

H2O/Coal percentage

11.9 % 9.5 % 7.1 % 4.8 % 2.4 %

0.7 0.75 0.8 0.85 0.9 0.95 1 0.22

0.24

0.26

0.28

0.3

0.32

0.34

O2 (95% purity)/Coal mass flow

H2 mole fraction

H2O/Coal percentage

2.4 % 4.8 %

7.1 % 9.5 %

11.9 %

0.7 0.75 0.8 0.85 0.9 0.95 1 0.58

0.6

0.62

0.64

0.66

0.68

O2 (95% purity)/Coal mass flow

CO mole fraction

H2O/Coal percentage

2.4 %

4.8 %

7.1 %

9.5 %

11.9 %

0.7 0.75 0.8 0.85 0.9 0.95 1 0

0.02

0.04

0.06

0.08

0.1

O2 (95% purity)/Coal mass flow

H2O mole fraction

H2O/Coal percentage

11.9 %

9.5 %

7.1 %

4.8 %

2.4 %

0.7 0.75 0.8 0.85 0.9 0.95 1 1.05

1.1

1.15

1.2

1.25

1.3

1.35

1.4 x 10 4

O2 (95 % purity)/Coal mass flow

Syngas Low Heating Value

H2O/Coal percentage

11.9 % 9.5 % 7.1 %

4.8 % 2.4 %

LHV [KJ/Kg]

0.7 0.75 0.8 0.85 0.9 0.95 1 440

450

460

470

480

490

500

510

520

O2 (95% purity)/Coal mass flow

LHV * Syngas mass flow [MW]

H2O/Coal percentage

11.9 %

9.5 %

7.1 %

4.8 %

2.4 %

Figure C.6. Some steady state sensitivity performance of the Coal Gasifier

Page 192: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

180

The air separation sensitivity performance:

Figure C.7. The air separation plant sensitivity performance The open loop step response on the oxygen mass flow to the gasifier The following figures C.8 show the effects of the oxygen mass flow step response on oxygen product purity of the air separation plant and the figure C.9 show the effects on the gasifier syngas compositions, temperature, pressure and gas turbine power.

Figure C.8. Step response on the oxygen mass flow to the gasifier

Page 193: Mathematical Analysis of Dynamic Process Models Index, inputs

181

Figure C.9. Open loop effects on the oxygen step response

Page 194: Mathematical Analysis of Dynamic Process Models Index, inputs

Appendix C : Modeling of an ICGCC Plant

182

Page 195: Mathematical Analysis of Dynamic Process Models Index, inputs

183

List of symbols and abbreviations t Time c Compelled internal variables of a DAE model u Input variables of a DAE model v Algebraic variables of a DAE model w Non state variables of a DAE model x State variables of a DAE model y Output variables of a DAE model z A DAE model variables z Differential variables of a DAE model

( ( ), ( ), ) 0F z t z t t = First Order Differential Algebraic Equations ( ( ), ( ), ( ), ) 0F z t z t u t t = First Order Differential Algebraic Equations

,F FE Az z

∂ ∂= =∂ ∂

Matrices of the first derivates of a DAE model

( )kkD f k-th derivates to the variable z of a subset of the DAE model

equations G A graph of a DAE model

( )V G A set of vertices of a graph ( )E G A set of edges of a graph

A Cardinality of the matrix A

MCM A maximum cardinality matching set

MPM A perfect matching set

MWM A maximum weighted matching set U Set of all low index input variables assignment sets U A set of low index input variables assignment

NU A set of necessary input variables of a DAE model

OU A set of optional input variables of a DAE model r.s.e restricted system equivalence operation s.s.e strict system equivalence operation BDF Backward Difference Formulae DAE Differential Algebraic Equations KCF Kronecker Canonical Form ODE Ordinary Differential Equations

Page 196: Mathematical Analysis of Dynamic Process Models Index, inputs

List of symbols and abbreviations

184

Page 197: Mathematical Analysis of Dynamic Process Models Index, inputs

185

Reference List 1. J.M. Abrardo et.al, Optimisation of cryogenic oxygen plants, Proceedings, XVII

International Congress of Refrigeration, Vol.A, pp. 214 – 219, 1987. 2. ACSL, 1995, Advanced Continuous Simulation Language (ACSL) reference

Manual, Version 11, MGA Software, USA. 3. Van de Akker, Transport phenomena, Lecture note, Department of Chemical

Engineering, Delft University of Technology, 1992. 4. M. Andersson, An object-oriented language for model representation. PhD thesis,

Lund Institute of Technology, 1990. 5. Aspen Dynamics 12.1, User Guide Manuals, Aspen Tech, 2003. 6. P.I. Barton, The modelling and simulation of combined discrete/continuous

processes, PhD thesis, Department of Chemical Engineering, Imperial College, London, 1992.

7. P.I. Barton, Lecture note: a professional institute course on dynamic modelling, Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 1996.

8. P.I. Barton, T. Park, Analysis and control of combined discrete/continuous systems: progress and challenges in the chemical processing industries. Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, USA, 1997.

9. G. Beysel, G. Sommerfeld, Die Luftzerlegung, eine bewehrte technologie, integriert in ein kohlevergasingskraftwerk, VGB Conference, Essen, 1991.

10. R. Bogusch, W. Marquardt, A formal representation of process model equations, Computers chem.Engng, Vol.21, No. 10, pp. 1105-1115,1997.

11. J. Bondy and U. Murthy, Graph theory with applications, Macmillan. London. 1977.

12. O. H. Bosgra, A.J.J. Van der Weiden, Input-output invariants for linear multivariable systems, IEEE Transactions on Automatic Control 25, pp. 20-36, 1980.

13. O. Bosgra, Lecture note : Dynamic process modelling, Department of Mechanical Engineering, Delft University of Technology, 1994.

14. O. Bosgra, J.Soetjahjo, Process modelling – structural analysis, Workshop Dynamische Processsimulation, CAPE – Netherlands, 3 April 1996.

15. P. Breedveld, Integrated modelling of physical system dynamics – the course: Modelling of mechanical and electromechanical systems of the AIO network on Systems and Control Theory, Utrecht, 1995.

16. P. Breedveld, Bond Graphs, Geoplex summer school, Bertinoro, July 2003. 17. K.E. Brenan, S.L. Campbell, and L.R. Petzold, Numerical solution of initial-value

problems in differential-algebraic equations, Elsevier Science Publishing Co., Inc.,1989.

18. Joel G. Broida and S. Gill Williamson, A Comprehensive Introduction to Linear Algebra, Addison-Wesley Publishing Company,Inc.,1989.

19. B.A. Brooks, Modelling of a distillation column using bond graphs, Department of Electrical and Computer Engineering, University of Arizona, 1993.

20. L. Brull, U. Pallaske, On Consistent initialisation of differential-algebraic equations with discontinuities, Proceedings of 4-th European Conference on

Page 198: Mathematical Analysis of Dynamic Process Models Index, inputs

References

186

Mathematics in Industry editors : Hj.Wacker and W.Zulehner, pp 213-217, Kluwer Academic Publisher, The Netherlands, 1991.

21. P. Bujaciewicz, Maximum weighted matching for high index Differential Algebraic Equations, PhD thesis, Delft. University of Technology, 1994.

22. A.ten Busschen, H.M.J. de Winter, Integrated Coal Gasification Combined Cycle Demonstration Project Buggenum – VGB Conference, Essen, 1991.

23. Van der Burgt, Ontwerp –en fabricage-aspecten van het Shell Kolen Vergassingsprocess (SCGP) – NPT Lezing – Arnhem, 26 April 1991.

24. S.L. Campbell, W. Marszalek, ODE/DAE integrators and MOL problems, ICIAM 95 Minisymposium on MOL, 19 june 1995.

25. F.E. Cellier, Continuous system modelling, Springer-Verlag, 1991. 26. CT. Chen, Linear system theory and design, Holt-Saunders International Edition,

Japan, 1984. 27. G. Chartrand and O.R.Oellermann, Applied and Algorithmic Graph Theory,

McGraw-Hill,Inc.,1993. 28. Ching-Tai Lin. Structural controllability. IEEE Transactions on Automatic

Control, AC-19(3):201-208, Jun 1974. 29. J.M. Coulson, J.F. Richardson, Chemical engineering - design, Vol.6, Pergamon

Press, 1983. 30. Demkolec, Synthesis of Talents – World’s largest coal gasification plant for

electricity generation, Demkolec B.V. Haelen, The Netherlands, 1993. 31. J. Demmel, B. Kagstrom, The generalised schur decomposition of an arbitrary

pencil A-8B : Robust software with error bounds and applications. Part 1 and Part 2., ACM Transactions on Mathematical Software, Vol.19, No. 2, pp. 160-201, June 1992.

32. Van Dooren, The computation of kronecker’s canonical form of singular pencil, Linear Algebra and Its Applications 27, pp.103-140, 1979.

33. M. Van Dooren, The generalised eigenstructure problem in linear system theory, IEEE Transactions on Automatic Control, Vol. AC-26, No.1, February 1981.

34. I.S. Duff. On Algorithm for obtaining a maximum transversal. ACM Transactions on Mathematical Software, 7(3):315-330, Sept, 1981.

35. D.M. Espie, et.al., The unique challenges of cryogenic distillation column control for integrated coal gasification combined cycle applications, 3rd IFAC Symposium on Dynamics and Control of Chemical Reactors, Distillation Columns and Batch Processes, College Park, Maryland, USA, 26-29 April 1992.

36. G.Fabian, D.A. van Beek, J.E. Rooda, Index Reduction and Discontinuity Handling using Substitute Equations, Mathematical and Computer Modelling of Dynamical Systems, vol.7, nr.2, pp..173-187, 2001.

37. W. F. Feehery, J. R. Banga, P.I. Barton, A novel approach to dynamic optimization of ODE and DAE systems as high-index problems, AICHE Annual Meeting, Miami, 1995.

38. W.F. Feehery, P.I. Barton, A differentiation-based approach to dynamic simulation and optimisation with high-index differential-algebraic equations, Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, USA, 1997.

39. G.F. Froment, Steam reforming analyzed, Hydrocarbon Processing, July 1992. 40. G.F. Froment and K.B. Bischoff, Chemical reactor analysis and Design, John

Wiley & Sons., 1999. 41. F.R. Gantmacher, The theory of matrices, Vol. 2, Chelsea Publishing Company,

New York, 1974.

Page 199: Mathematical Analysis of Dynamic Process Models Index, inputs

References

187

42. S.E. Gallun and C.D. Holland, Gear’s procedure for the simultaneous solution of differential and algebraic equations with application to unsteady state distillation problems, Computers Chem. Engng, Vol. 6, no. 3, pp. 231-244, 1982.

43. R. Gani, C.D. Ruiz, I.T. Cameron, A Generalised model for distillation column- I : model description and applications, Computers Chem. Engng, Vol. 10, no. 3, pp. 181-198, 1986.

44. C.W. Gear, L.R. Petzold, Ode methods for the solution of differential/algebraic systems, SIAM J. Numer. Anal. Vol. 21, No. 4, August 1984.

45. C.W. Gear, Differential-algebraic equation index transformations, SIAM J. Sci. Stat. Comput. Vol. 9, No. 1, January 1988.

46. C.W. Gear, Differential algebraic equations, indices, and integral algebraic equations, SIAM J. Numer. Anal, Vol. 27, No. 6, pp.1527-1534, December 1990.

47. L.F. Godbout, Jr., D. Jordan, On state equation descriptions of linear differential systems, Journal of Dynamic Systems, Measurement, and Control, pp. 333-344, December 1975.

48. Y.G.G.J. Go. The High Index Problem in Dynamic Modelling. Master Thesis. Mechanical Engineering. Delft University of Technology,1998.

49. G.H. Golub, C.F. van Loan. Matrix Computation. The Johns Hopkins University Press. London. 1996.

50. gPROMS Guide. Interway Solutions Ltd. May 1997. 51. M.W.M. Van Goethem, Modeling of reactors with large reaction systems, Master

Thesis. Department of Chemical Engineering and Material Science. Delft University of Technology, 1998.

52. S.R. de Groot and P. Mazur, Non-Equilibrium thermodynamics, North Holland Publishing Company, Amsterdam, 1962.

53. J. Grievink. Procesdynamica: onderdrukken of benutten, Workshop Dynamic Process Simulation, SIMUCAPE 2, Delft, The Netherlands, 3rd April 1996.

54. E. Hairer, C. Lubich, M. Roche, The numerical solution of differential-algebraic systems by runge-kutta methods, Lecture notes in mathematics 1409, Springer, Berlin, 1989.

55. E. Hairer, G. Wanner, Solving ordinary differential equations II. Stiff and differential-algebraic problems, Springer Verlag, Berlin, 1991.

56. F.R. Habieb, Dynamic modelling of a combined cycle thermal power plant, Master Thesis, Department of Mechanical Engineering, Delft University of Technology, 1995.

57. A. Hermawan, Dynamic modelling of a cryogenic air separation plant, Master Thesis, Department Chemical Engineering, Delft University of Technology, 1994.

58. T. Hermanu, Dynamic modelling and control of a syngas platform unit, Master Thesis, Department of Mechanical Engineering, Delft University of Technology, 1996.

59. M.A. Henson, D. E. Seborg, Non-linear Process Control, Prentice Hall, New Yersey, 1997.

60. Holland, Multicomponent distillation, Prentice-Hall International Series, New York, 1963.

61. Hysis 3.1, Dynamic Modelling, Hyprotech, Aspen Tech, 2002. 62. T. Kailath, Linear systems, Prentice-Hall.Inc, 1980. 63. H.Z. Kister, Distillation design, Mc-Graw Hill,Inc., New York, 1992.

Page 200: Mathematical Analysis of Dynamic Process Models Index, inputs

References

188

64. H.A. Kooijman and R. Taylor, A Nonequilibrium model for dynamic simulation of tray distillation columns, AiChe Journal, Vol. 41, no. 8, pp. 1852-1863, August 1995.

65. E.W. Koopman, R.W. Regenbogen, P.L. Zuideveld, Buggenum ICGCC Demonstration Plant 1993 – Experience with the Shell Coal Gasification Process, VGB Conference, Maastricht, 1993.

66. R. Krishna, Lecture notes: Separation processes, Department of Chemical Engineering, University of Amsterdam, 1991.

67. A. Kroner, W. Marquardt, E.D. Gilles, Computing consistent initial conditions for differential-algebraic equations, European Symposium on Computer Aided Process Engineering-1, S131-138, 1994.

68. A.Kroner, W. Marquardt, E.D. Gilles, Getting around consistent initialisation of DAE systems ?, Computers chem. Engng. Vol. 21, No. 2, pp. 145-158, 1997.

69. M. Kuyper, First-order representations of linear systems, PhD thesis, Catholic University of Tilburg, 1992.

70. P. Kunkel, V. Mehrmann, A new look at pencils of matrix valued functions, Linear Algebra and Its Applications 212/213, pp. 215-248, 1994.

71. Lawrence J. Corwin and Robert H. Szczarba. Multivariable Calculus. volume 64 of Pure and Applied Mathematics. Marcel Dekker, Inc., 270 Madison Avenue, New York. 1982.

72. P.Lancaster, M.Tismenestsky. The Theory of Matrices. Computer Science and Applied Mathematics. Academic Press,Inc.,1985.

73. H.J. de Lange, Implementation of a dynamic gas saturator model in modular modelling system, Master Thesis, Department of Mechanical Engineering, Delft University of Technology, 1992.

74. A. Lefkopoulos, M.A. Stadtherr, Index analysis of unsteady-state chemical process systems-I. An algorithm for problem formulation, Computers chem. Engng. Vol. 17, No. 4, pp. 399-413, 1992.

75. A. Lefkopoulos, M.A. Stadtherr, Index analysis of unsteady-state chemical process systems-II. Strategies for determining the overall flowsheet index, Computers chem. Engng. Vol. 17, No. 4, pp. 415-430, 1992.

76. B. Leimkuhler, L.R. Petzold, C.W. Gear, Approximation methods for the consistent initialization of differential-algebraic equations, SIAM J. Numer. Anal., Vol. 28, No.1, pp.205-226, February 1991.

77. F.L. Lewis, A tutorial on the geometric analysis of linear time-invariant implicit systems, Automatica vol. 28, No. 1, pp. 119-137, 1992.

78. M.J. Locket, S. Banik, Weeping for sieve trays, Ind. Eng. Chem. proc. Des. dev, 25, pp. 561-569, 1986.

79. M.J. Locket, Distillation tray fundamentals, Cambridge University Press, 1986. 80. D.G. Luenberger, Dynamic equations in descriptor form, IEEE Transactions on

Automatic Control, Vol. AC-22, No.3, pp. 312-321, June 1977. 81. D.G. Luenberger, Time-invariant descriptor systems, Automatica, Vol.14, pp.

473-480, 1978. 82. Luyben, Process modeling, simulation and control for chemical engineers, Mc-

Graw Hill, New York, 1990. 83. A.I. Lygeros, K.G. Magoulas, Column flooding and entraintment, Hydrocarbon

Processing, pp. 43-44, December 1986. 84. J.A. Mandler et.al, Dynamic modelling and control of cryogenic air separation

plants, IFAC Symposium on Dynamics and Control of Chemical Reactors, Distillation Columns and Batch Processes, Maastricht, The Netherlands, 1989.

Page 201: Mathematical Analysis of Dynamic Process Models Index, inputs

References

189

85. W. Marquardt, Towards a process modelling methodology, in Methods of model based process control, edited by R. Berber, Kluwer Academic Publisher, 1995.

86. S.E. Mattsson and G. Söderlind, Index reduction in differential-algebraic equations using dummy derivates, SIAM J. Sci. Comput.,14 (3):677-692, May 1993.

87. W. Marquardt, Numerical methods for the simulation of differential-algebraic process models, In : Methods of Model Based Process Control edited by R. Berber, pp. 41-79, 1995.

88. C. Majer, W. Marquardt, E.D. Gilles, Reinitialization of DAE’s after discontinuities, Computers chem. Engng, Vol. 19, Suppl., pp. S507-S512, 1995.

89. W. Marquardt, Trends in computer-aided process modelling, Computers. chem. Engng. Vol. 20, No. 6/7, pp. 591 – 609, 1996.

90. B. Maschke, A. van der Schaft, Interconnected Mechanical Systems – Part I & Part II, Modelling and Control of Mechanical Systems – editorial. A. Astolfi, Imperial College Press, London, 1997.

91. K. Mehlhorn, S. Naeher, and C. Uhrig. The LEDA User Manual. LEDA Software GmbH, 66123 Saarbruchen, Germany, 3.5.1.edition, 1997.

92. C.J. Nagel, et al, Modelling languages: declarative and imperative descriptions of chemical reactions and processing systems, Advances in Chemical Engineering, Vol. 21, Academic Press, 1995.

93. B.Nilsson, Object-oriented modelling of chemical processes, PhD thesis, Department of Automatic Control, Lund Institute of Technology, 1993.

94. O. Ogboja, A. Kuye, A procedure for the design and optimisation of sieve trays, Trans. IChemE, Vol. 68, Part. A., pp. 445-452, September 1990.

95. Olimans, Lecture notes: Multiphase flow and heat transport, Department of Mechanical Engineering, Delft University of Technology, 1997.

96. J. Olsen, G.O. Endrestol, T. Sira, A rigorous and efficient distillation column model for engineering and training simulators, Computers Chem. Engng., Vol. 21, Suppl, pp. S193-S198, 1997.

97. C.C. Pantelides, et al, The mathematical modelling of transient systems using differential-algebraic equations, Computers chem. Engng., Vol.12, No.5, p.449-454,1988.

98. C.C. Pantelides, The consistent initialization of differential-algebraic systems, SIAM J. Sci. Stat. Comput, Vol. 9, No. 2, March 1988.

99. C.C. Pantelides and P.I. Barton, Equation-oriented dynamic simulation current status and future perspectives, Proceedings of European Symposium on Computer Aided Process Engineering-2, 1992.

100. C.C. Pantelides, Lecture notes : Dynamic behaviour of process systems. Centre for Process Systems Engineering, Imperial College of Science, Technology and Medicine, London , 1996.

101. L.R. Petzold, Y. Ren, T. Maly, Regularization of high-index differential-algebraic equations with rank deficient constraints, SIAM J. Sci. Comput, Vol. 18, No. 3, preprint, May 1997.

102. A.A.G. Perez, Modeling of a Gas Turbine in Modelica, Master Thesis, Lund University, 2001.

103. J.W. Ponton, P.J. Gawthrop, Systematic construction of dynamic models for phase equilibrium processes, Computers Chem. Engng, Vol. 15, No. 12, pp. 803-808, 1991.

104. H.A. Preisig, Modelling of chemical physical processes, DISC Summer School on the Behavioural and Computer-Assisted Approaches to Modelling for Control, Groningen, The Netherlands, 9-12 June 1998.

Page 202: Mathematical Analysis of Dynamic Process Models Index, inputs

References

190

105. A.C. Pugh, On Composite systems that preserve the degrees of their subsystems, International Journal of Control, Vol. 21, No.3, pp. 465-473, 1975.

106. E. Ranzi, M. Rovaglio, T. Faravelli and G. Biardi, Role of energy balances in dynamic simulation of multicomponent distillation columns. Comput. chem. Engng. Vol. 12, No.8, pp. 783-786, 1988.

107. H.H. Rosenbrock, State-space and multivariable theory, Thomas Nelson and Sons Ltd.,1970.

108. H.H. Rosenbrock, Order, degree, and complexity, International Journal of Control, Vol. 19, No. 2, pp. 323-331, 1974.

109. Rosenbrock, A.C. Pugh, Contributions to hierarchical theory of systems, International Journal of Control, Vol. 19, No.5, pp. 845 – 867, 1974.

110. S.I. Sandler, Chemical and engineering thermodynamics, Wiley Series in Chemical Engineering, John Wiley & Sons, New York, 1989.

111. R. F. Sincovec, A.M. Erisman, E.L. Yip, M.A. Epton, Analysis of descriptor systems using numerical algorithms, IEEE Transactions on Automatic Control, Vol. AC-26, No.1, february 1981.

112. P. Schoen, Dynamic modelling and control of integrated coal gasifiaction combined cycle units, PhD Thesis, Delft University of Technology, 1993.

113. Simulink User’s Guide. A program for simulating dynamic systems, The Math Work Inc., 2000.

114. J. Soetjahjo, Sj. Dijkstra, Strategy on large scale processmodelling – case dynamic modelling of an air separation plant, Benelux – Systems and Control Meeting, March 1995.

115. J. Soetjahjo, O.H. Bosgra, J. Grievink, Modelling and control strategy of an Integrated Coal Gasification Combined Cycle Plant, 3rd Annuals Control Specialist Shell Meeting – Noorde-wijkerhout, 18 Juni 1996.

116. J. Soetjahjo, Sj. Dijkstra, Structural and numerical aspects of high index process models, Benelux – System and Control Meeting, 6 March 1997.

117. J. Soetjahjo, Y.G. Go, O.H. Bosgra, Diag – a structural diagnose tool for interconnection assignment in model building and re-use. Computers chem. Engng. Vol. 22, Suppl., pp. S933-S936, 1998.

118. SpeedUp User’s Manual. Aspen Technology, Cambridge, United Kingdom, 1994. 119. T. Take, et.al. Fuel substitution characteristics in phosphoric acid fuel cells, Fuel

Cell Seminar, November 29 – December 2, 1992, Tucson, Arizona, USA. 120. R. Taylor, R. Krishna, Multicomponent mass transfer, Wiley Series in Chemical

Engineering, 1993. 121. R. Taylor, H.A. Kooijman, J.S. Hung, A second generation nonequilibrium model

for computer simulation of multicomponent separation processes, Computers Chem. Engng., Vol. 18, No. 3, pp. 205-217, 1994.

122. J.A. Tap, Verification of stationary model of integrated coal gasification combined cycle plant, Master Thesis, Department of Chemical Engineering, Delft University of Technology, 1995.

123. J.Top, Conceptual modelling of physical systems, PhD thesis, Department Informatics, Twente University of Technology, The Netherlands, 1993.

124. F. Trankle, A. Gerstlauer, M. Zeitz, E.D. Giles, Application of modeling and simulation environment PROMOT/DIVA to the modeling of distillation processes, Computers Chem. Engng., Vol. 21, Suppl., pp. S841-S846, 1997.

125. J. Unger, W. Marquardt, Structural analysis of differential-algebraic equation systems, Computer-Oriented Process Engineering - edited by L. Puigjaner and A. Espuna, pp. 241-246, Elsevier Science Publishers, Amsterdam, 1991.

Page 203: Mathematical Analysis of Dynamic Process Models Index, inputs

References

191

126. J. Unger, A. Kröner, W. Marquardt, Structural analysis of differential-algebraic equations systems – theory and applications, Computers chem. Engng., Vol. 19, No. 8, p. 867-882, 1995.

127. G.C. Verghese, B.C. Lévy, and T. Kailath, A generalised state-space for singular systems, IEEE Transactions on Automatic Control, ac-26(4):811-831, August 1981.

128. A.J.J. Van der Weiden, The use of structural properties in linear multivariable control system design, PhD thesis, Department of Mechanical Engineering, Delft University of Technology, 1982.

129. J.H. Wilkinson, Linear differential equations and kronecker’s canonical form, In: Recent Advances in Numerical Analysis edited by C. de Boor and G.H. Golub, Academic Press, New York, 1978.

130. K.D. Wiegner, P.J.A. Tijm, F.A.M. Schrijvers, Clean power from the Shell Coal Gasification Process – VGB Conference – Coal Gasification, Essen, 1991.

131. J.C. Willems, Paradigms and puzzles in the theory of dynamical systems, IEEE Transactions on Automatic Control, 36 (3), March 1991

132. J.C. Willems, The behavioral approach to systems and control, Nieuw Archief voor Wiskunde – Vierde serie Deel 14 no.1, pp.145-158, Maart 1996.

133. P.M.E.J. Wijckmans, Conditioning of differential algebraic equations and numerical solution of multibody dynamics, PhD Thesis. Scientific Computing Group, Eindhoven University of Technology. 1996

134. W. M. Wonham, Linear Multivariable Control: A geometric Approach, Springer- Verlag, second edition, 1979.

135. Westerweele, M.R. Five Steps for Building Consistent Dynamic Process Models and their Implementation in the Computer Tool Modeller, PhD Thesis. Eindhoven Technical University 2003. The Netherlands

136. Zuiderweg, Lecture note : Separation methods, Department of Mechanical Engineering, Delft University of Technology, 1988.

Page 204: Mathematical Analysis of Dynamic Process Models Index, inputs

References

192

Page 205: Mathematical Analysis of Dynamic Process Models Index, inputs

vi

Samenvatting Proces modellering speelt een belangrijke rol in de proces engineering en de bedrijfsvoering van processen. Procesmodellen worden gebruikt voor het ontwerpen van procesapparatuur en procesregelingen, het voorspellen van procesgedragingen en de optimalisatie van producteigenschappen bij de bedrijfsvoering van processen. Gewoonlijk bestaat een procesmodel uit meerdere, onderling met elkaar verbonden, submodellen, namelijk uit een netwerk van submodellen, opgebouwd uit verschillende lagen, met op elke volgende laag een toenemende detaillering van de modelbeschrijving. Modellering van elk afzonderlijk subsysteem wordt gepresenteerd door een 1e orde niet lineair DAE (Differential Algebraic Equations). Een consequentie van proces modellering met een DAE model is de kans op een hoog index en/of een consistent (re-) initialisatie probleem. Een index van een DAE model kan eenvoudig worden samengevat als het aantal keren van differentiëren welke nodig zijn om het originele DAE model te transformeren naar een expliciet ODE model. Een hoge index ontstaat indien deze differentiatie meer dan een keer dient te worden uitgevoerd. Een hoog index probleem kan worden veroorzaakt door een verkeerde keuze van de ingangsvariabelen, interne afhankelijkheid tussen de toestandsvariabelen (bijvoorbeeld door evenwicht reactie vergelijking, of door een fasen evenwicht vergelijking) of door interconnectie van verschillende submodellen. Een consistent (re-) initialisatie probleem betekent dat het niet mogelijk is om een willekeurige waarde te geven voor de opslag/toestand variabelen. Een hoog index model en een laag index model met niet minimale differentiële variabelen geeft altijd een consistent (re-) initialisatie probleem. In principe vraagt de oplossing van een hoog index probleem om differentiatie in plaats van alleen maar integratie. Afgezien van het feit dat de meeste numerieke algoritmes niet beschikken over een differentiatie algoritme, is het niet praktisch om wederzijds verbonden hoog index modellen op te lossen omdat een hoog index DAE zich ook manifesteert als een consistent (re-) initialisatie probleem. Een modelbouwer kan te maken krijgen met onvoorspelbare gedragingen van het model op de gedefinieerde of gekozen opgeslag/toestand variabelen, namelijk deze opslag/toestand variabelen kunnen een ‘sprong’ maken in hun tijd respons. Wanneer men een grootschalig verbonden systemen modelleert dient men een hoog index DAE model te vermijden. Er is veel onderzoek gedaan naar het oplossen van een hoog index DAE model. Het verschil van het werk in deze thesis in vergelijking met dat van anderen is het feit dat het vaststellen van een hoog index probleem en index reductie technieken worden ontwikkeld vanuit de originele theorie van Kronecker en Rosenbrock [107], namelijk de strikte systeem equivalente operatie. Deze strikte systeem equivalente operatie voert de gewenste differentiatie met behoud van het ingang uitgang gedrag van het systeem. De theorie van Kronecker en Rosenbrock [107] is uitgebreid voor een 1e orde

Page 206: Mathematical Analysis of Dynamic Process Models Index, inputs

Samenvatting

vii

niet lineair DAE model door gebruik te maken van de structurele informatie van de vergelijkingen in plaats van de exacte numerieke variabelen. Deze thesis laat zien dat het voor een 1e orde DAE procesmodel mogelijk is een procedure te vinden (gebaseerd op een strikte systeem equivalent operatie) voor een hoog index reductie welke geen gebruik maakt van niet lineaire algebraïsche bewerkingen. Door toepassing van deze methodiek worden de originele modelvergelijkingen en variabelen niet aangetast. Bovendien is het mogelijk voor een gegeven DAE model vast te stellen welke input variabelen geen hoog index probleem veroorzaken ervan uitgaande dat er geen toestand begrenzende vergelijkingen aanwezig zijn. Deze toestand begrenzende vergelijkingen kunnen worden gedetecteerd door elke gekozen input variabelen, welke geeft een maximale aantal toestandsvariabelen van het model. Interconnectie van DAE sub modellen vraagt om informatie over mogelijke ingangsvariabelen van elk afzonderlijk submodel. Deze ingangsvariabelen zijn niet per definitie uniek. Interconnecties veroorzaken geen hoogindex probleem als er geen toestand begrenzende vergelijking ontstaat door deze verbinding, dit wil zeggen dat laag index modellen resulteren in laag index samengestelde modellen. Ondanks de voordelen van toepassing van deze methode (gebruik maken alleen van de structurele informatie), komt het in uitzonderlijke gevallen voor dat een exact analytische methode geen hoge index geeft, maar structurele methode wel. Een combinatie van een symbolische en gestructureerde benadering kan dit probleem oplossen en de theorie in deze thesis kan worden gebruikt bij dergelijke toepassingen. Verder is onderzoek noodzakelijk van de hoge index theorie voor gedistribueerde systemen PDAE (Partial Differential Algenbraic Equations) omdat een toestand begrenzingprobleem zich kan manifesteren in een tijdgebied of een ruimtelijk gebied of in een combinatie van beide.

Page 207: Mathematical Analysis of Dynamic Process Models Index, inputs

viii

Curriculum Vitae A.T.M. Judi Soetjahjo was born in Malang, Indonesia, 21 January 1964. He obtained his MSc. in Mechanical Engineering – Process Control and Dynamics at Delft Technical University, The Netherlands in 1992. It was here that he commenced his extensive research on dynamic process modelling until his departure in 1997. He is currently employed as a Senior (Principal) Engineer for an International Offshore Oil and Gas Engineering Company, GustoMSC Bv., based in The Netherlands. His most current assignment is as the Department Head of Electrical and Instrumentation at SBM (Single Buoy Mooring) Malaysia SDN.BHD, (Sister Company of GustoMSC Bv.)