>> fd1d_heat_explicit_test 31-Jan-2012 16:11:18 FD1D_HEAT_EXPLICIT_TEST: MATLAB version. Test the FD1D_HEAT_EXPLICIT library. FD1D_HEAT_EXPLICIT_TEST01: Compute an approximate solution to the time-dependent one dimensional heat equation: dH/dt - K * d2H/dx2 = f(x,t) Run a simple test case. Number of X nodes = 21 X interval is [0.000000,1.000000] X spacing is 0.050000 Number of T values = 201 T interval is [0.000000,80.000000] T spacing is 0.400000 Constant K = 0.002 CFL coefficient = 0.32 H(X,T) written to "h_test01.txt" T values written to "t_test01.txt" X values written to "x_test01.txt" FD1D_HEAT_EXPLICIT_TEST02: Compute an approximate solution to the time-dependent one dimensional heat equation for a problem where we know the exact solution. dH/dt - K * d2H/dx2 = f(x,t) Run a simple test case. Number of X nodes = 21 X interval is [0.000000,1.000000] X spacing is 0.050000 Number of T values = 26 T interval is [0.000000,10.000000] T spacing is 0.400000 Constant K = 0.002 CFL coefficient = 0.32 Step Time RMS Error 1 0 0 2 0.4 0.00799341 3 0.8 0.012993 4 1.2 0.0161381 5 1.6 0.0180811 6 2 0.0192428 7 2.4 0.0198965 8 2.8 0.0202214 9 3.2 0.0203344 10 3.6 0.0203125 11 4 0.0202057 12 4.4 0.0200468 13 4.8 0.0198571 14 5.2 0.0196504 15 5.6 0.0194353 16 6 0.0192174 17 6.4 0.0190003 18 6.8 0.0187859 19 7.2 0.0185754 20 7.6 0.0183695 21 8 0.0181684 22 8.4 0.0179722 23 8.8 0.0177809 24 9.2 0.0175942 25 9.6 0.0174119 26 10 0.0172339 G(X,T) written to "g_test02.txt" H(X,T) written to "h_test02.txt" T values written to "t_test02.txt" X values written to "x_test02.txt" FD1D_HEAT_EXPLICIT_TEST03: Compute an approximate solution to the time-dependent one dimensional heat equation: dH/dt - K * d2H/dx2 = f(x,t) Run a simple test case. Number of X nodes = 21 X interval is [-5.000000,5.000000] X spacing is 0.500000 Number of T values = 81 T interval is [0.000000,4.000000] T spacing is 0.050000 Constant K = 2 CFL coefficient = 0.4 H(X,T) written to "h_test03.txt" T values written to "t_test03.txt" X values written to "x_test3.txt" FD1D_HEAT_EXPLICIT_TEST: Normal end of execution. 31-Jan-2012 16:11:19 >>