Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Define the simulation parameters 2.Initialize the simulation: A.Particle locat

ID: 3718514 • Letter: 1

Question

1.Define the simulation parameters

2.Initialize the simulation:

A.Particle locations: place NxN particles randomly on a two dimensional plane. E.g., determine the (x0, y0) coordinates for each particle using the rand() function. (the upper script ‘0’ denotes the temporal index)

B.Particle velocities: zero for both velocity components. E.g., assign zero to (up0, vp0) for each particle suing the zeros() function.

3.Advance in time

for n=1, totaltimesteps

Compute the flow velocity at the corresponding location for each particle, ufn-1=cos(xn-1)sin(yn-1), vfn-1=-sin(xn-1)cos(yn-1)

Compute forces on each particle, fxn-1=6??f??R(ufn-1—upn-1), fyn-1=6??f??R(vfn-1—vpn-1)

Compute the particle velocity at n, upn=upn-1+?tfxn-1/(?pVp), vpn=vpn-1+?tfyn-1/(?pVp)

Compute the particle location at n, xpn=xpn-1+?tupn, ypn=ypn-1+?tvpn

end

Explanation / Answer

1. Simpulation means showing the operations performed in the real world. We show how the operations are performed in real world senario in virtual process. Simulation requires first the model to be developed. What the step in the operation what are the resources required, key characteristics and the behaviour and functions of teh selected abstract process or system