0

I am trying to solve

enter image description here

My code is

s = NDSolve[{Derivative[3][f][eta] + f[eta] Derivative[2][f][eta] -
Derivative[1][f][eta]^2 + 1 == 0, Derivative[2][theta][eta] 
+0.7 f[eta] Derivative[1][theta][eta] = 0, [theta][0] = 1, [theta][#] = 0, 
f[0] == 0, f'[0] == -1.18, f'[#] == 0}, f, theta, {eta, 0, 6}] & /@ Range[10, 2, 5]; 
Plot[Evaluate[f'[eta] /. s], {eta, 0, 6}, PlotRange -> All, 
PlotLegends -> (ToString[#] & /@ Range[1, 0, 6])]
bbgodfrey
  • 61,439
  • 17
  • 89
  • 156
user63593
  • 31
  • 1
  • 2
    Please add copy-pastable code, not images of code. Also, what is the exact problem you're facing? – corey979 Mar 23 '19 at 12:57
  • paste you code please – nufaie Mar 23 '19 at 13:08
  • s = NDSolve[{Derivative[3][f][eta] + f[eta] Derivative[2][f][eta] -Derivative[1][f][eta]^2 + 1 == 0, Derivative[2][theta][eta] +0.7 f[eta] Derivative[1][theta][eta] = 0, [theta][0] = 1, [theta][#] = 0, f[0] == 0, f'[0] == -1.18, f'[#] == 0}, f, theta, {eta, 0, 6}] & /@ Range[10, 2, 5]; Plot[Evaluate[f'[eta] /. s], {eta, 0, 6}, PlotRange -> All, PlotLegends -> (ToString[#] & /@ Range[1, 0, 6])] It is not working when I used couple equations. Please some one help me . Thanks – user63593 Mar 23 '19 at 13:41
  • [theta][0] = 1 is a syntax error, do you mean theta[0] == 1? – Coolwater Mar 23 '19 at 18:02
  • Very similar to 100659. – bbgodfrey Mar 24 '19 at 04:30
  • Welcome to Mathematica.SE! I hope you will become a regular contributor. To get started, 1) take the introductory [tour] now, 2) when you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge, 3) remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign, and 4) give help too, by answering questions in your areas of expertise. – bbgodfrey Mar 24 '19 at 04:34

1 Answers1

7

This is how you can solve your system of ODE's,

Eqn1 = f'''[x] + f[x]*f''[x] - f'[x]*f'[x] + 1 == 0;

Eqn2 = theta''[x] + Pr*(f[x]*theta'[x]) == 0;

BC1 = f[0] == 0;

BC2 =  f'[0] == epsilon;

BC3 = f'[N1] == 1;

BC4 = theta[0] == 1;

BC5 = theta[N1] == 0;

params = {epsilon -> -1.18, Pr -> 0.7};

N1 = 10; (*N1 is used for infinity. You can test your luck with a HUGE number*)

sol = NDSolve[{Eqn1, Eqn2, BC1, BC2, BC3, BC4, BC5} /. params, {f, theta}, {x, 0, N1}]

Plot[Evaluate[{f'[x], theta[x]} /. (sol)], {x, 0, N1}, PlotRange -> All, 
PlotStyle -> {Blue, Red}, Frame -> True, FrameStyle -> Directive[Black, Bold, 12], 
PlotRange -> All]

enter image description here

zhk
  • 11,939
  • 1
  • 22
  • 38