Time scales. Notes. Mixed Implicit/Explicit. Newmark Methods [ ] [ ] "!t = O 1 %

Similar documents
What make cloth hard to simulate?

Ordinary Differential Equations II

Modeling Mechanical Systems

Ordinary Differential Equations II

Modeling and Solving Constraints. Erin Catto Blizzard Entertainment

Good Vibes: Introduction to Oscillations

MITOCW free_body_diagrams

3. What type of force is the woman applying to cart in the illustration below?

TEACHER BACKGROUND INFORMATION FORCE

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Lecture I: Basic Physics

Unit 7: Oscillations

Chapter 13. Simple Harmonic Motion

MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4

Dynamics and Time Integration. Computer Graphics CMU /15-662, Fall 2016

Particle Systems. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2017

Fluid Animation. Christopher Batty November 17, 2011

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Physics 8.01 Fall Term 2006

PHYSICS 107. Lecture 5 Newton s Laws of Motion

An Overview of Fluid Animation. Christopher Batty March 11, 2014

UNIVERSITY OF MALTA G.F. ABELA JUNIOR COLLEGE

Newton s Wagon. Materials. friends rocks wagon balloon fishing line tape stopwatch measuring tape. Lab Time Part 1

Ordinary Differential Equations

GAME PHYSICS (INFOMGP) FINAL EXAM

Passive Dynamics and Particle Systems COS 426

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

AP Physics C 2015 Summer Assignment

Lecture IV: Time Discretization

Energy Problem Solving Techniques.

4.2. Visualize: Assess: Note that the climber does not touch the sides of the crevasse so there are no forces from the crevasse walls.

Dynamics and Time Integration

PHY 101. Work and Kinetic Energy 7.1 Work Done by a Constant Force

Lecture V: The game-engine loop & Time Integration

Lecture 6.1 Work and Energy During previous lectures we have considered many examples, which can be solved using Newtonian approach, in particular,

CONSERVATION of MOMENTUM

the spring is compressed and x is the compression

Notes. Multi-Dimensional Plasticity. Yielding. Multi-Dimensional Yield criteria. (so rest state includes plastic strain): #=#(!

Curriculum Map-- Kings School District Honors Physics

Potential Energy. Serway 7.6, 7.7;

MITOCW ocw-18_02-f07-lec02_220k

1 Trajectory Generation

PHYSICS 1 Simple Harmonic Motion

Make sure you know the three laws inside and out! You must know the vocabulary too!

AP Physics C - Mechanics

Lecture 1 Notes: 06 / 27. The first part of this class will primarily cover oscillating systems (harmonic oscillators and waves).

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

the gamedesigninitiative at cornell university Lecture 17 Physics and Motion

STEP Support Programme. Mechanics STEP Questions

Particle Systems. University of Texas at Austin CS384G - Computer Graphics

Physics 326 Lab 6 10/18/04 DAMPED SIMPLE HARMONIC MOTION

Chapter 9. Linear Momentum and Collisions This chapter is about interaction between TWO objects

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Lab 8 Impulse and Momentum

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

These will be no tutorials for Math on Tuesday April 26.

AP Physics 1 Summer Assignment

Concept Question: Normal Force

AP Physics C Mechanics

Exam 2. May 21, 2008, 8:00am

A force is could described by its magnitude and by the direction in which it acts.

Simulation in Computer Graphics Elastic Solids. Matthias Teschner

(Refer Slide Time: 0:16)

Solving Momentum Problems

Newton s Third Law of Motion

FORCE AND MOTION. Conceptual Questions F G as seen in the figure. n, and a kinetic frictional force due to the rough table surface f k

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

Lecture 6 Force and Motion. Identifying Forces Free-body Diagram Newton s Second Law

PHYSICS 221, FALL 2009 EXAM #1 SOLUTIONS WEDNESDAY, SEPTEMBER 30, 2009

Astronomy 8824: Numerical Methods Notes 2 Ordinary Differential Equations

Free-Body Diagrams: Introduction

The object of this experiment is to study systems undergoing simple harmonic motion.

Physics 53. Dynamics 2. For every complex problem there is one solution that is simple, neat and wrong. H.L. Mencken

Newton s Laws. - However, this idea did not explain other things, like the motion of the stars and planets.

Study Guide Solutions

Resonance and response

Is there life outside of Earth? Activity 2: Moving Stars and Their Planets

1. (P2.1A) The picture below shows a ball rolling along a table at 1 second time intervals. What is the object s average velocity after 6 seconds?

A particle system takes small time-steps and updates each particle's location and velocity based on the forces acting on it.

Gravity and Orbits. Objectives. Clarify a number of basic concepts. Gravity

Figure 2.1 The Inclined Plane

PHYSICS 1 Simple Harmonic Motion

Large Steps in Cloth Simulation. Safeer C Sushil Kumar Meena Guide: Prof. Parag Chaudhuri

Motion. Argument: (i) Forces are needed to keep things moving, because they stop when the forces are taken away (evidence horse pulling a carriage).

Projects. Assignments. Plan. Motivational Films. Motivational Film 1/6/09. Dynamics II. Forces, Collisions and Impulse

How to work out really complicated motion. Iteration and Problem Solving Strategies. Let s go. Vertical spring-mass.

Personalised Learning Checklists AQA Physics Paper 2

CS229 Programming Assignment 3: Dynamics

Name Date Hour Table

Chapter 10: Simple Harmonic Motion

Ch. 2 The Laws of Motion

Review for Exam 2 Ben Wang and Mark Styczynski

Force. The cause of an acceleration or change in an object s motion. Any kind of a push or pull on an object.

Practice Exam 2. Multiple Choice Identify the choice that best completes the statement or answers the question.

AP Physics C - Mechanics

Review of Forces and Conservation of Momentum

Physics 6010, Fall Relevant Sections in Text: Introduction

December 2015 Exam Review July :39 AM. Here are solutions to the December 2014 final exam.

Lab 10: Harmonic Motion and the Pendulum

Section 2: Friction, Gravity, and Elastic Forces

Chapter 6: Work and Kinetic Energy

Transcription:

Notes Time scales! For using Pixie (the renderer) make sure you type use pixie first! Assignment 1 questions?! [work out]! For position dependence, characteristic time interval is "!t = O 1 % $ ' # K &! For velocity dependence, characteristic time interval is "!t = O 1 % $ ' # D&! Note: matches symplectic Euler stability limits If you care about resolving these time scales, there!s not much point in going to implicit methods 1 2 Mixed Implicit/Explicit Newmark Methods! For some problems, that square root can mean velocity limit much stricter! Or, we know we want to properly resolve the position-based oscillations, but don!t care about exact damping rate! Go explicit on position, implicit on velocity Often, a(x,v) is linear in v, though nonlinear in x; this way we avoid Newton iteration! A general class of methods x n +1 = x n +!tv n + 1!t 2 2 ( 1" 2# )a n + 2#a n +1 v n +1 = v n +!t ( 1" $ )a n + $a n +1 [ ] [ ]! Includes Trapezoidal Rule for example (!=1/4, "=1/2) # The other major member of the family is Central Differencing (!=0, "=1/2) This is mixed Implicit/Explicit 3 4

Central Differencing Central: Performance! Rewrite it with intermediate velocity: v n + 1 2 = v n + 1!ta x 2 ( n,v n ) x n +1 = x n +!tv n + 1 2 v n +1 = v n + 1 2 + 1!ta x 2 ( n +1,v n +1 )! Looks like a hybrid of: Midpoint (for position), and Trapezoidal Rule (for velocity - split into Forward and Backward Euler half steps)! Constant acceleration: great 2nd order accurate! Position dependence: good Conditionally stable, no damping! Velocity dependence: good Stable, but only conditionally monotone! Can we change the Trapezoidal Rule to Backward Euler and get unconditional monotonicity? 5 6 Staggered Implicit/Explicit Summary (2nd order)! Like the staggered Symplectic Euler, but use B.E. in velocity instead of F.E.: ( ) v n + 1 2 = v n! 1 2 + 1 2 (t n +1! t n!1 )a x n,v n + 1 2 x n +1 = x n + "tv n + 1 2! Constant acceleration: great! Position dependence: good (conditionally stable, no damping)! Velocity dependence: great (unconditionally monotone)! Depends a lot on the problem What!s important: gravity, position, velocity?! Explicit methods from last class are probably bad! Symplectic Euler is a great fully explicit method (particularly with staggering) Switch to implicit velocity step for more stability, if damping time step limit is the bottleneck! Implicit Compromise method Fully stable, nice behaviour 7 8

Example Motions Simple Velocity Fields! Can superimpose (add) to get more complexity! Constants: v(x)=constant! Expansion/contraction: v(x)=k(x-x 0 ) Maybe make k a function of distance x-x 0! Rotation: v(x) =! " ( x # x 0 ) Maybe scale by a function of distance x-x 0 or magnitude! " ( x # x 0 ) 9 10 Noise Example Forces! Common way to perturb fields that are too perfect and clean! Noise (in graphics) = a smooth, non-periodic field with clear lengthscale! Read Perlin, Improving Noise, SIGGRAPH!02 Hash grid points into an array of random slopes that define a cubic Hermite spline! Can also use a Fourier construction Band limited signal Better, more control, but (possibly much) more expensive FFT - check out www.fftw.org for one good! Gravity: F gravity =mg (a=g)! If you want to do orbits F gravity =!GmM 0 x! x 0 x! x 0 3! Note x 0 could be a fixed point (e.g. the Sun) or another particle But make sure to add the opposite and equal force to the other particle if so! implementation 11 12

Drag Forces Spring Forces! Air drag: F drag =-Dv If there!s a wind blowing with velocity v w then F drag =-D(v-v w )! D should be a function of the cross-section exposed to wind Think paper, leaves, different sized objects,! Depends in a difficult way on shape too Hack away!! Springs: F spring =-K(x-x 0 ) x 0 is the attachment point of the spring Could be a fixed point in the scene or somewhere on a character!s body or the mouse cursor or another particle (but please add equal and oppposite force!) 13 14 Nonzero Rest Length Spring Spring Damping! Need to measure the strain : the fraction the spring has stretched from its rest length L " F spring =!K x! x 0 $ # L %!1' x! x 0 & x! x 0! Simple damping: F damp =-D(v-v 0 ) But this damps rotation too!! Better spring damping: F damp =-D(v-v 0 ) u/l u Here u is (x-x 0 )/ x-x 0, the spring direction! [work out 1d case]! Critical damping: fastest damping possible For individual springs, gives a good typical damping force you can multiply by a factor 15 16

Collision and Contact Collision and Contact! We can integrate particles forward in time, have some ideas for velocity or force fields! But what do we do when a particle hits an object?! No simple answer, depends on problem as always! General breakdown: Interference vs. collision detection What sort of collision response: (in)elastic, friction Robustness: do we allow particles to actually be inside an object? 17 18 Interference vs. Collision Repulsion Forces! Interference (=penetration) Simply detect if particle has ended up inside object, push it out if so Works fine if v!t < 1 [w=object width] w 2 Otherwise could miss interaction, or push dramatically the wrong way The ground, thick objects and slow particles! Collision Check if particle trajectory intersects object Can be more complicated, especially if object is moving too! For now, let!s stick with the ground (y=0)! Simplest idea (conceptually) Add a force repelling particles from objects when they get close (or when they penetrate) Then just integrate: business as usual Related to penalty method: instead of directly enforcing constraint (particles stay outside of objects), add forces to encourage constraint! For the ground: F repulsion =-Ky when y<0 [think about gravity!] or -K(y-y0)-Dv when y<y0 [still not robust] or K(1/y-1/y0)-Dv when y<y0 19 20

Repulsion forces Collision and Contact! Difficult to tune: Too large extent: visible artifact Too small extent: particles jump straight through, not robust (or time step restriction) Too strong: stiff time step restriction, or have to go with implicit method - but Newton will not converge if we guess past a singular repulsion force Too weak: won!t stop particles! Rule-of-thumb: don!t use them unless they really are part of physics Magnetic field, aerodynamic effects,! Collision is when a particle hits an object Instantaneous change of velocity (discontinuous)! Contact is when particle stays on object surface for positive time Velocity is continuous Force is only discontinuous at start 21 22 Frictionless Collision Response! At point of contact, find normal n For ground, n=(0,1,0)! Decompose velocity into normal component v N =(v n)n and tangential component v T =v-v N! Normal response: v after N =!"v before N, " # 0,1 $=0 is fully inelastic $=1 is elastic # Tangential response Frictionless: v T after = v T before [ ] # Then reassemble velocity v=v N +v T 23