2nd order differential eqn for Windkessel model
Show older comments
I am struggling to solve this 2nd order ODE in matlab for a 4WK Parallel Windkessel model, this is what I have so far for my input and outputs for a 2WK model, a 3WK model (attached).
I am trying to solve a 2nd order ODE:
I''(R*L*C*r) + I'(L*(R+r)) +I*(R*r) = Y"(L*C*R)+Y'(C*R*r +L)+ Y*r
I is :
I=@(t)I0*sin((pi*t)/Ts).^2.*(t<=Ts); %input current flow
t=0:0.001:Tc;
Initial conditions for Y(0)= 80, the rest of the variables are known constants.
Thanks in advance!
7 Comments
Torsten
on 22 Nov 2022
You have a second-order ODE in Y. So you need to solve a system of equations for Y and Y'.
Nang Su Lwin
on 22 Nov 2022
I was able to solve for Y fine with first order ODE's as seen in my code.
Then you must have used an ODE different from the one you posted:
I''(R*L*C*r) + I'(L*(R+r)) +I*(R*r) = Y"(L*C*R)+Y'(C*R*r +L)+ Y*r
Nang Su Lwin
on 22 Nov 2022
Torsten
on 22 Nov 2022
You have to solve
y1' = y2
y2' = (I''*(R*L*C*r) + I'*(L*(R+r)) +I*(R*r) - (y2*(C*R*r +L)+ y1*r))/(L*C*R)
with
y1(0) = 80 and y2(0) = ?
(y1 = Y, y2 = Y')
Nang Su Lwin
on 22 Nov 2022
Nang Su Lwin
on 22 Nov 2022
Edited: Nang Su Lwin
on 22 Nov 2022
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!

