Null Disquisition

Python, AWS, Grad School, and your face

1d Fokker-Plank equation

without comments

As promised, I bring pretty pictures. The past few days I’ve been working on a solution to the 1d diffusion equation with a drift term, better known as the Fokker-Planck equation.

The 1d Fokker-Planck equation

Sexy, I know. Anyhow, I finally worked out the Python code to get it rolling (literally!). The test system I did has periodic boundary conditions and an initial condition of a sharply-peaked Gaussian (a = 20). I’ll spare the details and jump to the fun part.

Here’s the Python code that made it happen (scipy and matplotlib required).

-David

Written by david

October 10th, 2008 at 4:45 am

Posted in School, python

Tagged with , , ,

Leave a Reply