SOLVING SYSTEM OF ODEs
Ältere Kommentare anzeigen
Hello,
I have this system of differential equations:

where these two are being differentiated respect an adimensional time defined as:
also all other variables are defined as:

but I also have a third differential equation which is:

Is there any way of solving these equations in the same ODE45 solver? Later I want to couple this system with another two ODEs that are going to be diferrentiated respect to 't' and I need to solve all of them together.
Thanks in advance.
4 Kommentare
Torsten
am 7 Mai 2023
And what is the problem implementing your 3 equations for ode45 ? The transformation from t to tau ?
Sam Chak
am 7 Mai 2023
It looks like a two-time scale problem, where the first 2 odes are with respect to
, and the 3rd ode is with respect to the time t.
Diego Mondaray Muñoz
am 7 Mai 2023
Bearbeitet: Diego Mondaray Muñoz
am 8 Mai 2023
Diego Mondaray Muñoz
am 7 Mai 2023
Antworten (1)
Write your three equations in the same independent variable (thus either t or tau).
I assume all three equations are written in t.
Then your call to ODE45 would be
tspan = [tstart tend]
y0 = [Tf0;Tc0;T0];
dTf_dt = @(t,y)...
dTc_dt = @(t,y)...
dT_dt = @(t,y)...
fun = @(t,y)[dTf_dt(t,y);dTc_dt(t,y);dT_dt(t,y)];
[Time,Y] = ode45(fun,tspan,y0)
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!