Solving a non-linear ODE with coupled algebraic equations
Show older comments
I'm trying to solve a differential equation which has two coupled algebraic equations and two independent variables.
, is the differential equation. n and t* are defined as,

My knowledge of solving differential equations in matlab is limited and I'm unable to couple the equations with the differential equation.
Also, what would be the best way to solve this problem, should I use the standard ode45 or use DAE solver?
17 Comments
Alan Stevens
on 29 Aug 2020
Is p2 being differentiated with respect to t or t*?
What is the initial Temperature?
What is the timespan of the integration?
Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
Edited: Alan Stevens
on 29 Aug 2020
What about t and t* ?
If you ae integrating wrt t not t*, then you need something else to relate t and T.
If wrt t* then T(0) is not consistent with t* = 0.
Ali Muhammad Hassaan
on 29 Aug 2020
Edited: Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
Edited: Alan Stevens
on 29 Aug 2020
So your first equation means dp/dt* = ...?
If so, what happens at t* = 0? It implies dp/dt* is infinite or undefined (divide by zero). Also, The relation between T and t* is inconsistent.
Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
So, you aren't integrating with respect to t* then?
Also, if p2(0) = 0, and dp2dt(0) is zero then there is nothing that allows p2 to change - it will stay at zero!
Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
If you start at room temperature then, according to your relation between t* and T, the initial value of t* will be around 600.
And if t* is finite, then with p2(0) = 0, dp2/dt will also be zero, so p2 will still not change!
Ali Muhammad Hassaan
on 29 Aug 2020
Edited: Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
There is still a problem at 20 secs! If p2 is zero, dp2/dt is still either zero or infinite (depending on p being on numerator or denominator - the latter determined by the value of n), neither of which is very useful for integrating!
Do you have a copy of the paper?
Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
Edited: Alan Stevens
on 29 Aug 2020
Use the attachments symbol (the paper-clip symbol) to upload it here. If it's not in electronic form, either scan it first, or find a link to an (open) on-line version.
There's no guarantee I'll understand it, but I'll have a look!
Ali Muhammad Hassaan
on 29 Aug 2020
Edited: Ali Muhammad Hassaan
on 29 Aug 2020
Alan Stevens
on 29 Aug 2020
Ok. Leave it with me. It might take me some time to read and understand - if I understand it at all!
Ali Muhammad Hassaan
on 29 Aug 2020
Ali Muhammad Hassaan
on 29 Aug 2020
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations 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!

