- #1
- 970
- 670
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:
I get this error:
What is my mistake?
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?