Elastic Collisions & Sierpinski Carpet Anakaren Santana.

Slides:



Advertisements
Similar presentations
LOOPS Loops are lines of code that can be run more than one time. Each time is called an iteration and in for loops there is also an index that is changing.
Advertisements

Programming Methodology (1). Iteration Learning objectives explain the term iteration; repeat a section of code with a for loop; repeat a section of.
Foundations of Physics Workshop: The Momentum Collider.
1Notes  Reference  Witkin and Baraff, “Physically Based Modelling” course, SIGGRAPH 2001  Link on the course website.
Fractals Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
09-1 Physics I Class 9 Conservation of Momentum in Two and Three Dimensions.
06-1 Physics I Class 06 Conservation of Momentum.
CHAPTER 2 ANALYSIS OF ALGORITHMS Part 2. 2 Running time of Basic operations Basic operations do not depend on the size of input, their running time is.
Summarize what you did in Tuesday’s collision activity.
Holt Geometry 12-Ext Using Patterns to Generate Fractals 12-Ext Using Patterns to Generate Fractals Holt Geometry Lesson Presentation Lesson Presentation.
Copyright © 2014 Dr. James D. Palmer; This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Physical Modeling – Fall MOMENTUM For a particle, momentum is: p = mv and.
New Mexico Computer Science For All More Looping in NetLogo Maureen Psaila-Dombrowski.
How does the kinetic model develop a root mean square velocity? What is root mean square? Half the class average the numbers below, square the average,
PHY205 Ch12: Elastic Collisions. 1. Main Points Elastic Collisions: KE is conserved (definition)
Claims, Evidence, Reasoning. What is it? In science, an answer you give must be supported with data, and that data must be interpreted. CER is a logical.
Period 2 Question 1. Particle 1 collides elastically with particle 2 of equal mass that is originally at rest. Which of the following is true after the.
Linear Momentum and Collisions المحاضرة العاشرة. Linear Momentum and Collisions Chapter 9.
BTEC Unit 06 – Lesson 08 Principals of Software Design Mr C Johnston ICT Teacher
Linear Momentum. 5-1 Linear Momentum Linear Momentum, p – defined as mass x velocity The unit is kg·m/s A quantity used in collisions So a small object.
1 Everyday Statistics in Monte Carlo Shielding Calculations  One Key Statistics: ERROR, and why it can’t tell the whole story  Biased Sampling vs. Random.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
Chapter 9 - Collisions Momentum and force Conservation of momentum
Some Fractals and Fractal Dimensions. The Cantor set: we take a line segment, and remove the middle third. For each remaining piece, we again remove the.
Energy Kinetic energy is the energy of motion. Potential pnergy is stored energy.
Waclaw Sierpinski Born in Warsaw, Poland in promoted to professor at Warsaw in mathematics and physics founded math journal- Fundamenta.
Collision Detection And Response Jae Chun KyungSoo Im Chau Vo Hoang Vu.
Linear Momentum AP Physics Chapter 7. Linear Momentum 7.1 Momentum and Its Relation to Force.
Momentum and Impulse. March 24, 2009 Momentum and Momentum Conservation  Momentum  Impulse  Conservation of Momentum  Collision in 1-D  Collision.
Linear Momentum. Units of Momentum Momentum and Its Relation to Force Conservation of Momentum Collisions and Impulse Conservation of Energy and Momentum.
Unit 3: Motion, Forces, & Energy Chapter 9: Motion & Energy
Bouncing Balls Alex Jing Wei Huang. Goals of this Project Analyze the ball collision rates under different conditions (parameters). – Different container.
Standard Deviation A Measure of Variation in a set of Data.
Linear Momentum. 5-1 Linear Momentum Linear Momentum, p – defined as mass x velocity The unit is kgm/s A quantity used in collisions So a small object.
Fractals! Bullock Math Academy March 22, 2014 Brian Shelburne
Interactions: Collision Model Supercomputing Challenge Kickoff 2008 Bob Robey and Drew Einhorn.
2D Collisions and Center of mass. Collisions or Explosions in Two Dimensions y x before after P total,x and P total,y independently conserved P total,x,before.
Cutnell/Johnson Physics 8th edition Reading Quiz Questions
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Calculating Fractal Dimension from Vector Images Kelly Ran.
Development of a Fractal Dimension Calculator Kelly Ran.
Fractals.
1 6. Center of mass, Collisions 6.1. The center of mass To describe the motion of a system of particles (also for their continuous distribution – a solid.
14.0 Math Review 14.1 Using a Calculator Calculator
Chapter 7 Linear Momentum
6. Center of mass, Collisions
< initial velocity of Object B > initial velocity of Object B
Fractals.
Collisions don’t just occur in one dimension, as we have been studying; they also occur in two or three dimensions.
25 Math Review Part 1 Using a Calculator
Momentum and Impulse.
Algorithm Efficiency Algorithm efficiency
Cylindrical – Polar Coordinates
Chapter 7 Impulse and Momentum
9.8 Momentum and Kinetic Energy in Collisions
A First Book of ANSI C Fourth Edition
Fun with Sierpinski Pyramids
Conservation of Momentum in Two and Three Dimensions
Acceleration and Momentum   Acceleration — Rate of change of velocity (speed and specific direction) over time. Positive Acceleration- speed increases.
2D Collisions and Center of mass
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Building Fractal Landscapes
Collisions.
if-else Structures Principles of Engineering
Chapter 7 Linear Momentum
Ch. 6 Momentum and Impulse
Print the following triangle, using nested loops
Making Bohr Models These models show where the protons, neutrons, and electrons are located.
Presentation transcript:

Elastic Collisions & Sierpinski Carpet Anakaren Santana

Elastic Collisions

Method 1.Set up initial conditions (make sure both masses will actually collide). 2.For loop changes positions of the masses according to their respective velocities. 3.An if statement checks if the masses collide. When they collide the new velocities are calculated and initial positions reset. 4.A second for loop changes the positions of the masses according to these new velocities and initial coordinates.

1D: m1=2 m2=2, U1=2 U2=0, x01=0 x02=20 Run Code With: elasticCollision.m

2D: m1=2 m2=4, Ux1=4 Uy2=4, Ux2=-1 Uy2=-1, x01=-90 y01=-90, x02=90 y02=90 Run Code With: elasticCollision2D.m

The Sierpinski Carpet is a fractal of fractal dimension It begins with a square that you divide into 9 sub-squares and remove the center square. Repeat the process with each subsquare. Method: – Nested for loops within a while loop. – The while loop ensures that we can keep dividing by 3. – The nested for loops “remove” the appropriate squares in each iteration.