Jump to content

Urethane: Difference between revisions

From mintOC
 
(8 intermediate revisions by the same user not shown)
Line 21: Line 21:
</p>
</p>
For ease of notation the chemical substances use the abbreviations
For ease of notation the chemical substances use the abbreviations
<table border="1">
<table style="border-collapse:collapse;" border="1">
             <tr>
             <tr style="border-bottom: 2pt solid black">
                 <th>Letter</th>
                 <th style="border-right:2pt solid black; padding:2pt">Letter</th>
                 <th>Substance</th>
                 <th style="padding:2pt">Substance</th>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>A</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>A</math></td>
                 <td>Phenyl Isocyanate</td>
                 <td style="padding:2pt">Phenyl Isocyanate</td>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>B</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>B</math></td>
                 <td>Butanol</td>
                 <td style="padding:2pt">Butanol</td>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>C</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>C</math></td>
                 <td>Urethane <i>(Main Product)</i></td>
                 <td style="padding:2pt">Urethane <i>(Main Product)</i></td>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>D</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>D</math></td>
                 <td>Allophanate <i>(Secondary Product)</i></td>
                 <td style="padding:2pt">Allophanate <i>(Secondary Product)</i></td>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>E</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>E</math></td>
                 <td>Isocyanurate <i>(Byproduct)</i></td>
                 <td style="padding:2pt">Isocyanurate <i>(Byproduct)</i></td>
             </tr>
             </tr>
             <tr>
             <tr>
                 <td>L</td>
                 <td style="border-right:2pt solid black; text-align: center; padding:2pt"><math>L</math></td>
                 <td>Dimethyl Sulfoxide</td>
                 <td style="padding:2pt">Dimethyl Sulfoxide</td>
             </tr>
             </tr>
     </table>
     </table>
Line 105: Line 105:
  </math>
  </math>
</p>  
</p>  
Each experiment lasts 80 h. The beginning is Monday, 8 pm, the end Thursday, 4 pm. During the
Each experiment lasts 80 hours. The beginning is Monday, 8 pm, the end Thursday, 4 pm. During the
nights, the feed rates and the heating=cooling rate have to be zero due to safety rules.
nights, the feed rates and the heating=cooling rate have to be zero due to safety rules.
Further control variables for experimental design are  
Further control variables for experimental design are  
Line 115: Line 115:
  <math>
  <math>
   \begin{align}
   \begin{align}
   MV_1 &= \frac{n_{a2}+n_{a2eb}}{n_{a1} + n_{a1ea}}, \quad && g_a &= \frac{n_{a1} \cdot M_1 + n_{a2} \cdot M_2}{n_{a1} \cdot M_1 + n_{a2} \cdot M_2 + n_{a6} \cdot M_6}, \\
   MV_1 &= \frac{n_{a2}+n_{a2eb}}{n_{a1} + n_{a1ea}}, \qquad && g_a &&= \frac{n_{a1} \cdot M_1 + n_{a2} \cdot M_2}{n_{a1} \cdot M_1 + n_{a2} \cdot M_2 + n_{a6} \cdot M_6}, \\
   MV_2 &= \frac{n_{a1ea}}{n_{a1}},  && g_{aea} &= \frac{n_{a1ea} \cdot M_1}{n_{a1ea} \cdot M_1 + n_{a6ea} \cdot M_6}, \\
   MV_2 &= \frac{n_{a1ea}}{n_{a1}},  && g_{aea} &&= \frac{n_{a1ea} \cdot M_1}{n_{a1ea} \cdot M_1 + n_{a6ea} \cdot M_6}, \\
   MV_3 &= \frac{n_{a2eb}}{n_{a1}}, \quad && g_{aeb} &= \frac{n_{a2eb} \cdot M_2}{n_{a2eb} \cdot M_2 + n_{a6eb} \cdot M_6}, \\
   MV_3 &= \frac{n_{a2eb}}{n_{a1}}, \quad && g_{aeb} &&= \frac{n_{a2eb} \cdot M_2}{n_{a2eb} \cdot M_2 + n_{a6eb} \cdot M_6}, \\
   & && V_a &= \frac{n_{a1}}{\rho_1} \cdot M_1 + \frac{n_{a2}}{\rho_2} \cdot M_2 + \frac{n_{a6}}{\rho_6} \cdot M_6
   & && V_a &&= \frac{n_{a1}}{\rho_1} \cdot M_1 + \frac{n_{a2}}{\rho_2} \cdot M_2 + \frac{n_{a6}}{\rho_6} \cdot M_6
   \end{align}
   \end{align}
  </math>
  </math>
Line 133: Line 133:
== Parameters ==
== Parameters ==


<table border="1.5">
<table style="border-collapse:collapse" border="1.5">
             <tr>
             <tr>
             <td colspan=2 style="text-align: center; padding:5pt">Intial Values</td>
             <td colspan=2 style="text-align: center; padding:5pt">Intial Values</td>
Line 170: Line 170:




<table border="1.5">
<table style="border-collapse:collapse" border="1.5">
             <tr>
             <tr>
             <td colspan=3 style="text-align: center; padding:5pt">Constants</td>
             <td colspan=3 style="text-align: center; padding:5pt">Constants</td>
Line 211: Line 211:


== Optimal Experimental Design Problem ==
== Optimal Experimental Design Problem ==
<!--<span style="color:red">To specify</span>
In this approach, we add the so-called sensitivities <math>G=dy/d\theta</math>. For the differential equations this means
In this approach, we add the so-called sensitivities <math>G=dy/d\theta</math>. For the differential equations this means
<p>
<p>
Line 217: Line 218:
  </math>
  </math>
</p>
</p>
 
-->
Now we formulate the OED problem as described in [[#OEDUDE | [3]]].
Now we formulate the OED problem as described in [[#OEDUDE | [3]]].
<p>
<p>

Latest revision as of 09:07, 13 November 2024

Urethane
State dimension: 1
Differential states: 11
Discrete control functions: 2
Path constraints: 4
Interior point equalities: 11


This page describes the Optimal Experimental Design Problem for the Urethane Reaction. The following formulation is taken from [1] and [2].

Chemical background

The reaction scheme of the urethane reaction is as follows:

A+BCA+CD3AE

For ease of notation the chemical substances use the abbreviations

Letter Substance
A Phenyl Isocyanate
B Butanol
C Urethane (Main Product)
D Allophanate (Secondary Product)
E Isocyanurate (Byproduct)
L Dimethyl Sulfoxide

The reactor for the urethane reaction is a stirred tank and can be operated as a batch or semi-batch process with up to two feeds. In the reactor, phenyl isocyanate and butanol can be initially charged in the solvent dimethyl sulfoxide. In feed 1, phenyl isocyanate in dimethyl sulfoxide can be added, and in feed 2, butanol in dimethyl sulfoxide can be added. The internal temperature of the reactor is controllable.

Mathematical formulation

We can describe this process using a nonlinear DAE model

n˙1=V(r1r2+r3)n˙2=V(r2r3)n˙3=Vr40=n1+n3+2n4+3n5na1n1ea0=n2+n3+n4na2n2eb0=n6na6n6ean6ebn3(t0)=n4(t0)=n5(t0)=0 mol,t0=0h,tf=80h

with

V=i=16niMiρi,ki=krefiexp(EaiR(1T1Trefi)), i=1,2,4r1=k1n1Vn2V,r2=k2n1Vn3V,kc=kc2exp(dh2R(1T1Tg2))k3=k2kc,r3=k3n4V,r4=k4(n1V)2

The molar numbers n1,,n5 of the species A to E and n6 of the solvent L are the state variables of the DAE system. There are eight unknown parameters in this model:

  • the steric factors krefi, i=1,2,4
  • the activation energies Eai, i=1,2,4
  • the equilibrium constant kc2 (for the reference temperature Tg2)
  • the reaction enthalpy dh2 of the reversible reaction
  • The two feeds are modelled by two monotonously increasing control functions

    feeda,feedb: [t0,tf][0,1]

    describing the profiles of the accumulated feeds. Multiplied with the initial molar numbers within the feed vessels, we get the feed molar numbers:

    n1ea=na1eafeeda,n2eb=na2ebfeedb,n6ea=na6eafeeda,n6eb=na6ebfeedb

    The third control function is the temperature profile

    T:[t0,tf][293.16 K, 473.16 K]

    Each experiment lasts 80 hours. The beginning is Monday, 8 pm, the end Thursday, 4 pm. During the nights, the feed rates and the heating=cooling rate have to be zero due to safety rules. Further control variables for experimental design are

  • the mole ratios MV1[0.1,10], MV2[0,1000], and MV3[0,10]
  • the parts of active ingredients ga[0,0.8], gaea[0,0.9], and gaeb[0,1]
  • the initial volume Va[0m3,0.00075m3] of the species in the reactor.
  • These quantities are connected to the initial molar numbers as follows

    MV1=na2+na2ebna1+na1ea,ga=na1M1+na2M2na1M1+na2M2+na6M6,MV2=na1eana1,gaea=na1eaM1na1eaM1+na6eaM6,MV3=na2ebna1,gaeb=na2ebM2na2ebM2+na6ebM6,Va=na1ρ1M1+na2ρ2M2+na6ρ6M6

    The remaining quantities are constants and shown in the parameter section. Three measurement methods are available:

  • titration, measuring mass percent of phenylisocyanate with a standard deviation of the measurement error of 0.5,
  • HPLC1, giving mass percent of urethane and allophanate with standard deviations 0.5 resp. 0.005,
  • HPLC2, for mass percent of isocyanurate with standard deviation 0.0005
  • In each experiment, 16 measurements can be selected out of 30 possible ones. We parametrize the time depending control functions using piecewise linear and continuous polynomials. Altogether we have 90 experimental design variables for each experiment: 7 control variables, 7 initial molar numbers, 30 weights on the measurements, and 46 variables due to the parametrization of the control functions.

    Parameters

    Intial Values
    MV1 1.0
    MV2 0.3
    MV3 0.3
    ga 0.75
    gaea 0.5
    gaeb 0.4
    Va 2.75105 m3


    Constants
    Molar Mass Density Reference Temperature
    M1=0.11911 kg/mol ρ1=1095.0 kg/m3 Tref1=363.16 K
    M2=0.07412 kg/mol ρ2=809.0 kg/m3 Tref2=363.16 K
    M3=0.19323 kg/mol ρ3=1415.0 kg/m3 Tref4=363.16 K
    M4=0.31234 kg/mol ρ4=1528.0 kg/m3 Tg2=363.16 K
    M5=0.35733 kg/mol ρ5=1451.0 kg/m3 molar gas constant
    R=8.314 J/(Kmol)
    M6=0.07806 kg/mol ρ6=1101.0 kg/m3

    Optimal Experimental Design Problem

    Now we formulate the OED problem as described in [3].

    miny,G,F,z,wtrace(F1(tf))subject toy˙(t)=f(y(t),θ)G˙(t)=fy(y(t),θ)G(t)+fθ(y(t),θ)F˙(t)=i=1nowi(t)(hyi(y(t))G(t))T(hyi(y(t))G(t))z˙(t)=w(t),y(0)=y0G(0)=y(0)θF(0)=0,z(0)=0w(t)𝒲zi(tf)Mi

    Here h is the observed function. The evolution of the symmetric matrix F is given by the weighted sum of observability Gramians hyi(y(t))G(t) for each observed function of states. The weights wi(t) are the sampling decisions.

    Miscellaneous and Further Reading

    To be specified.

    References

    [1] "Numerische Methoden für Optimale Versuchsplanungsprobleme bei nichtlinearen DAE-Modellen " by S. Körkel
    [2] "Numerical methods for optimum experimental design in DAE systems" by I. Bauer, H.G. Bock, S. Körkel and J.P. Schlöder
    [3] "Optimal Experimental Design for Universal Differential Equations" by C. Plate, C.J. Martensen and S. Sager