Bifr st physics
Download
1 / 15

Bifröst Physics - PowerPoint PPT Presentation


  • 132 Views
  • Uploaded on

Bifröst Physics. Arman J. Frasier Christopher Newport University Department of Physics, Computer Science, and Engineering Mentor: David Heddle. April 22 nd , 2011 Washington Room, David Student Union. Roadmap.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Bifröst Physics' - felix


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Bifr st physics

Bifröst Physics

Arman J. Frasier

Christopher Newport University

Department of Physics, Computer Science, and Engineering

Mentor: David Heddle

April 22nd, 2011 Washington Room, David Student Union


Roadmap
Roadmap

  • What is Bifröst Physics?

  • The Physics

  • The Programming

  • Future Development

  • Conclusion & Questions

Bifröst Physics Christopher Newport University Arman J. Frasier


What is bifr st physics
What is Bifröst Physics?

  • A two dimensional physics simulator designed to facilitate long distance physics education through a local network or the internet.

  • Developed in Java

Bifröst Physics Christopher Newport University Arman J. Frasier


Features
Features

Physics Simulator

Trajectory tracing

Velocity vector display

Automatic entity generation

Optimized threading

Alterable time iteration

  • Kinematics

  • Inelastic Collisions

  • Mutual gravitational and electric effects

  • Gravitational and Electric fields

  • Fluidic Resistance

Bifröst Physics Christopher Newport University Arman J. Frasier


Features1
Features

Renderer

Networking

Integrated chat functions

Ability to transfer simulation data

Centralized Relay

Low bandwidth usage

  • Accelerated 2D graphics through AWT

  • Maximum frame rate of 60 frames per second

Bifröst Physics Christopher Newport University Arman J. Frasier


Physics
Physics

  • Steps through each entity, calculating the net acceleration affecting that entity.

  • Uses these accelerations in basic kinematic equations, along with a specified time step, to determine the new velocity and position vectors of each entity.

Bifröst Physics Christopher Newport University Arman J. Frasier


Collisions
Collisions

  • The false positive check helps correct errors from large time steps.

Pseudo-code algorithm:

if(distance > (radius1 + radius2)) {

//no collision (too far away)

return;

} else {

rotate frame so that the collision vector becomes the new x axis

}

if (not false positive) {

//collision

do collision calculations

}

return frame to normal rotation

return;

An example of a false positive collision

Bifröst Physics Christopher Newport University Arman J. Frasier


Collision example
Collision Example

Detect collision

Find collision vector

Rotate the frame, making the collision vector x’.

Find the x-component of each entity’s velocity

Use the x-components in these 1D inelastic collision formulas to calculate new x-components.

Update the velocity vectors, and then return the frame to its original rotation.

Bifröst Physics Christopher Newport University Arman J. Frasier


Programming
Programming

  • Simulation Programming

  • Network Programming

Bifröst Physics Christopher Newport University Arman J. Frasier


Simulation programming
Simulation Programming

  • Upon initialization, the simulation control thread creates as many worker threads as there are logical processors on the host machine.

  • These threads are synchronized using a sleep/interrupt schema.

Bifröst Physics Christopher Newport University Arman J. Frasier


Simulation threading

Play?

Simulation Threading

No

Yes

1 kHz

Taskmaster

Simulation Control

Worker Threads

(One per logical processor)

Simulation

Calculations

Legend

Aggregate Data

Sleep

Proceed

Interrupt

Action

Thread

Update Entity Data

Bifröst Physics Christopher Newport University Arman J. Frasier


Network programming
Network Programming

  • Central host accepts connections from clients

  • Host sends physics data to clients

  • Host acts as a chat relay for clients

  • Low bandwidth usage

Bifröst Physics Christopher Newport University Arman J. Frasier


Future development
Future Development

  • Networked simulation calculations

  • Simulation video capture

  • Further simulation optimization

  • Extension into 3D

  • Abstraction of Physics simulation with API

Bifröst Physics Christopher Newport University Arman J. Frasier


Conclusion
Conclusion

  • Bifröst Physics can help students understand complex physical concepts through instructor designed experiments, as well as through instructor led networked class sessions.

Bifröst Physics Christopher Newport University Arman J. Frasier


Questions
Questions?

Resources

  • Project Webpage (Includes jar files, user’s guide, change log, and this presentation)

    http://www.pcs.cnu.edu/~afrasier/bifrost

  • Contact: [email protected]

Bifröst Physics Christopher Newport University Arman J. Frasier


ad