I have 4 differential equations. Two 2nd order ODEs
eqns3 = θ1''[y] + Q1 == 0, θ1[0] == θh, -θ1'[0] == Qh
eqns4 = θ2''[y] + Q2 == 0, θ2[1] == 1, -θ2'[1] == Nc (θ2[1] - 1)
and two 4th order ODEs.
eqns1 = θs''''[y] - Bi (k + 1) θs''[y] - Bi k (wf + ws) == 0
eqns2 = θf''''[y] - Bi (k + 1) θf''[y] - Bi k (wf + ws) == 0
The boundary conditions for the 4th order ODEs
θ2[y2] == θf[y2],
θf[y1] == θ1[y1],
θ1'[y1] == ke1 θf'[y1] + k ke1 θs'[y1],
θ2'[y2] == ke2 θf'[y2] + k ke2 θs'[y2]
θs[y1] == θ1[y1],
θs[y2] == θ2[y2],
θ1'[y1] == ke1 θf'[y1] + k ke1 θs'[y1],
θ2'[y2] == ke2 θf'[y2] + k ke2 θs'[y2]
I guess, because the boundary conditions for the fourth order are coupled, Mathematica has been unable to solve for theta f and θs (they are still blue), which does not allow me to plot the graphs.
Also, I have the general solutions of these equations.
θs[y] = Es y^2 + Fs Cosh[y * Sqrt[Bi (k + 1)]] + K1s y + K2s
θf[y] = Ef y^2 + Ff Cosh[y * Sqrt[Bi (k + 1)]] + K1f y + K2f
θ1[y] = A1 y^2 + B1 y + C1
θ1[y] = A2 y^2 + B2 y + C2
Where Es, Fs, K1s, K2s, Ef, Ff, K1f, K2f, A1, B1, C1, A2, B2, C2 are all unknowns. Any tips on how I can solve this problem.
My code
eqns1 = θs''''[y] - Bi (k + 1) θs''[y] - Bi k (wf + ws) == 0
eqns2 = θf''''[y] - Bi (k + 1) θf''[y] - Bi k (wf + ws) == 0
eqns3 = θ1''[y] + Q1 == 0
eqns4 = θ2''[y] + Q2 == 0
DSolve[
{eqns2,
θ2[y2] == θf[y2],
θf[y1] == θ1[y1],
θ1'[y1] == ke1 θf'[y1] + k ke1 θs'[y1],
θ2'[y2] == ke2 θf'[y2] + k ke2 θs'[y2]},
θf[y], y]
DSolve[{eqns3, θ1[0] == θh, -θ1'[0] == Qh}, θ1[y], y]
DSolve[
{eqns1,
θs[y1] == θ1[y1],
θs[y2] == θ2[y2], θ1'[y1] == ke1 θf'[y1] + k ke1 θs'[y1],
θ2'[y2] == ke2 θf'[y2] + k ke2 θs'[y2]},
θs[y], y]
DSolve[{eqns4, θ2[1] == 1, -θ2'[1] == Nc (θ2[1] - 1)}, θ2[y], y]
Solving for θ1 and θ2 was okay. But for θs and θf it could not solve it. Mathematica gave me an answers for θf and θs but those answers had θf and θs in them.
{}button to format code. – Feyre Aug 21 '16 at 16:50Solve[Eliminate[ts == \[Theta]s[y] /. sol1, \[Theta]s[y]], ts] /. ts -> \[Theta]s[y]. All solutions are very long though, it'd be a lot easier if you could do this numerically. – Feyre Aug 21 '16 at 17:13Bi,ketc. That is an attempt to findtheta swithouttheta s"in them", like you state in the last sentence of your question. – Feyre Aug 21 '16 at 17:26DSolve[]properly? – Michael E2 Aug 21 '16 at 19:36NDSolve[]the same way, but you need to know ALL variables. – Feyre Aug 21 '16 at 19:50