Next: Maxwell's Equations
Up: Conservative Methods
Previous: The Equation of Continuity
In many cases the current through a face is proportional to the
difference in density (or total charge) between neighbouring cubes
 |
(2.36) |
Substituting this into the equation of continuity leads directly to the
diffusion equation in discrete form
 |
(2.37) |
which is of course our
simple method
of solution.
To check whether this algorithm obeys the conservation law we sum over
all
, as
should be conserved. Note that it helps to
consider the whole process as taking place on a circle as this avoids
problems associated with currents across the boundaries. In this case
(e.g.)
and it is easy to see that the
conservation law is obeyed for (2.37).