Data Model - Damped Harmonic Oscillator
One of the most challenging problems in scientific computing is data modeling. Data modeling refers to the problem of fitting a parametric model to existing data for some phenomenon. For instance, let us consider the motion of a simple harmonic oscillator for which the motion is damped. The equation of motion (position xth as a function of time t) for a damped harmonic oscillator is given by
where A is the amplitude of the oscillator, b is the damping coefficient, m is the mass of the oscillating object, w is the angular frequency, d is the phase shift, and C is the offset.
The purpose of this exercise is to estimate the above unknowns using some observed data.
Procedure
- Download the file dhm.dat from /tmp directory of physics.gmu.edu to your PC.
- Open the Excel and read the data in.
- As you notice there are two columns. The first column is the data for time in seconds and the second column is the data for position in meters. Plot x vs time.
- Take the first derivative of the position with respect to time.
- Take the second derivative of the position with respect to time.
- Determine the times corresponding to the maximum positions.
- Make a table that contains all the maximum positions with their corresponding times.
- Estimate the value of C from the plot you made in Step 3.
- Plot the maximum positions vs maximum times and determine the value of b and A given m = 197.27 grams.
- From the table in Step 6, determine the values of w and d.
- Calculate the RMS error using the equation
- Plot xth vs time and x vs time on the same plot.
- Adjust the value of C to make the RMS error minimum.
- Comment on how you would change the above procedure to improve the calculations of the parameters.
- Post a web page that contains the information regarding the parameters you found and e. Include your comments and the plot from Step 13.
Done. See Damped.htm