Coupled differential equations kinetic

3 views (last 30 days)
Hello Im am trying to solve 3 coupled ODE's, with the plot related to the reduction of NO by with ammoniasulphate.
The issiue is that the differential equation i wrote do not seems to be coupled. First the initial condition for NH3 is zero, but that makes the rate of change 0. If i change the NH3 to a very small value then the system still not respond well (deacreasing NO over time) as chaning the stouchemtic coiffcient x1 does not change the NO concentration...... see attched. Thanks.
  2 Comments
Sulaymon Eshkabilov
Sulaymon Eshkabilov on 5 Oct 2019
Could you please post your diff equations in order to read your code correctly?
Niels Normann Sørensen
Niels Normann Sørensen on 5 Oct 2019
Yes sorry, just posted the 3 ODE's as ZIP file.

Sign in to comment.

Accepted Answer

darova
darova on 5 Oct 2019
yprime and y are always connected
function [ yprime ] = calibration( t,y,par,par_cali,T,x1,O2)
Your input y were in wrong order. Try this
AS=y(1);
NH3=y(2);
NO=y(3);
Result
img1.png
  6 Comments
Niels Normann Sørensen
Niels Normann Sørensen on 5 Oct 2019
Edited: Niels Normann Sørensen on 5 Oct 2019
I did not know that the order off the diff setup and intial conditions have to be the same.
Now the L comment is funny hahah!!

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!