The team back at headquarters has just received a call from the National Weather Service (https://www.weather.gov/) that they want you to take some additional data on this cloud. Apparently some of the properties of this cloud are particularly interesting, specifically due to the fact that the cloud is moving Northward, not typical of most clouds in this geographical region (see some discussion of this here if you're interested). For the moment, the winds have died down and the cloud isn't moving.

The Super-Mega-Storm-Cloud-Meter 9000TM, standing 30 m tall, operates by collecting data from the cloud using a series of satellite dishes planted on the ground that monitor the cloud as it moves and develops/deteriorates, sort of like a fancy digital multimeter. There is only one problem: the equipment you are going to use to collect said data is extremely sensitive, specifically to electric field interferences. In order to collect useful data, it must be properly calibrated to the source of interest. The field team has already set up the device below the cloud 250 m away from HQ. In order to calibrate this instrument, a computer based model of the electric field of the cloud needs to be built and sent to the measuring device's main computer located with the field team. This alleviates any background “noise” in the data caused by satellite dishes, cell phones, camera equipment, power lines, transformers, interference with any residual charges in the ground, etc.Thankfully, your team has a template for building these computer models.

## Scene Setup
scene = display(width=1000, height = 1000)

## Parameters
ec = 1.6e-19
k = 9e9

## Objects
cloud = sphere(pos=vec(0,3500,0), color=color.white, radius=100)
ground = box(pos = vec(0,0,0), width=5000, length=5000, height=0.1, color=vec(1,0.7,0.2))
HQ = box(pos = vec(-250,100,0), width = 10, length=10, height=200, color=color.green)
detector = box(pos = vec(0,30,0), width = 5, length=5, height=3, color = color.white)

#Step 1: Make one E-Field Arrow
E = vec(0,0,0)
field = arrow(pos=detector.pos, axis = E, color = color.yellow)

#Step 2: Make multiple E-field Arrows

while starting_point<200:
    field = arrow(pos=detector.pos, axis = E, color = color.yellow)

Complete the computer model that will calibrate the Super-Mega-Storm-Cloud-Meter 9000TM to the cloud's electric field at the position of measurement. The Super-Mega-Storm-Cloud-Meter 9000TM will also need to be calibrated for a variety of electric field positions to the North and the South of its operation point once it has been properly programmed for its stationary position. This is to set a baseline for collecting data as the cloud begins moving.

Notes on Coding

Using Python

Getting Started with Glowscript

Common Commands in Python

Learning Goals:

  • Become comfortable with reading code (where in the code are objects made, how do you make arrows/objects, where are calculations happening, etc.)
  • Connect the parts of the code to what you see when you hit the “Run” button
  • Recognize what you want to enter as a “known” (or parameter) in the code and what you want the program to calculate
  • Be able to explain how the code relates to the physics equations (from Week 1) and vice versa
  • Explain what a while loop does in the code

Conceptual questions:

  1. What should the E-field look like for a positive storm cloud? What about a negative cloud?
  2. How do you know if your code is working right?
  3. What happens to your arrows if you change different parameters in the code? (e.g. cloud height, cloud charge, etc.)
  4. How big is the E-field below the cloud? Is that large/small/normal for an E-field?
  5. What direction does the separation vector point? What about the E-field?
  6. What assumptions did you need to make to simplify this problem?
  • 184_projects/meanwhile_at_hq.txt
  • Last modified: 2022/08/16 16:08
  • by dmcpadden