Starting from:

$30

EEU22E11 Assignment 1 -Solved

The Red Bull Stratos Jump Team have recorded their scientific data online here. The key data recording the velocity of Mr. B. wrt time is in the CSV1 file RedBullJumpData.csv

which you can download from blackboard. the lines of code below show you how to read from a CSV file in Matlab.

jumpdata = csvread(’RedBullJumpData.csv’); t_redbull = jumpdata(:,1); v_redbull = jumpdata(:,2); terminal_velocity = jumpdata(:,3);

N_timestamps = length(t_redbull);

Note that the third column in the file is the measured terminal velocity profile of the falling object. It was reported by the team but is not clearly defined. You will not need it to answer the questions below. However, you can explore whether the information that column implies may be useful in answering the last question.

As you will see, the fall is initially unhindered by drag. Then as the atmosphere causes drag, the acceleration changes and eventually Mr. B. reaches terminal velocity. Our idealised solution does not take into account the change of drag with time and so it is likely to be quite a poor model of what happens to Mr. B. as he falls.

1 A CSV file is a Comma Separated

Value file

t_redbull is a vector containing the timestamps at which the velocities in v_redbull were measured. The number of instants at which the time and velocity pairs were measured is N_timestamps.


evaluating the error in a mathematical model 2

LINEWIDTH OF 2.0. PLEASE USE THE TEMPLATE CODE PROVIDED.

1.   Plot the measured values of velocity versus time from the JumpData.CSV file. Put your line into a plot handle called h_part1 using h_part1 = plot(....) as usual. Use the color red for the line. Mark each point on your line with a red × mark. Render this plot as Figure 1. Fix your axes to a time duration of 180 secs and a maximum velocity of 400m/s2. Label the axes appropriately, show the grid and also adjust the fontsize of the axis labels to be 24.

2.   Superimpose on that plot another line (in dashed blue), which shows the velocity versus time for an object in freefall without the effect of drag. Put that line into a plot handle called h_part2. Note that this implies that acceleration is constant and so v(t) = at, where acceleration is in m/s2 and a = g. Assign your freefall velocity to a variable v_freefall at the same time instants as t_redbull.

jumps. Assign that value to the variable hit_instant.
Note that you should use the same timesteps as in the JumpData file.
4. Assume that the velocity of Felix as he falls is modelled by the first order differential equation that we used in the previous laboratory. Starting from the initial conditions at
That means instead of a constant times interval between each point in your Euler solution you will have to change the time interval in line with the size in the recorded file.
3.   Estimate the time at which Mr. B. starts to enter the atmosphere. Do this either by using the plot in Figure 1 (i.e. by graphical/manual estimation) or otherwise. You may assume that when the actual measured velocity deviates from idealised freefall by >= 5% then he has entered the atmosphere. Print out to the command line a report of this value i.e. Mr. B. enters the earth’s atmosphere at X secs after he t = 56 secs use your numerical solution code from the previous laboratory to generate an estimate of the velocity of Mr B after that time i.e. up to 180 secs. Assume initial conditions are as measured in the file. Use c/m = 3/60. Superimpose the resulting numerical solution of velocity versus time on your plot in Figure 1 using a dashed green line. Assign that line to the plot handle h_part4. Assign your velocity vector to the variable v_numerical_1.

evaluating the error in a mathematical model 3

5.   Calculate the percentage error between your numerical solution and the actual measured value of velocity of Mr. B at 64 and 170 secs. Your code must also print this out on the command line using the text as follows. The Percentage error at 64 and 170 secs is X and Y respectively. Assign your percentage error measurements to a 2 element vector per_error.

6.    As you can see the model we have used in lectures is unable to capture what actually happens. We can achieve some idea of the change in c/m by using our idealised model over small intervals in time. In other words, we can try to use a number of different, simple models at different points in time, to model the behaviour of Mr. B. Starting from t = 64 secs, find a value of c/m which yields a velocity at t = 69 secs in your numerical solution that is within ±0.3% of the measured velocity. Assume initial conditions are as measured at t = 64secs. Hint : try values between 2/60 and 5/60 in steps of 1/60. Superimpose this new velocity solution on your existing plot using a dashed line coloured black. Assign that velocity vector to the variable h_part6. Report your measured error at t = 69 using The error at t = 69 secs using my estimated drag information is X.. Assign that error to the variable 

More products