scieee AI-readable full text Open interactive document viewer

Modelling, mathematical analysis, numerical solution and parameter identification in reaction systems

Esteban Rodríguez, Noemí

Abstract

This thesis is divided in three different parts in which an extensive study of reactors is done. It is complemented with three appendices describing some tools and results used . The first part is devoted to the description of the reactors we are interested in. We formulate the models of the main STR reactors. Then, we describe the general convection-diffusion-reaction model. Finally, the FBR model is also described. In second part an extensive study is done for the convection-diffusion-reaction model beginning with the mathematical analysis for the n-dimensional reactor and then numerical solution of the reactor models is designed. The last part deals with the identification of the best kinetic model from a list of proposed functional forms, and also of the values of its corresponding parameters by means of an optimization process. For this purpose, we use a combination of an incremental and an integral method.

Full text

TESIS DE DOCTORADO MODELLING, MATHEMATICAL ANALYSIS, NUMERICAL SOLUTION AND PARAMETER IDENTIFICATION IN REACTION SYSTEMS Noemí Esteban Rodríguez ESCUELA DE DOCTORADO INTERNACIONAL EN CIENCIAS Y TECNOLOGÍA DE LA USC PROGRAMA DE DOCTORADO EN MÉTODOS MATEMÁTICOS Y SIMULACIÓN NUMÉRICA EN INGENIERÍA Y CIENCIAS APLICADAS SANTIAGO DE COMPOSTELA AÑO 2019 DECLARACIÓN DEL AUTOR DE LA TESIS [Modelling, mathematical analysis, numerical solution and parameter identification in reaction systems] Dña. Noemí Esteban Rodríguez Presento mi tesis, siguiendo el procedimiento adecuado al Reglamento, y declaro que: 1) La tesis abarca los resultados de la elaboración de mi trabajo. 2) En su caso, en la tesis se hace referencia a las colaboraciones que tuvo este trabajo. 3) La tesis es la versión definitiva presentada para su defensa y coincide con la versión enviada en formato electrónico. 4) Confirmo que la tesis no incurre en ningún tipo de plagio de otros autores ni de trabajos presentados por mí para la obtención de otros títulos. En Santiago de Compostela, 21 de mayo de 2019 Fdo. Noemí Esteban Rodríguez AUTORIZACIÓN DEL DIRECTOR / TUTOR DE LA TESIS [Modelling, mathematical analysis, numerical solution and parameter identification in reaction systems.] D. Alfredo Bermúdez de Castro López-Varela Dña. Oana Teodora Chis INFORMA/N: Que la presente tesis, corresponde con el trabajo realizado por Dña. Noemí Esteban Rodríguez, bajo mi dirección, y a utorizo su presentación , considerando que reúne l os r equisitos exigidos en el R eglamento de Estudios de Doctorado de la USC, y que como director de ésta no incurre en las causas de abstención establecidas en Ley 40/2015. En Santiago de Compostela, 21 de mayo de 2019 Fdo. Alfredo Bermúdez de Castro López-Varela Fdo . Oana Teodora Chis A mis padres, Emilio y Rosa Agradecimientos En los siguientes p´arrafos me gustar´ıa agradecer a todas las personas que de una u otra forma me han ense˜nado, ayudado y apoyado a lo largo de estos a˜nos como doctorando. Todo lo que me han aportado a contribuido a la consecuci´on de esta tesis. Quisiera comenzar agradeci´endoles a mis directores de tesis, Alfredo Berm´udez de Castro L´opez-Varela y Oana Teodora Chis, su dedicaci´on en todo momento, su sabidur´ıa y su empat´ıa y cercan´ıa conmigo. Me hab´eis abierto las puertas al mundo de la investigaci´on. Me hab´eis transmitido la ilusi´on que se tiene al trabajar en lo que a uno le gusta. Vuestra experiencia y conocimientos me han sido de mucha ayuda. Ha resultado mucho m´as f´acil trabajar as´ı. Muchas gracias, Alfredo y Oana. En segundo lugar, me gustar´ıa agradecerle a Jos´e Francisco Rodr´ıguez Calo su gran compromiso y dedicaci´on con el proyecto de la UMI Repsol-ITMATI vinculado a esta tesis. Una parte de este proyecto se gest´o a partir de sus ideas. Tambi´en quiero dar las gracias a todo el equipo de ITMATI (Rub´en, Adriana, Ariana, etc.) y por supuesto a todos mis compa˜neros (Marta, Pedro, Diego, Manuel, Gabriel, Irene, Jorge, Alex, Joaqu´ın, ´ Oscar, Fito, etc.) con los que he pasado muchos momentos en los que nos hemos re´ıdo, y disfrutado de un mont´on de comidas (gran parte de la gastronom´ıa gallega la he disfrutado a vuestro lado), viajes, etc. Me gustar´ıa hacer extensible este agradecimiento a todos los miembros del Departamento de Matem´atica Aplicada de la Universidad de Santiago de Compostela. Ha sido un privilegio poder compartir con vosotros esta experiencia. Especialmente a Rafael Mu˜noz por su inestimable ayuda y los valiosos conocimientos aportados. Tambi´en a Jos´e Luis y Jer´onimo que han formado parte en algunos momentos de este proyecto. Sin olvidar a mis compa˜neros de despacho en mi primera etapa en el departamento (Cris, Jorge, ´ Angel, Nizom, Javi, etc.) Gracias a Ricardo, apareciste en mitad de este proyecto y has sabido comprenderme y apoyarme en los momentos que lo he necesitado, contribuyendo a que no tirase la toalla. i 2Preface 2. Semi-batch Batch (Semi-batch STR): some of the reactants are introduced in the reactor at the initial time; some others are continuously introduced along the process. 3. Continuous (flow) stirred tank reactor (CSTR): reactants are continuously introduced along the time. There is also an output flow along the process. 4. Plug flow reactors (PFR): the plug flow is a tubular reactor in which the so called plug flow assumption is considered. That is, the velocity is constant on any cross-section of the pipe. 5. Fixed bed reactors (FBR): the fixed bed reactor is a single cylindrical shell with convex heads with a packed bed of catalytic particles of uniform size, which are immobilized or fixed within the tube. Number of phases: Reactors can also be classified by the number of phases present in the reactor at any time. They are called homogeneous and heterogeneous reactors. The first ones represent the reactors with only one phase (STRs are homogeneous reactors). The second ones contain more than one phase. Several heterogeneous reactor types are available due to various combinations of phases (like PFRs or FBRs). Reaction types: This classification is made considering different type of reactions. Some of the most important are: 1. Catalytic: reactions that require the presence of a catalyst to obtain the necessary rate conditions. An example of these reactors is the FBR. 2. Noncatalytic: reactions that do not include either a homogeneous or heterogeneous catalyst. They are the opposite to the previous ones. 3. Autocatalytic: in this reaction scheme one of the products increases the rate of reactions. 4. Biological: reactions that involve living cells (enzymes, bacteria, etc.). 5. Polymerization: reactions that involve formation of molecular polymer chains. Finally, depending on the final destination in industry we consider a classification in concordance with two different motivations: 1. Industrial reactors: simulation of its operation with the ultimate aim of optimizing it economically by modifying the operating conditions (initial conditions, temperature, ...). Preface 3 2. Laboratory reactors/pilot plant: optimization of the reactor design: optimal geometric and optimal operating conditions for a future reactor. The goal of the design is to determine the reactor features such as pipe, valves or mixers. For example, the reactor must have sufficient volume to allow the reaction reach a level of conversion or allow the heat exchange necessary. Reactor design requires first to establish the type and size of the reactor and then the operation type according to the chemical process, as explained in [24]. Important considerations are related to the chemical reactions and, in any of the described reactors, reaction velocity expressions (kinetics) must be known. The reaction rate involves a mathematical expression. In order to predict the size of the reactor needed to obtain both the desired conversion of reactants and a fixed output of the product, it is required information on the composition and temperature changes, as well as reaction rate, obtained from the mole and energy balance equations. Assuming available experimental data and known stoichiometry (the reactions), we must search for an identification methodology for determining the best kinetic model. There are several techniques available in the literature, such as differential, integral and incremental methods [12]. The differential method compares the right-hand side of the model with the derivatives of the data. The incremental method works with the “extent” concept, which provides an analytic solution of a new decoupled system. The integral method solves numerically the model and compares it with the data. In any case, an optimization problem is constructed, depending on the kinetic parameters. Furthermore, if better results are desired, a combination of these methods is recommended. In a theoretical framework, the mathematical analysis of the models mentioned above has driven out curiosity in the spirit of scientific inquiry. Particularly, the general convection-diffusion-reaction equations have enjoyed a considerable amount of scientific interest. They can be studied from different approaches using a variety of different methods from many areas of mathematics. Some of those studies are based on bifurcation and stability or semigroup theory, or variational approach. After the theoretical analysis a natural question is related to the numerical solution of the model. It can be based on finite difference schemes, in most of the cases, and in a few others on finite elements method. This thesis is divided in three different parts in which an extensive study of reactors is done, from theoretical and practical point of view. It is complemented with three appendices describing some tools and results used throughout the thesis in order to get a self-contained work. In the following we describe 4Preface briefly the contents of each part. I Modelling chemical reactors The first part is devoted to the description of the reactors we are interested in. At first, we recall basic concepts about chemical species and reactions. We also introduce the functional form of reaction velocities recalling the most important ones from the literature ([46], [34] and [31]). They play an important role in Part III. Next, we formulate the models of the main STR reactors (batch, semi-batch and CSTR), with mole and energy balance equations, both in transient and steady state, and assuming constant density. These models are extensively used in industry, specifically in kinetic identification [17]. Then, we describe the general convection-diffusion-reaction model that will be applied in the analysis of a particular reactor of this type, namely PFR. The existence and uniqueness of solution is studied and the behaviour of the error is analyzed when numerical methods are employed. Finally, we obtain the FBR model, describing the boundary conditions and distinguish between two cases, resistance and not resistance. This reactor is the most complex of those considered in this work. In fact, its mathematical analysis is beyond the scope of this thesis. II Mathematical analysis and numerical solution In this part an extensive study is done for the convection-diffusion-reaction model beginning with the mathematical analysis for the n−dimensional reactor and then numerical solution of the reactor models is designed. The proof of local existence and uniqueness of solution is based on the semigroup theory. The global existence is proved via L∞estimates exploding two properties (called (P) and (M)) described in Chapter 4. In Chapter 5 an error estimation is obtained following the techniques from [63]. A priori we have proved the existence of solution of the semi-discretized problem, using the Picard-Lindel¨of theorem. For the numerical solution we use a finite difference scheme for the PFR model and a finite element method for the FBR model. III Identification in reaction systems This last part is related to model identification. More precisely, it deals with the identification of the best kinetic model from a list of proposed functional forms, and also of the values of its corresponding parameters by means of an optimization process. In order to solve the problem, we use a combination of an incremental and an integral method. The idea of the first one is to decompose the identification task into a set of subproblems, one for each kinetic model. Meanwhile, the second one is based on a direct comparison of species measurements and computed concentrations Preface 5 via the theoretical model. Due to this, the second method is obviously more expensive and works better with the parameters obtained from the incremental method. Such identification processes are usually studied in systems where the phenomena of interest can be observed in isolation, without other physical phenomena. This is the case for the identification of reaction kinetics in liquid phase, where a stirred batch or semi-batch reactor is used in the majority of cases, as explained in [17]. For this reason, we focus on stirred tank reactors, using a set of experimental data and the reactions taking place. A catalogue of kinetic models containing the parameters to be identified will be provided too. Appendices Appendix A summarizes the general equations of continuum thermomechanics for reacting mixtures. Appendix B describes some basic definitions and theorems of semigroup theory needed in the proof of local existence theorem. Appendix C describes some useful bounds for the error estimates. Appendix D contains a summary of this dissertation in Spanish. 6Preface Part I Modelling chemical reactors 7 Introduction Chemical reactors are widely used by chemical engineers in industry to transform raw materials into final products. The main purposes are related to maximizing benefits, which is equivalent to “design” an optimal reactor, and thus minimizing the production costs. Hence, adequate modelling and correct analysis are essentials. Together with chemical kinetics they are the scientific basis for the analysis of most engineering procedures, occurring in nature or related to synthetic processes. An important part in reactor modelling is the reaction rate that represents the measure of the variation in concentration of the reactants or the variation in concentration of the products per unit time. Reaction rate can be a priori understood, independently of the reactor shape and length. The overall chemical process also depends on the reactor size. Many processes have been traditionally modelled as ideal reactors: stirred tank or plug flow reactors. This type of modelling is mainly based on the reactor features and phenomena such as heat or mass transfer. In the first chapters we formulate the mathematical modelling of stirred tank reactors (STR) and plug flow reactors (PFR). We consider both the transient and the steady-state cases. Reactors are not supposed to be either adiabatic or isotherm, so temperature as well as species concentrations have to be computed by the models that are obtained from the energy and mass conservation equations, respectively. Firstly, we consider lumped parameter models (or zero-dimensional models), where the thermo-mechanical magnitudes do not depend on the particular position in the reactor. They correspond to the so-called stirred tank reactors. We write mathematical models for batch and semi-batch STR and also for continuous STR. Then we describe plug-flow reactors (PFR). In this case, the thermo-mechanical magnitudes depend on a spatial variable (as well as on time). Hence, the mathematical models are described by partial differential equations involving derivatives with respect to spatial variable and time. The mathematical model for a reaction-diffusion system was initially derived from the work of Alan Turing in 1952 [65] and it was used for the first time in 9 10 Introduction chemistry. However, it can also describe dynamical processes of non-chemical nature. Some fields of application are biology, geology, physics, epidemiology, oncology or environmental engineering processes, among others. From a qualitative point of view, a reaction-diffusion system is a mathematical model describing how the concentration of one or more substances varies over time and space under the influence of two terms: the reaction term, in which concentrations are generated or degenerated by interaction, and diffusion that generates substances expansion in space. The idea of Chapter 2 in this modelling part is to consider the model described in Chapter 1 as a general n−dimensional model which can be particularized to recover the PFR model. The mathematical model is a coupled system of partial differential equations involving gradient and laplacian with respect to spatial variables and partial time derivative. Finally, the most sophisticated reactors we consider are the fixed bed reactors (FBR). As explained in [57], the first commercial application of these reactors dates from 1831 when a vinegar maker developed a process for making sulfur trioxide using air and sulfur dioxide in bed of platinum sponge previously heated. After that, he patented it. Since the catalyst was not consumed, the continuous flow of reactants was passed over the bed, without the need of recycling the catalyst. Nowadays, the typical application is related to the design and development of a catalyst that improves the conversion of an intermediate product to the final product. These reactors are understood in this thesis as heterogeneous reaction systems in which plug-flow is assumed. The model is based on the conservation laws for mass, energy and momentum and lead to partial differential equations. We consider a multi-scale model. The bed is modelled as a continuum of small particles (solids) containing the catalyst and interacting with the fluid. This particles are consider of spherical shape and hence spherical symmetry is assumed. The fluid bulk is modelled as a fluid flowing in a porous media. We have be to careful with the coupling between the models. Chapter 1 Modelling stirred tank reactors The study of reactors is initially performed by means of ideal models. Stirred tank reactors are a good example of these kind of reactors, as a perfectly mixed volume is considered and the behaviour of the reacting system is not influenced by the fluid dynamic conditions. In this chapter we introduce models for both transient and steady-state stirred tank reactors (STR). We focus on the three following stirred tank reactors types: •Batch STR: reactants are introduced into the reactor at initial time only. There are no input/output flows along the process. •Semi-batch STR: some of the reactants are introduced in the reactor at the initial time; some others are continuously introduced along the process. •Continuous (flow) stirred tank reactor (CSTR): reactants are continuously introduced along the time. There is also an output flow along the process. The main assumption in these reactors is that the mixture inside is perfectly homogeneous because of stirring, so the physico-chemical magnitudes do not depend on position. 11 18 CHAPTER 1. MODELLING STIRRED TANK REACTORS Aˆ δ(θ, y) = 0, ∆ˆ H(θ)·ˆ δ(θ, y)−g V(θext −θ) = 0. We notice that the fact that the above systems have the same number of equations as unknowns does not imply that they have a unique solution. 1.3 Modelling Semi-Batch and Continuous Stirred Tank Reactors Continuous stirred tank reactors, also called ideal stirred tank reactors or CSTR are, maybe, the most used reactors in chemical industry. In most cases they operate at steady state and are considered as homogeneous reactors due to their well mixing properties. These reactors have also vessel form, but there exist a continuous input flow and, in the case of CSTR, there is also a continuous output flow. For the sake of completeness, let us assume that the input flow is obtained by mixing several streams, each of them characterized by the following magnitudes that can be function of time: •Flow rate (m3/s) •Composition (in terms of concentrations, mol/m3) •Temperature (K) Usually, for semi-batch STR there are only input streams, so the volume of the mixture must change along the time. In the case of CSTR there is also an output stream, so this volume could be constant. Let Pbe the number of input streams. The above magnitudes are denoted by u1(t),··· , uP(t) (m3/s), W1(t),··· ,WP(t)∈RN(mol/m3), θ1(t),··· , θP(t) (K). Regarding the outflow, we assume there is only one stream. Its composition and temperature at time tare those of the mixture in the reactor at that time. We are interested in considering the case where the output flow rate can be different from the sum of the input flow rates. Therefore, the volume of the 1.3. MODELLING SEMI-BATCH AND CSTR 19 mixture in the reactor may change along time. In fact, the volume can also change due to changes in composition and/or temperature as in batch STR. Let us show the images of both semi-batch and CSTR in order to illustrate the above description: y(t) W(t)u(t)θ(t) V(t) y0 Figure 1.2: Semi-batch STR y(t) W(t)u(t) P  p=1 up(t)θ(t) V(t) y0 Figure 1.3: CSTR 1.3.1 The transient semi-batch and CSTR model Firstly, the mass conservation equation (1.6) has to be replaced by d(Vy) dt =V Aˆ δ(t, θ, y) + Wu−yuout,(1.14) where W(t) denotes the matrix whose columns are the vectors W1(t),··· , WP(t). We notice that the output flow rate uout is null for semi-batch STR. 20 CHAPTER 1. MODELLING STIRRED TANK REACTORS Let us also notice that W(t)u(t)iis the number of moles per second of species ientering the reactor at time t, so it is a molar flow rate. Since the density may change, we cannot assume that uout = P X p=1 up. The equation for temperature (1.12) also needs to be modified in order to account for the convective energy flows. Firstly, the total convective internal energy flow (W) entering the reactor through the Pinput streams is given by P X p=1 ρpepup= P X p=1 ρpN X i=1 Yp iˆei(θp)up= P X p=1 N X i=1 MiWp iˆei(θp)up, because ρpYp i=MiWp i. Similarly, the convective energy flow exiting the reactor (W) is given by ρeuout =uout N X i=1 Miyiˆei(θ). Secondly, (1.9) has to be modified as follows: d(V ρe) dt = N X i=1 Mid(V yi) dt ei+V yi dei dt  =V N X i=1 MieiAˆ δ(θ, y) + 1 VWu−1 Vyuouti+yiˆci(θ)dθ dt , (1.15) where ei= ˆei(θ). Thirdly, equation (1.8) has to be replaced by d(V ρe) dt =g(θext −θ)+ P X p=1 N X i=1 MiWp iˆei(θp)up−uout N X i=1 Miyiˆei(θ).(1.16) By subtracting (1.15) from (1.16) and then dividing by V, we get the equation replacing (1.11): ρcdθ dt =−∆ˆ H(θ)·ˆ δ(θ, y) + g V(θext −θ) + 1 V P X p=1 N X i=1 MiWp iˆei(θp)−ˆei(θ)up. Dividing by ρc we finally get dθ dt =− ∆ˆ H(θ)·ˆ δ(θ, y)−g V(θext −θ)−1 VPP p=1 PN i=1 MiWp iˆei(θp)−ˆei(θ)up w0(θ)·y. 1.3. MODELLING SEMI-BATCH AND CSTR 21 Let us notice that if there is no change of state then ˆei(θp)−ˆei(θ) = Zθp θ cvi(s)ds. Now, let us assume that the density of the reacting mixture does not depend either on the composition or on the temperature. Then the volume only changes due to input and output flows and the equations giving the volume are the following: dV dt (t) = P X p=1 up(t)−uout(t),(1.17) V(0) = V0.(1.18) In this case we have d(Vy) dt =Vdy dt +dV dt y=Vdy dt +yP X p=1 up(t)−uout(t) and since we use equations (1.17) for the volume, we can write the model in terms of yas follows: dV dt = P X p=1 up−uout, dy dt =Aˆ δ(θ, y) + 1 VWu−1 Vy P X p=1 up, dθ dt =− ∆ˆ H(θ)·ˆ δ(θ, y)−g V(θext −θ)−1 V P X p=1 N X i=1 MiWp iˆei(θp)−ˆei(θ)up w0(θ)·y, V(0) = V0, y(0) = y0, θ(0) = θ0. 22 CHAPTER 1. MODELLING STIRRED TANK REACTORS 1.3.2 Steady-state CSTR model Let us assume that the outside temperature and the input flows are time independent. Then the CSTR may attain a steady-state. Assuming also that the mixture density is independent of composition and temperature, then the volume of the mixture is constant and equal to the initial one which is supposed to be given. Then the model is the following non-linear system of numerical equations: Aˆ δ(θ, y) + 1 V(Wu−uouty) = 0, ∆ˆ H(θ)·ˆ δ(θ, y)−g V(θext −θ)−1 V P X p=1 N X i=1 MiWp iˆei(θp)−ˆei(θ)up= 0. Remark 1.3.1. Let us notice that the energy equation has the same form for the constant and variable density cases. Moreover, by using (1.16) it can also be written as g(θext −θ) + P X p=1 N X i=1 MiWp iˆei(θp)up−uout N X i=1 Miyiˆei(θ)=0. Chapter 2 Modelling n−dimensional convection-diffusion- reaction systems Mathematical models for heat and mass transfer in this type of reactors are usually called in the literature convection-reaction-diffusion systems. In this sense, the term convection-reaction-diffusion systems refers to models which produce locally transformations of chemical species by chemical reactions and at the same time are transported in the reactor by convection and diffusion. They appear obviously in chemical engineering, but they have been used in the study of different phenomena in biology, geology or physics. We study this type of reactors in a general mathematical framework. In the next chapters we will first prove a theorem of existence of solution and then we will address the numerical analysis by using finite element methods which will include error estimates. 2.1 Modelling the convection-diffusion-reaction system Let us consider Ω an open bounded set in Rnwith smooth boundary ∂Ω, as represented in Figure 2.1, and let νbe the outward unit normal vector to ∂Ω. Moreover, let Γ1denote the reactor inlet boundary, Γ2the reactor outlet and Γ3the reactor wall. 23 24 CHAPTER 2. CONVECTION-DIFFUSION-REACTION MODEL Ω 󰶐1 󰶐2 󰶐3 Figure 2.1: n−dimensional domain with bounds Let y(t, x) (mol/m3) be the vector of species concentrations involved in the reactions, where (t, x)∈(0, T)×Ω. Then, the mass balance of species leads to the following system of partial differential equations (see (A.1)): ∂y ∂t +∇yv −D∆y=ϕ,(2.1) where •v(m/s) is the (given) velocity. We consider the case of an incompressible fluid and hence div v= 0 . We also assume that vis time independent. •D(m2/s) is the diagonal matrix of the diffusion coefficients of species which are assumed constant and strictly positive. •ϕ(t, x, y, θ) (mol/(m3s)) denotes the source term also called reaction term. More precisely, it represents the vector of reaction rates described in Section 1.1.2 and corresponding to the law of mass action, multiplied to the left by the stoichiometric matrix A. Similarly, the general energy conservation equation for the fluid bulk can be written as follows (see (A.4)): ∂(ρe) ∂t + div(ρev) + divq= 0,(2.2) where •ρ(kg/m3) is density of the mixture, •e(J/kg) is the specific internal energy of the bulk fluid, 2.1. THE CONVECTION-DIFFUSION-REACTION MODEL 25 •q(W/(m2) is the heat flux vector given by Fourier’s law q=−kgrad θ, •k(W/(mK)) is the effective coefficient of thermal conductivity. Let us recall that e= N X i=1 Yiei, where Yidenotes the mass fraction of species Eiwhich is related to its concentration by ρYi=Miyi and the specific internal energy of species Eidepends on temperature: ei= ˆei(θ). Hence, ρe = N X i=1 ρYiei= N X i=1 Miyiei and then ∂(ρe) ∂t = N X i=1 Mi ei ∂yi ∂t +yi ∂ei ∂t !.(2.3) Similarly, div(ρev) = ρedivv+v·∇(ρe) = v·∇(ρe) = N X i=1 Mi(ei∇yi·v+yi∇ei·v). (2.4) By adding (2.3) and (2.4) we obtain ∂(ρe) ∂t +∇(ρe)·v = N X i=1 Miei∂yi ∂t +∇yi·v+ N X i=1 Miyi∂ei ∂t +∇ei·v = N X i=1 ˆwi(θ)∂yi ∂t +∇yi·v+ N X i=1 Miyiˆcvi(θ)∂θ ∂t +∇θ·v, (2.5) where ˆcvi(θ) is the specific heat at constant volume of the i-th species and ˆwi(θ) is defined in (2.22). Let us recall that the specific heat at constant volume of the mixture is defined by ˆcv(θ) = N X i=1 Yiˆcvi(θ) 26 CHAPTER 2. CONVECTION-DIFFUSION-REACTION MODEL and hence, N X i=1 Miyiˆcvi(θ) = ρ N X i=1 Yiˆcvi(θ) = ρˆcv(θ). By using (2.1) and the previous equality we get ∂(ρe) ∂t +∇(ρe)·v=ˆ w(θ)·[D∆y+ϕ] + ρˆcv(θ)∂θ ∂t +∇θ·v.(2.6) The mass diffusion term in the previous equation can be neglected against the source terms ϕ. Thus, the energy equation (2.2) can be finally written as ρˆcv(θ)∂θ ∂t +∇θ·v−k∆θ=−ˆ w(θ)·ϕ.(2.7) 2.1.1 Boundary conditions The boundary conditions are imposed on the boundary of the reactor. •Reactor entrance (Γ1). 1. Mass: D∂y ∂ν(t, x)−(v(x)·ν(x))y(t, x) = g(t, x),(t, x)∈(0, T)×Γ1,(2.8) where g(mol/(m2s) is an enough smooth function, representing the molar flux os species entering the reactor at time tand position x. 2. Energy: θ(t, x) = θin(t),(t, x)∈(0, T)×Γ1.(2.9) •Reactor exit (Γ2). 1. Mass: D∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×Γ2.(2.10) 2. Energy: k∂θ ∂ν(t, x)=0,(t, x)∈(0, T)×Γ2.(2.11) •Reactor walls (Γ3). 1. Mass: D∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×Γ3.(2.12) 2.1. THE CONVECTION-DIFFUSION-REACTION MODEL 27 2. Energy: k∂θ ∂ν(t, x) = hextθext(t)−θ(t, x),(t, x)∈(0, T)×Γ3,(2.13) where hext (W/(m2K)) is a heat transfer coefficient between the reactants and the exterior of the reactor and θext denotes the temperature of the latter. 2.1.2 Initial conditions 1. Mass: y(0, x) = y0(x).(2.14) 2. Energy: θ(0, x) = θ0(x).(2.15) 2.1.3 The full n-dimensional model Finally, the full model for a n−dimensional convection-diffusion-reaction system can be writen as: ∂y ∂t +∇yv −D∆y=ϕ, ρˆcv(θ)∂θ ∂t +∇θ·v−k∆θ=−ˆ w(θ)·ϕ, D∂y ∂ν(t, x)−(v(x)·ν(x))y(t, x) = g(t, x),(t, x)∈(0, T)×Γ1, θ(t, x) = θin(t),(t, x)∈(0, T)×Γ1, D∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×Γ2, k∂θ ∂ν(t, x) = 0,(t, x)∈(0, T)×Γ2, D∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×Γ3, k∂θ ∂ν(t, x) = hextθext(t)−θ(t, x),(t, x)∈(0, T)×Γ3, y(0, x) = y0(x), θ(0, x) = θ0(x). 34 CHAPTER 2. CONVECTION-DIFFUSION-REACTION MODEL Chapter 3 Modelling catalytic fixed bed reactors (FBR) In this chapter we derive the model for fixed bed reactors, also called packed bed reactors (PBR) or packed bed catalytic reactors. We focus the study in the continuum models which are frequently used in important industrial processes. Some of them are the ethylene oxidation and the oxidation of methanol to formaldehyde. Despite of the existence of newer type of reactors such as fluidized bed reactors, the packed bed reactors are extensively used for both large scale processing in petroleum and basic chemical industry. In fact, in industry a bundle of tubes filled with catalyst is considered, usually arranged within a large reactor shell. In these terms, it is assumed that the temperature in the tube remains constant and that the conditions are equal in each tube (there is a fluid around the tubes to keep an adequate temperature). But this does not happen in practice, where the reactions may have a significant effect on the reactor. In our framework, the term “packed bed reactor” is related to a single cylindrical shell with convex heads with a packed bed of catalytic particles of uniform size, which are immobilized or fixed within the tube. A fluid mixture of reactants is introduced at the reactor entrance which moves along the reactor and interacts with the catalytic active particles; the reactions usually produce heat exchanges. If it is necessary, the temperature is regulated through the wall of the tube. We consider FBRs as heterogeneous reactors. Plug-flow is assumed, i.e., v=vez, where zis the axial direction. The model for these reactors is based on the conservation laws for mass, energy and momentum, and leads to partial differential equations. Due to the complexity of the system, the description of packed bed reactors must be sim- 35 36 CHAPTER 3. MODELLING CATALYTIC FIXED BED REACTORS plified. For this reason, there are different valid packed bed reactor models. In fact, each problem should be analyzed to do the adequate simplifying assumptions. In some cases, the reactor can be considered as pseudo-homogeneous. If the differences between the fluid and solid phases are significant, heterogeneous models have to be considered. Moreover, sometimes intra-particle resistance should be taken into account. We consider a multi-scale model. The bed is modelled at the micro-scale level as a continuum of small particles of solid material containing the catalyst and interacting with the fluid. In what follows we will assume these particles spherical, but other geometries as cylinder or slab can be considered by straightforward modifications in the model. The fluid bulk is modelled at the macro-scale level as a fluid flowing in a porous media. For the macro-scale model, the effect of the micro-scale is represented by source terms both in the species concentration equations and in the energy equation. In its turn, the micro-scale model is coupled to the macro-scale magnitudes through boundary conditions. In what follows, we denote with superscript fthe magnitudes for the macroscale and by superscript sthose for the micro-scale. We assume that all fields have cylindrical symmetry in the macro-scale. Thus, we write the equations in cylindrical coordinates in order to exploit this fact by reducing the spatial dimension. We denote by rthe radial coordinate and by zthe axial one. We also assume that inside the spherical particles all fields have spherical symmetry, i.e., their spatial dependence is only through the radial variable which will be denoted by rs. Summarizing, we propose below a heterogeneous model which assumes that the chemical reactions take place both in the fluid bulk and inside the particles at the micro-scale level. In order to visualize the above description of the reactor we show a diagram in Figure 3.1. yf θf ys θs yf in θf in Catalytic bed Input Output Figure 3.1: Fixed bed reactor 3.1. MODELLING THE MACRO-SCALE (FLUID BULK) 37 3.1 Modelling the macro-scale (fluid bulk) We assume cylindrical symmetry in the macro-scale. Then, the following domain is considered: Figure 3.2: Macro-scale domain Let us denote by εf(r, z, t) the bed porosity at point (r, z) in the reactor and at time t, i.e., the volume occupied by the fluid per unit reactor volume. If the field of concentrations in the fluid is yf(r, z, t) (mol/m3), then the concentrations with respect to the total volume of the reactor will be εf(r, z, t)yf(r, z, t) (mol/m3) and the mass conservation equations of species become (see (A.1)), ∂ ∂t(εfyf) + ∂ ∂z (εfyfv)−1 r ∂ ∂r Df rr∂ ∂r (εfyf)−∂ ∂z Df z ∂ ∂z (εfyf) =Afδf(θf,yf) + g, (3.1) where •v(m/s) is the (given) axial velocity. We consider the case of an incompressible fluid so, divv=∂v ∂z = 0 and hence vcannot depend on z: v=v(r, t)). •Df rand Df z(m2/s) are diagonal matrices containing the diffusion coefficients of species (this case corresponds to a particular orthotropic diffusion being rand zthe principal directions, but other anisotropic cases could be easily considered). •g(r, z, t) (mol/(m3s)) denotes the amount of substance of species per unit of reactor volume and time provided by the solid phase to the liquid 38 CHAPTER 3. MODELLING CATALYTIC FIXED BED REACTORS bulk at point (r, z) and time t. It will be computed from the micro-scale model for the solid phase. Similarly, neglecting viscous dissipation, the general energy conservation equation for the fluid bulk can be written as follows (see (A.4)): ∂(εfρfef) ∂t +∂(εfρfefv) ∂z + divqf=f, (3.2) where •ρf(kg/m3) is the density of the bulk fluid, •ef(J/kg) is the specific internal energy of the bulk fluid, •qf(W/(m2) is the heat flux vector given by Fourier’s law qf=−kfgrad θf, •kf(W/(mK)) is the diagonal matrix of effective coefficient of thermal conductivities in radial and axial directions, kf rand kf z, respectively. The same remark as for mass diffusion can be made. •f(W/m3) denotes the heat per unit of reactor volume and time provided by the solid phase to the liquid bulk. It will be computed from the micro-scale model. Let us write (3.2) in cylindrical coordinates. Assuming axisymmetry it becomes ∂(εfρfef) ∂t +∂(εfρfefv) ∂z −1 r ∂ ∂r kf rr∂θf ∂r −∂ ∂z kf z ∂θf ∂z =f. (3.3) Let us recall that ef= N X i=1 Yf ief i, where Yf idenotes the mass fraction of species Eiwhich is related to its concentration by ρfYf i=Miyf i and the specific internal energy of species Eidepends on temperature: ef i= ˆei(θf). Hence, ρfef= N X i=1 ρfYf ief i= N X i=1 Miyf ief i and then ∂(εfρfef) ∂t = N X i=1 Mief i ∂(εfyf i) ∂t +εfyf i ∂ef i ∂t .(3.4) 3.1. MODELLING THE MACRO-SCALE (FLUID BULK) 39 Similarly ∂(εfρfefv) ∂z = N X i=1 Mief i ∂(εfyf iv) ∂z +εfvyf i ∂ef i ∂z .(3.5) By adding (3.4) and (3.5) we obtain ∂(εfρfef) ∂t +∂(εfρfefv) ∂z = N X i=1 Mief i∂(εfyf i) ∂t +∂(εfyf iv) ∂z +εf N X i=1 Miyf i∂ef i ∂t +v∂ef i ∂z  = N X i=1 ˆwi(θf)∂(εfyf i) ∂t +∂(εfyf iv) ∂z +εf N X i=1 Miyf iˆcf vi(θf)∂θf ∂t +v∂θf ∂z , (3.6) where ˆcvi(θf) is the specific heat at constant volume of the i-th species and ˆwi(θf) has been defined in (2.22). Let us recall that the specific heat at constant volume of the mixture is defined by ˆcf v(θf) = N X i=1 Yf iˆcvi(θf) and hence, N X i=1 Miyf iˆcvi(θf) = ρf N X i=1 Yf iˆcvi(θf) = ρfˆcf v(θf). By using (3.1) and the previous equality we get ∂(εfρfef) ∂t +∂(εfρfefv) ∂z =ˆ w(θf)·1 r ∂ ∂r Df rr∂ ∂r (εfyf)+∂ ∂z Df z ∂ ∂z (εfyf))+Afδf+g +εfρfˆcf v(θf)∂θf ∂t +v∂θf ∂z . (3.7) Usually, in FBRs the diffusion term in the previous equation can be neglected against source terms Afδfand g. Thus, the energy equation (3.2) can be finally written as εfρfˆcf v(θf)∂θf ∂t +v∂θf ∂z −1 r ∂ ∂r kf rr∂θf ∂r −∂ ∂z kf z ∂θf ∂z  =f−ˆ w(θf)·Afδf(θf,yf) + g. (3.8) 40 CHAPTER 3. MODELLING CATALYTIC FIXED BED REACTORS 3.1.1 Boundary conditions For the fluid bulk the boundary conditions are imposed on the boundary of the reactor. •Reactor entrance (z= 0). 1. Mass: −Df z ∂ ∂z (εfyf)(r, 0, t) + vεfyf(r, 0, t) = vεfyf in(t),(3.9) where yf in (mol/m3) is the vector of species concentrations in the bulk fluid entering into the reactor. The right-hand side is the vector of species mass flux (mol/(m2s)) (with respect to the entrance surface of the reactor) entering the reactor at time t, at any point (r, 0). 2. Energy: θf(r, 0, t) = θf in(t).(3.10) •Reactor exit (z=L). 1. Mass: ∂ ∂z (εfyf)(r, L, t) = 0.(3.11) 2. Energy: ∂θf ∂z (r, L, t) = 0.(3.12) •Reactor walls (r=R). 1. Mass: ∂ ∂r (εfyf)(R, z, t) = 0.(3.13) 2. Energy: kf∂θf ∂r (R, z, t) = hextθext(t)−θf(R, z, t),(3.14) where hext (W/(m2K)) is a heat transfer coefficient between the fluid bulk and the exterior of the reactor and θext denotes the temperature of the latter. •Reactor axis: (r= 0). 1. Mass: ∂εfyf ∂r (0, z, t) = 0.(3.15) 2. Energy: ∂θf ∂r (0, z, t) = 0.(3.16) 3.2. MODELLING THE MICRO-SCALE 41 3.1.2 Initial conditions 1. Mass: yf(r, z, 0) = yf 0(r, z).(3.17) 2. Energy: θf(r, z, 0) = θf 0(r, z).(3.18) 3.2 Modelling the micro-scale We assume spherical coordinates for the micro-scale. The domain shown in Figure 3.3 is considered: Figure 3.3: Micro-scale domain We assume that the catalytic solid consists, at the micro-scale level, of porous spherical particles with porosity εs(rs, r, z, t) (ratio of particle pore volume to particle volume) in which the species diffuse and react. Thus, at each point of the reactor (r, z) there is a particle representative of the porous bed, interacting with the fluid located at this point. Let us write a model for this particular particle. We assume that all fields inside the particle have spherical symmetry which means that they only depend on time and radial variable rs. Thus, the species mass conservation equations read as follows ∂εsys ∂t −1 r2 s ∂ ∂rsDsr2 s ∂εsys ∂rs=Asδs(θs,ys),(3.19) where ys(rs, r, z, t) (mol/m3) denotes the vector of species concentrations in the fluid occupying the intraparticle pores of the particle located at point (r, z) of 42 CHAPTER 3. MODELLING CATALYTIC FIXED BED REACTORS the reactor and Ds(m2/s) is the diagonal matrix containing the mass diffusion coefficients of species in the solid bed. On the other hand, the energy conservation equation is ∂(ρsεses) ∂t −1 r2 s ∂ ∂rsksr2 s ∂θs ∂rs= 0.(3.20) Similar to the fluid bulk, we have es= N X i=1 Ys ies i, where Ys idenotes the mass fraction of species Ei. Since ρsYs i=Miys i, then εsρses=εs N X i=1 ρsYs ies i=εs N X i=1 Miys ies i and, by using (3.20), ∂(εsρses) ∂t = N X i=1 Mi∂(εsys i) ∂t es i+εsys i ∂es i ∂t  = N X i=1 ˆwi(θs)∂(εsys i) ∂t +εs N X i=1 Miys iˆcvi(θs)∂θs ∂t =ˆ w(θs)·h1 r2 s ∂ ∂rsDsr2 s ∂(εsys) ∂rs+Asˆ δs(θs,ys)i+εsρsˆcs v(θs)∂θs ∂t . (3.21) In practical cases, the diffusion term in the previous equation can be neglected against the reaction term. Thus, the energy equation (3.20) can be finally written as εsρsˆcs v(θs)∂θs ∂t −1 r2 s ∂ ∂rsksr2 s ∂θs ∂rs=−ˆ w(θs)·Asδs(θs,ys).(3.22) 3.2.1 Boundary conditions Let ds(r, z, t) be the diameter at time tof the particle located at point (r, z) and Rs(r, z, t) = ds(r, z, t)/2 its radius. 3.2. MODELLING THE MICRO-SCALE 43 •Center of the particle (rs= 0). Symmetry condition. Mass: ∂εsys ∂rs (0, r, z, t) = 0.(3.23) Energy: ∂θs ∂rs (0, r, z, t)=0.(3.24) •Surface of the particle (rs=Rs(r, z, t)). Different possibilities can be considered: –Dirichlet condition (no resistance): Mass: ys(Rs(r, z, t), r, z, t) = yf(r, z, t).(3.25) Energy: θs(Rs(r, z, t), r, z, t) = θf(r, z, t).(3.26) –Robin boundary conditions (resistance): Mass: Ds∂εsys ∂rs (Rs(r, z, t), r, z, t) = ηfs(r, z, t)yf(r, z, t)−ys(Rs(r, z, t), r, z, t). (3.27) Energy: ks∂θs ∂rs (Rs(r, z, t), r, z, t) = hfs(r, z, t)θf(r, z, t)−θs(Rs(r, z, t), r, z, t), (3.28) where ηfs and hfs are given coefficients 3.2.2 Initial conditions 1. Mass: ys(rs, r, z, 0) = ys 0(rs, r, z).(3.29) 2. Energy: θs(rs, r, z, 0) = θs 0(rs, r, z).(3.30) Introduction At the beginning of this part of the thesis we focus on the n−dimensional reactor described in Chapter 2. As we have already mentioned, equations in reaction-diffusion systems have been studied by different approaches using a variety of methods. The objective here is to prove global existence of solution for convectiondiffusion-reaction systems. The topic is classical and studied along time. Even if the analysis on this problem has been done over two centuries, no comprehensive mathematical theory has been established, on the contrary, the literature is full of challenging open problems. In several space dimensions, not even the global existence of solutions is presently known in any significant degree of generality. Until now, most of the analysis has been concerned with the one-dimensional case. The proof of the global theorem is based on the techniques in [55]. In this article, the local existence of the reaction–diffusion systems is provided via the semigroup theory by considering the semilinear parabolic problem. However, we combine this theory with the variational approach. In that case we have to sacrifice regularity of the solution. Of course, this solution is understood in the weak sense. Going back to the global solution, properties (P) and (M), that will hold because of the form of our particular reaction term (the law of mass action), play an important role in the existence proof. The variables in our problem represent species concentration so, their positivity is a natural property (helpful to verify (P)). Control and optimization problems in chemical engineering and their applications often require many numerical simulations of large-scale dynamical systems with different conditions. If a fast or real-time control strategy is desired, the direct numerical simulation does not work well. It is important to know how the error behaves. In Chapter 5 an error estimation is obtained by following the techniques in [63]. The proposed approach approximates the nonlinear function by its Lagrange interpolant. To make sure that we can do these estimations we need previously to prove the existence of solution of the semidiscretized problem we use in the estimations. Once this study has been 51 52 Introduction carried out, it is necessary to compute a numerical solution of the model that interests us from the practical point of view. We focus on PFR and FBR models. For the first one we use a finite difference scheme and for the second one the finite element method is applied. Chapter 4 Existence and uniqueness of solution in convectiondiffusion-reaction systems The study of existence and uniqueness of solution in convection-diffusion-reaction systems is an interesting topic which represents a challenging task due to the non-linearity of the source term, the coupling of the equations and, sometimes, even the existence of non-linear diffusion terms. During the last decades, this problem was treated from different points of view. Some authors studied only the local existence. Others treated the problem through weak formulation and some of them worked with classical solutions and particular assumptions on the source term and/or the initial conditions. Different boundary conditions can be considered. The existing results in the literature are focused on two-dimensional models, but in many situations extension to more general n−dimensional case can be done. Some authors use approaches that involve Lyapunov functions, but the use of semigroup theory still has a great impact in this research field. Other interesting approaches use the concepts of upper and lower solutions, or the positivity of the solution and the control of mass. These techniques are briefly described in the following paragraphs. In the paper of Amman [1] a semilinear parabolic system is considered and interpreted as an abstract evolution system. A theory of existence, regularity 53 54 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION and continuous dependence is developed, but only local existence is proved. The global existence for the two-dimensional model was first demonstrated in [35] using semigroup theory and the n-dimensional model with convectiondiffusion terms was studied in [60]. Two important references for this approach are [40] and [54]. The technique of upper and lower solution is developed by Pao in [53] for coupled parabolic systems with Robin conditions. The case of coupled or cross-diffusion terms is treated in the thesis [15]. In addition, for two-dimensional models, a technique that employs the sign function is used to prove existence of a classical solution, see for example [16]. Lyapunov functions are used in [25] to prove existence of weak solutions global in time for more general diffusion terms. Lyapunov structure is also applied to a general class of Lotka-Volterra systems in [28] or with Lp-bounds, p≥1 [38]. The one-dimensional case with convection-diffusion terms and Dirichlet boundary conditions is studied in [50] via Lyapunov type conditions. A general domain is considered in [48] and [49] for existence and boundedness of global solution of a diffusion-reaction problem. Global existence in time of solutions for reaction-diffusion systems relies on two essential properties: positivity of solution along time and boundedness of total mass in [61]. These properties are also used in [55] and [39], where weak and strong formulations of the problem are described, and some representative examples are given. Similar methodology for polynomial growth of source term is presented in [45] for two-dimensional systems. Besides, Lp, p ≥1, and L∞-approaches also appear in these references. L∞-blow up may occur in reaction-diffusion systems even if they seem simple. To avoid it, strong assumptions on the source term are required. For more details see, for example, [56]. Let us end this introduction by reproducing the abstract of the interesting survey by M. Pierre [55]: The goal of this paper is to describe the state of the art on the question of global existence of solutions to reaction-diffusion systems for which two main properties hold: on the one hand, the positivity of the solutions is preserved for all time; on the other hand, the total mass of the components is uniformly controlled in time. This uniform control on the mass (or –in mathematical terms– on the L1-norm of the solution) suggests that no blow up should occur in finite time. It turns out that the situation is not so simple. This explains why so many partial results in different directions are found in the literature on this 4.1. THE MODEL 55 topic, and why also the general question of global existence is still open, while lots of systems arise in applications with these two natural properties. Throughout this chapter we will prove global existence of solution for some convection-diffusion-reaction systems. The proof of such theorem is based on some properties described in [55] but, first, the techniques we employ are slightly different (they combine semigroup theory and weak formulation techniques) and, second, we include a convection term which is mandatory to model most of industrial chemical reactors. The properties mentioned in the previous paragraph will be verified for our particular reaction term which corresponds to the law of mass action. The variables in our problem represent species concentration, so their positivity is a natural property. Firstly, we will prove local existence of solution by using semigroup theory and then we will prove that it is bounded in L∞, which will allow us to conclude the existence of a global solution. For the document to be self-contained we detail the proofs of all the results, although some of them have been previously obtained or use techniques that are standard in the mathematical analysis of partial differential equations. 4.1 The model We focus on n−dimensional convection-diffusion-reaction models for chemical reactors. The mathematical modelling of these reactors was described in detail in Chapter 2. In this chapter we only consider the system related to chemical species, so we assume that temperature is known. We adopt this simplification because the property of boundedness of total mass needed for the global existence cannot be shown for the energy equation. Let us recall and establish the assumptions we consider: •Robin boundary conditions at the entrance of the reactor. •Homogeneous Neumann boundary condition at the exit of the reactor. •Null mass flux through the wall of the reactor. •The reaction term is given by the law of mass action and the Arrhenius law. •The diffusion coefficients are all equal to d > 0. Remark 4.1.1. Considering equal diffusion coefficients is not an innocent assumption as it has been noticed in [55]. 56 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION Summarizing, in the present chapter, the following convection-diffusion- reaction system will be studied: (P)                    ∂y ∂t (t, x) + ∇y(t, x)v−d∆y(t, x) = ϕ(t, x, y(t, x)),(t, x)∈(0, T)×Ω, y(0, x) = y0(x), x ∈Ω, d∂y ∂ν(t, x)−(v(x)·ν(x))y(t, x) = g(t, x),(t, x)∈(0, T)×Γ1, d∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×(Γ2∪Γ3), where Ω is a bounded domain in Rnwith smooth boundary ∂Ω, as represented in Figure 2.1 and νis the outward unit normal vector to ∂Ω. Recall that Γ1 denotes the reactor entrance, Γ2the reactor exit and Γ3the reactor wall. We recall that y(t, x)∈RN,Nbeing the number of species. Moreover, for now we assume that ϕ: (t, x, w)∈(0, T)×Ω×RN→ϕ(t, x, w)∈RN is a Carath´eodory function, i.e., it is measurable with respect to (t, x) and continuous with respect to w. Let us recall that if ϕcorresponds to the law of mass action with the Arrhenius law, it can be written as ϕ(t, x, w) = Aδ(t, x, w),(t, x, w)∈[0, T]×Ω×RN, with δgiven by (1.4) and (1.5) with non-negative integer exponents αl i, i = 1, . . . , N, l = 1, . . . L, which represent the coefficients of the i−th reactant in the l−th reaction. 4.2 Local existence of weak solution In this section we study the existence and uniqueness of solution of problem (P) in an open interval (0, δ), for some δ > 0. This local solution is intended in a “weak sense” via the variational formulation of the problem that is given below. In what follows τdenotes a positive real number and h., .ithe duality between spaces (H1(Ω))0and H1(Ω)). Let us define the bilinear continuous form a:H1(Ω) ×H1(Ω) →Rby a(y,w) := ZΩ∇y(x)v(x)·w(x)+ZΩ d∇y(x) : ∇w(x)−ZΓ1 (v(x)·ν(x))y(x)·w(x) (4.1) 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 57 and the linear continuous form l(t) : H1(Ω) →Rby l(t)(w) := ZΓ1 g(t, x)·w(x).(4.2) Definition 4.2.1. Let v∈L∞(Ω) with div v= 0 and v·ν∈L∞(Γ1),g∈ L2(0, τ;L2(Γ1)) and y0∈L2(Ω). A function y∈L2((0, τ); H1(Ω))such that ∂y ∂t ∈L2(0, τ;H1(Ω))0)and ϕ(t, x, y(t, x)) ∈L2(0, T;L2(Ω)) is said a weak solution of problem (4.3)-(4.4) if and only if h∂y ∂t (t),wi+a(y(t),w) = ZΩ ϕ(t, x, y(t, x)) ·w(x) + l(t)(w)∀w∈H1(Ω), (4.3) y(0) = y0. (4.4) We work with a first order in time semi-linear parabolic partial differential equation (PDE) system. A first attempt to prove a local existence result for our system would consists in building an adequate contraction in order to use the Banach fixed point theorem (it is described in [3], also known in [36] as the Banach Contraction Principle). Unfortunately, we are not able to prove the Lipschitz property in the Banach space where the mapping is defined. This is why we use the semigroup theory where the local existence theory for a first order in time parabolic PDE system is seen as an extension of the ODEs theory. In this framework some hypotheses such as H¨older condition and locally Lipschitz property of the reaction term are needed. One of the difficulties when applying semigroup theory is that only homogeneous boundary conditions are allowed (in our case gshould be null). Thus, we proceed in two steps to build the solution of the non-homogeneous problem. Firstly, a translation is introduced to get homogeneous boundary condition and then semigroup theory is applied. Finally, the two steps provides us with a unique continuous solution. 4.2.1 Existence of solution to an auxiliary elliptic problem In order to make a translation in the weak problem (4.3)–(4.4), we introduce a family of linear elliptic problems with Robin boundary condition gat the 58 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION entrance Γ1, parametrized by the time variable t, namely, (PG)           ∇G(t, x)v(x)−d∆G(t, x) = 0,(t, x)∈(0, T)×Ω, d∂G ∂ν(t, x)−(v(x)·ν(x))G(t, x) = g(t, x),(t, x)∈(0, T)×Γ1, d∂G ∂ν(t, x) = 0,(t, x)∈(0, T)×(Γ2∪Γ3), and its weak formulation: find G(t)∈H1(Ω) such that a(G(t),w) = l(t)(w) for w∈H1(Ω).(4.5) We notice that time tis a parameter rather than an independent variable because there are no time derivatives in (4.5). Now, let us prove that, under some assumptions, this problem has a unique weak solution that is also continuous. Proposition 4.2.1. Let n≥2. Under the assumptions, •v∈L∞(Ω), •divv= 0, •v·ν∈L∞(∂Ω), •v·ν≤0on Γ1,v·ν≥0on Γ2,v·ν= 0 on Γ3, •there exists S⊂Γ2with non null surface measure and α > 0such that v·ν≥αon S, •g∈W1,1(0, T;Lp(Γ1)) with p=n−1+εfor n > 2or g∈W1,1(0, T;L2(Γ1)) for n= 2. Then, problem (4.5) has a unique solution G∈W1,1(0, T;H1(Ω) ∩C0,γ (Ω)) where γis a suitable number, γ∈(0,1), and hence, in particular, G∈C([0, T]× Ω). Proof. Firstly, for t∈[0, τ] the Lax-Milgram lemma provides us a unique solution G(t, .)∈H1(Ω). Indeed, we have 1) l(t) is linear continuous in H1(Ω): |l(t)(w)|=ZΓ1 g(t)·w≤ZΓ1|g(t)·w|. By applying H¨older inequality we have |l(t)(w)|≤kg(t)kLp(Γ1)kwkLq(Γ1), 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 59 where 1 p+1 q= 1. For n > 2 we take p=n−1 + ε > 2 and then q < 2. If n= 2 and g∈W1,1(0, τ;L2(Γ1)), then q= 2. Finally, by using a trace theorem (see, for instance, [51, Theor. 1.2]), we have |l(t)(w)| ≤ Ckg(t)kLp(Γ1)kwkH1(Ω). 2) a is bilinear continuous in H1(Ω) ×H1(Ω): |a(G,w)|=ZΩ∇Gv ·w+ZΩ d∇G:∇w−ZΓ1 (v·ν)G·w ≤ZΩ∇Gv ·w+ZΩ d∇G:∇w+ZΓ1 (v·ν)G·w ≤ZΩ|∇Gv ·w|+dZΩ|∇G:∇w|+ZΓ1|(v·ν)G·w|. By using H¨older’s inequality we obtain, |a(G,w)| ≤ ZΩk∇Gk2kvk21 2 kwkL2(Ω) +dk∇GkL2(Ω)k∇wkL2(Ω) +kv·νkL∞(Γ1)ZΓ1|G·w| and by applying H¨older’s inequality we get, for kvkL∞(Ω) := k|v|kL∞(Ω), |a(G,w)|≤kvkL∞(Ω)k∇GkL2(Ω)kwkL2(Ω) +dk∇GkL2(Ω)k∇wkL2(Ω) +kv·νkL∞(Γ1)Z∂Ω|G·w| ≤√2 max{kvkL∞(Ω), d}k∇GkL2(Ω)kwkH1(Ω) +kv·νkL∞(Γ1)kGkL2(∂Ω)kwkL2(∂Ω). Finally, by using again the trace theorem in [51], we conclude that |a(G,w)| ≤ C(v)kGkH1(Ω)kwkH1(Ω), w∈H1(Ω). 3) a is coercive Indeed, firstly, a(G,G) = ZΩ∇Gv ·G+ZΩ d∇G:∇G−ZΓ1 (v·ν)kGk2. 66 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION As y1,y2∈B(y0, R) and any ball is convex, then sy1+ (1 −s)y2∈B(y0, R). Since Dyδis continuous with respect to its third variable, by using Weirestrass’ theorem we deduce that it is bounded on the ball and so, kϕ(t, x, y1)−ϕ(t, x, y2)k ≤ M(t, x, y0, R)ky1−y2k.(4.19) Moreover, if θsatisfies the above assumptions, the Arrhenius terms are bounded and hence, L(y0, R) = sup (t,x)∈[0,τ]×Ω sup 0≤s≤1kDyδ(t, x, sy1+ (1 −s)y2)k<∞. Finally, kϕ(t, x, y1)−ϕ(t, x, y2)k ≤ L(y0, R)ky1−y2k.(4.20)  Lemma 4.2.2. Let us assume that the temperature in the Arrhenius law belongs to the space C1([0, T]) ×Ω) and it is non-null ∀(t, x)∈[0, T ]×Ω. Then, function ϕin problem (P)corresponding to law of mass action with Arrhenius law satisfies the following H¨older condition with respect to its first variable: there exists a constant Csuch that kϕ(t, x, y)−ϕ(s, x, y)k ≤ CkAkkh(y)k|t−s| ∀s, t ∈[0, T ]∀y∈RN, where hl(y) := N Y i=1 yαi l i, l = 1, ..., L. Proof. Let 0 ≤s<t≤τ. Let us introduce the L×Ldiagonal matrix E(t, x) :=     exp −Ea1 Rθ(t,x)... exp −EaL Rθ(t,x)   . Then we can write δ(s, x, y) = E(t, x)h(y), Therefore, kϕ(t, x, y)−ϕ(s, x, y)k=kAE(t, x)h(y)−AE(s, x)h(y)k ≤ kAkkE(t, x)−E(s, x)kkh(y)k. Moreover, it is easy to prove the following inequality via the Mean Value Theorem. By using the fact that θand its derivative are continuous and bounded in a compact set and θis not null, we have 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 67 kE(t, x)−E(s, x)k ≤ C|t−s| ∀t, s ∈[0, T ], x ∈Ω. Indeed, let us introduce the notation θ0(t, x) = ∂θ ∂t (x, t). Then, by the Mean Value Theorem we have Eii(t, x)−Eii(s, x)=(t−s) exp −Eai Rθ(ζi, x)!Eai θ0(ζi, x) Rθ2(ζi, x), for some ζibetween sand t,∀x∈Ω and i= 1, ...L. Using that θ∈ C1([0, T]×Ω) and θ6= 0, the absolute value of the the fraction θ0(ζi, x) Rθ2(ζi, x) can be bounded by taking the minimum value of θ2in the denominator and the maximum value of the absolute value of θ0in the numerator. Obviously the exponential is also bounded.  Now, it is the turn to study locally Lipschitz and H¨older properties for ˆϕ. Lemma 4.2.3. Under the assumptions •g∈W2,r(0, T;Lp(Γ1)) with p=n−1+εfor n > 2or g∈W2,r(0, T;L2(Γ1)) for n= 2, and r > 1. •temperature θ∈ C1([0, T]) ×Ω) and θ(t, x)6= 0 ∀(t, x)∈[0, T]×Ω, function ˆϕin problem (Pu)satisfies the following locally Lipschitz and H¨older property: For all u0∈RNand R > 0, there exists P(u0,G, R)>0such that, kˆϕ(t, x, u1)−ˆϕ(s, x, u2)k ≤ P(uo,G, R)ku1−u2k+|t−s|r−1 r,(4.21) for all u1,u2∈B(u0, R)and for all s, t ∈[0, T]. Proof. Firstly, let mG= max (t,x)∈[0,τ]×ΩkG(t, x)k, u0∈RNand Rbe any positive real number. Then, u1+G(t, x),u2+G(t, x)∈B(u0, R +mG) 68 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION for all u1,u2∈B(u0, R) and for all (t, x)∈[0, τ]×Ω. Moreover, for ˆϕdefined by (4.8) we have kˆϕ(t, x, u1)−ˆϕ(s, x, u2)k=kˆϕ(t, x, u1)−ˆϕ(t, x, u2) + ˆϕ(t, x, u2)−ˆϕ(s, x, u2)k ≤ kˆϕ(t, x, u1)−ˆϕ(t, x, u2)k+kˆϕ(t, x, u2)−ˆϕ(s, x, u2)k ≤ kϕ(t, x, u1+G(t, x)) −ϕ(t, x, u2+G(t, x))k +kϕ(t, x, u2+G(t, x)) −ϕ(s, x, u2+G(s, x))k +    ∂G ∂t (t, x)−∂G ∂t (s, x)    ≤ kϕ(t, x, u1+G(t, x)) −ϕ(t, x, u2+G(t, x))k +kϕ(t, x, u2+G(t, x)) −ϕ(t, x, u2+G(s, x))k +kϕ(t, x, u2+G(s, x)) −ϕ(s, x, u2+G(s, x))k +    ∂G ∂t (t, x)−∂G ∂t (s, x)   . By using Lemma 4.2.1 and Lemma 4.2.2 we get kˆϕ(t, x, u1)−ˆϕ(s, x, u2)k ≤ L(u0, R +mG)ku1−u2k+kG(t, x)−G(s, x)k +CkAkkh(u2+G(s, x))k|t−s|+    ∂G ∂t (t, x)−∂G ∂t (s, x)    ≤L(u0, R +mG)ku1−u2k+kG(t, x)−G(s, x)k +Q(u0, R +mG)|t−s|+    ∂G ∂t (t, x)−∂G ∂t (s, x)   , (4.22) where Q(u0, R +mG) := CkAkmax{kh(u)k:u∈B(u0, R +mG)}. Notice that Gand ∂G ∂t are in C[0, τ]; C(Ω). Hence Gis continuously differentiable and then Lipschitz-continuous with respect to t. Moreover, if we repeat the argument in the proof of Proposition 4.2.1 for ∂2G ∂t2, we obtain that ∂G ∂t ∈W1,r(0, T ;C(Ω)) and then it is H¨older with respect to t, with exponent 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 69 r−1 r. Indeed, we have   ∂G ∂t (t2)−∂G ∂t (t1)  C(Ω) =    Zt2 t1 ∂2G ∂t2(t)dt    C(Ω) ≤Zt2 t1  ∂2G ∂t2(t)  C(Ω) dt ≤(t2−t1)r−1 rZt2 t1  ∂2G ∂t2(t)   r C(Ω) dt1/r ≤C(t2−t1)r−1 r. Finally, this inequality and (4.22) yield (4.21).  Now, we state the local existence theorem for problem (Pu). Theorem 4.2.1. Assume that hypotheses (D1), (A1), (A2), as well as those in Lemma 4.2.3, hold. Let u0∈C(Ω). Then, (i) there exists τ=τ(u0)>0such that problem (Pu)has a unique classical solution u: [0, τ]×Ω→RNwith u∈C([0, τ]×Ω). (ii) ucan be extended to a maximally defined solution u:I(u0)×Ω→RN, I(u0)being an interval starting in 0and relatively open in [0, T ], i.e., either I(u0) = [0, τ)or I(u0) = [0, τ]with τ=T. Besides, u∈ C((0, τ); D(A)) where D(A)is defined in (4.14),u: (0, τ)→ C(Ω) is derivable and ∂u ∂t and Auare continuous in (0, τ)×Ω. Proof. It follows from results in Appendix B and it is divided in four steps: First step.Ais sectorial in X=C(Ω) The realization Ai:D(Ai)→Xof operator Aiin X=C(Ω) with domain D(Ai) = {u∈\ 1≤p<∞ W2,p(Ω) : Aiu∈Xi,Biu|∂Ω= 0} is sectorial in Xthanks to Theorem B.3.1. This means that, for each Aithere are constants ωi∈R,π 2< θi< π and Mi>0 such that (i) ρ(Ai)⊃Sθi,ωi={λ∈C:λ6=ωi,|arg(λ−ωi)|< θi}; (ii) kR(λ, Ai)kL(X)≤Mi |λ−ωi|∀λ∈Sθi,ωi. 70 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION On the one hand, if we choose ω= max i=1,...,N ωiand θ= min i=1,...,N θifor each λ∈Sθ,ω we have that λ∈ρ(Ai)∀i= 1, ..., N and hence, λ∈ρ(A). On the other hand, from the definition of ωwe have |λ−ω| ≤ Ci|λ−ωi| for some constant Ci, i = 1, . . . , N. Indeed, it is enough to take Cias the real number Ci= sup λ∈¯ Sθ,ω  λ−ω λ−ωi. We notice that Ciexists because function λ∈¯ Sθ,ω −→ λ−ω λ−ωi∈C is continuous and lim |λ|→∞ λ−ω λ−ωi = 1. Then, we define M= max i=1,...,N CiMiand thus kR(λ, A)kL(X)≤M |λ−ω| ∀λ∈Sθ,ω. Second step. Mapping ˆ fin (4.13) is well-defined, continuous and for all R > 0 and u0∈Xthere exists L > 0 satisfying, kˆ f(t, u1)−ˆ f(t, u2)kX≤Lku1−u2kX∀u1,u2∈BX(u0, R) and for 0 ≤t≤T. Indeed, firstly for t∈[0, T] and u∈C(Ω) the function x∈Ω→ˆ ϕ(t, x, u(x)) is continuous and hence ˆ fis well-defined. Moreover, the continuity in tfor fixed ufollows from Lemma 4.2.3. Let u1,u2∈BX(u0, R) for some R > 0. Then, u1(x),u2(x)∈B(0, R +ku0k)∀x∈Ω and using Lemma 4.2.3 we get kˆ f(t, u1)−ˆ f(t, u2)kX= max x∈Ωkˆ f(t, u1)(x)−ˆ f(t, u2)(x)k = max x∈Ωkˆϕ(t, x, u1(x)) −ˆϕ(t, x, u2(x))k ≤ max x∈Ω P(0,G, R +ku0k)ku1(x)−u2(x)k =P(0,G, R +ku0k)ku1−u2kX. Third step.D(A) is dense in X. This is a consequence of Theorem B.3.1. Then, by using Theorem B.4.1, problem (Pu) has a unique mild solution. 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 71 Finally, by making an additional step we are able to prove that this solution is a classical solution. Fourth step. There exists α∈(0,1) such that for all Rwe have kˆ f(t, u)−ˆ f(s, u)k ≤ C(R)(t−s)α,0≤s<t≤T, for some constant depending on R,C(R) and for all u∈Xsuch that kukX≤R. Let u∈X. Then, from Lemma 4.2.3 kˆ f(t, u)−ˆ f(s, u)kX= max x∈Ωkˆ f(t, u)(x)−ˆ f(s, u)(x)k = max x∈Ωkˆϕ(t, x, u(x)) −ˆϕ(s, x, u(x))k ≤max x∈Ω P(0,G, R)ku(x)−u(x)k+ (t−s)r−1 r=P(0,G, R)(t−s)r−1 r. Therefore, by applying Theorem B.5.1 the mild solution of (Pu) is also a classical solution of our problem (Pu) which, in particular, implies the claimed regularity results. The second part of the theorem easily follows from Proposition B.5.1.  The regularity obtained for the solution will be necessary in the next section to prove the existence of a global solution in [0, T]. 4.2.3 Local existence of solution to problem (4.3)–(4.4) By using the above results we can prove a local existence theorem for the original problem (4.3)–(4.4). Theorem 4.2.2 (Local existence of solution).Assume that hypotheses (D1), (A1), (A2), as well as those in Lemma 4.2.3, hold. Let y0∈C(Ω). Then, there exists a unique weak solution of problem (4.3)–(4.4) that is continuous, y∈ C([0, τ]×Ω), where τ < sup I(u0)with u0=y0−G(0). Proof. On the one hand, let us recall that G∈ C([0, T ]×Ω) is the unique solution of ZΩ∇Gv·w+ZΩ d∇G:∇w−ZΓ1 (v·ν)G·w=ZΓ1 g·w w ∈H1(Ω) (4.23) (see Proposition 4.2.1). On the other hand, let u∈ C(I(u0)×Ω) ∩ C(I(u0)\ {0};W2,p(Ω)) be the 72 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION unique maximal solution of (Pu).Multiplying scalarly the PDE system in (Pu) by w∈H1(Ω) and integrating in Ω we obtain d dt ZΩ u·w+ZΩ∇uv ·w−ZΩ d∆u·w=ZΩ ˆϕ(t, x, u)·w∀w∈H1(Ω). Now, using a Green’s formula and the definition of ˆϕwe have, d dt ZΩ u·w+ZΩ∇uv ·w+ZΩ d∇u:∇w−Z∂Ω d∂u ∂ν·w =ZΩ ϕ(t, x, u+G)·w−d dt ZΩ G·w. Replacing boundary conditions and rearranging terms we obtain d dt ZΩ (u+G)·w+ZΩ∇uv·w+ZΩ d∇u:∇w−ZΓ1 (v·ν)u·w=ZΩ ϕ(t, x, u+G)·w. (4.24) Finally, by adding both variational formulations (4.23) and (4.24), we have d dt ZΩ (u+G)·w+ZΩ∇(u+G)v·w+ZΩ d∇(u+G) : ∇w −ZΓ1 (v·ν)(u+G)·w=ZΩ ϕ(t, x, u+G)·w+ZΓ1 g·w. Since u+Gis bounded in [0, τ]×Ω, for τ < sup I(u0), the same is true for ϕ(t, x, u+G). Then, by using also standard energy estimates, we can prove that y:= u+G∈C([0, τ]×Ω)∩L2((0, τ); H1(Ω)) with ∂y ∂t ∈L2((0, τ;H1(Ω)0) and it is a solution in (0, τ) of the weak problem h∂y ∂t ,wi+a(y,w) = ZΩ ϕ(t, x, y)·w+ZΓ1 g·w w ∈H1(Ω), y(0) = y0. Now, let us prove uniqueness. Assume there exist two local solutions yi∈ C([0, τi]×Ω) ∩L2((0, τi); H1(Ω)), i = 1,2,of (4.3). Then, we subtract the above weak formulation for y1and y2and use w=y1−y2as test function to obtain h∂(y1−y2) ∂t ,y1−y2i+a(y1−y2,y1−y2) = ZΩ (ϕ(t, x, y1)−ϕ(t, x, y2))·(y1−y2) for all t∈[0, τ],where, τ= min{τ1, τ2}.Equivalently, 4.2. LOCAL EXISTENCE OF WEAK SOLUTION 73 1 2 d dt ZΩky1−y2k2+a(y1−y2,y1−y2) = ZΩ (ϕ(t, x, y1)−ϕ(t, x, y2))·(y1−y2). Due to the coerciveness of the bilinear form athat has been shown in the proof of Proposition 4.2.1 and since ϕis locally Lipschitz with respect to its third variable (see Lemma 4.2.1), we can write 1 2 d dt ZΩky1−y2k2+βky1−y2k2 H1(Ω) ≤L(0, m)ky1−y2k2 L2(Ω), where m= max{ky1kC([0,τ]×Ω),ky2kC([0,τ]×Ω)}. Hence, 1 2 d dt ZΩky1−y2k2−L(0, m)ky1−y2k2 L2(Ω) ≤0. Multiplying this equality by 2e−2L(0,m)twe deduce d dt e−2L(0,m)tky1−y2k2 L2(Ω)=e−2L(0,m)td dt ZΩky1−y2k2 −2L(0, m)e−2L(0,m)tky1−y2k2 L2(Ω) ≤0. Finally, by integrating between 0 and t∈(0, τ] and using that y1and y2satisfy the same initial condition we get e−2L(0,m)tky1(t)−y2(t)k2 L2(Ω) ≤0, and hence y1(t) = y2(t)∀t∈[0, τ].  4.2.4 The maximally defined solution Since Gis defined in the whole interval [0, T] and y=u+G, then for any y0∈ C(Ω) there is a maximal solution of problem (4.3)–(4.4), y∈ C(I(u0); C(Ω)), where u0:= y0−G(0)). We notice that this maximal solution could not be a solution of the weak problem in I(u0) if yis not bounded as τ→sup I(u0). However, it is a weak solution in (0,sup I(u0)−ε) for all ε > 0. Moreover, from Proposition B.5.2 we deduce that two cases are possible: •either the maximal solution is defined in the whole interval, i.e., I(u0) = [0, T], (i.e., it is a global solution), •or I(u0) = [0, τ) with τ≤Tand y(t) is unbounded as a mapping from I(u0) to C(Ω). 74 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION 4.3 Global existence of weak solution In this section we study the existence of a global solution for the n-dimensional convection-diffusion-reaction system. It is necessary to prove that the local solution does not blow up in the interval [0, T]. In other words, we need to prove that any maximal local solution is bounded. In this context, there are two main properties that will be exploited. They will be called properties (P) and (M): (P) The non-negativity of any solution of (4.3)–(4.4) is preserved along time. (M) There are constants αi>0 with i= 1, ..., N such that ϕ(t, x, r)·α≤0∀r∈(R+)N.(4.25) In the following, we prove that these properties are satisfied in the case under consideration as well as some preliminary results based on them. Later, they will be used to prove that the solution exists in the whole time interval [0, T]. In this section, the following additional assumptions are made: (H1) The inlet Robin boundary data ghas non-negative components in [0, T]× Γ1. (H2) The initial data y0(x) has non-negative components ∀x∈Ω. Now, we prove the positivity of solution, that is, property (P) holds. In fact, we prove that if the reaction term is quasi-positive, then property (P) is satisfied. Definition 4.3.1. The reaction term ϕis called quasi-positive if, for all i= 1, ..., N, ϕi(t, x, r1, ..., ri−1,0, ri+1, ..., rN)≥0∀r∈[0,∞)Na.e. in [0, T]×Ω. Let us recall that the law of mass action [31] yields the following expression for the velocity of the l-th reaction (see (1.3)): δl=kl N Y j=1 yαl j j, so, the source term can be written as ϕ=Aδ, where Ais the stoichiometric matrix of the system. 4.3. GLOBAL EXISTENCE OF WEAK SOLUTION 75 Lemma 4.3.1. The reaction term ϕ=Aδis quasi-positive for reaction systems governed by the law of mass action. Proof. Firstly, we have ϕi(t, x, r1, ..., ri−1, ri, ri+1, ..., rN) = L X l=1 (λl i−νl i)ˆ kl(θ(t, x)) N Y j=1 rαl j j,(4.26) where ˆ kl(θ(t, x)) ≥0 a.e. in [0, T]×Ω. Now, let us assume that ri= 0 and rj≥0 for j6=i. Then, for l∈ {1, . . . , L} we have two possibilities: •The i-th species is a reactant in the l-th reaction In this case, λl i= 0 and νl i>0. Hence, (λl i−νl i)kl(t, x) N Y j=1 rαl j j=−νl ikl(t, x) N Y j=1 rαl j j= 0, because ri= 0 and so rαl i i= 0. •The i-th species is a product in the l-th reaction In this case, λl i>0 and νl i= 0 and then (λl i−νl i)kl(t, x)QN j=1 rαl j j≥0.  Theorem 4.3.1 (Positivity of solution).Let us assume (H1) and (H2) hold. If the reaction term is quasi-positive, then the maximal solution of problem (4.3)–(4.4) is non-negative along the time. This means that property (P) is satisfied. Proof. Let us recall that the positive part of z∈H1(Ω) is defined by (z+)i(x) := z+ i(x) = max{0, zi(x)},a.e. in Ω. Similarly, the negative part is (z−)i(x) := max{0,−zi(x)}. Both z+and z−belong to H1(Ω) (see [62]). This is because the functions s∈R7→ s±∈R 82 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION and integrating (4.38) in time from 0 to twe get k(M·u(t)−M1−M2t)+k2 L2(Ω) ≤ k(M·u0−M1)+k2 L2(Ω) −2Zt 0ZΩ∂G ∂t ·M+M2(M·u−M1−M2t)+.(4.39) Now, let us take M1and M2such that M·u0(x)≤M1,∂G ∂t (t, x)·M≤M2∀t∈[0, T],∀x∈Ω. Then, (4.39) yields k(M·u(t)−M1−M2t)+k2≤0 and finally, M·u(t, x)≤M1+M2T∀t∈[0, T],∀x∈Ω, from which it follows that M·y(t, x) = M·(u(t, x) + G(t, x)) ≤M:= M1+M2T+kM·GkC([0,T ]×Ω). From Theorem 4.3.1 the components of yare non-negative, so this inequality implies that yi(x, t)≤M Mi , i = 1,··· , N, which concludes the proof for C= max i=1,...,N (M Mi).  Finally, we prove that the maximal solution is defined in the whole time interval [0, T]. That is, the solution can be prolonged to the space C([0, T]×Ω). In the previous section, we have obtained the maximal interval for the local solution. From there, we are able to demonstrate that the solution is bounded in that interval, I(y0)⊆[0, T]. We argue by contradiction that the solution does not blow-up when it tends to Ton the right side. Theorem 4.3.2. Under the assumptions (D1), (A1), (A2), (H1), (H2) and •g∈W2,r(0, τ;Lp(Γ1)) with p=n−1 + εif n > 2and p= 2 if n= 2 and r > 1, •temperature θ∈ C1([0, T]) ×Ω) and θ(t, x)6= 0 ∀(t, x)∈[0, T]×Ω, 4.3. GLOBAL EXISTENCE OF WEAK SOLUTION 83 there exists a global solution of problem (4.3)–(4.4) (defined in [0, T]) such that y∈C([0, T]×Ω). Proof. It is a straightforward consequence of Proposition 4.3.1 and Proposition B.5.2 (see also Section 4.2.4).  4.3.1 Uniqueness of solution As it is pointed out in [55] the question of uniqueness in general diffusionreaction problems is certainly delicate since it is known that there is not uniqueness of weak solutions even for simple equations as, for instance, ∂u ∂t −∆u=u3, u(0) = u0≥0, u = 0 on ∂Ω, and even for C∞initial data. Further details can be found in [4] and [32]. However, working with uniformly bounded solutions is satisfactory because it allows us to prove uniqueness and so the problem is well posed in this class, as it is insured in [55]. Thus, we can conclude this chapter with the main result: Theorem 4.3.3. Under the assumptions in Theorem 4.3.2, there exists a unique bounded global solution in the interval [0, T]of problem (4.3)–(4.4). Proof. Let as suppose that y1,y2∈C([0, T]×Ω) are solutions of (4.3)– (4.4). Then, for i= 1,2, we have h∂yi ∂t (t),wi+a(yi(t),w) = ZΩ ϕ(t, ., yi(t, .)) ·w+l(t)(w) ∀w∈H1(Ω), yi(0) = y0. Now, if we subtract these formulations we obtain h∂(y1−y2) ∂t (t),wi+a(y1(t)−y2(t),w) =ZΩ (ϕ(t, ., y1(t, .)) −ϕ(t, ., y2(t, .))) ·w ∀w∈H1(Ω), y1(0) −y2(0) = 0. By choosing w=y1(t)−y2(t) we get 1 2 d dtky1−y2k2 L2(Ω)(t) + a(y1(t)−y2(t),y1(t)−y2(t)) =ZΩ (ϕ(t, ., y1(t, .)−ϕ(t, ., y2(t, .))) ·y1(t)−y2(t). 84 CHAPTER 4. EXISTENCE AND UNIQUENESS OF SOLUTION Now, due to coerciveness of the bilinear form proved in Proposition 4.2.1 we can write 1 2 d dtky1−y2k2 L2(Ω) +βky1(t)−y2(t)k2 H1(Ω) ≤ZΩ (ϕ(t, ., y1(t, .)) −ϕ(t, ., y2(t, .))) ·y1(t)−y2(t). Moreover, function ϕis locally Lipschitz and hence it is Lipschitz in the union set of the ranges of the two solutions. Therefore, there exists, K > 0 such that ZΩ (ϕ(t, ., y1(t, .)) −ϕ(t, ., y2(t, .))) ·y1(t)−y2(t)≤Kky1(t)−y2(t)k2 L2 and then we can write 1 2 d dtky1−y2k2 L2(Ω)(t) + βky1(t)−y2(t)k2 H1(Ω) ≤Kky1(t)−y2(t)k2 L2(Ω). Finally, we integrate in (0, t) to obtain the following inequality ky1(t)−y2(t)k2 L2(Ω) ≤2KZt 0ky1(s)−y2(s)k2 L2(Ω) and by using the Gronwall’s lemma, ky1(t)−y2(t)kL2(Ω) ≤0∀t∈[0, T],so we can conclude that y1=y2and hence the uniqueness.  Chapter 5 Numerical analysis of the convection-diffusion- reaction n−dimensional model Convection-diffusion-reaction models are used in many applications in science and engineering. In general, these models are described by nonlinear equations for which an exact analytical solution is difficult to obtain, and from here the need of numerical methods in order to solve such non-linear models. This chapter is devoted to the numerical solution of the problem introduced in the previous chapter, namely, (P)                    ∂y ∂t (t, x) + ∇y(t, x)v−d∆y(t, x) = ϕ(t, x, y(t, x)),(t, x)∈(0, T)×Ω, y(0, x) = y0(x), x ∈Ω, d∂y ∂ν(t, x)−(v(x)·ν(x))y(t, x) = g(t, x),(t, x)∈(0, T)×Γ1, d∂y ∂ν(t, x) = 0,(t, x)∈(0, T)×(Γ2∪Γ3), where Ω is a bounded domain in Rnwith smooth boundary ∂Ω. Let us assume the hypotheses considered in Chapter 4 which are •d > 0, •v∈ C1(Ω), divv= 0, v·ν≤0 on Γ1,v·ν≥0 on Γ2,v·ν= 0 on Γ3, 85 86 CHAPTER 5. NUMERICAL ANALYSIS and there exist S⊂Γ2with non-null surface measure and α > 0 such that v·ν≥αon S, •y0∈ C(Ω) with non-negative components ∀x∈Ω, •g∈W2,r(0, T;Lp(Γ1)) with p=n−1+εfor n > 2 or g∈W2,r(0, T;L2(Γ1)) for n= 2, r > 1 and with non-negative components a.e. in [0, T]×Γ1, •temperature θ∈ C1([0, T ]) ×Ω) and θ(t, x)6= 0 ∀(t, x)∈[0, T]×Ω. Remark 5.0.1. In next paragraphs, we assume that ϕ∈ C([0, T ]; Hl+1(Ω)).In order to obtain the required regularity we must assume θ∈ C1([0, T]); Cl+1(Ω)). For the Law of Mass Action with integer coefficients the required regularity is insured. We recall that the non-negativity assumption of gand y0has been described as (H1) and (H2). Let us recall that the weak formulation of this problem consists in finding a function y∈L2((0, T); H1(Ω)) satisfying d dt ZΩ y(t, x)·w(x) + a(y(t),w) = ZΩ ϕ(t, x, y(t, x)) ·w(x) + l(t)(w) ∀w∈H1(Ω) (5.1) y(0) = y0,(5.2) where a(y(t),w) := ZΩ∇y(t, x)v(x)·w(x)+ZΩ d∇y(t, x) : ∇w(x)−ZΓ1 (v·ν)y(t, x)·w(x) and l(t)(w) := ZΓ1 g(t, x)·w(x). 5.1 The semidiscrete problem This section is devoted first to build a semidiscrete problem obtained by replacing the Sobolev space H1(Ω) by a finite-dimensional approximation space and second to study the existence and uniqueness of a solution. Firstly, we consider a linearly independent finite subset of the space H1(Ω)∩ C(Ω): {ψ1,··· , ψndof }. Then, we introduce an associated approximation of y(t) in the space spanned by these functions, namely, 5.1. THE SEMIDISCRETE PROBLEM 87 ˆ y(t) = ndof X i=1 αi(t)ψi∈H1(Ω) ∩C(Ω), where αi(t), i = 1, . . . , ndof are some vector functions of time, αi: [0, T]→RN, to be determined. Let us define the space spanned by {ψ1,··· , ψndof }: W V =hψ1,··· , ψndof i and let W V = W V N. In order to define the approximation ˆ y, we go back to the weak formulation (5.1) and introduce the following problem: Find a function ˆ y: [0, T]→W V satisfying, d dt ZΩ ˆ y(t)·w+a(ˆ y(t),w) = ZΩ ϕ(t, ., ˆ y(t)) ·w+l(t)(w),∀w∈W V (5.3) ˆ y(0) = ˆ y0,(5.4) where ˆ y0is a given approximation of y0in W V . 5.1.1 A finite element method Here we introduce a particular but very important example of internal approximation space Vh: let Thbe a collection of quasi-uniform elements (see Definition C.3.1) that partitions the domain Ω ⊂Rn. These elements are triangles if n= 2 or tetrahedra if n= 3. Parameter his the maximal diameter of the elements. Let us denote by V=H1(Ω) and by Vhthe space of piecewise continuous functions on Ω that reduce to polynomials of degree ≤mon each element of Th. Remark 5.1.1. In the previous chapter we have supposed that Ωhas a C2 boundary, for existence of a solution to the continuous problem (see 4.2.2). We notice that this assumption is not compatible with the fact that Ωhas a partition in triangles or tetrahedra. Thus, Vh6⊂ Vand hence we are lead to commit a so-called variational crime in the Strang terminology. The error analysis arising from this variational crime is not trivial and it is beyond the scope of the present work. We consider the canonical basis of Vh,{ψh,1,··· , ψh,ndof }, where ψh,i has value 1 at the i-th node and 0 at the rest of the nodes. Then, the Lagrange interpolation operator, Ih:C(Ω) →Vh, 88 CHAPTER 5. NUMERICAL ANALYSIS is defined as follows: Ih(f)∈Vhand Ih(f)(xj) = f(xj), being {x1, . . . , xndof }the nodes associated to the finite element space (recall that in each element the set of nodes is the n-dimensional simplex of type m (see, for instance, [22]). Therefore, Ih(f) = ndof X i=1 f(xi)ψh,i and its extension to vector functions is straightforward: Ih(f)=(Ih(f1), . . . , Ih(fN)). Thus, we have Ih(f) = ndof X i=1 f(xi)ψh,i and, in particular, Ihϕ(t, x, y(t, x))= ndof X i=1 ϕ(t, xi,y(t, xi))ψh,i(x).(5.5) Then, the finite element method with interpolated nonlinear term consists in Finding yh(t) = ndof X i=1 αh,i(t)ψh,i ∈Vh such that d dt ZΩh yh(t)·wh+a(yh(t),wh) =ZΩh Ihϕ(t, ., yh(t))·wh+l(t)(wh)∀wh∈Vh,(5.6) yh(0) = y0,h,(5.7) where Vh= (Vh)N and y0,h is an approximation of y0in Vh. Now, we notice that the dimension of space Vhis N×ndof and introduce a suitable basis for computer implementation: zh,nk =ψh,ken, k = 1, ..., ndof and n= 1, ..., N, 5.1. THE SEMIDISCRETE PROBLEM 89 where {e1,··· ,eN}is the canonical basis in RN. Let us take wh=zh,nk. Then the nonlinear term can be written as ZΩh Ih(ϕ(t, ., yh(t)) ·zh,nk =ZΩh Ih(ϕ(t, ., yh(t)) ·enψh,k =ZΩhIhϕn(t, ., yh(t))ψh,k = ndof X i=1 ZΩh ϕnt, xi,αh,i(t)ψh,iψh,k = ndof X i=1 ϕnt, xi,αh,i(t)ZΩh ψh,iψh,k. We notice that the obtained expression is the product of the mass matrix Mhdefined by Mh,ik =ZΩh ψh,iψh,k, i, k = 1, . . . , ndof , times the vector ϕn h(t) =    ϕnt, x1,αh,1(t) . . . ϕnt, xndof ,αh,ndof (t)  . Now, we rewrite the above problem as a nonlinear numerical system. Let αn h(t) =    αn h,1(t) . . . αn h,ndof (t)   ∈Rndof and αh(t) =    α1 h(t) . . . αN h(t)   ∈RNndof . Then, the Cauchy problem to be solved is Mhα0 h(t) + Ahαh(t) = Mhϕh(t, αh(t)) + ch(t),(5.8) αh(0) = αh,0,(5.9) 90 CHAPTER 5. NUMERICAL ANALYSIS where Mhand Ahare block-diagonal matrices Mh=      Mh0··· 0 0Mh .... . . . . .......0 0··· 0Mh       , Ah=      Ah0··· 0 0Ah .... . . . . .......0 0··· 0Ah       , because the corresponding terms in the original problem do not couple the components of y. Each matrix block Ahis the stiffness matrix Ah,kj =ZΩh ψh,k(∇ψh,j ·v) + dZΩh∇ψh,j ·∇ψh,k −ZΓ1 (v·ν)ψh,jψh,k, with k, j = 1,··· , ndof .Moreover, cn h(t) =    cn h,1(t) . . . cn h,ndof (t)   ∈Rndof , and ch(t) =    c1 h(t) . . . cN h(t)   ∈RNndof , where cn h,k(t) = ZΩh ψh,k(x)gn(t, x), k = 1,··· , ndof and n= 1,··· , N and ϕh(t, αh(t)) =    ϕ1 h(t, αh(t)) . . . ϕN h(t, αh(t))   , where ϕn h(t, αh(t)) =    ϕn h,1(t, αh,1(t)) . . . ϕn h,ndof (t, αh,ndof (t))   , 5.1. THE SEMIDISCRETE PROBLEM 91 with ϕn h,k(t, αh,k(t)) = ϕn(t, xk,αh,k(t)) , k = 1, . . . ndof , n = 1, . . . , N. Finally, the initial condition is given by αh,0=   α1 h,0 . . . αN h,0,    with yh,0= N X i=1 αn h,0ψh,i. 5.1.2 Local existence and uniqueness of solution to the semidiscrete problem In this section, we study the existence and uniqueness of solution to the semidiscrete problem (5.6)–(5.7). This problem has been rewritten in the previous section as a nonlinear ordinary differential system in (5.8). The proof of existence of a local solution is based on the classical Picard-Lipschitz-Lindel¨of theorem (see, for instance [23]). Let us first recall this theorem and then we will prove our local existence result. Theorem 5.1.1 (Picard-Lipschitz-Lindel¨of theorem).Let f:A ⊆ R× Rn−→ Rnbe a continuous function, locally Lipschitz with respect to x, where Ais an open set. Then, for any given (t0, x0)∈ A,there exists a closed interval Iα= [t0− α, t0+α]⊂Rwhere the Cauchy problem: x0=f(t, x), x(t0) = x0, has a unique solution satisfying (t, x(t)) ∈ A ∀t∈Iα. Now, we state the local existence of our ODEs system as follows: Theorem 5.1.2. There exists δ > 0such that the Cauchy problem (5.6)–(5.7) has a unique solution in the interval (0, δ). Proof. Since the mass matrix Mhis invertible, the Cauchy problem (5.8)–(5.9) can be written as α0 h(t) = ϕh(t, αh(t)) + M−1ch(t)−M−1Aαh(t), αh(0) = αh,0. 98 CHAPTER 5. NUMERICAL ANALYSIS For kθh(0)kL2(Ω) we have the following estimate by using Lemma 5.2.2 kθh(0)kL2(Ω) ≤ke y0h−y0kL2(Ω) +ky0−y0hkL2(Ω) ≤Chl+1ky0kHl+1(Ω) +ky0−y0hkL2(Ω).(5.25) Now, using (5.24) and (5.25) in (5.23) we get kθh(t)kL2(Ω) ≤eλ2tky0−y0hkL2(Ω) +Chl+1eλ2tky0kHl+1(Ω) +eλ2tZt 0 e−λ2sK1hl+1 +K4hl+1kyk2 Hl+1(Ω) +K5hl+1ky,tkHl+1(Ω). To conclude, the error estimate is given by the following inequality: ky(t)−yh(t)kL2(Ω) ≤eλ2tky0−y0hkL2(Ω) +K6hl+1eλ2tky0kHl+1(Ω) +K7hl+1kykHl+1(Ω) +K8hl+1eλ2tZt 0 e−λ2s1 + kykHl+1(Ω) +ky,tkHl+1(Ω).  5.3 Existence and uniqueness of global solution to the semidiscrete problem In this section, by using the above error estimate, we prove the existence and uniqueness of a global solution to the semidiscrete problem (5.6)–(5.7). We recall that ndenotes the spatial dimension, i.e., Ω ⊂Rn. Proposition 5.3.1. Let us assume that •y∈L1((0, T); Hl+1(Ω)),y,t ∈L1((0, T); Hl+1(Ω)). •l+ 1 > n/2and l≤m. •y0his an approximation of y0of order O(hn/2+ε)in the norm of L2(Ω), for some ε > 0. Then the semidiscrete problem (5.6)–(5.7) has a unique global solution yh∈ C1([0, T]; Vh). Proof. Since the global solution of the continuous problem, y, is continuous in [0, T]×Ω, the following real numbers, mi:= min {yi(t, x) : (t, x)∈[0, T]×Ω},(5.26) Mi:= max {yi(t, x) : (t, x)∈[0, T]×Ω}(5.27) 5.3. GLOBAL SOLUTION TO THE SEMIDISCRETE PROBLEM 99 are well-defined for i= 1, . . . , N. Since we are assuming that the discrete initial condition satisfies ky0−y0hkL2(Ω) =O(hn/2+ε),(5.28) by using Theorem 5.2.1 we obtain ky−yhkL∞((0,τh(y0,h));L2(Ω)) ≤O(hn/2+ε) + O(hl+1). Besides, from Lemma C.3.2 we get kIhy−ykL∞((0,τh(y0,h));L2(Ω)) =O(hl+1) and kIhy−ykL∞((0,τh(y0,h));C(Ω)) =O(hl+1−n/2). Moreover, for all t∈[0, τh(y0,h)) ky(t)−yh(t)kC(Ω) ≤ kyh(t)−Ihy(t)kC(Ω) +kIhy(t)−y(t)kC(Ω) ≤C1h−n/2kyh(t)−Ihy(t)kL2(Ω) +kIhy(t)−y(t)kC(Ω) ≤C1h−n/2ky(t)−yh(t)kL2(Ω) +ky(t)−Ihy(t)kL2(Ω) +kIhy(t)−y(t)kC(Ω) ≤C1h−n/2C2hn/2+ε+C3hl+1+C4hl+1−n/2 =O(hε) + O(hl+1−n/2), where we have used the inverse inequality (C.2). Therefore, for any δ > 0 there exists h0>0 such that for h<h0we have mi−δ≤yh,i(t, xj)≤Mi+δ∀t∈[0, τh(y0h)), j = 1, . . . , ndof and then kyh(t)kC([0,τh(y0h))×Ω) ≤max i=1,...N max{|mi|,|Mi|}+δ. This estimate and the classical theory of continuation of solutions of ordinary differential equations (see for example [23]) allow us to conclude that for h < h0there exists a global solution to the discrete problem belonging to the space C([0, T]; Vh). Now, since ϕhis continuous we deduce from (5.3) that dyh dt is also continuous. Finally, the uniqueness can be proved as for the continuous problem in Theorem 4.3.3  100 CHAPTER 5. NUMERICAL ANALYSIS Chapter 6 Numerical solution of the PFR model In Chapter 2 we have described the general model for a plug-flow reactor involving both species and temperature equations. These systems are usually stiff, and we should take this fact into account when choosing a numerical method. Stiff problems are characterized by large variations of the solution in a small time interval, hence most of the numerical methods must take small steps to obtain satisfactory results. This means that non-stiff methods can solve stiff problems, but they are time consuming. In this work we have selected a backward differentiation formula which is a simple and standard choice for solving stiff ordinary differential equations. More recent numerical discretizations based on Runge-Kutta schemes can be found, for instance in [33], where a method preserving the positivity of solution is included. This chapter will be devoted to solve numerically the PFR model in both transient and steady state. Let us recall these problems: (PFR)                          ∂y ∂t +v∂y ∂z −D∂2y ∂z2=Aˆ δ(θ, y), (w0(θ)·y)∂θ ∂t +v∂θ ∂z −k∂2θ ∂z2=−∆ˆ H(θ)·ˆ δ(θ, y) + 2h R(θext −θ), y(z, 0) = y0(z), θ(z, 0) = θ0(z), y(0, t) and θ(0, t) given, ∂y ∂z (L, t)=0,∂θ ∂z (L, t)=0, (6.1) and 101 102 CHAPTER 6. NUMERICAL SOLUTION OF THE PFR MODEL (PFR@SS)                    v∂y ∂z −D∂2y ∂z2=Aˆ δ(θ, y), (w0(θ)·y)v∂θ ∂z −k∂2θ ∂z2=−∆ˆ H(θ)·ˆ δ(θ, y) + 2h R(θext −θ), y(0) and θ(0) given, dy dz (L)=0,dθ dz (L) = 0. (6.2) 6.1 Time and spatial discretizations of the problem For numerical solution of the transient PFR model we propose the use of finite difference approximations for both space (z) and time (t) variables. Let us consider NTtime discretization steps and NLspatial steps. We define time and spatial steps by ∆t=T NT and ∆z=L NL−1/2, and time and spatial meshes by tn=n∆t, n = 1,··· , NTand zj=j∆z, j = 0,··· , NL+ 1. We notice that the last point in the spatial mesh is out of the interval [0, L]. More precisely, zNL=NL∆z=NL L NL−1/2=L+∆z 2. Consequently, we use a second order approximation of the boundary condition on z=Lby taking a centred approximation of the first spatial derivative at this point. Time discretization of the first order derivative in the convection term is the most delicate one in the system. This is because in a convection dominated problem (as it is the case for PFRs), a backward difference scheme to approximate this derivative is needed for the sake of stability. Otherwise, the time step must be very small. This is why we have implemented two kind of schemes: centred (order 2) and backward (of orders 1 and 2), as described below: ∂ϕ ∂z (zj, t)≈ϕ(zj, t)−ϕ(zj−1, t) ∆z(backward formula of order 1) 6.1. TIME AND SPATIAL DISCRETIZATIONS OF THE PROBLEM 103 ∂ϕ ∂z (zj, t)≈1.5ϕ(zj, t)−2ϕ(zj−1, t) + 0.5ϕ(zj−2, t) ∆z, j = 2, . . . , NL (backward formula of order 2) ∂ϕ ∂z (zj, t)≈ϕ(zj+1, t)−ϕ(zj−1, t) 2∆z, j = 1, . . . , NL−1 (centred formula of order 2). The second order spatial derivative is approximated by the second order centred difference formula: ∂2ϕ ∂z2(zj, t)≈ϕ(zj+1, t)−2ϕ(zj, t) + ϕ(zj−1, t) ∆z2, j = 1, . . . , NL−1. The integration in time is done step by step from n= 1 to n=NT. The first step is computed using the implicit Euler scheme (which is also the first order Backward Differentiation Formula, BDF1) and the subsequent ones with the BDF2 (second order Backward Differentiation Formula) which was presented above for the spatial first derivative. Moreover, the boundary condition at the reactor outlet is replaced by the centred scheme. In what follows we write the whole discretized problem with only the backward scheme of order 2 for the convection term. 104 CHAPTER 6. NUMERICAL SOLUTION OF THE PFR MODEL 1. First step, n= 1 (for n= 0 all values are known from the initial conditions). y1 1−y0 1 ∆t+vy1 1−y1 0 ∆z−Dy1 2−2y1 1+y1 0 ∆z2=Aδ(θ1 1,y1 1), y1 j−y0 j ∆t+v1.5y1 j−2y1 j−1+ 0.5y1 j−2 ∆z−Dy1 j+1 −2y1 j+y1 j−1 ∆z2=Aδ(θ1 j,y1 j), j= 2,··· , NL, w0(θ1 1)·y1 1θ1 1−θ0 1 ∆t+vθ1 1−θ1 0 ∆z−kθ1 2−2θ1 1+θ1 0 ∆z =2hext Rθext(t1)−θ1 1−w(θ1 1)·Aδ(θ1 1,y1 1), w0(θ1 j)·y1 j θ1 j−θ0 j ∆t+vθ1 j−θ1 j−1 ∆z!−kθ1 j+1 −2θ1 j+θ1 j−1 ∆z =2hext Rθext(t1)−θ1 j−w(θ1 j)·Aδ(θ1 j,y1 j), j= 2,··· , NL, −dy1 1−y1 0 ∆z+vy1 0+y1 1 2=vyin(t1), θ1 0+θ1 1 2=θin(t1), y1 NL+1 −y1 NL ∆z=0, θ1 NL+1 −θ1 NL ∆z= 0. 6.1. TIME AND SPATIAL DISCRETIZATIONS OF THE PROBLEM 105 2. Step n≥2 (all previous fields are known). 1.5yn 1−2yn−1 1+ 0.5yn−2 1 ∆t+vyn 1−yn 0 ∆z −Dyn 2−2yn 1+yn 0 ∆z=Aδ(θn 1,yn 1), 1.5yn 1−2yn−1 1+ 0.5yn−2 1 ∆t+v1.5yn j−2yn j−1+ 0.5yn j−2 ∆z −Dyn j+1 −2yn j+yn j−1 ∆z=Aδ(θn j,yn j), j= 2,··· , NL, (w0(θn 1)·yn 1) 1.5θn j−2θn−1 j+ 0.5θn−2 j ∆t+vθn 1−θn 0 ∆z!−kθn 2−2θn 1+θn 0 ∆z =2hext Rθext(tn)−θn 1−w(θn 1)·Aδ(θn 1,yn 1), w0(θn j)·yn j 1.5θn j−2θn−1 j+ 0.5θn−2 j ∆t+vθn j−θn j−1 ∆z! −kθn j+1 −2θn j+θn j−1 ∆z=2hext Rθext(tn)−θn j−w(θn j)·Aδ(θn j,yn j), j= 2,··· , NL, −dyn 1−yn 0 ∆z+vyn 0+yn 1 2=vyin(tn), θn 0+θn 1 2=θin(tn), yn NL+1 −yn NL ∆z=0, θn NL+1 −θn NL ∆z= 0. Let us notice that a nonlinear system of equations has to be solved at each time step. The number of equations of this system equals the number of 106 CHAPTER 6. NUMERICAL SOLUTION OF THE PFR MODEL unknowns, which is NA×NL+ (N+ 1) ×(NL+ 2). 6.2 Academic tests Test at steady state We use a simple model to construct this academic test. This is because we are only checking if the error reaches the expected order for the nonlinear functions we propose as solutions of the reaction system. Of course, this model involves equations of both species and temperature. Then, let us consider a simple reaction system of three species {S1, S2, S3} involved in one chemical reaction: S1+S2→S3,(6.3) and in terms of the stoichiometric matrix the reaction is represented as A= −1 −1 1 .(6.4) The molecular mass of each species in kg/kmol is given by the vector M= (42,138,180)tand the specific heat for all species is constant and equal, cvi= 2.0 103J/kgK, i = 1,2,3. We also assume identical diffusion term for all species equal to d= 10−3kg/kmol. The effective coefficient of thermal conductivity is k= 10−4kg/kmol and the heat transfer coefficient between the reactor and its surroundings is null. The law of mass action and the Arrhenius law are applied for modelling the kinetics. More precisely, the reaction term is given by δ1=B1exp Ea1 Rθ y1y2,(6.5) where B1= 3.0 107and Ea1= 5.0 104. The heat of the reactions at temperature 298.15 Kis 4.0 103J/K. The volume of the reactor is 0.0029 m3and its length 1.5m. The mixture velocity is constant and equal to 1.0m/s There are no catalysts. The exact solution of this problem is given by y1(z) = e0.5z+ cos2z, y2(z) = e0.5z+ sin2z, y3(z) = ez, θ(z) = 298 + sin2z. 6.2. ACADEMIC TESTS 107 The boundary conditions are non-homogeneous and they have the following expressions: yin1=−0.5d+ 2v, yin2=−0.5d+v, yin3=−d+v, θin = 298. yout1=d(0.5e0.5−2 cos(1) sin(1)), yout2=d(0.5e0.5+ 2 cos(1) sin(1)), yout3=de, θout = 2ksin(1) cos(1). With the complete information we can write the model we want to solve v∂y ∂z −d∂2y ∂z2=Aˆ δ(θ, y) + efin [0, L], n X i=1 Micviyi!v∂θ ∂z −k∂2θ ∂z2=−∆H(θ)·ˆ δ(θ, y) + 2h R(θout −θ) + egin [0, L], −d∂y ∂z (0) + vy(0) = yin and ∂y ∂z (L) = yout, θ(0) = θin and ∂θ ∂z (L) = θout. We adjust efand egin order to obtain the solution of the system described above, namely e f1(z) = v(0.5e0.5z−2 sin zcos z)−d(0.25e0.5z+ 2 sin2z−2 cos z) −B1exp Ea1 R(298 + sin2z)(e0.5z+ cos2z)(e0.5z+ sin2z), e f2(z) = v(0.5e0.5z+ 2 sin zcos z)−d(0.25e0.5z−2 sin2z+ 2 cos z) −B1exp Ea1 R(298 + sin2z)(e0.5z+ cos2z)(e0.5z+ sin2z), e f3(z) = vez−dez+B1exp Ea1 R(298 + sin2z)(e0.5z+ cos2z)(e0.5z+ sin2z), 114 CHAPTER 6. NUMERICAL SOLUTION OF THE PFR MODEL NzL2error for species L2error for temperature 4 0.0097958014917 0.0029164006838 8 0.0090397291651 0.000314024 16 0.00059491811150000 0.00018666416840 32 0.000123880413800 0.000045250600800 64 0.0000307108686 0.0000096545066 Table 6.4: Table of errors in L2norm Chapter 7 Numerical solution of the FBR model In Chapter 3, we have described the general two-phase model for a heterogeneous fixed-bed reactor (FBR), including both species and temperature equations. These systems are more complex than PFR because one has to take into consideration the coupling between the fluid (macroscopic) and the solid (microscopic) phase models. Thus, the implementation of the FEM discretization and the coupling between phases is not easy to handle. For this reason, the implementation was done using the FeniCS library of finite elements https://fenicsproject.org/ through a Python program. The FeniCS library allows us to write weak formulations of partial differential equations in an easy and direct way. 7.1 Weak formulation In this section we build a weak formulation of the FBR model that will be used to define the numerical solution by means of finite element methods. Cylindrical coordinates are considered for the fluid phase and spherical coordinates for the solid phase. The main technical difficulty is the information transfer between the variables of the two phases, as they live in domains with different dimension (two for the fluid and three for the solid). 7.1.1 Macroscale: fluid bulk Firstly, we consider the fluid bulk. Let us make the scalar product of equation (3.1) by a test function vector u(r, z) defined in Ω := (0, R)×(0, L). Integrating in the whole reactor domain and using the cylindrical symmetry we get, 115 116 CHAPTER 7. NUMERICAL SOLUTION OF THE FBR MODEL 2πZΩ ∂ ∂t(εfyf)·ur dr dz + 2πZΩ ∂ ∂z (εfvyf)·ur dr dz −2πZΩ 1 r ∂ ∂r Df rr∂ ∂r (εfyf)·ur dr dz −2πZΩ ∂ ∂z Df zr∂ ∂z (εfyf)·udr dz = 2πZΩ Afδf(θf,yf)·ur dr dz + 2πZΩ g·ur dr dz. Now we integrate by parts in the second, third and fourth terms on the left-hand side and we obtain, 2πZΩ ∂ ∂t(εfyf)·ur dr dz −2πZΩ εfvyf·∂u ∂z r dr dz −2πZR 0 εf(r, 0)vyf(r, 0) ·u(r, 0)r dr + 2πZR 0 εf(r, L)vyf(r, L)·u(r, L)r dr + 2πZΩ Df r ∂ ∂r (εfyf)·∂u ∂r r dr dz + 2πZΩ Df z ∂ ∂z (εfyf)·∂u ∂z r dr dz −2πZL 0 Df r ∂ ∂r (εfyf)(R, z)·u(R, z)R dz + 2πZR 0 Df z ∂ ∂z (εfyf)(r, 0) ·u(r, 0)r dr −2πZR 0 Df z ∂ ∂z (εfyf)(r, L)·u(r, L)r dr = 2πZΩ Afδf(θf,yf)·ur dr dz + 2πZΩ g·ur dr dz. By using the boundary conditions, this equality becomes, 2πZΩ ∂ ∂t(εfyf)·ur dr dz −2πZΩ εfvyf·∂u ∂z r dr dz + 2πZR 0 εf(r, L)vyf(r, L)·u(r, L)r dr + 2πZΩ Df r ∂ ∂r (εfyf)·∂u ∂r r dr dz + 2πZΩ Df z ∂ ∂z (εfyf)·∂u ∂z r dr dz = 2πZΩ Afδf(θf,yf)·ur dr dz + 2πZΩ g·ur dr dz + 2πZR 0 vεfyf in(t)·ur dr. (7.1) Now let us consider the energy equation. We multiply (3.8) by a scalar test function u(r, z) defined in Ω. Integrating in the whole reactor domain and 7.1. WEAK FORMULATION 117 using the cylindrical symmetry we get, 2πZΩ εfρfˆcf v(θf)∂θf ∂t ur dr dz + 2πZΩ εfρfˆcf v(θf)v∂θf ∂z ur dr dz −2πZΩ 1 r ∂ ∂r kf rr∂θf ∂r ur dr dz −2πZΩ ∂ ∂z kf z ∂θf ∂z ur dr dz = 2πZΩ fur dr dz −2πZΩ ˆ w(θf)·Afδf(θf,yf) + gur dr dz. Integrating by parts the third and fourth terms on the left-hand side, we deduce 2πZΩ εfρfˆcf v(θf)∂θf ∂t ur dr dz + 2πZΩ εfρfˆcf v(θf)v∂θf ∂z ur dr dz + 2πZΩ kf r ∂θf ∂r ∂u ∂r r dr dz + 2πZΩ kf z ∂θf ∂z ∂u ∂z r dr dz + 2πZR 0 kf r ∂θf ∂r (r, 0)u(r, 0)r dr −2πZR 0 kf r ∂θf ∂r (r, L)u(r, L)r dr + 2πZL 0 kf z ∂θf ∂z (R, z)u(R, z)R dz = 2πZΩ fur dr dz −2πZΩ ˆ w(θf)·Afδf(θf,yf) + gur dr dz. Since we have a Dirichlet boundary condition at the reactor inlet (temperature is given at z= 0), we take the test function unull there. Using the boundary conditions at the reactor outlet and on the reactor wall the above equality becomes 2πZΩ εfρfˆcf v(θf)∂θf ∂t ur dr dz + 2πZΩ εfρfˆcf v(θf)v∂θf ∂z ur dr dz + 2πZΩ kf r ∂θf ∂r ∂u ∂r r dr dz + 2πZΩ kf z ∂θf ∂z ∂u ∂z r dr dz + 2πZL 0 hextθf(R, z, t)u(R, z)R dz = 2πZΩ fur dr dz −2πZΩ ˆ w(θf)·Afδf(θf,yf) + gur dr dz + 2πZL 0 hextθext(z, t)u(R, z)R dz. 7.1.2 Micro-scale: spherical solid particles Let us multiply equation (3.19) by a test function vector u(rs, r, z), with (rs, r, z)∈(0, Rs)×Ω. Integrating in the whole sphere and in the whole cylinder, and using spherical symmetry and cylindrical symmetry, respectively, 118 CHAPTER 7. NUMERICAL SOLUTION OF THE FBR MODEL we get, 8π2Z(0,Rs)×Ω ∂εsys ∂t ·ur2 sr drsdr dz −8π2Z(0,Rs)×Ω ∂ ∂rsDsr2 s ∂εsys ∂rs·ur drsdr dz = 8π2Z(0,Rs)×Ω Asδs(θs,ys)·ur2 sr drsdr dz. We integrate by parts the the second term of the left-hand side and we deduce that 8π2Z(0,Rs)×Ω ∂εsys ∂t ·ur2 sr drsdr dz + 8π2Z(0,Rs)×Ω Ds∂εsys ∂rs·∂u ∂rs r2 sr drsdr dz− 8π2ZΩ Ds∂εsys ∂rs·uR2 sr dr dz = 8π2Z(0,Rs)×Ω Asδs(θs,ys)·ur2 sr drsdr dz and using the boundary conditions we get 8π2Z(0,Rs)×Ω ∂εsys ∂t ·ur2 sdrsr dr dz + 8π2Z(0,Rs)×Ω Ds∂εsys ∂rs·∂u ∂rs r2 sr drsdr dz + 8π2ZΩ ηfs(r, z, t)ys(Rs, r, z, t)·u(Rs, r, z)R2 sr dr dz = 8π2Z(0,Rs)×Ω Asδs(θs,ys)·ur2 sr drsdr dz + 8π2ZΩ ηfs(r, z, t)yf(r, z, t)·u(Rs, r, z)R2 sr dr dz. (7.2) Finally, if we make a change of variable defined by xs=rs Rs , the weak formulation can be written as follows: Z(0,1)×Ω ∂εsys ∂t (xs, r, z, t)·u(xs, r, z)R3 sx2 sdxsr dr dz +Z(0,1)×Ω Ds∂εsys ∂xs (xs, r, z, t)·∂u ∂xs (xs, r, z)Rsx2 sr dxsdr dz +ZΩ ηfs(r, z, t)ys(1, r, z, t)·u(1, r, z)R2 sr dr dz =Z(0,1)×Ω Asδs(θs(xs, r, z, t),ys(xs, r, z, t)) ·u(xs, r, z)R3 sx2 sr dxsdr dz +ZΩ ηfs(r, z, t)yf(r, z, t)·u(1, r, z)R2 sr dr dz. (7.3) 7.1. WEAK FORMULATION 119 Now let us consider the energy equation. We multiply equation (3.22) by a test function u(rs, r, z), with (rs, r, z)∈(0, Rs)×Ω. Integrating in the whole sphere and in the whole cylinder, and using spherical symmetry and cylindrical symmetry, respectively, we get 8π2Z(0,Rs)×Ω εsρsˆcs v(θs)∂θs ∂t ur2 sr drsdr dz −8π2Z(0,Rs)×Ω 1 r2 s ∂ ∂rsksr2 s ∂θs ∂rsur2 sr drsdr dz =−8π2Z(0,Rs)×Ω ˆ w(θs)·Asδs(θs,ys)ur2 sr drsdr dz. Integrating by parts in the second term of the left-hand side we deduce that 8π2Z(0,Rs)×Ω εsρsˆcs v(θs)∂θs ∂t ur2 sr drsdr dz + 8π2Z(0,Rs)×Ω ks∂θs ∂rs ∂u ∂rs r2 sr drsdr dz −8π2ZΩ ks∂θs ∂rs (Rs, r, z, t)u(Rs, r, z)R2 sr drsdr dz =−8π2Z(0,Rs)×Ω ˆ w(θs)·Asδs(θs,ys)ur2 sr dr dz, and using the boundary conditions, we obtain the weak formulation for the energy equation in the micro-scale model: 8π2Z(0,Rs)×Ω εsρsˆcs v(θs)∂θs ∂t ur2 sr drsdr dz + 8π2Z(0,Rs)×Ω ksr2 s ∂θs ∂rs ∂u ∂rs r drsdr dz + 8π2ZΩ hfs(r, z, t)θs(Rs, r, z, t)u(Rs, r, z)R2 sr dr dz =−8π2Z(0,Rs)×Ω ˆ w(θs)·Asδs(θs,ys)ur2 sr drsdr dz + 8π2ZΩ hfs(r, z, t)θf(r, z, t)u(Rs, r, z)R2 sr dr dz. 120 CHAPTER 7. NUMERICAL SOLUTION OF THE FBR MODEL Finally, we introduce the change of variable xs=rs Rs : Z(0,1)×Ω εsρsˆcs v(θs(xs, r, z, t))∂θs ∂t (xs, r, z, t)u(xs, r, z)R3 sr dxsdr dz +Z(0,1)×Ω ksRs ∂θs ∂xs (xs, r, z, t)∂u ∂xs (xs, r, z)r dxsdr dz +ZΩ hfs(r, z, t)θs(1, r,z, t)u(1, r, z)R2 sr dr dz =−Z(0,1)×Ω ˆ w(θs(xs, r, z, t)) ·Asδs(θs(xs, r, z, t),ys(xs, r, z, t))u(xs, r, z)R3 sr dxsdr dz +ZΩ hfs(r, z, t)θf(r, z, t)u(1, r, z)R2 sr dr dz. 7.1.3 Mass conservation at steady-state In this paragraph we obtain a mass conservation equation for the whole multiscale model at steady-state. Hence, all fields are time independent, thus the accumulation terms are null in all equations. Let us start by using the micro-scale model and take the test function u(r, z) = a(r, z) R2 s(r, z)M in (7.2), where ais given by (3.31). As the partial derivative of this function with respect to rsis null, we obtain 8π2ZΩ a R2 s ηfs(r, z)ys(Rs, r, z)·MR2 sr dr dz = 8π2Z(0,Rs)×Ω a R2 s Asδs(θs,ys)·Mr2 sr drsdr dz + 8π2ZΩ a R2 s ηfs(r, z)yf(r, z)·MR2 sr dr dz = 8π2Z(0,Rs)×Ω a R2 s δs(θs,ys)·(As)tMr2 sr drsdr dz + 8π2ZΩ a R2 s ηfs(r, z)yf(r, z)·MR2 sr dr dz = 8π2ZΩ a R2 s ηfs(r, z)yf(r, z)·MR2 sr dr dz, 7.1. WEAK FORMULATION 121 because (As)tM= 0 (see (1.2)). Therefore, 8π2ZΩ a(r, z)ηfs(r, z)ys(Rs(r, z), r, z)·Mr dr dz = 8π2ZΩ a(r, z)ηfs(r, z)yf(r, z)·Mr dr dz. (7.4) Now, let us consider the bulk fluid. We take the test function u=Min the weak formulation (7.1) and we get 2πZR 0 vεf(r, L)yf(r, L)·Mr dr = 2πZΩ Afδf(θf,yf)·Mr dr dz + 2πZΩ g·Mr dr dz + 2πZR 0 cf in ·Mr dr (7.5) = 2πZΩ δf(θf,yf)·(Af)tMr dr dz + 2πZΩ g·Mr dr dz + 2πZR 0 vεf(r, 0)yf in ·Mr dr = 2πZΩ g·Mr dr dz + 2πZR 0 vεf(r, 0)yf in ·Mr dr, again, because (Af)tM= 0 (see (1.2)). In the following we prove that ZΩ g·Mr dr dz = 0. Indeed, from the definition of g(see (3.33)) and by using (7.4) we have, ZΩ g·Mr dr dz =ZΩ a(r, z)ηfs(r, z)ysRs(r, z), r, z−yf(r, z)·Mr dr dz = 0. Then (7.5) yields 2πZR 0 vεf(r, L)yf(r, L)·Mr dr = 2πZR 0 vεf(r, 0)yf in ·Mr dr. The left-hand side is the total mass flow rate (kg/s) leaving the reactor, while the right-hand side is the total mass flow rate (kg/s) entering the reactor. Therefore, we have proved that the model conserves the total mass. 122 CHAPTER 7. NUMERICAL SOLUTION OF THE FBR MODEL 7.2 An academic test in steady state In order to validate the finite element implementation we consider an academic example for a steady FBR with resistance. We recall that using the notation from Chapter 3 the full model is the following: ∂ ∂z (εfyfv)− 1 r ∂ ∂r Df rr∂ ∂r (εfyf)− ∂ ∂z Df z ∂ ∂z (εfyf) =Afδf(θf,yf) + aηfsys(Rs)−yf, εfρfˆcf v(θf)v∂θf ∂z − 1 r ∂ ∂r kf rr∂θf ∂r − ∂ ∂z kf z ∂θf ∂z  =ahfsθs(Rs)−θf−ˆ w(θf)·Afδf(θf,yf), − 1 r2 s ∂ ∂rsDsr2 s ∂εsys ∂rs=Asδs(θs,ys), − 1 r2 s ∂ ∂rsksr2 s ∂θs ∂rs=−ˆ w(θs)·Asδs(θs,ys), −Df z ∂ ∂z (εfyf)(r, 0) + vεfyf(r, 0) = vεfyf in, θf(r, 0) = θf in, ∂εfyf ∂z (r, L) = 0, ∂θf ∂z (r, L) = 0, ∂εfyf ∂r (R, z) = 0, kf r ∂θf ∂r (R, z) = hextθext(t)−θf(R, z), ∂εfyf ∂r (0, z) = 0, ∂θf ∂r (0, z) = 0, ∂(εsys) ∂rs (0, r, z) = 0, ∂θs ∂rs (0, r, z) = 0, Ds∂εsys ∂rs (Rs(r, z), r, z) = ηfs(r, z)yf(r, z)−ys(Rs(r, z), r, z), ks∂θs ∂rs (Rs(r, z), r, z) = hfs(r, z)θf(r, z)−θs(Rs(r, z), r, z). 7.2. AN ACADEMIC TEST IN STEADY STATE 123 We define a stationary problem with known analytical solution. The reaction system is described by 4 species involved in 2 reactions in the fluid phase whose kinetic is governed by law of mass action: Sf 1+Sf 2→Sf 3−→ δf 1(θf,yf) = B1e(−Ea1 Rθf)yf 1yf 2 Sf 1+Sf 3→Sf 4δf 2(θf,yf) = B2e(−Ea2 Rθf)yf 1yf 3, with coefficients B1= 1.0 1010,Ea1= 7.5 104,B2= 1.0 108and Ea2= 9.0 104. We assume that the reaction system is the same at the microscale level, that is, inside the solid particles. Now we define the solution: ˆys 1(xs, r, z, t) = cos2z+r2+x2 s, ˆys 2(xs, r, z, t) = sin2z+r3+x3 s, ˆys 3(xs, r, z, t) = sin2z+ cos2r+x4 s, ˆys 4(xs, r, z, t) = cos2z+ sin2r+x5 s, ˆ θs(xs, r, z, t)=2z2+r2+xs+ 280, (7.6) ˆyf 1(r, z, t) = 2 εsDs 1 ηfsRs+ cos2z+r2+ 1, ˆyf 2(r, z, t)=3εsDs 2 ηfsRs+ sin2z+r3+ 1, ˆyf 3(r, z, t)=4εsDs 3 ηfsRs+ sin2z+ cos2r+ 1, ˆyf 4(r, z, t)=5εsDs 4 ηfsRs+ cos2z+ sin2r+ 1, ˆ θf(r, z, t) = εsks hfsRs+ 2z2+r2+ 281. (7.7) These functions are a solution of the above system of equations by adding an auxiliary source function at each equation, namely, 130 Conclusions Part III Identification in reaction systems 131 Introduction Reaction systems are widely used for controlling, monitoring and optimizing industrial processes. Their study makes extensive employment of mathematical modelling in terms of differential equations expressing the conservation of mass and energy in order to describe concentrations, volume or temperature. Building these models needs the identification of the reactions taking place and their corresponding kinetics. One of the most challenging task is the identification of the kinetic laws: the identification of the best kinetic model from a list of proposed functional forms and also finding the optimal values of their corresponding parameters. The main difficulties appear in the a priori statement of the shape of the kinetics and in the amount of degrees of freedom in the optimization problem. The first one requires the help and the experience of an expert in order to define the general expression of the functions with the parameters to be identified. The second one is related to overfitting. This can be avoided using adequate optimization techniques and including as parameters susceptible to optimize those that the expert considers necessary. In this part we present a methodology for solving the inverse problem described above, also called model identification problem. We are interested in identifying kinetic models and their corresponding parameters, using a set of experimental data and the reactions taking place. The identification can be done in one step via an integral approach or sequential via an incremental approach [12]. This method decomposes the initial identification problem in sub-problems in which each reaction can be determined individually [5, 18]. In the following sections we describe a methodology introduced in [7] that consists in the combination of two methods: incremental and integral. This approach is illustrated with examples of stirred tank reactors described in details in Chapter 1. There are situations when not all the species are measurable, or species information is missing in some time instants. In these cases, the methodology from [7] for solving inverse identification problems sometimes does not produce good results. Thus, the identification problem to solve is replaced by the problem of inferring parameters in chemical reactions networks where the available 133 134 Introduction information, either in transient or steady state, has missing concentration values. In some cases, the available data is enough to recover the parameters in the kinetics and thus “the system is identifiable” [17]. In other cases, the methodology provides a range of the missing concentrations of species using extreme (highest and lowest) concentrations under incomplete data measurements. The model parameters associated with such extreme concentrations are obtained [13]. Another challenging problem in this field is the so called model selection that consists in determining the experimental initial values in the ODEs system which allow us to discriminate among several models. A way of model selection in chemical reaction network is done using global optimization method, as described in detail in [14]. Identification problem regards different approaches, apart of kinetics identification. See for example the work of Burnham and Willis [21] in which they identify chemical reaction networks assuming no a priori information about reaction stoichiometries or species structures, through the analysis of process data obtained in a laboratory environment. Another approach is described in [64]. In this article the stoichiometry and kinetic model are selected using two consecutive optimization steps using integer linear programming. The first one consists onobtaining a list of all feasible stoichiometric relations is developed and the second one uses these relations to construct all plausible combinations of the stoichiometric equations which are used to instantiate kinetic model structures. Chapter 8 The identification problem in reaction systems In order to solve our identification problem, we apply two approaches in cascade: incremental and integral methods [7]. The use of these two methods in cascade can be replicated for some of the most typical reactors, such as stirred tank reactors (batch, semi batch or continuous) and plug flow reactors, both extensively used in literature and industry. Such identification processes are usually studied in systems where the phenomena of interest can be observed in isolation, without other physical phenomena interference. It is the case of reaction kinetics in liquid phase, where a stirred batch or semi batch reactor is used in the majority of cases [17]. Of course, an important aspect to be taken into account is the set of measurements obtained in laboratory that will be included in the parameters adjustment of these kinetics. In this chapter, we focus on the identification of kinetic models on stirred tank reactors, using a set of experimental data and the reactions taking place. A catalogue of kinetic models containing the parameters to be identified will be provided too. It is important to mention that the incremental method described in Section 8.4.1 can be applied only to STR and PFR reactors. However, the integral method can be used even for FBR model. 8.1 Measurements and reactions scheme Experimental data is required in the optimization process for the adjustment of the parameters characterizing the kinetic model. These measurements are species concentration, temperature, inlet/outlet flow rates, among others. In addition, physico-chemical parameters of the species such as molecular weight 135 136 CHAPTER 8. THE IDENTIFICATION PROBLEM (kg/kmol), specific heat (J/kgK) and reaction heat (J/kmol) at formation temperature (usually 298.15 K) are also needed. In the case of the batch reactor we consider in the following, measurements are related to the concentration of chemical species, volume of the mixture and also mixture temperature at some time instants. All these data are collected in several experiments under different conditions. 8.2 Kinetic models An important step in the identification process is a good definition of a kinetic catalogue. The specification must take into account the chemical knowledge and the experience of an expert for defining reaction rates susceptible to be selected. It is important to consider the most relevant parameters to avoid overfitting. In practice it is possible to write “ad hoc” kinetics to define any functional form in the identification, but the integral method works better with general expressions known a priori because it is very useful for computing the gradient of the functional cost by means of adjoint method. This is explained in details in Section 8.4.2. The general expression of the reaction rates we use is given by: δr(θ, y,z) = Brexp −Ear RθMr Y j=1   Pr j X m=1 Gr j,m N Y n=1 yβr j,m,n n Nc Y n=1 zβr j,m,n+N n+br j  αr j with 1 ≤r≤L. The first part corresponds to the Arrhenius law, described in Section 1.1.3. Two parameters, the pre-exponential (or frequency) factor (Br) and the activation energy (Er a) must be adjusted. Notice that if Brtends to zero, the corresponding reaction term can be neglected. The second part is formed by powers of combinations of powers of concentrations. In this case, divisions by zero may appear because negative exponents are allowed. During computational tests we have used the following common bounds for the above mentioned parameters: •Br∈[0,1014], •Er a∈[0,2.0×105], •Gr j,m ∈[0,1], •βr j,m,n ∈[0,2], 8.3. THE GENERAL MODEL 137 •br j∈[0,100] •αr j∈[−2,2]. 8.3 The general model As we explained at the beginning of this chapter, we focus on an important family of chemical reactors: the so-called stirred tank reactors (STR). We assume that the mixture inside these reactors is homogeneous because of stirring, thus the physico-chemical magnitudes do not depend on position. Hence, they are modelled as (usually stiff) coupled, non-linear ordinary differential equations. We consider a model involving mass and heat balance equations. In addition, we have an equation for volume variation, but this equation is decoupled from the rest. In the experimental environment, additional variables appear in the model. They are the catalysts, which help the reactions to occur or to make the process faster, but in our model they are not considered. The model is written in general form as                    dy dt =f(θ, y,z) in [0, T],mass balance euqations dθ dt =h(θ, y,z),heat balance equation dV dt = f2−f3,volume equation y(0) = y0, θ(0) = θ0and V(0) = V0, (8.1) with the source terms f=Aδ(θ, y,z) + 1 V(Ff1−f2y), h= ∆H(θ)·δ(θ, y,z)−g V(θout −θ)−w0(θ)· F P X p=1 f1 p(θs p−θ)ep! w0(θ)·y, with ∆H(θ) = Atw(θ), wi(θ) = Mieiand ei(θ) = e∗ i+Zθ θ∗ ci(s)ds for the i−th species and yrepresents the vector of species concentrations, θrepresents the temperature of mixture, 138 CHAPTER 8. THE IDENTIFICATION PROBLEM zrepresents the vector of catalysts, Vrepresents the volume of the mixture, Ais the stoichiometric matrix, δrepresents the vector of reaction velocities, Frepresents the inlet composition, f1is the vector of inlet flow rates, f2is the sum of components in f1, that is the outlet flow, f3is the outlet flow rate, ∆H is the vector of heat of reactions, gis a heat transfer coefficient, θout is the outside temperature, θs pis the temperature of the p-th stream, where Pis the number of streams, Miis the molecular mass of the i-th species, ciis the specific heat of the i-th species, eiis the internal energy of the i-th specie, e∗ iis the internal energy of formation of the i-th species at temperature θ∗. In general, we have continuous inlet and outlet streams. In this case, the reactor is called continuous STR. If we have only inlet streams the reactor is called semi-batch STR, and if no inlet or outlet streams are considered, the reactor is called batch STR. 8.4 Model selection and parameter identification For an optimal identification process, a suitable model is desired including information of stoichiometry matrix and a “good” expression for the rate of reactions. The model can be solved by considering several techniques such as differential, integral or incremental methods [12], employing experimental data. 8.4. MODEL SELECTION AND PARAMETER IDENTIFICATION 139 Of course, all they can be used independently or we can combine some of them to obtain more accurate solutions. Differential method uses cubic spline functions interpolating the data and trying to minimize the residual of the differential equations system taking their derivatives at time measurements. The error in these derivatives may affect the accuracy of the results. In this chapter we focus on incremental and integral methods. The incremental method works with the concept of “extent”, which provides an analytic solution of an equivalent decoupled system. The second one needs to solve numerically the initial ODEs model. Then, the unknown parameters are determined comparing experimental data with model predictions. In some cases, if the solution obtained using the incremental method is good enough we can conclude the identification process, but this is not always true and thus the integral method is needed to improve the solution using the initial solution provided by the incremental method. 8.4.1 Initial approximation: The incremental method. The incremental approach is characterized by the fact that each rate process is modeled individually, independently of the other rate processes, thus the identification problem is decomposed into a set of subproblems, one for each kinetic. The incremental technique is firstly introduced, although of differential type, as the reactions and inlet-outlet flows are obtained by differentiation of measured concentrations, for Batch STR reactors in [5] and for CSTR reactors in [18] (only for mole balance equation in both articles). These references led to a relatively recent concept, called extent. Its definition appears in [2] where a linear transformation that computes the extents of reaction from the numbers of moles in homogeneous reaction systems with inlet and outlet streams is proposed. It is extended in [10] for gas-liquid reaction systems. After that, it has been studied for the STR model with mole and heat balance equations in [12] and for PFR model in [59]. The main features of this method are the decoupling of the reaction equations using algebraic procedures and obtaining direct solution of the transformed equations. Thus, the kinetic models and their parameters can be identified in parallel for all reactions. The parameters are obtained via local optimization techniques. In this chapter we introduce an alternative method where the heat balance equation is treated independently. Volume equation can be solved independently, but the ODE system (8.2) remains coupled. That is why we work in two stages: the concentrations system is rewritten as a decoupled extents system and the temperature equation is treated separately.