Plotting Solutions Using Finite Difference Method with M = N = 20

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
squenshl
Messages
468
Reaction score
4
How do I use the finite difference method with M = N = 20 to obtain a plot of the solution of

[tex]\nabla[/tex]2u = 1, 0 < x < 1, 0 < y < 1,
u(x,0) = x(1-x), u(x,1) = x(1-x), 0 [tex]\leq[/tex] y [tex]\leq[/tex] 1,
u(0,y) = 0, u(1,y) = 0, 0 [tex]\leq[/tex] y [tex]\leq[/tex] 1.
 
Physics news on Phys.org
Okay, what have you done on this? In particular, what would [itex]\nabla^2 u= 1[/math] look like in terms of this mesh?[/itex]