1 / 8

Interactions: Collision Model

Interactions: Collision Model. Supercomputing Challenge Kickoff 2008 Bob Robey and Drew Einhorn. Collision Models. N-body simulations often need collision models. These are short-range forces that occur when two objects touch. Typical attributes Elasticity Fracture Rebound

cleo
Download Presentation

Interactions: Collision Model

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. Interactions: Collision Model Supercomputing Challenge Kickoff 2008 Bob Robey and Drew Einhorn

  2. Collision Models • N-body simulations often need collision models. • These are short-range forces that occur when two objects touch. • Typical attributes • Elasticity • Fracture • Rebound • Gaming--battles

  3. Simple 1D Collision Model • In this model, the steel ball moves to the right until it impacts the other steel balls

  4. Governing Laws • Momentum conserved • Sum (Mass*Vel) =Constant + sources • Mass conserved • Fracture/Fragmenting/Aggregation • Energy conservation

  5. Matlab Code • Update positions (P) using velocities (V) P(:)=P(:)+delta*V(:); • Contact test if (V(i) > 0 && P(i) > P(i+1)-1.9) • Transfer momentum • (M- mass, c – elasticity) V(i+1)=V(i)*M(i)*c/M(i+1); V(i)=(1.0-c)*V(i); (or V(i) = 0; and heat produced to conserve energy)

  6. Cycle logic • Putting together: P(:)=P(:)+delta*V(:); for i=1:size(P)-1 if (V(i) > 0 && P(i) > P(i+1)-1.9) V(i+1)=V(i)*M(i)*c/M(i+1); V(i)=0; end end update_plot(H,P); • Repeat as necessary in loop

  7. Extensions • Balls with different masses • Different elasticity – steel vs rubber • Two dimensions – pool table

  8. Sample Codes • Matlab code for 1D collision • Brownian Motion -- Matlab • Java code from open source physics for 2D interaction • http://www.compadre.org/OSP/document/ServeFile.cfm?ID=7572&DocID=592 • Python Example

More Related