Slide 9 of 14
Notes:
So below is the desired form of the spin equation. Above is the equation within FEMLAB used to solve the convection-diffusion equation
To achieve the translation I made the following substitutions: