Skip to content
Nemenman Lab
Menu ☰

Archive · Physics 212, 2018

Lab 12

Archived from the old lab wiki. Some external links may no longer work.

After you are done with Module 4, do the following.

Download the script for solving the diffusion equation from the main course web site. Focus on the sequential solution there only. Understand the script. Try to modify the script to have

  1. Absorbing (rather than reflecting) boundary conditions.
  2. A heat source somewhere in the lattice, which produces a certain amount of heat per unit time always.
  3. Generate a movie of thee 2d temperature profile.
  4. If you have time, repeat the steps above with thee following modifications. First, interpret the diffusion equation as a particle (not heat) diffusion. Modify it to account for the possibility that if to particles collide, they annihilate each other (in other words, introduce a sink term proportional to the square of the particle density).