Question: (the programming language is python) Part 1- Simulation This part is worth 10 points In this assignment, you will be simulating diffusion 2 dimensions. Imagine

(the programming language is python) Part 1- Simulation This part is worth(the programming language is python)

Part 1- Simulation This part is worth 10 points In this assignment, you will be simulating diffusion 2 dimensions. Imagine that you have a pipette (an eye dropper) and a beaker. The eye dropper has a coloured fluid in it, and the beaker has a transparent fluid. We're going to simulate the diffusion of the coloured fluid in the transparent fluid from the top of the beaker (in 2 dimensions) We're going to simulate diffusion using a method known as a random walk. We're going to move atoms of our coloured fluid a random amount in the z direction and a random amount in the y direction N times for N total units of time Experiment 1. Ask the user for inputs: o The number of time units to simulate oThe number of atoms we should simulate o The radius of the beaker coordinates), which is at exactly the center of the beaker (at the origin, 0, 0). of the radius of the beaker. If an aton has, move it 10% closer to the origin (ie., make the vector 90% as big as it was before 2. Create a 2-d array of x, y coordinates that represent the position of our atoms in the fluid. Initially, all atoms are in the same spot in the fluid (they all have the same z and y 3. For each unit of time, add a random amount to the z coordinate and a random amount to the y coordinate. After adding the random amount, check if any atoms have gone outside

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!