Question: Using the Crank - Nicolson method and Letting = k h 2 , we need to solve - 2 U i - 1 j +
Using the CrankNicolson method and Letting we need to solve
To do this, we first need to rewrite as a long, onedimensional vector of size Note that in this vector we do not include the known values, ie initial values and the boundary values Using the enumeration
dots,dots,and similarly
dots,dots, system can be represented in a matrix equation
where dots,dots, and is the square matrix resulting from the equation. Example We test the above discretization scheme to find an approximate solution of with
an input Fix and The analytic solution can be found in this
case and is given by
hat
where
We compare the solution obtained from and the analytic solution evaluated at mesh points
at time
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
