Guest User

Untitled

a guest
May 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. NDSolve::bdord: Boundary condition (u^(0,1,0))[x,0,t] should have derivatives of order lower than the differential order of the partial differential equation.
  2.  
  3. P[x_, y_, t_] = e[x, y, t]/(γ - 1) ;
  4. e[x_, y_, t_] = (γ - 1) ρ[x, y, t]/(μ mu ) kb T[x, y, t];
  5. cp = 5/2 kb/(μ mu);
  6. Rgas = 8.3144598;
  7. cv = 5/2 kb/(μ mu) - Rgas;
  8. γ = cp/cv;
  9. g = 28.02*9.81;
  10. μ = 0.6163328197226503`;
  11. mu = 1.66053904*10^-27;
  12. kb = 1.38064852*10^-23;
  13. sol1 = NDSolve[{
  14. D[ρ[x, y, t]*u[x, y, t],
  15. t] == -D[ρ[x, y, t]*u[x, y, t]*u[x, y, t] + P[x, y, t], x] -
  16. D[ρ[x, y, t]*u[x, y, t]*
  17. v[x, y, t],
  18. y],
  19. D[ρ[x, y, t]*v[x, y, t],
  20. t] == -D[ρ[x, y, t]*v[x, y, t]*
  21. u[x, y, t],
  22. y] - D[ρ[x, y, t]*v[x, y, t]*v[x, y, t] + P[x, y, t], y] +
  23. g ρ[x, y, t],
  24. D[ρ[x, y, t], t] == -D[ρ[x, y, t]*u[x, y, t], x] -
  25. D[ρ[x, y, t]*v[x, y, t], y],
  26. D[e[x, y, t], t] == -D[u[x, y, t]*e[x, y, t], x] -
  27. D[v[x, y, t]*e[x, y, t], y] -
  28. P[x, y, t]*(D[u[x, y, t], x] - D[v[x, y, t], y]),
  29.  
  30. v[0, y, t] == v[12*10^6, y, t],
  31. u[0, y, t] == u[12*10^6, y, t],
  32. T[0, y, t] == T[12*10^6, y, t],
  33. ρ[0, y, t] == ρ[12*10^6, y, t],
  34.  
  35. e[x, 0, t] == 3.83767261162,
  36. v[x, 4000000, t] == 0,
  37. v[x, 0, t] == 0,
  38. (D[u[x, y, t], y] /. y -> 0) == 0,
  39. (D[u[x, y, t], y] /. y -> 4000000) == 0,
  40.  
  41. v[x, y, 0] == 0,
  42. u[x, y, 0] == 0,
  43. T[x, y, 0] == 5770 + 0.00835414960707927 y,
  44. ρ[x, y, 0] ==
  45. 1.42*10^-7*1.408*10^3 + 7.3561137493644*10^-10 y
  46. },
  47. {u, v, T, ρ}, {x, 0, 12000000}, {y, 0, 4000000}, {t, 0, 100}]
Add Comment
Please, Sign In to add comment