Advertisement
Guest User

Untitled

a guest
May 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. kf = 0.000654(*[kW/mK]*)
  2. ks = 0.00025(*[kW/mK]*)
  3. Prandtlf[T_] :=
  4. 2.193*(10^(-7))*(T^4) - 6.062*(10^(-5))*(T^3) + 0.006767*(T^2) -
  5. 0.3959*T + 12.65
  6. Muf[T_] :=
  7. 2.72*(10^(-11))*(T^4) - 7.411*(10^(-09))*(T^3) +
  8. 8.259*(10^(-07))*(T^2) - 4.969*(10^(-05))*T + 0.001726(*[Ns/m^2] *)
  9. ReynoldsG[T_] := ((0.5*983.3)/(0.00152053*0.71))*(0.0015/(Muf[T]))
  10. NusseltP1[T_] :=
  11. 3.22*((ReynoldsG[T]*Prandtlf[T])^(1/3)) +
  12. 0.117*(ReynoldsG[T]^0.8)*Prandtlf[T]^0.4
  13. hp1[T_] := NusseltP1[T]*kf/0.5;
  14.  
  15. cps[T_] := (161.88/57.89)*(1.766*
  16. Exp[-((T - 58.41)/0.6049)^2] + 1.925*Exp[-((T - 57.34)/1.365)^2] +
  17. 2.038*Exp[-((T - 32.38)/20.57)^2] +
  18. 0.6765*Exp[-((T - 39.4)/2.519)^2] +
  19. 0.6589*Exp[-((T - 30.2)/16.44)^2] +
  20. 0.9032*Exp[-((T - 41.79)/50.14)^2])
  21.  
  22. eps = 0.0000000001
  23. sol = NDSolveValue[{(r + eps)*Rhos *cps[T[r, t]]*D[T[r, t], t] -
  24. ks* D[r*(D[T[r, t], r]), r] ==
  25. NeumannValue[0, r == 0] -
  26. NeumannValue[hp1[T[r, t]]*(T[r, t] - 60), r == 0.0015],
  27. T[r, 0] == 20}, T, {r, 0, 0.0015}, {t, 0, 100},
  28. Method -> {"MethodOfLines",
  29. "SpatialDiscretization" -> "FiniteElement"}]
  30.  
  31. Plot[{sol[0.0005, t], sol[0, t], sol[0.0013, t]}, {t, 0, 10},
  32. PlotRange -> All, AxesLabel -> Automatic,
  33. PlotLegends -> "Expressions", PlotStyle -> {Blue, Red, Green}]
  34. Plot3D[sol[r, t], {r, 0, 0.0015}, {t, 0, 10}, PlotRange -> All,
  35. AxesLabel -> Automatic, PlotLegends -> "Expressions"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement