Showing posts with label physics. Show all posts
Showing posts with label physics. Show all posts

20120211

MATLAB Graphical User Interface (GUI): Projectile Motion

MATLAB is yet another application and programming language I've added to my skill set this year. In this post I'm going to share with you a program I wrote in MATLAB that models projectile motion. It has a convenient little Graphical User Interface (GUI) where the user can input the initial velocity (m/s) and angle (degrees),  and the program will spit out a x-y plot. 

[Download This!]

20110819

Towards a 27 Day Prediction of Ionospheric and Thermospheric Space Weather

    In March of 2011, during my winter semester at Eastern Michigan University Department of Physics & Astronomy, I had the honor of writing a proposal for a research scholarship program award with my computational physics professor, Dr. Dave Pawlowski.  The proposal was for the University Research Stimulus Program (URSP) at EMU. The objective of this award was to facilitate research partnerships between undergraduate students and Eastern Michigan University faculty along with a reward of scholarship for the undergraduate.

  Shortly after submitting my proposal, I had received confirmation that I had in fact been granted the URSP award. During the months of April through August 2011, I had been working daily as an undergraduate research assistant under the direction of Dr. Pawlowski. This research was my first plunge into the discipline of computational physics. Over this time period I had gained experience in the subject and performed the following:

• Running computer simulations of Earth’s upper atmosphere based on observations of the sun. Creating a probabilistic forecast for space weather.
• Programmed software scripts using IDL and FORTRAN
• Completed NASA’s Information Security Training, granted access to NASA’s Pleiades supercomputer.
• Parallel computing protocol with Message Passing Interface (MPI)

This post is the contents of a research poster I had put together for a presentation I had made to three groups of visiting 7th and 8th graders, fellow science undergraduates and faculty. You may also download my poster in PDF format here.
 
Abstract
  The prospect of what we can do to increase the knowledge of space weather is promising. One of the practical reasons for doing so is the fact that perturbations in density and temperature in the upper atmosphere can have a significant effect on satellites and instrumentation in low orbit of Earth.  By utilizing ensembles of simulations or ensembles that are based on the uncertainty of the system drivers,  we can run computer simulations to help us make probabilistic forecasts about space weather. In this study, we prepared an ensemble simulation based on uncertainties in the solar extreme ultraviolet (EUV) flux. Then, using the Global Ionosphere-Thermosphere Model (GITM) we ran simulations simultaneously using these ensembles, and analyzed the results.

Introduction
Space weather

the conditions in Earth’s upper atmosphere (ionosphere and thermosphere) in response to changing conditions on the sun. 


Why do we scarcely hear meteorologists in our local news reports making predictions about space weather?  

The overarching reasons:

Society at large generally doesn’t know that space weather affects expensive infrastructure we use daily (e.g. satellite communications, GPS navigation)

Space weather forecasting is currently in significant need of more scientific research in order to make reasonably accurate, long-term predictions.

Ensemble forecasting

Create a statistical sample of weather outcomes by performing multiple computer simulations simultaneously.

Ensembles, are based on a number of input conditions called “system drivers”.

Ensemble members are created based on the uncertainty of these drivers and are used as inputs to our Global Ionosphere and Thermosphere Model (GITM) and simulations are performed which will create a probabilistic forecast of space weather.

  This first segment of this long-term study involves understanding and collecting solar flux data. Utilizing the known uncertainties of this data, we created an ensemble of drivers that were used as input to multiple GITM simulations.  This study examines the effect of the uncertainty in the solar flux on the state of the upper atmosphere.

About the Global Ionosphere and Thermosphere Models

3-D coupled thermosphere-ionosphere model [Ridley et al., 2006]

Solves for 11 Neutral and 10 Ion species, neutral winds (horizontal and vertical), ion and electron velocities and neutral, ion, and electron temperatures

Does not assume hydrostatic equilibrium: Coriolis, vertical ion drag, non- constant gravity, massive auroral zone heating

Flexible grid resolution, fully parallel, with an altitude grid 

Allows for 1D simulations to perform long duration

For this study: 2.5o Latitude x 5o Longitude resolution using 64 processors on the NASA Pleiades supercomputer

Drivers: Solar Flux
 
Plot of the Solar Flux vs. Time.  The black line represents the actual solar flux. The colored lines represent the 5 ensemble members that are used to drive the simulations.

Thermosphere Results
The following plots show the mean mass atmospheric density which is determined from the mean of 5 ensemble members  (top plots) and their standard deviations (bottom plots) of the thermosphere at a 403 km altitude.
1:00 UT: The simulation has just started and thus there is small  difference between the simulations due to the different solar fluxes being used.

4:00 UT: The effects of the flare on the mass density begin to appear.





6:00 UT: Here the effects of the flare reaches its maximum. On a large scale, this is when the largest effects occur. Notice the time delay in effects from Figure 1's peak.


13:00 UT: The effects of the uncertainty have propagated globally. High levels of standard deviation are probably due to significantly different wind patterns. The black arrow points to a maximum uncertainty of 1.7%


Ionosphere Results
The following plots show the mean electron density which is determined from the mean of the 5 ensemble members (top plots) and their standard deviations (bottom plots) of the ionosphere at an altitude of 118 km (left) and 403km (right) .



3:00 UT (118 km): Flare has just ended. Ionosphere is significantly uncertain on the day side.


3:00 UT (403 km): At this higher altitude our standard deviation has significantly increased along with the mean density of electrons.  

Conclusions and Future Work

    Given the uncertainties in the solar flux, it takes several hours for thermosphere to become uncertain. Within 12 hours, the uncertainties have propagated globally in the thermosphere. This is interesting because the thermosphere only affects the day side directly.

•At 13 UT the maximum uncertainty is 1.7%

The ionosphere, however can become uncertain very quickly.

•At 3:00 UT (403 km): The maximum uncertainty is 47%.

The ultimate goal of this research is to predict space weather over one solar rotation period (27 days). We need to study the uncertainty involved in using data on this month’s drivers to predict next month’s space weather. This research also has yet to account for both types of uncertainty in the driver: flare and daily uncertainty. In the future, it will use even more ensemble inputs, like interplanetary magnetic fields (IMF) and solar wind to the GITM model.

References and Acknowledgements
Ridley, A.J., Deng, Y., Toth, G., The Global Ionosphere-Thermosphere Model, J. Atmos. Sol-Terr. Phys., 68, 839, 2006


Flare irradiance data was processed and provided by Phil Chamberlin and Anne Wilson, University of Colorado. http://lasp.colorado.edu/lisird/fism/fism.html


Special thanks to Eastern Michigan University for proving the Undergraduate Research Stimulus Program.

20101010

Rube Goldberg and the 6 Simple Machines

Hah, the title kind of sounds like a Disney fairytale for engineers doesn't it?

Rube Goldberg

Definition: Rube Goldberg: A comically involved, complicated invention, laboriously contrived to perform a simple operation. 1

A Rube Goldberg machine is essentially an overly designed and engineered contraption that often involves a long chain of events that culminate into a simple conclusion. The term bears the name of an American cartoonist named Reuben Lucius Goldberg (July 4, 1883 – December 7, 1970) who was well known for his comics involving these complicated machines that performed trivial tasks. 2

    Rube Goldberg’s comics have sparked international competitions where individuals and teams attempt to construct Rube Goldberg machines. One of the most popular contests being held annually at Purdue University. 3  The 2010 contest held at Purdue had the contest objective of creating the most complex machine that would dispense an appropriate amount of hand-sanitizer into a person’s hand.

6 Simple Machines

Definition: Simple Machine: is a mechanical device that changes the direction or magnitude of a force.

In contrast to a simple machine, a complex machine is simply two or more simple machines working together. When we say working, we mean work, which is the product of force or effort times the distance.  The following are the 6 types of simple machines 5:
  • Inclined plane - A slanting surface connecting a lower level to a higher level
  • Wedge - the edge of a smooth slanted surface
  • Screw - an inclined plane wrapped around a cylinder
  • Lever - a stiff bar that rests on a fulcrum
  • Pulley - a groove wheel with a rope or cable around it
  • Wheel and axle -  a wheel with a rod, called an axle; through its center, both parts move together
   
It is interesting to know that despite the fact that we use machines to make our lives easier and to do less work. It is because of the laws of thermodynamics, that in fact, using simple machines actually amounts to the same amount of work being done overall. 5 Simple machines make things easier for us humans, but essentially same amount of energy is required to perform a task.

Source:
    1 Webster's New World; 4 edition (August 15, 1999)
    2 The National Cartoonists Society http://www.reuben.org/members2.html
    3 Time; “Top 10 Nerdy Competitions”;             http://www.time.com/time/specials/packages/article/0,28804,2023019_2023018_2022959,00.html
    4 Paul, Akshoy; Pijush Roy, Sanchayan Mukherjee (2005). Mechanical Sciences:Engineering Mechanics and Strength of Materials. Prentice Hall of India. p. 215. ISBN 8120326113. http://www.mtsu.edu/~pdlee/public2_html/simple_machines.html#sm#5.
    5 IEEE. “TryEngineering”. Simple Machines. http://ewh.ieee.org/r3/cnc/tisp/cd/TE/simpmach.pdf

20100919

Physics Fun: How Many Elephants of Stuff Comes Out of the Tailpipe of Your Car?

We fill up our automobiles at the pump daily. Have you ever thought about how much of the stuff your car uses as fuel escapes from the tailpipe every year?  For a bit of fun, let's measure it in elephants per year.

Before we calculate this, we need to know a few conversion factors to help create our elephant equation:
  • Gasoline weighs about 6 pounds (lbs) per gallon
  • The weight of an elephant is about 10000 lbs per gallon
Now we can use the handy-dandy dimensional analysis we learned in our science classes to create a rough model that cancels out conversion factors. In the below equation q = Odometer reading in miles/week, and u = Mileage in miles/gallon.

? elephants = (q miles/1 week)*(1 gallon/u miles)*(6 lbs/1 gallon)*(1 elephant/10000 lbs)*(52 weeks/1 year)

This conversion factors simplify to a simple little equation: y =0.0312(q/u), where y is the number of elephants per year.

Let's try our model using U.S. national automobile averages.
q = 231 miles/week, u =23 MPG


y=0.0312(q/u) = 0.0312(231/23) = 0.31 elephants/year

So it turns out Americans have almost a third of an elephant of stuff popping out of their exhaust pipes every year on average. Want to calculate your own car's elephants quickly? Use my Elephant Tailpipe Calculator!
Elephant Tailpipe Calculator 1.0

20100830

Physics Demo: Non-Newtonian Fluids like Cornstarch + Water aka Oobleck

What's cool about Non-Newtonian fluids like Cornstarch + Water, a.k.a. Oobleck, is the fact that it has a hard time deciding what physical state it wants to be in; a liquid or a solid. It has a lot to do with the molecular bonds as I've learned in my attendance of Eastern Michigan University's chemistry lectures. The molecular bonds are stronger in Oobleck than your typical liquid, yet weaker than your typical solid.  Hence the puzzling nature of this Non-Newtonian fluid with an identity crisis. It doesn't know what it wants to be!

Here is a video I recorded of myself and my friends at All Hands Active (AHA!) demonstrating the effects of Oobleck when you place the substance on a vibrating speaker.  We were also advertising our organization on the streets of Ann Arbor, MI, and we drew in quite a crowd who were dazzled by the spectacle.

Behold the power of physics.

Electronic Prototyping with the Arduino Microcontroller

Electricity is beautiful and powerful physical effect. We can use computers and programming to tame it. Programming is one of my favorite things to do. Combining programming and physics (specifically electricity) makes for an even more exciting challenge for me! In the following Youtube videos, I demonstrate some simple but fun examples of what you can do with an Arduino microcontroller and some electronic prototyping equipment. My personal project was to learn how electricity works and how to manipulate it with a few simple tools.

Arduino is an open source microcontroller that makes electronic prototyping easier, yet gives you many more capabilities thanks to the fact that you can program the microcontroller and tell it what to do.  The software I wrote to make these wasn't more than a few lines, but it was neat to know what was going on thanks to my previous experience in web programming.

The first simple Arduino experiment I made was an LED activated by a pushbutton.


The second is an LED activated by a light sensor. Way cool, and the Arduino code behind it was fun to write.