analytic solution 2D only diffusion
hi every one,
I have 2D diffusion equation. Are there any analitic solution for bidimensional diffusion equation? The initial intial conditon has not to be puntual thanks a lot 
You got to explain it a litle more. You can find series solution.

You can cook up many examples by separation of variables. Here is one in the unit square (0,1) x (0,1)
u_t = u_xx + u_yy Code:
function ue = exact_solution(t) 
Hello !
If you have the possibility to add source terms to you discretized equations, then you can generate infinite exact solutions. You choose an arbitrary solution that you inject into the PDE, then you add the extra terms to balance the equations into you solver. Choose analytic functions infinitely differentiable and which derivatives do not vanish (to maintain all terms in the truncation error) like trigo functions. Then put Dirichlet conditions from the exact solution and you'll be able to test your code (except the BC of course) Tou can look for the Method of Manufactured Solutions for more details. Good luck ! François 
All times are GMT 4. The time now is 12:29. 