File Exchange

image thumbnail

2d diffusion simulation, GUI

version 1.0.0.0 (8.6 KB) by Maxim Vedenyov
points with random step each frame of time

8 Downloads

Updated 07 Dec 2011

View License

http://simulations.narod.ru/
The diffusion is simulated as set of points with random step each frame of time. Looks like brownian motion.
Step of point can be estimated from diffusion equation:
dn/dt=D*(d2n/dx2+d2n/dx2)
then approximately:
1/dt=D/dx^2
dx=sqrt(D*dt)
dt - time step
D - diffusion coefficient
dx - step of point

Comments and Ratings (3)

Great program. I modified the code to allow showing the tracks of two particles: https://www.mathworks.com/matlabcentral/fileexchange/67581-2d-diffusion-simulator-with-particle-track-option

Yilong Jia

Is there a guide for the code?

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor