Search This Blog

Wednesday, September 2, 2009

Sunnybrook 3D code

Hey,

This is the unoptimized code that I worked on for Sunnybrook. I actually don't have a copy of the optimized one. The only difference are some OpenMP functions here and there that would do the cluster optimizations.

Code

Sometime this week I will explain what the code actually does, and I'll explain the whole thing in more detail. I think I might also post some preliminary code that I wrote to understand the math. That code is the 1D version of this in C++, and Matlab.



-- G-raph Out --

Tuesday, September 1, 2009

Ap Physx Labs Posted

Today we just found out the labs we will have to do this year for AP Physics (from here on I will spell it Physx (Yes I got that from Ageia Physx)).


  1. Soup Can Roll
  2. Collision Simulation
  3. Simple Pendulum
  4. DC Cicuit Analysis and AC Inctroduction
  5. AC Circuit Analysis

-- G-raph Out --

Simple Pendulum Lab Instructions

You are to investigate the effects that bob mass and the length of a pendulum have on its period. This is to be done at various release angles and the effect the release angle has on the pendulum’s period must be modelled.

The differential equation for the motion of the pendulum must be derived and the constants measured. For small values of theta, the DE can be simplified using the small angle equation. You must, however, be prepared to defend what range you consider a small angle and how this estimation affects the overall precision of your work. You are also expected to empirically model the effects of large values of theta on the period. Thus your final expression will be something like Period(theta, Length) = Ideal Period(length) + Period Perturbation (theta, length). CAUTION: Observe that the square root of small g is essentially equal to Pi. Do not ignore this!

Soup Can Lab Instructions

 You must use two cans of soup. One is a consommé and the other is a cream soup. The cans must have the same-labelled mass and have the same dimensions at least to eye. It is better if the soups chosen do not have chunks of material in them.

These cans are to be rolled down two ramps and then on to a flat surface. The slope must be otherwise smooth and so must be the floor. One slope is to be slight permitting the consommé can to roll further. The other must be much steeper and result in the cream soup rolling further. You may have to cover the slopes with some material to prevent the can from slipping. You may also modify the floor ramp interface to allow the can to smoothly transfer from the ramp to the floor without appreciable bouncing. (If you think this matters)