Channels ▼
RSS

Open Source

Supercomputing On a Cell Phone



Many engineering disciplines rely on supercomputers to simulate complicated physical phenomena -- how cracks form in building materials, for instance, or fluids flow through irregular channels. Now, researchers in MIT's Department of Mechanical Engineering have developed software that can perform such simulations on an ordinary smart phone. Although the current version of the software is for demonstration purposes, the work could lead to applications that let engineers perform complicated calculations in the field, and even to better control systems for vehicles or robotic systems.

The "rbAPPmit" software works in cases where the general form of a problem is known in advance, but not the particulars. For instance, says Phuong Huynh, a postdoc who worked on the project, a computer simulation of fluid flow around an obstacle in a pipe could depend on a single parameter: the radius of the obstacle. But for a given value of the parameter, calculating the fluid flow could take an hour on a supercomputer with 500 processing units. The researchers' new software can provide a very good approximation of the same calculation in a matter of seconds.

"This is a very relevant situation," says David Knezevic, another postdoc in the department who helped lead the project. “Often in engineering contexts, you know a priori that your problem is parameterized, but you don't know until you get into the field what parameters you're interested in."

Each new problem rbAPPmit is called upon to solve requires its own mathematical model. The models, however, take up little space in memory: A cell phone could hold thousands of them. rbAPPmit is an open source implementation of the certified Reduced Basis method for Android smart phones. The principal software developers are Phuong Huynh, David Knezevic and Mark Wittels. The rbAPPmit client software, which can be downloaded here, links to the open source codes AChartEngine and Apache Math Commons for plotting functionality and linear algebra operations, respectively. rbAPPmit comes preloaded with models for nine problems, including heat propagation in objects of several different shapes, fluid flow around a spherical obstacle, and the effects of forces applied to a cracked pillar. As the researchers develop models for new classes of problems, they post them on a server, from which they can be downloaded.

But while the models are small, creating them is a complicated process that does in fact require a supercomputer. "We're not trying to replace a supercomputer," Knezevic says. "This is a model of computation that works in conjunction with supercomputing. And the supercomputer is indispensable."

Knezevic, his fellow postdoc Phuong Huynh, Ford Professor of Engineering Anthony T. Patera, and John Peterson of the Texas Advanced Computer Center describe their approach this way: Once they have identified a parameterized problem, they use a supercomputer to solve it for somewhere between 10 and 50 different sets of values. Those values, however, are carefully chosen to map out a large space of possible solutions to the problem. The model downloaded to a smart phone finds an approximate solution for a new set of parameters by reference to the precomputed solutions.

The key to the system, Knezevic says, is the ability to quantify the degree of error in an approximation of a supercomputing calculation, a subject that Patera has been researching for almost a decade. As the researchers build a problem model, they select parameters that will successively minimize error, according to analytic techniques Patera helped developed. The calculation of error bounds is also a feature of the phone application itself. For each approximate solution of a parameterized problem, the app also displays the margin of error. The user can opt to trade speed of computation for a higher margin of error, but the app can generally get the error under 1 percent in less than a second.

While rbAPPmit can calculate the behavior of a physical system on the basis of its parameters, it could prove even more useful by doing the opposite -- calculating the parameters of a physical system on the basis of its behavior. Instead of, say, calculating fluid flow around an obstacle based on the obstacle's size, the software could calculate the size of the obstacle based on measurements of the fluid flow at the end of a pipe. Ordinarily, that would require several different computations on a supercomputer, trying out several different sets of parameters. But if testing, say, 30 options on a supercomputer would take 30 hours, it might take 30 seconds on a phone. Indeed, the researchers have already developed a second application that calculates such "inverse problems."


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video