20 likes | 165 Views
Taming the BEAST: MatLAB domination via sugar “cube” dissolution Made by Sandy Fernando. I initially worked off the DLA lab towards achieving dissolution of a sugar “cube” in 2D. However, in the end, my code turned out quite differently, and the Lax-Wendorff came into play. Initial conditions:
E N D
Taming the BEAST: MatLAB domination via sugar “cube” dissolutionMade by Sandy Fernando I initially worked off the DLA lab towards achieving dissolution of a sugar “cube” in 2D. However, in the end, my code turned out quite differently, and the Lax-Wendorff came into play. Initial conditions: nParticles = ((xend-xstart)+1)*((yend-ystart)+1); A = zeros(maxX,maxY); A(xstart:xend,ystart:yend) = 1; Constants: xstart=ystart; xend=yend; maxX=maxY; Simulation conditions: Particles are approximately 1 unit large Probability of particle dissolution depends on the number of contact with points A(X,Y)=0 Non-random dissolution Lax-Wendorff: Prepared for UC Berkeley course EPS 109 “Computer Simulations in Earth and Planetary Science”, fall 2009, Instructor: B. Militzer
Taming the BEAST!!! MATLAB domination via sugar cube dissolutionMade by Sandy Fernando