
Need to solve ode equation which are dependent
5 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Alan Stevens
on 5 Oct 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 Comments
Alan Stevens
on 5 Oct 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
More Answers (0)
See Also
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!
