MATLAB Stochastic Simulations Wednesday, 9/13/2002.

Slides:



Advertisements
Similar presentations
Best fit line Graphs (scatter graphs) Looped Intro Presentation.
Advertisements

AUC and DLS probes for protein aggregation
Stochastic Simulations Monday, 9/9/2002 Monte Carlo simulations are generally concerned with large series of computer experiments using uncorrelated random.
Simulation in Materials Summary Friday, 12/6/2002.
Stress Matrix Visualization Wednesday, 9/4/2002. Stress Vector.
Visualization Friday, 9/6/2002.
Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.
5.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 5 A Simple Reflection Model.
Wednesday, Nov. 24, 2010 PHYS , Fall 2010 Dr. Jaehoon Yu 1 PHYS 1441 – Section 002 Lecture #20 - Review Wednesday, Nov. 24, 2010 Dr. Jaehoon Yu.
Math Review with Matlab:
Kinetic Theory of Gases I
A CLOSER LOOK AT GASES.
1.3 Surface Areas of Objects Made from Right Rectangular Prisms
Monte Carlo Simulation Wednesday, 9/11/2002 Stochastic simulations consider particle interactions. Ensemble sampling Markov Chain Metropolis Sampling.
Sound in Matlab & Cogent
StatLab Workshop Yale University Maximiliano Appendino, Economics October 18 th, 2013.
The Lemniscate of Bernoulli Jacob Bernoulli first described his curve in 1694 as a modification of an ellipse. He named it the “Lemniscus", from the.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
Frank Wood - Training Products of Experts by Minimizing Contrastive Divergence Geoffrey E. Hinton presented by Frank Wood.
Plotting Selim Aksoy Bilkent University Department of Computer Engineering
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
Least Square Method Curve Fitting. Linear Least Square Method.
Physics 114: Lecture 19 Least Squares Fit to 2D Data Dale E. Gary NJIT Physics Department.
MATLAB - Basics Centro de Informática Universidade Federal de Pernambuco Aprendizagem de Máquina – IN1102 Arley Ristar –
Diffusion Effusion. Diffusion ~Movement of particles from an area of high concentration to an area of low concentration. ~Movement of particles from an.
Signs of functions in each quadrant. Page 4 III III IV To determine sign (pos or neg), just pick angle in quadrant and determine sign. Now do Quadrants.
Parametric Shapes & Lighting Jared Jackson Stanford - CS 348b June 6, 2003.
Lecture 12 Brownian motion, chi-square distribution, d.f. Adjusted schedule ahead Chi-square distribution (lot of supplementary material, come to class!!!)
Dr. Jie Zou PHY Welcome to PHY 3320 Computational Methods in Physics and Engineering.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 1 in MATLAB Topics Covered: 1.Plotting basic 2-D plots The plot()
10.2 Random Walks. Random Walk A random walk refers to the apparently random motion of an entity. This is often the best model of a physical process (Brownian.
1.4 Parametric Equations. Relations Circles Ellipses Lines and Other Curves What you’ll learn about… …and why Parametric equations can be used to obtain.
Diffusion & Osmosis Ch 8. Diffusion Definition: Net movement of particles from an area of _______ concentration to an area of ______ concentration Example:
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 9”
CS112 Scientific Computation Department of Computer Science Wellesley College Building your own Functions.
Plot (x-values, y-values) >> x = linspace (-3, 3, 20); >> x = linspace (-3, 3, 20); >> y = 2*x – 1; >> y = 2*x – 1; >> plot (x, y) >> plot (x, y)
Dressed Spin Simulations Steven Clayton University of Illinois nEDM Collaboration Meeting at Arizona State University, February 8, 2008 Contents 1.Goals.
Simulations Report E. García, UIC. Run 1 Geometry Radiator (water) 1cm x 2cm x 2cm with optical properties Sensitive Volume (hit collector) acrylic (with.
A user level multi-threaded Particle simulator Supervisor: Joe Cordina Observer: Kurt Debattista.
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part I Wednesday 17 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Material Point Method Solution Procedure Wednesday, 10/9/2002 Map from particles to grid Interpolate from grid to particles Constitutive model Boundary.
Chapter 7.3: Cell Transport
Prerequisites for Calculus
Chapter 7-3: Cell Transport. Explain what is meant by the term selective permeability. Compare and contrast passive and active transport. Daily Objectives.
Transmission coefficients for P and S waves in HardBego stones The point where the incident ray reaching the S critique angle hits the interface The point.
Equation of Motion with Steering Control ME5670 Date: 19/01/2015 Lecture 3 Thomas Gillespie, “Fundamentals.
Greenfaulds High School Cone Development. Development of surface (1) Mark the position where the apex of the Development will be placed
Chapter 4 Analytic Trigonometry Section 4.5 More Trigonometric Equations.
Matlab Tutorial Iman Moazzen First Session – September 11, 2013.
Step 1: Find the Cumulative Frequency for each class. < 99.5 <
The kinetic model of a gas Unit 4: Module 3 – Kinetic Theory There are two ways of describing a gas: macroscopic and microscopic. Macroscopic: Considers.
Kinetic theory model This model demos how the pressure and volume of a gas are directly linked to the velocity and therefore temperature of a gas. They.
Reading and Writing Image Files
4.4 Section 4.4.
Diffusion of Gas Particles
Chapter 7-3: Cell Transport
Chapter 7-3: Cell Transport
Dissolving Process Polarity
Reflections Reflect the object in the x axis
Warm-Up Outside a room there are three light switches. One of the switches is connected to a light bulb inside the room. Each of the three switches can.
Random WALK, BROWNIAN MOTION and SDEs
Pressure of a gas.
Learning Target #21 Equations of Circles.
Passive Cell Transport
Prerequisites for Calculus
CS100A Lecture 21 Previous Lecture This Lecture
Arielle Little EPS 109, Fall 2009
Presentation transcript:

MATLAB Stochastic Simulations Wednesday, 9/13/2002

Diffusion

Diffusion Simulation nPart = 400; %number of particles sizeRandomStep =.02; %temperature related parameter rMax = 10; %initial particles x = rand(nPart,1)-0.5; y = rand(nPart,1)-0.5; h = plot(x,y,'.'); %plot particles as dots hold on axis([ ]) axis square grid off set(h,'EraseMode','xor','MarkerSize',18) % draw the circle the diffusion will finally reach to theta = linspace( 0, pi*2, 50 ); plot(rMax*cos(theta),rMax*sin(theta),'r-'); nStep = 0; while ( max(sqrt(x.^2+y.^2)) < rMax ) drawnow x = x + sizeRandomStep * randn(nPart,1); y = y + sizeRandomStep * randn(nPart,1); nStep = nStep + 1; set(h,'XData',x,'YData',y) End nStep % display how many steps cost to reach to the circle

Erase Mode for Animation

Brownian Motion in a Closed Box

Boundary Treatment Reflection for the random movement with tendency to go outside.

Pressure Momentum change for particle hit on the boundary surface with random movement of distance s and hit angle is mass = 1 unit mass timestep = 1 unit time

Extension of particles from one room to two rooms