Jump to content

Diels-Alder Reaction Experimental Design: Difference between revisions

From mintOC
FelixJost (talk | contribs)
 
(136 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This page can now be filled with content.
The '''Diels-Alder Reaction''' is an organic chemical reaction. 
A conjugated diene and a substituted alkene react and form a substituted cyclohexene system.
Stefan Körkel used this model in his PhD thesis to compute optimum experimental designs.




== Model Formulation ==
== Model Formulation ==


Differential equation system:
The reactionkinetics can be modelled by the following differential equation system:


<math>
<math>
\begin{array}{rcl}
\begin{array}{rcl}
\dot{n_1}(t) &=& -k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{tot}},  \\
\dot{n_1}(t) &=& -k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{\mathrm{tot}}},  \\
   & &                                                              \\
   & &                                                              \\
\dot{n_2}(t) &=& -k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{tot}}, \\
\dot{n_2}(t) &=& -k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{\mathrm{tot}}}, \\
   & &                                                              \\
   & &                                                              \\
\dot{n_2}(t) &=& \ \ k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{tot}}
\dot{n_3}(t) &=& \ \ k \cdot \frac{n_1(t) \ \cdot \ n_2(t)}{m_{\mathrm{tot}}} \\
  & &                                                              \\
\dot{n_4}(t) &=& 0
\end{array}  
\end{array}  
</math>
</math>


Reaction velocity constant:
The reaction velocity constant <math>k</math> consists of two parts. One part reflects the non-catalytic and the other the catalytic reaction. The velocity law follows the Arrhenius relation


<math>
<math>
  k = k_1 \ \cdot \ exp(- \frac{E_1}{R} \ \cdot \ (\frac{1}{T} \ - \ \frac{1}{T_{ref}}) ) \ + \ k_{cat} \ \cdot \ c_{cat} \ \cdot \ exp(-\lambda \ \cdot \ t) \ \cdot \ exp( - \frac{E_{cat}}{R} \ \cdot \ (\ \frac{1}{T} \ - \ \frac{1}{T_{ref}}) )
  k = k_1 \ \cdot \ \exp(- \frac{E_1}{R} \ \cdot \ (\frac{1}{T(t)} \ - \ \frac{1}{T_{\mathrm{ref}}}) ) \ + \ k_{\mathrm{cat}} \ \cdot \ c_{\mathrm{cat}} \ \cdot \ \exp(-\lambda \ \cdot \ t) \ \cdot \ \exp( - \frac{E_{\mathrm{cat}}}{R} \ \cdot \ (\ \frac{1}{T(t)} \ - \ \frac{1}{T_{\mathrm{ref}}}) )
</math>
</math>


Line 25: Line 29:


<math>
<math>
  m_{tot} = n_1 \ \cdot \ M_1 \ + \ n_2 \ \cdot \ M_2 \ + \ n_3 \ \cdot \ M_3 \ + \ n_4 \ \cdot \ M_4  
  m_{\mathrm{tot}} = n_1 \ \cdot \ M_1 \ + \ n_2 \ \cdot \ M_2 \ + \ n_3 \ \cdot \ M_3 \ + \ n_4 \ \cdot \ M_4  
</math>
</math>


Line 31: Line 35:


<math>
<math>
T = \vartheta + 273
T(t) = \vartheta (t) + 273
</math>
 
The ODE system is summarized to:
<math>
\begin{array}{rcl}
\dot{x}(t) &=& f(x(t), u(t), p)
\end{array}
</math>
 
== Constraints ==
 
The control variables are constrained with respect to the mass of sample weights (initial mass):
 
 
<math>
\begin{array}{cll}
0.1 & \le & n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 \ + \ n_{a4} \ \cdot \ M_4 \le 10 
\end{array}
</math>
 
and to the mass of active ingredient content (fraction of active substances):
 
<p>
<math>
\begin{array}{cll}
0.1 & \le & \frac{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 }{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2  \ + \ n_{a4} \ \cdot \ M_4 }  \le 0.7
\end{array}
</math>
 
== Optimum Experimental Design Problem ==
 
The aim is to compute an optimal experimental design <math>\xi = (q,w)</math> which minimizes the uncertainties of the parameters <math>k_1, k_{\mathrm{cat}}, E_1, E_{\mathrm{cat}}, \lambda</math>. So, we have to solve the following optimum experimental design problem:
 
 
<math>
\begin{array}{cll}
\displaystyle \min_{x^i,\ G^i,\ F^i,\ Tc^i,\ n_{a1}^i,\ n_{a2}^i,\ n_{a4}^i,\ c_{\mathrm{cat}}^i,\ \vartheta(t)^i} && \mathrm{trace}(F^{-1} (t_{\mathrm{end}})) \\[1.5ex]
\mbox{s.t.} \\
\dot{x}^i(t) & = & f(x^i(t), u^i(t),p),  \\
\\
h(t) & = & \frac{n_3(t) \ \cdot \ M_3}{m_{\mathrm{tot}}} \ \cdot \ 100 \\
\\
\dot{G}^i(t) & = & f_x(x^i(t),u^i(t),p)G^i(t) \ + \ f_p(x^i(t),u^i(t),p) \\
\\
\dot{F}(t) & = & \sum\limits_{i=1}^{4} w^i(t) (h^i_x(x^i(t),u^i(t),p)G^i(t))^T (h^i_x(x^i(t),u(t),p)G^i(t)) \\
\\
0.1 & \le & n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 \ + \ n_{a4} \ \cdot \ M_4    \\
\\
10 & \ge & n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 \ + \ n_{a4} \ \cdot \ M_4    \\
\\
0.1 & \le & \frac{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 }{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2  \ + \ n_{a4} \ \cdot \ M_4 }  \\
\\
0.7 & \ge & \frac{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2 }{ n_{a1} \ \cdot \ M_1 \ + \ n_{a2} \ \cdot \ M_2  \ + \ n_{a4} \ \cdot \ M_4 }  \\
\\
\vartheta(t)  & = & \left\{ \begin{array}{cl} \vartheta_{lo}  & t \in [t_0,2]  \\
                                      \vartheta_{lo} + \frac{t-2}{6} ( \vartheta_{up} - \vartheta_{lo} )  & t \in [2,8]    \\
                                      \vartheta_{up}  &  t \in [8,t_{\mathrm{end}}]
                    \end{array} \right. \\
& & x  \in  \mathcal{X},\,u \in \mathcal{U},\, p \in P \\
\dot{z}^i(t)  & = & w^i(t)  \\
z(0) & = & 0 \\
w^i(t) &\in& [0,1] \\
0 &  \le & 4 - z^i(t_f). \\
\end{array}
</math>
</math>
</p>




Line 43: Line 114:
|-
|-
|Molar number 1
|Molar number 1
|<math>n_1</math>
|<math>n_1(t)</math>
|23
|<math>n_1(t_0) = n_{a1} </math>
|-
|Molar number 2
|<math>n_2(t)</math>
|<math>n_2(t_0) = n_{a2} </math>
|-
|Molar number 3
|<math>n_3(t)</math>
|<math>n_3(t_0) = 0 </math>
|-
|Solvent
|<math>n_4(t)</math>
|<math>n_4(t_0) = n_{a4} </math>
|}
|}


{| class="wikitable"
{| class="wikitable"
|+Parameter(s)
|+Constants
|-
|-
|Name
|Name
|Symbol
|Symbol
|Value
|Value
|Unit
|-
|-
|Parameter
|Molar Mass
|<math>p</math>
|<math>M_1</math>
|23
|0.1362
|[-]
|-
|Molar Mass
|<math>M_2</math>
|0.09806
|-
|Molar Mass
|<math>M_3</math>
|0.23426
|-
|Molar Mass
|<math>M_4</math>
|0.236
|-
|Universal gas constant
|<math>R</math>
|8.314
|-
|Reference temperature
|<math>T_{\mathrm{ref}}</math>
|293
|-
|St.dev of measurement error
|<math>\sigma</math>
|1
|}
|}


Remember, in an optimum experimental design problem the parameters of the model are fixed. But, we minimize the parameter's uncertainties by optimizing over the control variables and functions.


{| class="wikitable"
{| class="wikitable"
|+Parameter(s)
|+Fixed parameters
|-
|-
|Name
|Name
|Symbol
|Symbol
|Value
|Value
|Unit
|-
|-
|Parameter
|Steric factor
|<math>p</math>
|<math>k_1</math>
|23
|<math>p_1 \cdot 0.01</math>
|[-]
|-
|Steric factor
|<math>k_{\mathrm{cat}}</math>
|<math>p_2 \cdot 0.10</math>
|-
|Activation energie
|<math>E_1</math>
|<math>p_3 \cdot 60000</math>
|-
|Activation energie
|<math>E_{\mathrm{cat}}</math>
|<math>p_4 \cdot 40000</math>
|-
|Catalyst deactivation coefficient
|<math>\lambda</math>
|<math>p_5 \cdot 0.25</math>
|}
with <math>p_j = 1, \ j =1, \dots, 5</math>
 
{| class="wikitable"
|+Optimization/control variables
|-
|Name
|Symbol
|Interval
|Initial value Exp 1
|Initial value Exp 2
|Initial value Exp 3
|Initial value Exp 4
|-
|Initial molar number 1
|<math>n_{a1}</math>
|[0,10.0]
|1.0
|1.0
|1.0
|1.0
|-
|Initial molar number 2
|<math>n_{a2}</math>
|[0,10.0]
|1.0
|1.0
|1.0
|1.0
|-
|Initial molar number 4
|<math>n_{a4}</math>
|[0.4,9.0]
|2.0
|2.0
|2.0
|2.0
|-
|Concentration of the catalyst
|<math>c_{\mathrm{cat}}</math>
|[0,6.0]
|0.0
|1.0
|2.0
|3.0
|}
 
{| class="wikitable"
|+Control function
|-
|Name
|Symbol
|Time interval
|Value interval
|Initial value Exp 1
|Initial value Exp 2
|Initial value Exp 3
|Initial value Exp 4
|-
|Temperature 1
|<math>\vartheta(t)</math>
|<math>[t_0,2]</math>
|[20.0,100.0]
|20.0
|60.0
|40.0
|20.0
|-
|Temperature 2
|<math>\vartheta(t)</math>
|<math>[2,8]</math>
|[20.0,100.0]
|20.0
|60.0
|40.0
|20.0
|-
|Temperature 3
|<math>\vartheta(t)</math>
|<math>[8,t_{\mathrm{end}}]</math>
|[20.0,100.0]
|20.0
|60.0
|40.0
|20.0
|}
|}


== Parameters ==
'''Measurement grid'''
 
<math>
\begin{array}{llll}
t_0 = 0  & & &  \\
t_{\mathrm{end}} = 20  & & &  \\
t_j = j/3, & j = 1,\dots, 15, & t_j = j - 10, & j = 16, \dots, 20.
\end{array}
</math>
 
== Source Code ==


* The VPLAN code using [[:Category: VPLAN | VPLAN]] can be found in: [[Diels-Alder Reaction Experimental Design (VPLAN)]]


== References ==


R. T. Morrison and R.N. Boyd. Organic Chemistry. Allyn and Bacon, Inc., 4th edition, 1983
S. Körkel. Numerische Methoden für Optimale Versuchsplanungsprobleme bei nichtlinearen DAE-Modellen.PhD thesis, Universität Heidelberg, Heidelber,2002




[[Category:VPLAN]]
[[Category:MIOCP]]
[[Category:Optimum Experimental Design]]
[[Category:Optimum Experimental Design]]
[[Category:ODE model]]
[[Category:ODE model]]

Latest revision as of 08:51, 9 October 2025

The Diels-Alder Reaction is an organic chemical reaction. A conjugated diene and a substituted alkene react and form a substituted cyclohexene system. Stefan Körkel used this model in his PhD thesis to compute optimum experimental designs.


Model Formulation

The reactionkinetics can be modelled by the following differential equation system:

n1˙(t)=−k⋅n1(t) ⋅ n2(t)mtot,n2˙(t)=−k⋅n1(t) ⋅ n2(t)mtot,n3˙(t)=  k⋅n1(t) ⋅ n2(t)mtotn4˙(t)=0

The reaction velocity constant k consists of two parts. One part reflects the non-catalytic and the other the catalytic reaction. The velocity law follows the Arrhenius relation

k=k1 ⋅ exp⁡(−E1R ⋅ (1T(t) − 1Tref)) + kcat ⋅ ccat ⋅ exp⁡(−λ ⋅ t) ⋅ exp⁡(−EcatR ⋅ ( 1T(t) − 1Tref))

Total mass:

mtot=n1 ⋅ M1 + n2 ⋅ M2 + n3 ⋅ M3 + n4 ⋅ M4

Temperature in Kelvin:

T(t)=ϑ(t)+273

The ODE system is summarized to:

x˙(t)=f(x(t),u(t),p)

Constraints

The control variables are constrained with respect to the mass of sample weights (initial mass):


0.1≤na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M4≤10

and to the mass of active ingredient content (fraction of active substances):

0.1≤na1 ⋅ M1 + na2 ⋅ M2na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M4≤0.7

Optimum Experimental Design Problem

The aim is to compute an optimal experimental design ξ=(q,w) which minimizes the uncertainties of the parameters k1,kcat,E1,Ecat,λ. So, we have to solve the following optimum experimental design problem:


minxi, Gi, Fi, Tci, na1i, na2i, na4i, ccati, ϑ(t)itrace(F−1(tend))s.t.x˙i(t)=f(xi(t),ui(t),p),h(t)=n3(t) ⋅ M3mtot ⋅ 100G˙i(t)=fx(xi(t),ui(t),p)Gi(t) + fp(xi(t),ui(t),p)F˙(t)=∑i=14wi(t)(hxi(xi(t),ui(t),p)Gi(t))T(hxi(xi(t),u(t),p)Gi(t))0.1≤na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M410≥na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M40.1≤na1 ⋅ M1 + na2 ⋅ M2na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M40.7≥na1 ⋅ M1 + na2 ⋅ M2na1 ⋅ M1 + na2 ⋅ M2 + na4 ⋅ M4ϑ(t)={ϑlot∈[t0,2]ϑlo+t−26(ϑup−ϑlo)t∈[2,8]ϑupt∈[8,tend]x∈𝒳,u∈𝒰,p∈Pz˙i(t)=wi(t)z(0)=0wi(t)∈[0,1]0≤4−zi(tf).


State variables
Name Symbol Initial value (t0)
Molar number 1 n1(t) n1(t0)=na1
Molar number 2 n2(t) n2(t0)=na2
Molar number 3 n3(t) n3(t0)=0
Solvent n4(t) n4(t0)=na4


Constants
Name Symbol Value
Molar Mass M1 0.1362
Molar Mass M2 0.09806
Molar Mass M3 0.23426
Molar Mass M4 0.236
Universal gas constant R 8.314
Reference temperature Tref 293
St.dev of measurement error σ 1

Remember, in an optimum experimental design problem the parameters of the model are fixed. But, we minimize the parameter's uncertainties by optimizing over the control variables and functions.

Fixed parameters
Name Symbol Value
Steric factor k1 p1⋅0.01
Steric factor kcat p2⋅0.10
Activation energie E1 p3⋅60000
Activation energie Ecat p4⋅40000
Catalyst deactivation coefficient λ p5⋅0.25

with pj=1, j=1,…,5

Optimization/control variables
Name Symbol Interval Initial value Exp 1 Initial value Exp 2 Initial value Exp 3 Initial value Exp 4
Initial molar number 1 na1 [0,10.0] 1.0 1.0 1.0 1.0
Initial molar number 2 na2 [0,10.0] 1.0 1.0 1.0 1.0
Initial molar number 4 na4 [0.4,9.0] 2.0 2.0 2.0 2.0
Concentration of the catalyst ccat [0,6.0] 0.0 1.0 2.0 3.0
Control function
Name Symbol Time interval Value interval Initial value Exp 1 Initial value Exp 2 Initial value Exp 3 Initial value Exp 4
Temperature 1 ϑ(t) [t0,2] [20.0,100.0] 20.0 60.0 40.0 20.0
Temperature 2 ϑ(t) [2,8] [20.0,100.0] 20.0 60.0 40.0 20.0
Temperature 3 ϑ(t) [8,tend] [20.0,100.0] 20.0 60.0 40.0 20.0

Measurement grid

t0=0tend=20tj=j/3,j=1,…,15,tj=j−10,j=16,…,20.

Source Code

References

R. T. Morrison and R.N. Boyd. Organic Chemistry. Allyn and Bacon, Inc., 4th edition, 1983
S. Körkel. Numerische Methoden für Optimale Versuchsplanungsprobleme bei nichtlinearen DAE-Modellen.PhD thesis, Universität Heidelberg, Heidelber,2002