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

9 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

Cite As

Maxim Vedenyov (2020). 2d diffusion simulation, GUI (https://www.mathworks.com/matlabcentral/fileexchange/34103-2d-diffusion-simulation-gui), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Daniel Dickinson

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

Fabricio Pereira

Yilong Jia

Is there a guide for the code?

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!