Guest User

Untitled

a guest
Nov 24th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. a = 1/2; b = 1;
  2. epsilon = a/b;
  3. Ω = Rectangle[{0, 0}, {xmax = 2 b, ymax = 2 a}];
  4. c = -{{epsilon^2, 0}, {0, 1}};
  5. op1 = Div[c.Grad[u[x, y], {x, y}], {x, y}] - 1;
  6. g = 0; q = 1/(2 n);
  7. op2 = Div[c.Grad[T[x, y], {x, y}], {x, y}] - epsilon*u[x, y];
  8. solFEM = ParametricNDSolveValue[{op1 == -NeumannValue[
  9. g + epsilon*q*u[x, y], x == xmax] -
  10. NeumannValue[g + q*u[x, y], y == ymax],
  11. op2 == -NeumannValue[g + 2*epsilon*T[x, y], x == xmax] -
  12. NeumannValue[g + epsilon*q*T[x, y], y == ymax]}, {u,
  13. T}, {x, y} ∈ Ω, {n}];
  14. enter code here
Add Comment
Please, Sign In to add comment