Finite differencing: Introduction 2
A simple example
We'll begin by considering a very simple example - something we can solve with only a few lines of code. The code samples for this can be found in the simple_FD directory.
The equation we're going to solve is the one-dimensional diffusion equation:
In this case, we have a constant diffusivity . Later, we'll treat a spatially-varying value.