Mathematica : NDSolve on 2-D steady state heat eqn

  • Context: Mathematica 
  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    2d State Steady
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Swamp Thing
Insights Author
Messages
1,062
Reaction score
819
I am trying to implement this equation ##−k∇^2 u = e^{-(x^2+y^2)}##
using NDSolve in Mathematica. The idea is to solve for the temperature of a plate 10 x 10 units, with heat inputs as per the RHS.
Here is my attempt:
Code:
NDSolve[{ - Laplacian[u, {x, y}] == Exp[-(x^2 + y^2)], u[x, -5] == 0,
  u[x, 5] == 0, u[-5, y] == 0, u[5, y] == 0}, u, {x, -5, 5}, {y, -5,
  5}]

I get this error:
Code:
NDSolve::ndode: The equations {0==E^(-x^2-y^2)} are not
 differential equations or initial conditions
in the dependent variables {u}.

What is my mistake?
 
Physics news on Phys.org