Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pcubed_intro_project [2018/06/13 20:24]
tallpaul
pcubed_intro_project [2018/06/13 21:06] (current)
tallpaul [Part C: computational modeling of the trajectories of the hovercrafts]
Line 1: Line 1:
-====== Project 2: Part A: Escape from ice station ​McMurdo ======+====== Project 2: Escape from Ice Station ​McMurdo ======
  
-You are a member of a scientific research team at McMurdo ice station which is funded by the Carver Media Group in Antarctica.+===== Parts A and B: backstory from previous class period (not computational) =====
  
-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 disappearedFrightened, 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.+(Skip ahead to Part C for the computational portion ​of the projectWhat follows is simply ​the project'​s storyline.)
  
-<WRAP column 40%> +You are a member of a scientific research team at McMurdo ice station which is funded by the Carver Media Group in AntarcticaFor reasons undisclosed,​ several inhabitants of the ice station have disappearedFrightened, a member of your team decides 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.
-^ Time ^ Your Team Member'​s Position ^ Your Position ^ +
-| 0 s | 2536.40 m | 10.47 m | +
-| 10 s | 3072.80 m | 41.88 m | +
-| 20 s | 3609.20 m | 94.22 m |  +
-</​WRAP>​+
  
-<WRAP column 55%> +You decide to attempt a rescue in another hovercraft. You need to tell the runaway researcher when to jump onto your hovercraftJust 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$200$ meters 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, $400$ meters below, is an unfrozen salt water pool surrounded by stalagmites. From the ravine'​s edge to the pool is $490$ meters and the pool stretches for $900$ meters. You are moving too quickly to survive jumping off the hovercraft, but might survive the fall into the pool by staying on the hovercraft -- it has seat belts. You now have a choice to make: stay on your hovercraft or jump to the runaway researcher'​s hovercraft. One or both may make it to the pool. Your choice may be the difference between life and death.
-You decide to attempt a rescue in another hovercraft. You must decide how many members of your team help in the rescue operationThe hovercrafts do not have a velocity or acceleration ​gauge but they do have GPS locators ​and you possess your trusty stop watchThe 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. +
-</​WRAP>​+
  
 +{{ hovercraft.jpg |}}
  
-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.+===== Part C: computational modeling of the trajectories of the hovercrafts =====
  
 +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. ​ The accident report should include a detailed computational model that provides the projected motion of the runaway hovercraft.
  
-====== Project 2Part BEscape from ice station McMurdo ======+To begin, copy the code below into a glowscript file. Follow the link for details[[:glowscript_getting_started|Getting Started with Glowscript]].
  
-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 direction200m ahead of the point at which you were going to tell the researcher to jump is an ice ravineAt the bottom of the ice ravine400m belowis an unfrozen salt water pool surrounded by stalagmitesFrom the ravine's edge to the pool is 490m and the pool stretches for 900mYou are moving too quickly to survive jumping off the hovercraftbut might survive the fall into the pool by staying on the hovercraft; it has seat beltsYou now have a choice to maketo stay on your hovercraft or jump to the runaway researcher'​s hovercraftOne or both may make it to the poolYour choice may be the difference between life and death.+<​code>​ 
 +#​get_library("​https://​raw.githubusercontent.com/​perlatmsu/​physutil/​master/​js/​physutil.js"​) 
 +  
 +#Objects 
 +cliff = box(pos=vector(-100,0,0), size=vector(200,​800,​0),​ color=color.white) 
 +ravine ​= box(pos=vector(245,​-200,​ 0), size=vector(490,​400,​0),​ color=color.white) 
 +lake = box(pos=vector(940-200, 0), size=vector(900,​400,​0),​ texture=textures.roughcolor=vector(0.1,0.5,1)) 
 +runawaycraft = sphere(pos=vector(-200,​400,​0),​ radius=10, color=color.red)
  
-====== Project 2: Part C: Escape from ice station McMurdo ======+#Parameters and Initial Conditions 
 +vector(0,​-9.81,​0) 
 +0  #Drag coefficient
  
-Surprisingly enough hovercrafts are an expensive piece of kitYour employer, the Carver Media Groupis 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.  ​The accident report should include a detailed computational model that provides ​the projected ​motion of the runaway hovercraft.+runawaycraftm = 1500 
 +runawaycraftv = vector(10,​0,​0) 
 +runawaycraftp = runawaycraftm*runawaycraftv 
 + 
 +#Time and time step 
 +t=0 
 +tf=5 
 +dt = 0.01 
 + 
 +#​MotionMap/​Graph 
 +#​runawaycraftMotionMap = MotionMap(runawaycrafttf, 5, markerScale=1,​ labelMarkerOrder=False,​ markerColor=color.orange) 
 + 
 +#​Calculation Loop 
 +while runawaycraft.pos.x < 0: 
 +    rate(500) 
 + 
 +    Fgrav = runawaycraftm*g 
 +    Fground = -Fgrav 
 +    Fnet = Fgrav + Fground 
 +  
 +    runawaycraftp = runawaycraftp + Fnet*dt 
 +    runawaycraft.pos = runawaycraft.pos + (runawaycraftp/​runawaycraftm)*dt 
 + 
 +    #​runawaycraftMotionMap.update(t,​ runawaycraftp/​runawaycraftm) 
 + 
 +    t = t + dt 
 +</​code>​ 
 + 
 +<WRAP info> 
 + 
 +==== Project 2: Learning goals ==== 
 + 
 +  * Predict ​the motion of a single-particle system executing constant velocity or constant acceleration motion using appropriate representations (this includes verbalgraphical, diagrammatic,​ mathematical,​ and computational representations). 
 +  * Collect, analyze, and evaluate data to determine ​the type of motion and the properties of the motion of a single-particle system. 
 +  * Evaluate the applicability/​limitations of models ​and the validity ​of predictions for different types of motion. 
 +  * Apply the momentum principle ($\Delta\vec{p}=\vec{F}\,​\Delta t$; $d\vec{p}=\vec{F}\,​dt$) iteratively/​computationally to predict ​the motion ​or determine the properties ​of motion/net force acting on a single-particle system where the net force is not constant (e.g., due to spring-like restoring forces or dissipative drag forces). 
 + 
 +</​WRAP>​
  • pcubed_intro_project.1528921443.txt.gz
  • Last modified: 2018/06/13 20:24
  • by tallpaul