Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: (Ehrenfest model) Gas molecules move about randomly in a box which is divided into two halves symmetrically by a partition. A hole is

image text in transcribed

Problem 1: (Ehrenfest model) Gas molecules move about randomly in a box which is divided into two halves symmetrically by a partition. A hole is made in the partition Suppose there are 20 molecules in the box. Think of the partitions as two urns (urn 0 and 1) containing balls labeled 1 through 20. Molecular motion can be modeled by choosing number between 1 and 20 at random and moving the corresponding ball from the urn it is presently into the other. This is a historically important physical model introduced by Ehrenfest in the early days of statistical mechanics to study thermodynamic equilibrium. The Ehrenfest model has also been applied to study the dynamics of social network formations. Let X denote the number of molecules at the left partition of the box (urn 0) after n transitions. In HW4, you modeled {Xn: n > 0) as a DTMC with S = {0,1,2,..., 20) and 19/20 1/20 19 20 1/20 2/20 0 1 2 0 1 2 3 18 19 20 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 ... 0 0 20 0 0 0 0 0 0 0 0 0 0 : : : : 0 0 0 0 0 0 ... 0 0 O 0 0 0 0... 0 1 0 1 0 P= : 19 20 You also calculated the steady state distribution: 1 1 Steady State Distribution of X 0.18 0.16 0.14 0.12 0.1 0.08 0.06 0.04 0.02 0 5 10 15 20 Simulate the first 10000 transitions of the chain. The initial state of the system X, is unknown. Assume that X, could be any one of the values 0,1,2,...,20 with equal proba- bilities. Copy your MATLAB code. Use the default random generator in your simulation (rng('default'):). Attach the histogram of the simulated path. Attach the histogram of the frequency distribution. It should match with the theoretical steady-state distribution shown above. (40 Points)

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_2

Step: 3

blur-text-image_3

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

Understanding Process Dynamics And Control

Authors: Costas Kravaris, Ioannis K. Kookos

1st Edition

1107035589, 9781107035584

More Books

Students also viewed these Chemical Engineering questions

Question

=+2. Is therapy a tool you might consider using? Why or why not?

Answered: 1 week ago