Inside my lecture notes I discuss
a simple adsorption-desorption model, one of a few in which the answer
is known analytically. The code is formulated according to a discussion
of Fichthorn and Weinberg (see notes). The code may be downloaded
and played with. (In particular, try changing definition of TIME-STEP
from the sampling of Poisson distribution and see that TIME is no
longer REAL TIME.)
The model code dMCs.f, with DATA given in dMCs.data.
(Or see PDF version used in Appendix of my notes.)
An x11 Graphics package is used within the code to plot both analytic
solution and MC results in real time. You may find the tar file
TAR + GZIP Library Creator. Or, you
may remove plotting call and place data in file to be plotted using
your most convenient method.
|