How can I write the differential equation below?

조회 수: 4 (최근 30일)
seyyed Erfan ghoreyshipour
seyyed Erfan ghoreyshipour 2021년 12월 18일
답변: seyyed Erfan ghoreyshipour 2021년 12월 19일
I want to code the mathematical model below:
could you please help me out?
I want to estimate Q (flow) in this equation.
I also have omega=[7200,8800]
and can assign value to H.
After writing the code, I want to proceed with a simulink model.
Thank you for your help in advance

채택된 답변

Torsten
Torsten 2021년 12월 18일
편집: Torsten 2021년 12월 18일
With
c1 = (b*omega + c*H)/L
c2 = (a + d*omega^2)/L
the solution Q(t) is
Q(t) = (-c1 + (c1+c2*Q0) * exp((t-t0)*c2)) / c2
where the initial condition is Q(t=t0) = Q0
  댓글 수: 4
seyyed Erfan ghoreyshipour
seyyed Erfan ghoreyshipour 2021년 12월 19일
Thank you!
It's great!
One question!
shouldn't it be c2 = ((a + d*omega^2)*Q)/L in the first equation?
Torsten
Torsten 2021년 12월 19일
편집: Torsten 2021년 12월 19일
No.
With
c1 = (b*omega + c*H)/L
c2 = (a + d*omega^2)/L
the differential equation reads
dQ/dt = c1 + c2*Q
thus
dQ/(c1+c2*Q) = dt
thus
integral_{Q0}^{Q} dQ/(c1+c2*Q) = integral_{t0}^{t} dt
thus
1/c2 * log((c1+c2*Q)/(c1+c2*Q0)) = t-t0
thus
exp(c2*(t-t0)) = (c1+c2*Q)/(c1+c2*Q0)
I leave it to you to solve for Q now.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

seyyed Erfan ghoreyshipour
seyyed Erfan ghoreyshipour 2021년 12월 19일
Thank you master!

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by