Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Approach to equilibrium: A box contains N molecules. Let n(t) be the number of molecules, as a function of time, in the left half of

  1. Approach to equilibrium: A box contains N molecules. Let n(t) be the number of molecules, as a function of time, in the left half of the box; the number in the right half is N n(t). A partition with a small hole separates the left half from the right half. At each time step dt, one molecule moves across the hole. The probability that a molecule moves from left to right is p = n(t)/N, while that to move from right to left is 1 p. Assume that n(t = 0) = N = 400, that is, at t = 0, all the 400 molecules are in the left half. Simulate the approach to equilibrium by plotting n as a function of t in the interval [0, 10000*dt]. To decide what happens at each time step dt, generate a random number r between 0 and 1; if r < n/N, a molecule moves from the left half to the right half, otherwise a molecule moves from right to left. [approach this problem using python code]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago