Going Further#
Crank-Nicolson#
The Crank-Nicolson method uses a time-centered discretization of the diffusion term:
This is still an implicit update, but the coefficients and righthand side in the linear system will be different
State-dependent transport coefficients#
If we have a non-constant conductivity that depends on
Now we need
or
Then a C-N update appears as:
We can update this using a predictor-corrector scheme:
This will be second-order accurate in time.