| Input: the values of a, , and confections , number of space fragmentation , and for time | | Step 1: evaluate space step size and time step size. | | Step 2: find the values of α = T/2H, β = , and µ = | | Step 3: compute the initial condition and boundary conditions | | , , | | , | | , , . | | Step 4: compute the numerical solution from | | where j = 1, 2, …, m − 1, and i = 1, 2, …, n − 1 | | Step 5: compute the numerical solution from | | | | where i = 1 and for i = n − 1 compute the numerical solution from | | | | Step 6: compute the numerical solution for i = 2, 3, …, n − 2 from | | Step 7: print the numerical solutions and . |
|