Solving a non-linear ODE with coupled algebraic equations
이전 댓글 표시
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
Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
Alan Stevens
2020년 8월 29일
편집: Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
편집: Ali Muhammad Hassaan
2020년 8월 29일
Alan Stevens
2020년 8월 29일
편집: Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
편집: Ali Muhammad Hassaan
2020년 8월 29일
Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
Alan Stevens
2020년 8월 29일
편집: Alan Stevens
2020년 8월 29일
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
2020년 8월 29일
편집: Ali Muhammad Hassaan
2020년 8월 29일
Alan Stevens
2020년 8월 29일
Ok. Leave it with me. It might take me some time to read and understand - if I understand it at all!
Ali Muhammad Hassaan
2020년 8월 29일
Ali Muhammad Hassaan
2020년 8월 29일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


