Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
course_planning:computation:scratch_work [2016/03/12 22:40] – [Project 2: Part A: Escape from ice station McMurdo] obsniukm | course_planning:computation:scratch_work [2016/03/25 18:40] (current) – [Code] obsniukm | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ====== Project 2: Part A: Escape from ice station McMurdo | + | ====== Project 2: Part A ====== |
You are a member of a scientific research team at McMurdo ice station which is funded by the Carver Media Group in Antarctica. | You are a member of a scientific research team at McMurdo ice station which is funded by the Carver Media Group in Antarctica. | ||
Line 6: | Line 6: | ||
Two members of your research team have recently returned from investigating an incident at a Norwegian research facility. They brought with them a burnt humanoid body with two faces. Since the disturbing discovery several inhabitants of the ice station have disappeared. Frightened, a member of your team decided to flee the station on a fan powered hovercraft but you receive a distress call not long after their escape that their steering and acceleration controls have been jammed and they need your help. | Two members of your research team have recently returned from investigating an incident at a Norwegian research facility. They brought with them a burnt humanoid body with two faces. Since the disturbing discovery several inhabitants of the ice station have disappeared. Frightened, a member of your team decided to flee the station on a fan powered hovercraft but you receive a distress call not long after their escape that their steering and acceleration controls have been jammed and they need your help. | ||
- | <WRAP group> | + | ^ Time ^ Team's Position ^ Your Position ^ |
- | <WRAP column 50%>...</ | + | | 0 s | 2536.40 m | 10.47 m | |
- | <WRAP column 40%>...</ | + | | 10 s | 3072.80 m | 41.88 m | |
- | </ | + | | 20 s | 3609.20 m | 94.22 m | |
+ | |||
+ | You decide to attempt a rescue in another hovercraft. You must decide how many members of your team help in the rescue operation. The hovercrafts do not have a velocity or acceleration gauge but they do have GPS locators and you possess your trusty stop watch. The GPS locator tells you the exact position of both your craft and other team members craft relative to the ice station. You are following their path. You collect the following data for the first 20 seconds of your journey. | ||
You need to tell the runaway researcher the exact time from your starting time to jump onto your hovercraft as you may only have one shot at this rescue. | You need to tell the runaway researcher the exact time from your starting time to jump onto your hovercraft as you may only have one shot at this rescue. | ||
- | ====== Project 2: Part B: Escape from ice station McMurdo | + | ====== Project 2: Part B ====== |
Just as you are about to radio the time to jump to the runaway researcher, you realize the steering and acceleration controls have become frozen on your hovercraft and so it continues to accelerate and you cannot change direction. 200m ahead of the point at which you were going to tell the researcher to jump is an ice ravine. At the bottom of the ice ravine, 400m below, is an unfrozen salt water pool surrounded by stalagmites. From the ravine' | Just as you are about to radio the time to jump to the runaway researcher, you realize the steering and acceleration controls have become frozen on your hovercraft and so it continues to accelerate and you cannot change direction. 200m ahead of the point at which you were going to tell the researcher to jump is an ice ravine. At the bottom of the ice ravine, 400m below, is an unfrozen salt water pool surrounded by stalagmites. From the ravine' | ||
- | ====== Project 2: Part C: Escape from ice station McMurdo | + | ====== Project 2: Part C ====== |
Surprisingly enough hovercrafts are an expensive piece of kit. Your employer, the Carver Media Group, is concerned by the happenings at the McMurdo ice station and would like you to produce an accident report detailing the events after you lost control of your hovercraft. | Surprisingly enough hovercrafts are an expensive piece of kit. Your employer, the Carver Media Group, is concerned by the happenings at the McMurdo ice station and would like you to produce an accident report detailing the events after you lost control of your hovercraft. | ||
- | <WRAP download | + | <WRAP download |
+ | |||
+ | |||
+ | |||
+ | ====== Code ====== | ||
+ | |||
+ | <code python> | ||
+ | #Objects | ||
+ | hovercraft = sphere(pos=vector(-200, | ||
+ | |||
+ | #Parameters and Initial Conditions | ||
+ | g = vector(0, | ||
+ | |||
+ | hovercraftm = 1500 | ||
+ | hovercraftv = vector(53.64, | ||
+ | hovercraftp = runawaycraftm*runawaycraftv | ||
+ | |||
+ | #Time and time step | ||
+ | t=0 | ||
+ | tf=10 | ||
+ | dt = 0.01 | ||
+ | |||
+ | # | ||
+ | hovercraftMotionMap = MotionMap(hovercraft, | ||
+ | |||
+ | # | ||
+ | while hovercraft.pos.x < 0: | ||
+ | Fgrav = hovercraftm*g | ||
+ | Fground = -Fgrav | ||
+ | Fnet = Fgrav + Fground | ||
+ | |||
+ | hovercraftp = hovercraftp + Fnet*dt | ||
+ | hovercraft.pos = hovercraft.pos + (hovercraftp/ | ||
+ | |||
+ | hovercraftMotionMap.update(t, | ||
+ | |||
+ | t = t + dt | ||
+ | </ | ||
+ | |||
+ | <WRAP tip> | ||
+ | == Tutor Questions == | ||
+ | * **Question: | ||
+ | * **Expected Answer: | ||
+ | |||
+ | * **Question: | ||
+ | * **Expected Answer: | ||
+ | |||
+ | * **Question: | ||
+ | * **Expected Answer: | ||
+ | |||
+ | * **Questions: | ||
+ | * **Expected Answer: | ||
+ | |||
+ | * **Questions: | ||
+ | * **Expected Answer: | ||
+ | </ |