Next: Crank-Nicolson method
Up: Numerical solutions of PDEs
Previous: Numerical solutions of PDEs
With the Forward Time Central Space - method (FTCS), the exact
function
is approximated by a grid function
,
,
with
and
,
.
With this grid function we implement a Carthesian Grid on the
region
with
as step size in space direction
and step size
in time direction.
.
The Taylor Series for a function
enables an analysis
of the function around a specific
using
and
derivatives of
:
 |
|
|
(28) |
If we stop the Taylor Series right after the
linear term we get an approximation for the first derivative:
 |
|
|
(29) |
The error is proportional to the step size
.
Similar to
we can approximate
:
 |
|
|
(30) |
By subtracting (30) from (29)
and dividing by
, we obtain the symmetrical difference
With the same idea we can get an approximation for the second
derivative:
 |
|
|
(31) |
Considered is again the
Diffusion equation
:
By applying (29) and (31)
on the Diffusion equation with respect to
the Cartesian Grid values
we obtain an approximation for
:
with
being the step size in time direction and
being
the step size in space direction. Crucial to the convergence
of this method is the condition
With this approximation we obtain the value of
at position
at time
(
) from the values of
at time
and the neighbours of
(
,
) at time
.
Next: Crank-Nicolson method
Up: Numerical solutions of PDEs
Previous: Numerical solutions of PDEs
Heiko Enderling
2003-11-13