Consider the problem of prediciting the concentration of a reactant in an isothermal batch reactor, assuming a

Question:

Consider the problem of prediciting the concentration of a reactant in an isothermal batch reactor, assuming a first-order reaction, where the reaction rate, r, is given by the product of the reaction rate constant, k, and the concentration of the reactant, y:dy dt y(0) = 1, = f(t, y) = r = -ky = y/t, t = [0, 10]. E

In this equation, we have introduced the time constant of the system, which is the inverse of the rate constant k, i.e. τ = 1/k. This simple problem involves a linear differential equation that allows us to investigate how the implicit and the explicit methods behave as the step size is modified. Recall that the explicit Euler method is given by yn+1 = yn + h f (xn, yn). This means thatx = y  - h  = y (1 -  ). Yn T T Yn+1 hn

Therefore, if the time step, h, is larger than the time constant, the explicit method will predict negative concentrations and easily diverge, as shown in Figure 6.9(a). In contrast, the implicit Euler method yn+1 = yn + h f (xn+1, yn+1) has the advantage of6 5 4 3  2 y 1 0 -1 -2 -3 -4 0 2 4 t (a) Analytic Explicit Euler, h=2.5 Implicit Euler, h-2.5 6 8 10

stability, which can be written as Yn+1 T Yn+1 = yn - h Yn+1 Yn 1+h/t

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Mathematical Modeling In Chemical Engineering

ISBN: 9781107049697

1st Edition

Authors: Anders Rasmuson, Bengt Andersson, Louise Olsson, Ronnie Andersson

Question Posted: