Monday, December 2, 2019

newtonian mechanics - Using acceleration to plot position


Sorry if this question is dumb, and I know is physics 101, but I'm not that good with physics.


I'm writing an iPhone program that by collecting the acceleration data of the device tries to replicate the motion of the device in an virtual environment.


To simplify things, let's consider just one axis.


If the device is at position 0 with acceleration 0 and speed 0, if it receives an acceleration of 1.25G, what it will be it's position after 1.22 seconds, considering that the acceleration will last for the whole 1.22 seconds?



Answer



We are looking for the position, say s, of the object at a certain time t. Given initial conditions t0 (initial time), v0 (velocity at t0), s0 (position at t0) and a constant acceleration a during a time interval tt0.



We use the following equation to determine the position s at time t:


s=s0+v0(tt0)+12a(tt0)2


(This page would be helpful if you need more.)


Hope this helps!


No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...