How to plot concentration vs time plot for changing concentrations?
10 views (last 30 days)
A rod of 10 cm has 20 particles located at the center of the rod. The diffusion begins from the center and the particles go towards left and right. How to plot the concentration of particles at the center of the rod at different times? time=10 minutes. So at the end of every minute, there will be different number of particles at the center. The particles displaces with the following formula: x(t+dt)=x(t)+rD*dt where r is a random number and D=0.1, dt=10 sec (stepsize) It is a one dimensional diffusion. Thank you in advance.