Solving Implicit differential differential equations.
Show older comments
I have been posed with the following problem of chemical engineering:
dX/dz = (a*((1-X)/(1+X))^2)/Uo
da/dz = X/(1+2X)/Uo
The maximum value of z = 15.
The objective is choose an optimum value of Uo so as to maximize 'X', at maximum z, i.e, at z=15. The initial conditions are :
At z = 0; X = 0
At z = 0; a = 1.
Thanks a lot in advance.
Answers (3)
Torsten
on 17 Oct 2016
0 votes
My guess is that an optimum value for Uo does not exist, but that the closer to 0 you choose Uo, the faster X will approach 1.
Best wishes
Torsten.
1 Comment
NILADRI SEKHAR MANDAL
on 17 Oct 2016
Torsten
on 18 Oct 2016
Couple fmincon and bvp4c to solve the system
max: Uo
s.c.
dX/dz = (a*((1-X)/(1+X))^2)/Uo
da/dz = X/(1+2X)/Uo
X(0)=0
a(0)=1
X(15)=1
Best wishes
Torsten.
3 Comments
Walter Roberson
on 18 Oct 2016
I do not see why X(15)=1 ?
Torsten
on 18 Oct 2016
I think the maximum value X can reach is 1 because it seems to be a conversion rate in chemical reaction engineering. This value should be attained exactly at z=15 and not at a smaller value of z - that's why Uo must be maximized.
Best wishes
Torsten.
Walter Roberson
on 18 Oct 2016
My analysis is that the integral of a(z) must be complex when X(z) is less than 1.
Maple refuses to solve analytically. Unless, that is, you add a delta to the da/dz right hand side, in which case it can find a formula based on finding the root of a messy function involving the integral of something or other.
I have to wonder if the equations are correct.
Walter Roberson
on 18 Oct 2016
0 votes
My tests with ode45 and ode15s show that the optimal value for U0 is approximately 7.94E-154, yielding X(15) = 8.92239656364801e+307 . 7.93E-154 and smaller values give NaN, so the tension is to reduce 7.94E-154 by less than 1E-156 to get as close as possible to realmax = 1.79769313486232e+308 without getting NaN.
Categories
Find more on Chemistry in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!