- #1
JohanL
- 158
- 0
I tried to solve laplace equation for the steady state temperature over a rectangle with both neumann and dirichlet boundary conditions.
For the part of the rectangle with neumann boundary condition(normal derivative = 0) i used
U(k,p)=(2*U(k+1,p)+U(k,p+1)+U(k,p-1))/4
Is this correct?
The result i get is different from when i use Matlab PDE toolbox...and i think I am doing something wrong with the neumann boundary condition.
For the part of the rectangle with neumann boundary condition(normal derivative = 0) i used
U(k,p)=(2*U(k+1,p)+U(k,p+1)+U(k,p-1))/4
Is this correct?
The result i get is different from when i use Matlab PDE toolbox...and i think I am doing something wrong with the neumann boundary condition.