Connecting the Dots, Atom by Atom

AMSC Ph.D. student Perrin Ruth turned a childhood puzzle and a question about diamonds on distant planets into new ways of understanding how molecules grow.

Perrin Ruth at Old Rag Mountain.
Perrin Ruth. Credit: Dmitrii Gudin.

As a child, Perrin Ruth loved a particular kind of puzzle: a big triangle divided into smaller triangles, with a simple challenge to count all the shapes hidden inside. 

“It sounds pretty easy at first, but the shapes all overlap, combine and nest inside each other, so it gets complicated really fast,” Ruth explained. “When I was a kid, I loved solving puzzles like that, finding out the number of shapes in a shape.”

Today, Ruth is a Ph.D. student in applied mathematics & statistics, and scientific computation (AMSC) at the University of Maryland, and he’s still counting shapes, only now they are far more complicated. Instead of triangles, he studies the large molecules thought to form deep inside Uranus and Neptune.

“Scientists have theorized that the intense heat and pressure inside these planets strip hydrogen atoms off methane, leaving the leftover carbon atoms to be compressed into diamonds, in a process called hydrocarbon pyrolysis,” Ruth said. “I want to understand the phase transition that happens right before the diamond part, where you get these gases that coalesce into large molecules.”

Working with Mathematics Professor Maria Cameron, Ruth developed a way to predict when that transition happens. Computer simulations that track every atom were too slow and expensive, so Ruth treated atoms as dots and the chemical bonds between them as lines connecting the dots. That turned the molecules into a ‘network,’ which can be analyzed far faster than a simulation can run.

“I used random graph theory—this branch of math that describes how networks form by chance—to predict what molecules will appear and when a giant one will form,” Ruth explained. 

A simulation of molecular dynamics Ruth studies
 A snapshot of a molecular dynamics simulation of hydrocarbons run on the MATH HPC cluster. In blue is the largest molecule Perrin works to predict, and in orange are ring clusters. Credit: Perrin Ruth.

The hard part was counting loops of atoms, which brings back the childhood puzzle. Small loops are easy to count, but larger ones overlap and merge into bigger rings, and the number of possible combinations explodes. 

“It’s the same with the loops; loops of atoms that share sides can be combined into bigger rings,” Ruth said. “The number of ways to count them can double with each new loop, so a computer can get overwhelmed.”

Ruth and Cameron’s model sidesteps the problem. Rather than listing every possible overlapping loop, it identifies the smallest set of loops needed to describe a large molecule. That makes the count manageable for a computer and helps scientists predict when large molecules will form.

“Perrin is an extraordinary applied mathematician. He drives his projects, constantly generates ideas and takes setbacks in stride. His approach to studying hydrocarbon pyrolysis is both insightful and computationally cheap,” Cameron said.

Ruth’s work could reach well beyond distant planets. Hydrocarbon pyrolysis is also a key reaction in making fuels and plastics, and the random graph theory behind Ruth’s approach is also used to describe how diseases spread through communities. For Ruth, that range of applications is the point.

As an electrical engineering undergraduate student at the University of Colorado Boulder, he took math courses alongside his engineering classes and found that the two fit together well. In a control theory lab, he learned how to keep a swinging robotic arm balanced upright, while his math courses explained why it worked. After Ruth graduated, he knew he wanted to do math but with an emphasis on practical applications.

3D printed molecules
3D prints of ring clusters used as aids to help describe chemical simulations. On the top is a bracelet-like structure which has a large ring that can take many paths. On the bottom are three polyhedral structures that occur in chemical systems that are barallene C8H8 (left), adamantane C10H16 which forms diamond (middle), and the cubic lattice which appears in metals (right). Credit: Perrin Ruth.

 “I decided to enroll at UMD because of its strength in applied mathematics and network science, and I decided to join [Cameron’s] group after taking one of her courses,” Ruth said. “She’s an extremely multifaceted researcher. Because of that, I’ve had the chance to branch out a lot. Through her research group, I’ve learned a bit of everything, from chemistry to network science to machine learning.”

Ruth’s tendency to solve problems in a hands-on way also pops up outside of the classroom. At home, he regularly tinkers with an older 3D printer and creates knickknacks that make life easier in small ways. 

“My favorite projects are things like bookends I’ve printed and a slotted spice rack that I attached to a cabinet next to my oven,” he said. “I’m not going to run an artist out of business with these, but it’s really fun to identify an everyday problem and then make something that tries to overcome it.”

Even as the math gets more complicated or outside-the-box, the motivation is the same as when Ruth was a kid counting triangles. 

“When you work through something mathematically, it just feels good,” Ruth said. “Like, you solved a puzzle.”

About the College of Computer, Mathematical, and Natural Sciences

The College of Computer, Mathematical, and Natural Sciences at the University of Maryland educates more than 10,000 future scientific leaders in its undergraduate and graduate programs each year. The college's 10 departments and seven interdisciplinary research centers foster scientific discovery with annual sponsored research funding exceeding $250 million.