! APPENDIX: Code for Simple Adsoprtion-Desorption Dynamic Monte Carlo ! created by Nikolai (23 May 2001) for D.D. Johnson Lectures ! see: K.A.Fichthorn, W.H.Weinberg, J. Chem. Phys. 95 (2) p.1090 (1991). !!!!!^!!!1!!!!^!!!!2!!!!^!!!!3!!!!^!!!!4!!!!^!!!!5!!!!^!!!!6!!!!^!!!!7!! ! Required Structure of INPUT DATA FILE: !! 128 128 ! dimensions of simulation box (Lx) then mx=Lx print*, "Input Error: reducing Lx!" endif if(my>Ly) then my=Ly print*, "Input Error: reducing Ly!" endif !parameters mx,my,pt,rA,rD remain unchanged after this line! rc=theta nc=mx*my xc=1/dfloat(nc) if(rA > rD) then WA=1.0 WD=rD/rA else WA=rA/rD WD=1.0 endif if(rc<0.or.rc>1) stop "Check: should be 0 < rc < 1 !!!" theta0=rA/(rA+rD) !initialize lattice at random: ic=0 call RANDOM_SEED do i=1,mx do j=1,my call RANDOM_NUMBER(r) if(r