Computer Simulation in Mechanical Engineering


Computer Simulation in Mechanical Engineering

Michael
Welcome to the first of two talks on computer simulation in mechanical engineering. Today we’re looking at simulation broadly: what it is, why engineers use it, what kinds of systems it can represent, and what its limitations are. The companion talk focuses more specifically on simulation for autonomous vehicles and robotics.

Corey
Before we get into the engineering, the original talk is part of TechTalk@UWEPD. EPD stands for Engineering Professional Development, a department at the University of Wisconsin–Madison that helps people improve their skills through online programs. The idea is to make further learning accessible to graduates who may not have the time to return to campus.

Michael
EPD offers short courses, certificates, and degrees. The speaker, Dan Negrut, was associated with its Master of Engineering in Data Analytics program as one of its academic directors. He also mentioned a Master of Science program in power electronics and said that prospective students could find information online or contact EPD.

Corey
And a little context on Dan himself: he grew up in Romania, studied aerospace engineering as an undergraduate, and earned his PhD at the University of Iowa. After six years in industry and a year in the mathematics and computer science division at Argonne National Laboratory, he joined UW–Madison’s mechanical engineering department in November 2005.

Michael
He also made a point of crediting the people behind the work. The Simulation-Based Engineering Lab includes scientists, a postdoctoral researcher, graduate students, and undergraduates. The group has also collaborated for more than twelve years with researchers in Italy, and the projects have received support from sources including the National Science Foundation, the Army, the Department of Transportation, the Mid-Continent Foundation, and Continental Mapping.

Corey
That lab has two broad areas of focus. One is multiphysics modeling and simulation of mechanical systems; the other is simulation for autonomy. The talk we’re discussing centers on the first area, while the autonomy work—including autonomous vehicles and robots—is the subject of the second talk.

Michael
So what does a mechanical simulation actually do? At its core, it uses a mathematical model to work out how a system changes over time. The computer applies the equations that describe the system and solves them according to instructions from the user.

Corey
The anchor equation is Newton’s second law: force equals mass times acceleration. In a mechanical system, the forces might include external forces, forces associated with joints or articulations, and forces from contact and friction. The law gives us a way to connect those forces to the system’s motion.

Michael
There are also equations that describe the constraints created by joints. Those are algebraic equations, unlike the differential equations that describe motion. And when two bodies touch, the model has to account for contact forces: a normal force perpendicular to the contact surface, and, when friction is present, a tangential friction force.

Corey
Put those pieces together and solve them, and you can predict how the mechanical system’s state evolves. The equations may look intimidating, but the reason for showing them is partly to explain where the simulation comes from—and partly to show why computers matter. A complex system can involve millions, or even billions, of equations.

Michael
Right: nobody wants to write and solve that many equations by hand. The computer constructs and solves them using the model and instructions supplied by the engineers. One example in the talk is a rover moving over granular terrain, such as sand. The simulation represents the terrain with roughly two million elements, and the full problem can involve an estimated fifteen million equations or more.

Corey
That kind of simulation can support a real mission. Dan described a planned NASA project with Carnegie Mellon and MIT to simulate the VIPER rover, which was then expected to be deployed on the Moon in 2024 to search for water. One goal was to test a new sensor design intended to help the rover avoid getting stuck in sand.

Michael
Mechanical systems aren’t the only things engineers simulate. Fluids follow a different set of equations. One is a mass-conservation equation, which accounts for how fluid mass is maintained as it moves. Another is the Navier–Stokes momentum equation, which can be understood in the same broad spirit as Newton’s law: mass times acceleration equals the combined effects of pressure, viscosity, and applied forces such as gravity.

Corey
The lab uses a method called smooth particle hydrodynamics to represent the fluid in space. That lets researchers study interactions between a fluid and a solid object—for example, a vehicle moving through water. A simulation can help investigate questions such as how deep or fast the water can be before it carries the vehicle along.

Michael
So why simulate instead of just building a prototype and testing it? Sometimes a physical test is simply impossible. The talk describes a rover intended for a moon of Mars, where gravity is about 1,700 times weaker than on Earth. Researchers want to understand how a rover will move through granular material and whether it will get stuck, but they can’t travel there to test prototypes. Simulation makes it possible to investigate the problem.

Corey
Simulation also lowers the cost of exploring design choices. If engineers want to see how a heavier vehicle sinks into soft ground, they can change the mass in the model and run it again, rather than building a second, heavier prototype. They can make many variations and compare how the system behaves.

Michael
And it can speed up development. With parallel computing or cloud computing, teams can run hundreds or even thousands of variations on a candidate design. That helps them identify trends and sensitivities—what changes matter most, and how the system responds when a design parameter changes.

Corey
A striking example is the Mars entry, descent, and landing sequence, often called EDL—or the ‘seven minutes of terror.’ The talk notes that those seven minutes were simulated millions of times, so engineers could assess risk and improve the design. When a failure could mean losing a mission worth hundreds of millions of dollars, exploring outcomes in advance is extremely valuable.

Michael
But simulation isn’t a shortcut that automatically produces trustworthy answers. Building a useful model takes time, money, and expertise. Someone who expects to create a model in one afternoon and immediately get reliable results is likely to be disappointed.

Corey
The key principle is that the insight is only as good as the model. If the model doesn’t accurately represent the real system, its predictions may not match reality. So engineers need to understand what their model includes, what it leaves out, and whether it is capable of predicting the behavior they care about.

Michael
That’s why validation matters. Simulation doesn’t eliminate physical testing. Engineers need to compare important simulated results with real-world measurements in at least a selection of cases. Those comparisons help establish whether the model is representing the system well enough to trust its results.

Corey
Computing power is another consideration. Today’s hardware is tremendously capable: the talk points to graphics processing units with tens of billions of transistors and the ability to launch hundreds of thousands of parallel execution threads. But having that power available doesn’t, by itself, solve the problem; teams still need to know how to use it effectively.

Michael
The lab’s main software platform is called Chrono. The team has worked on it for about twelve years, in collaboration with colleagues in Italy, and the talk describes it as roughly half a million lines of open-source code. It’s available on GitHub and is designed for multiphysics simulation, including mechanical systems, vehicles, fluids, and granular materials.

Corey
Chrono is organized into modules. Chrono Engine is the core, handling mechanical systems. Chrono::Parallel uses multiple computing cores to accelerate certain classes of simulations. Other modules address vehicle dynamics, fluid dynamics, finite element analysis, and granular dynamics.

Michael
There are also modules related to autonomy, though those belong more to the second talk. They include sensor simulation, a Python interface called PyChrono, a tool called GymChrono for machine learning and artificial intelligence, and SynChrono, which lets teams simulate groups of vehicles or robots using multiple compute nodes.

Corey
Let’s unpack a few of the mechanical and multiphysics examples. Chrono Engine handles the core mechanics. Chrono::Parallel is useful when a problem would run slowly on a single processor core. In one demonstration, a stream of low-friction cereal-like particles moves through a flexible bowl and eventually carries it off a table.

Michael
The vehicle module can model vehicles on rigid ground or deformable terrain. The fluid–solid interaction capability represents mechanical systems moving through fluids. Those examples make clear that simulation can connect different kinds of physical behavior instead of treating every part of a problem in isolation.

Corey
Finite element analysis is especially useful for materials that deform. In the example from the talk, the wheels are rubber, so the tires change shape as the vehicle moves. That makes the computation demanding: the simulation involved four nonlinear finite-element tires, an obstacle, and nearly one million granular elements, and reportedly took close to five days to run.

Michael
Granular materials have their own module, Chrono::Granular. They may seem like a specialized topic, but the talk emphasizes their practical reach: after water, granular material is among the most handled materials in industry. Applications include farming, pharmaceuticals, and even astronomy.

Corey
One especially large-scale example combines fluid–solid interaction and granular simulation to represent a landslide. Inspired by the 2014 Oso landslide, the model shows a mass of material about one kilometer—roughly 0.7 miles—across collapsing and toppling rigid objects that stand in for buildings or rocks.

Michael
Those examples point to several kinds of engineering questions simulation can answer. For design: will the system break? For control: can we make it behave in a certain way? For optimization: can we make it lighter, faster, or less expensive?

Corey
And there’s uncertainty quantification: how much confidence should we place in a design, and is it likely to meet its intended goal? That question brings us back to the need for accurate models and validation. Simulation is powerful, but its conclusions need to be interpreted in light of the evidence supporting the model.

Michael
The talk also mentions UW–Madison’s Computing Engineering Forum, a three-day event with talks on engineering simulation and on the Chrono software platform. People interested in learning more could contact Dan or EPD. The event was presented as one example of an activity EPD students could register for and participate in; past participants included people from companies such as Harley-Davidson and John Deere.

Corey
So the big picture is that simulation uses mathematical models and computing to explore how complex systems behave. It can make otherwise impossible tests possible, reduce the cost of design exploration, and speed up comparisons between alternatives—but reliable results depend on expertise, good models, and checks against physical reality.

Michael
Exactly. And this has been the general introduction: the first talk focuses on computer simulation in mechanical engineering, while the second turns to how simulation is used for autonomous vehicles and robotics. Thanks for learning along with us.

Ask anything
We've read this whole study set, so questions about it get the best answers.