[2.] Write a code to solve the diffusion equation. Run it with D 0.03, dt = 0.0001, dx 80000 time steps. What is the total time elapsed in your 'simulation'? Use 1000 'boxes' and start with all your...


In Python or C


[2.] Write a code to solve the diffusion equation. Run it with D<br>0.03, dt = 0.0001, dx<br>80000 time steps. What is the total time elapsed in your 'simulation'? Use<br>1000 'boxes' and start with all your particles at the center, that is, in box 500. Make a plot<br>of the density after 20000, 40000, 60000, 80000 time steps. (In a non-homework situation,<br>you'd need to think about how many boxes you need so the particles don't reach the edges of<br>your system but without using so many that you waste your time simulating mostly empty<br>0.01 and N<br>space.)<br>

Extracted text: [2.] Write a code to solve the diffusion equation. Run it with D 0.03, dt = 0.0001, dx 80000 time steps. What is the total time elapsed in your 'simulation'? Use 1000 'boxes' and start with all your particles at the center, that is, in box 500. Make a plot of the density after 20000, 40000, 60000, 80000 time steps. (In a non-homework situation, you'd need to think about how many boxes you need so the particles don't reach the edges of your system but without using so many that you waste your time simulating mostly empty 0.01 and N space.)

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here