CALL_NPBUR Script to set input and to call nonperiodic_burgers.m Read help of nonperiodic_burgers.m to set input data Reference: CHQZ2 = C. Canuto, M.Y. Hussaini, A. Quarteroni, T.A. Zang, "Spectral Methods. Fundamentals in Single Domains" Springer Verlag, Berlin Heidelberg New York, 2006.
0001 % CALL_NPBUR Script to set input and to call nonperiodic_burgers.m 0002 % Read help of nonperiodic_burgers.m to set input data 0003 % 0004 % Reference: CHQZ2 = C. Canuto, M.Y. Hussaini, A. Quarteroni, T.A. Zang, 0005 % "Spectral Methods. Fundamentals in Single Domains" 0006 % Springer Verlag, Berlin Heidelberg New York, 2006. 0007 0008 % Written by Paola Gervasio 0009 % $Date: 2007/04/01$ 0010 0011 Err=[]; 0012 xa=-1;xb=1; 0013 visc=0.01; 0014 tscheme=4;bc=1; 0015 t0=0;T=1; 0016 deltat=1.e-2; 0017 NX=32; 0018 %NX=[16,32,64,128]; 0019 for nx=NX 0020 [u,err]=nonperiodic_burgers(xa,xb,t0,T,visc,nx,deltat,tscheme,bc); 0021 Err=[Err;err]; 0022 end 0023 Err