Numerical Analysis For Real-Time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
Numerical Analysis For Real-Time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
Outline
1 Motivation
2 Conservation Law
3 Method of Characteristics
4 Existence and Uniqueness Theorem
5 Numerical Analysis
6 Limitations
7 Future work
8 Applications
9 Conclusion
10 References
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Chemical Equations
For the reforming stage, the molar conservation equations for the
seven j ∈ (1, . . . , 7) species (C2 H5 OH, H2 O, CH4 , H2 ,
CO, CO2 , CH3 CHO) are described by a set of seven nonlinear
differential equations, initial conditions, and boundary conditions
!
∂Fj Fj X ∂Fi p ∂T X X 1 ∂Fj
p − pP − Fj = RT Fi νj,i ri ({Fj }) −
∂t i Fi i ∂t T ∂t i i
A ∂z
Fj (z, 0) = Fj,0 (z), ∀z ∈ [0, ℓ1 ]
Fj (0, t) = Fj, in (t), ∀t ≥ 0
(1)
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Conservation Law
For a given physical domain, conservation laws are frequently
expressed in integral form. Assume we have a physical domain, Ω,
with a domain boundary, ∂Ω. Then, assuming that the physical
domain is fixed, the canonical conservation equation is of the type
Z Z Z
d
U dx + F(U ) · nds = S(U, t)dx
dt Ω ∂Ω Ω
∂Cj ∂ (vCj ) X
+ = vj,i ri ,
∂t ∂z
i
Cj (0, z) = Cj,0 (z), ∀z ∈ [0, l1 ]
Cj (t, 0) = Cj, in (t), ∀t ≥ 0
which is in a conservation form.
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Reformulation
The above system can also be reformulated
√ by writing the vector f
in terms of an orthonormal basis ∥F ∥ = 7u7
1 − uu71 − uT1
RT
. .. .. Ap 0 0
..
. . .
.. .. ..
u6
. .
A= 1 − u7 − uT6 B = 0
RT
u7 0
0 −T √Ap
7RT Cvu U
0 C U
√ v
u
0 Ap Ap
7RT u7
RT [u1 , u1 , . . . u1 ]U V1 R′
RT [u2 , u2 , . . . u2 ]U V2 R′
u1
g=
..
U = ...
.
, . . . u7 ]U V7 R′
RT [u7 , u7P u7
U β(Tf − T ) − i ui [R′ H ′ − Vi R′ ]T
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Method of Characteristics
The primary concept of the method of characteristics is to convert
a partial differential equation to an ordinary differential equations
using characteristic curves which enables us to then solve the PDE.
The equations can be written as a singular system of quasi-linear
hyperbolic equations
A(x, y, u)ux + B(x, y, u)uy = g(x, y, u)
Multiplying both sides of the equation by a row vector to be
determined later gives
l⊤ Aux + l⊤ Buy = l⊤ g
Assume that there exists an ordered pair (xω′ , yω ) parameterized
by a real scalar ω ∗
1 ⊤ 1 ⊤
l A ux xω + l B uy yω = l⊤ g
xω yω
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
ODE system
Finally we have
dx 1
=
dt σk (x, t, u)
dx
lk (x, t, u)⊤ A(x, y, u) = lk (x, t, u)⊤ g(x, t, u)
dt
k = 1, 2, . . . , m
Ap
σk = , k = 1, · · · , 6,
RT
0
..
1 .
0
l1 = , . . . , l6 = 0
..
. 1
0 0
0
and
C uU √
Ap
σ7 = 0, σ8 = √v − 7Ru7
RT Cpu U 7u7
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Numerical Analysis
Now there are two directions on how we can proceed with the
numerical analysis
ODE System solvers - Euler Methods, Runge-Kutta Method,
IDA (implicit backward differentiation formulas for DAEs) etc
PDE System solvers - Finite Element Methods
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Numerical Solution
Analysis
We use Mathematica’s NDSolve feature and do not specify any
explicit numerical method to solve the above system. We define
MLR (Molar Flow Rate) and some of the results are as follows
1 It takes around 96 evaluations for the solver to converge and
stop
Plotting the distance between successive evaluations results in
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Solution Plots
Solution Plots
Final Plot
Plotting all the solutions results (when extrapolated backwards in
the negative x axis) which shows the various discontinuities when
x<0
Comparison
When we only consider from the positive x - axis we get the
following plot
Comparison (cont’d)
This is consistent with the results from the previous paper by
observing the Molar Flow Rate of C2 H5 OH and CH4
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Symbolic Solution
Limitations
Future work
Applications
To use the above ODE solvers which can be fed into a NMPC
which could enable a mechanistic model to be used in
real-time control calculations with minimal online
computational cost.
This would allow us to manufacture hydrogen safely from
ESR, which could be utilized as green energy.
Numerical Analysis for Real-time Nonlinear Model Predictive Control (NMPC) of Ethanol Steam Reformers
References
Conclusions
References
Thanking remarks