How to correct the regenerated plot of given analytical solution of ODE?

조회 수: 1 (최근 30일)
Muhammad Usman
Muhammad Usman 2021년 4월 28일
for
for
The analytical solution for this ODE is given belown and written as MATLAB in code routine:
for
t = -log(1-a)/((K1+K2)*(B-1)) + log(1-(a/B))/((K1+(K2*B))*(B-1)) + (K2*log(1+((a*K2)/K1)))/((K1+(K2*B))*(K1+K2));
and for
t = -(1/K3)*(log((1-a)/0.7))+tc;
where,
tc = -log(0.7)/((K1+K2)*(B-1)) + log(1-(0.3/B))/((K1+(K2*B))*(B-1)) + (K2*log(1+((0.3*K2)/K1)))/((K1+(K2*B))*(K1+K2));
other constants used are:
R = 8.314;
T = 450;
B = 0.4:0.54;
A1 = 2.101e9;
A2 = -2.014e9;
A3 = 1.960e9;
delE1 = 8.07e4;
delE2 = 778e4;
delE3 = 5.66e4;
K1 = A1*exp(-delE1/(R*T));
K2 = A2*exp(-delE2/(R*T));
K3 = A3*exp(-delE1/(R*T));
k = K1/K2;
I regenerated the plot for from the the given solution:
But the actual plot of the given solution is
where I'm doing WRONG?
Please guide me.
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by