March 29th, 2009, 9:04 am
I have just tried the simple heat equation problem bellow:defined in the range x [0,1], t [0,1]with the initial condition: u(x,0)= 2x, 0<=x<=0.52(1-x), 0.5<x<=1.0 boundary condition:u(0,t)=u(1,t)=0I resort to Implicit Euler and Crank-Nicolson FDM respectivelythe results are shown in the following figure It seems that the Crank-Nicolson result is not very good.Comparing with Implicit Euler, C-N's result is not very smooth.I realize, Duffy's words:"Unfortunately, it has been known for some considerable time (Ilin, 1969) that centred differencing schemes in space combined with averaging in time (what essentially CN is in this context) leads to spurious oscillations in the approximate solution and in the divided differences for approximating its derivatives."Does this have anything to do with my results?Or just my results is wrong?thanks!
Last edited by
fogsnow on March 28th, 2009, 11:00 pm, edited 1 time in total.