B4 - discretising heat equation PDEs
a consistent finite difference method applied to a well-posed linear initial value problem is convergent if and only if it is stable
-
for simple, homogeneous PDEs, stability is quantified by von neumann stability criterion, equivalent to checking if the amplitude of a fourier mode is stable
-
considering a heat equation
-
an approximation for the second derivative is needed
-
try fitting a quadratic function through three neighbouring points, or take the finite difference derivative of the first derivative:
-
considering an infinitely long rod with an initial temperature profile,
-
taking the fourier transform at each numerical step, and checking that there are no growing modes, which would imply instability
-
a homogeneous PDE always has a plain wave solution
-
a fourier decomposition in space of a numerical solution is:
where,
-
note:
is an arbitrary grid point, and is a wave number of a mode -
to find the time evolution for the fourier amplitude, considering just one mode, ie. one term in the sum:
where,
- substituting this into the time update equation:
- the term made up of constants in
is the amplification factor ( ), which determines the stability
-
for stability:
-
the 'worst case scenario' is when
, ie. -
for this upper threshold, if
, it will remain so for all and -
the only non-trivial inequality is
, when the stability condition is: -
now, finding the most unstable mode, which has
that maximises -
so, it can be found by solving
such that (excluding )
- this is one oscillation every 2 grid points
- by using this in the time update equation:
-
so the phase changes by
-
this is called grid-scale instability and it is purely numerical (as the heat equation is stable)
-
the short wavelength fluctuations must be resolved to make this method stable
-
as
, this method has poor performance, as needs to be decreased to resolve fast time scales of short wavelengths -
it does not converge due to the numerical instability on small scale
-
this is similar to what was found previously: for
, -
LTE analysis indicated that the explicit finite difference scheme is consistent and of order one