Matlab Assignment #3
Loops and Functions
1.) Do problem 6.4-1 from your Matlab text
2.) Do problem 6.4-5 from your text
3.) Repeat Excel Assignment #2 using Matlab. Write your program so that Force is computed as a function. The problem is restated below:
You are to do a crash barrier test prediction. The testing device is a rocket powered ram (just think of a cart on wheels with a rocket engine mounted on the back). The ram has a mass of 800 kg, and the rocket develops a thrust of 5,000 N. The rocket is initially 500 meters from the barrier when it is ignited. It burns for 10 seconds and then coasts at constant velocity until impact. The resisting force of the barrier impact is estimated to be 30,000 N. This force is constant during the deceleration of the rocket (model as a foam wall). Using Newton's laws, determine the time / position and time / velocity relationships for the rocket. Assume the barrier is perfectly plastic (ram is absorbed by the wall).
Time history is zero to 17 seconds with increment of 0.5 seconds. . Use the following equations to determine position, velocity, and acceleration:
A = F / M
Vi = Vi-1 + A i - 1 * time increment
Pi = Pi -1 - 0.5 * (V i + Vi - 1 ) * time increment
Compute the following values:
i.. The average velocity of the ram
ii. The maximum velocity of the ram
iii.. The maximum depth of penetration (barrier impact)
4.) Modify your simulation so that the rocket force, position of the wall, simulation time, and
time increment are parameters entered by the user.
Rerun your simulation with the following changes:
i. Wall at 100 meters
ii. Wall at 1000 meters
iii. Rocket force at 15,000N
iii. time increment at 0.1 seconds.