Friday, January 20, 2012

Simulation fitting of experimental results: A damped pendulum

The National Science Foundation recently awarded us a new grant to explore the concept of mixed-reality lab (MRL), which we proposed to combine the power of simulations and sensors to provide a new level of integrated learning experience that connects invisible science concepts with natural phenomena.

One of the proposed ways to integrate sensors and simulations is a strategy called "simulation fitting." When scientists observe something in the natural world, they typically build mathematical models to explain their observations. It is through this process that scientists make sense of their findings, understand the mechanisms more deeply, and derive new ideas for further investigations.

This is also an essential cycle of scientific inquiry we would like students to learn. The MRL project will explore how this "simulation fitting" strategy can improve science learning.

An example we have looked at is a simple pendulum. A swinging pendulum will eventually stop because of damping, which comes from two different sources: air resistance and bearing friction. Air resistance depends on the velocity of the pendulum whereas bearing friction doesn't.

My colleague Ed Hazzard has done a neat experiment that shows the difference of the two damping effects. His pendulum, under the normal circumstance, loses very little energy and can swing for a long time. To slow it down quickly, he attached a piece of paper to create a "sail," thus dramatically increasing the air drag. The result from a rotatory sensor shows the decaying of the rotational angle of the pendulum. In this case, the envelope of the curve looks like an exponential function (see the first image).

Launch the simulation.
Removing the "sail" and inserting some cotton into the bearing to increase the dry friction, he was able to amplify the effect of the dry friction. This time, the result of the rotational angle shows an envelope of a straight line, instead of an exponential curve (see the second image--it had two runs).

To understand these effects, we have created simulations that fit exactly the behaviors (see the third image). These simple simulations are based on solving Newton's equation of motion, with the only difference in the damping force: In one case it is proportional to the velocity; in the other case it is constant.

Our next step is to explore how to translate what we have done into a learning activity.

Thursday, January 19, 2012

The world's first website for IR imaging experiments launched

We have launched the world's first website dedicated to IR imaging experiments for science and engineering education: http://energy.concord.org/ir.

This website publishes the experiments I have designed to showcase IR visualizations of natural phenomena. Each experiment comes with an illustration of the setup and a short IR video recorded from the experiment. Dozens of IR videos will be produced and added to the website as we move along. Teachers and students may use these YouTube videos without purchasing IR cameras (the price for the basic versions of which have come under $900 in the United States).

Among other things, we are developing a unique approach that uses affordable handheld IR cameras to visualize unseen energy transfer processes occurring in easy-to-do science experiments. Using this approach, thermal energy can be readily visualized through an IR camera. Other types of energy that convert into thermal energy can be inferred from thermal energy visualizations. This allows many invisible physical, chemical, and biological processes that absorb or release heat to be discovered and investigated.

By lowering the technical barrier to authentic scientific inquiry and presenting compelling visualizations of energy flows and transformations in everyday life, the tool will enable more students in diverse schools to develop a deeper understanding of energy concepts and their broad applications.

Friday, November 18, 2011

Soft body dynamics in the Molecular Workbench

For a long time, some of my colleagues joked about my work on the Molecular Workbench as some trick to randomize "bouncing balls in a box." Part of their impressions came from the overly demonstrated gas simulations that are conveniently linked to some widely taught physical science concepts.

To do justice to the Molecular Workbench, I intend to write a series of blog posts that show the unknown facts about what it is capable of doing. This series is not to defend the work I have done. It is more about digging the potential of computational science and see what favor it can do for science education.

My plain answer to my colleagues' comment is that: "It is something in a box, but not just bouncing balls." One of the things it does more than bouncing balls is its capacity in soft body dynamics.

Soft body dynamics is a subject that focuses on visually realistic physical simulations of the motion of soft bodies (or deformable objects). Why is "soft body" important? The answer is that most biological systems are soft--at the macroscopic level or at the microscopic level. Without the biomechanical flexibility of human body, we would be quite different.Without the biomolecular flexibility of cells, there probably would not be life (e.g., it would not be possible for molecules to move in and out cells).

In many cases when we model microscopic interactions, we don't really need to know how every atom in the system is doing, not only because tracking every single atom in a huge biomolecule is nearly impossible but also it is not necessary to know those details for a basic understanding. Scientists often need to simplify a complex system in order to be able to focus on important aspects. The need is even more so in teaching--the cognitive load for students should be minimized in order to effectively convey the conceptual picture in a short time.

So an interesting question is how flexible biological objects can be simulated in a meaningful way. One approach is to model a soft body as a network of particles connected by elastic constraints (linear, angular, or torsional). This is often known as the mass-spring model in the computer graphics community. In the case of a 2D model, these discrete particles are placed along the edge of a 2D object. In the case of a 3D model, these particles are placed on the surface mesh of a 3D object. Physical interactions among soft bodies are then made possible by giving these particles properties such as a stiff repulsive core, an attractive force, or an electric charge. This allows many interesting phenomena to be modeled, such as self-assembly, docking, and so on.


The above animation shows a box with bouncing balls and swimming "worms," produced by the Molecular Workbench. Does the dynamics of these long soft bodies show some kind of "wormy" behavior that is clearly not that of bouncy balls?

In fact, the mass-spring model implemented in the Molecular Workbench has a number of applications in artificial life ranging from digital fish to digital cells. See this page for a nice summary.

Tuesday, November 15, 2011

Rainbow, iron, and gray


Energy2D is our signature software for simulating invisible energy flow in natural and man-made systems. One of its view shows the temperature distribution calculated by the physics engine. This view renders images similar to what an infrared camera shows. Most IR cameras have a few color palettes for the user to choose. So I think we should provide those options in Energy2D, too.

This blog post shows the three color palettes commonly used in IR imagery that were implemented in Energy2D: rainbow, iron, and gray. I guess the IR folks call the second one "iron" because it looks like the color of an iron bar heated to glow.


A criticism of using colorful heat maps to visualize distributions is the possibility of twisting data and therefore creating illusions--because our perception of color does not go linearly with the linear increase of the RGB values. You can compare these three images and see if that is a problem.

I have blogged a lot about how great an inquiry tool IR imaging represents. The resemblance of Energy2D's temperature patterns to IR images indicates a learning possibility of using simulations to deliver some of the nice features that an IR camera gives--before the prices of IR cameras come down to a couple of hundred dollars.


If you would like to show how they look in real simulations, go to Energy2D's home page and explore from there.