
Need to solve ode equation which are dependent
조회 수: 5 (최근 30일)
이전 댓글 표시
Need to solve following equations, where the output of eq. 7 used as the input of eq. 8. All values are on right side in equations are known. you can use random value for solving those. Initial conditions are given in the image.

but here are the values
n = 99000
do_fiber = 175 * 10^-6
di_fiber = 85 * 10^-6
Jw = 0.026
Js = 0.0026
댓글 수: 0
채택된 답변
Alan Stevens
2020년 10월 5일
Your equations can be manipulated as follows

Equations (1) and (2) can be solved directly as functions of z.
Equations (3) and (4) actually have analytical solutions also, though it might be simpler to use ode45 to solve them within Matlab.
댓글 수: 7
Alan Stevens
2020년 10월 5일
Hmm. This is so much more than is in the original question, so I've taken what seems to be the relevant data, solved all of QDS, QFS, CDS and CFS analytically, and produced the following. I can't tell if the results are sensible in the context of the larger problem. I'll leave it to you to decide if the fllowing is of any use ata ll:
L_M = 0.74;
n = 99000;
di_fiber = 85 * 10^-6;
k = n*pi*di_fiber;
Jw = 2.5;
Js = 0.5;
QDSinlet = 1.7 *(10^-3/60);
QFSinlet = 2.7 * (10^-3/60);
CDSinlet = 0.005818;
CFSinlet = 0.770021;
dz = 10^-3;
z = 0:dz:L_M;
QDS = k*Jw*z + QDSinlet; QDSoutlet = QDS(end);
QFS = -k*Jw*z + QFSinlet; QFSoutlet = QFS(end);
CDS = (CDSinlet + Js/Jw)*QDSinlet./(k*Jw*z+QDSinlet) - Js/Jw;
CFS = (CFSinlet + Js/Jw)*QFSinlet./(-k*Jw*z + QFSinlet) - Js/Jw;
disp('QDSoutlet, QFSoutlet')
disp([QDS(end) QFS(end)])
disp('CDSoutlet, CFSoutlet')
disp([CDS(end) CFS(end)])
This produces
QDSoutlet, QFSoutlet
48.9076 -48.9075
CDSoutlet, CFSoutlet
-0.2000 -0.2000
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

