
Need to solve ode equation which are dependent
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dhaval Patel
am 5 Okt. 2020
Kommentiert: Dhaval Patel
am 5 Okt. 2020
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 Kommentare
Akzeptierte Antwort
Alan Stevens
am 5 Okt. 2020
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 Kommentare
Alan Stevens
am 5 Okt. 2020
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

