1 / 4

H a ll o w ee n Ch e ck e rb oa rd m a d e by Br a nd o n J o hns o n

Matlab file: BrandonJdlacode. Modifications Created two particle types and arranged the initial layer with alternating types Before for created variable called type and set equal to one Inside the for loop created new variable called othertype and set equal to 3 minus type

tamarr
Télécharger la présentation

H a ll o w ee n Ch e ck e rb oa rd m a d e by Br a nd o n J o hns o n

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Matlab file: BrandonJdlacode • Modifications • Created two particle types and arranged the initial layer with alternating types • Before for created variablecalled type and set equal to one • Inside the for loop created new variable called othertype and set equal to 3 minus type • Then counted the number of similar and different particles in contact with current particle • Put in probabilities of sticking for all possible scenarios • Set the resting position of the particle equal to type, then set type equal to othertype Halloween Checkerboardmade by Brandon Johnson Paraphrased Code A(1:2:maxX,1) = 1; A(2:2:maxX,1) = 2; . type=1 for i = 1:nParticles . othertype=3-type while 1 . (Count type and othertype particles on the side of current particle) . (Probabilities for all case) . A(x,y) = type; type=othertype; % mark site as taken . colormap(hot); . end end For my movie I modified the code from the lab on diffusion limited aggregation so that two particles diffuse in a checkerboard pattern

  2. Halloween Checkerboardmade by Brandon Johnson Initial State

  3. Halloween Checkerboardmade by Brandon Johnson Final State

  4. Halloween Checkerboardmade by Brandon Johnson Movie

More Related