Question: Consider following elliptic boundary value problem: u = 2 pi 2 sin ( pi x ) cos ( pi y ) ,
Consider following elliptic boundary value problem:
u pi sinpi x cospi yx y in
subject to the boundary condition
ux sinpi x ux sinpi x x in
uy uy y in
Implement a second order finite difference scheme for this problem on the N times N uniform grid same as described in T Compare your numerical solution with the exact solution ux y sinpi x cospi y Try a few different meshes N and compute the corresponding errors in discrete L Linfty L and H norms. Plot all these errors in the same figure vs h N using loglog scale and verify the second order accuracy. You may use a direct method or iterative method to solve the resulting linear system.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
