Computer Simulation in Mechanical Engineering
Transcript
Hello everybody my name is Dan Negrut. I am faculty in the department of mechanical engineering at the University of Wisconsin-Madison. For 20 minutes or so, I'm going to talk about using computer simulation in mechanical engineering. This is part one talk there is a part two talk while this one - this first talk - deals with just using computer simulation in general mechanical engineering. Part two is more focused. It has to do with how folks are using computer
simulation for autonomous vehicles and robotics. This is a TechTalk@UWEPD. A couple of words about what this means so these Tech Talks are part of the portfolio of programs run by EPD at UW-Madison. "EPD" stands for Engineering Professional Development department and this is a department at our university whose mission is to engage with folks who graduated anywhere from like the last year to - I don't know - many years ago who feel like
they could use some help in improving their skill set they don't have the time to be on campus and they they are interested in improving their skill set through online programs epd at uw medicine is very well respected nationwide is always ranked top 10 on the list of distance programs by the u.s news and world report there's a picture of medicine here but as i said this is a distance programs and you don't have to be physically
here how can you improve your skill set with epd uh uw medicine there are short courses there are certificates and there are degrees a couple of words about these offerings i'll start with master of engineering so there are like uh six six areas in which you can get the master engineering i'm not going to go through all of them i'm just going to say that i'm associated with this one data analytics so it's a it's the program is called
meta master of engineering in data analytics it opens it so happens that i am one of one of the two academic directors directors associated with this program other than that there is a master of science program uh in uh power electronics and there are certificates and uh you can google this or just uh email the folks of epd and they will be more than happy to to talk with you uh just back now to the regular program uh just a couple of things about me um i'm hailing from romania um i have an
undergrad under undergraduate degree in aerospace engineering uh i got my phd at the university of iowa from where my accent that was one of my amazing job jokes i worked in industry for six years right after school then i worked at argon national lab for one year in their math and computer science division and then since november 2005 i've been with the department of mechanical engineering uw medicine i want to give credit where it's due i'm going to show a bunch of simulations
and i'm going to talk about computer models and this and that there's a lot of people behind that and these are members of the simulation based engineering lab um they're like more senior folks here uh radu is a scientist colleen here is the person looking after the labs supercomputer way is a postdoc student and then there's like a bunch of graduate students here and some undergraduate students working in the lab also we have a group of collaborators
probably you can tell they are from italy they are the cool guys with shades and such they we've been working with them for now uh more than 12 uh 12 years prison alessandro tasora and two of his students here simona and dario also i want to acknowledge some funding sources that allowed us to work on these projects from national science foundation army department of transportation um i gratefully um acknowledge the support from the mid-twitter foundation and continental mapping company here in in in medicine going back to the lab simulation based engineering lab this is goes to this
picture here in the corner in the lab we have two main trusts one has to do with the multiphysics computer modeling of and simulation of mechanical systems at large and then the second focus area is simulation for autonomy um as i said the first topic here is going to be uh discussed today the second one is going to be discussed uh in a separate tech talk the basic idea is that in general the modeling and simulation effort that is broad and we do research in this area
we kind of like use it ourselves to start looking into a specific area in this case is autonomous vehicles and like robots but again that's going to be the topic of a different talk so the emphasis in this talk is not going to be a research exposition it's going to be kind of like an overview of what goes on uh in the lab that being said although it's not the research exposition i would have an identity crisis if i if i didn't present some equations so here they are and the
reason why i want to show these equations here is twofold first to explain that actually they look scary but they're not that scary uh and i'm going to explain you know where they come from and then secondly i just want to say why we bother to use computer simulation like this these equations here there are there are certain problems where the number of these equations reaches into millions if not sometimes billions and certainly
nobody wants to sit down with a pen in his or her hand and write these equations to start with and then you have to solve the equations that's where the computer comes into play rather than us writing the equations the computer figures out these equations and goes ahead and solves them according to the instructions that we give it so i'm not going to get into too many details here and you can just ignore this first equation but i bet that everybody knows this equation
is newton's second law force equals mass times acceleration or the way it's written right here it says mass times acceleration is the sum of forces that act on a system there are some external forces there are some forces that are producing the articulations or joints present in the mechanical system and there are forces here that are associated with the friction and contact that can come up in a mechanical system then you have some collection of
equations that are associated with the presence of joints in your system they while these these equations are differential equations this set of equations uh are simply algebraic equations and here i'm not going to get into details but this set of equations is associated with the the the normal force that shows up when two bodies are in contact and the tangential force or friction force if you have a non-zero friction coefficient then there is a friction force that
shows up at the interface between the two bodies a long story short you have to formulate these equations and if you solve these equations then they will tell you how a mechanical system changes its state in time in other words how it evolves and here here is an example this is a rover operating on granular terrain if i extract the rover from the picture i can do a post-processing step and i just look at how it moves in granular material and here there are like two million elements as i said
probably for these you're going to have this system you're going to have something like i would guess close to 15 million equations uh if not more depending how you solve the problem but certainly we want to rely on a computer to understand how the system uh changes in time so as an example of an application where we in a real real world application where we use this sort of simulation in a couple of months we're going to start a nasa project with carnegie mellon and mit
and our mission would be to simulate not just any uh rover like you saw in the previous uh or two slides ago but a specific rover called viper this is going to be deployed in 2024 on the moon uh to go look for for water and what we're going to do through simulation um test how a new sensor design that will help the rover not get stuck in in sand in a in a nutshell that's the idea so that was that was like a set of equations like five slides ago a set of
equations that had to do with how how rigid bodies or flexible bodies move but then you can have fluid and fluid the way it moves is different than how for instance a vehicle moves fluid the motion of fluid is is governed by a different set of equations here this first equation has to do with uh the mass conservation and this one is just like in some some in some way is exactly the same equation that i showed you before is mass times acceleration is is force this is the so-called navier-stokes
equation and it's a momentum balance equation uh if you multiply by a row here and you get rid of here these and this coefficient becomes a different viscosity coefficient um in the end you can look at it as like mass times the derivative of the velocity which is acceleration equals to the sum of uh forces and this is pressure gradient this has to do with the viscosity and this has to do with applied forces such as for instance gravity now there are many ways
to solve this problem like the set of this equation and this equation and in the lab what we use is uh the so-called smooth particle hydrodynamics method for spatial discretization i'm not going to get in details this is only one way to to go about it but at the end of the day what you can look at is how a vehicle for instance moves through fluid and in this case you have here on the left the real world situation and on the right you have a simulation
of a vehicle moving through water and you might be interested in like okay well how deep can the water be if it flows how fast it can flow before it basically takes the the the vehicle along and and so on so why would you use simulation uh sometimes is the only way you can go about business for instance um we have some friends in europe who are using simulation um because they want to send the uh a rover um to one of the moons of mars the gravitational acceleration
is about 1 700 times less there so essentially you would weigh very very very little on that planet on that moon and the idea is like if you start moving in granular material are you going to get stuck easier how are you going to move around and and so on certainly you cannot go there to test prototypes so you have to do it through simulation this is simulation is what enables a build test build test build test replacement because you cannot build and test as i said so
other reasons for using simulation is has to do with costs if you have a computer model of a mechanical system that you uh are about to design you can you can uh make all sorts of changes to the design and just run simulation understand how the the the the mechanical system would behave in reality uh this is to be compared uh with cutting steel like for instance if you want to uh increase or the the mass of the vehicle and you want to see how much more it sinks into ground material for instance
you don't have to uh come up with the different prototype that is heavier you just simply change a couple of entries in the file you run a simulation and you get your your answer also if you use simulation it's significantly faster to develop prototypes because for instance you can rely on parallel computing you can do computing in the cloud where you can launch hundreds if not thousands of jobs that are variations of a of a candidate design and you can understand trends you can understand sensitivities and such um as a side note here i don't know if i'm familiar with if you're familiar with this but the mars entry descent landing also known as edl uh called the seven minutes of terror these seven minutes were simulated millions of times just to understand what the risk is and how they can improve the design so that they make sure that they're not wasting hundreds of
millions of dollars um on a flood design so if it's so good then why doesn't everybody use simulation well there are several reasons for that it is a steep startup process building time with both in terms of time and money you need to build expertise many times people approach simulation with this idea in mind that i'm going to spend one afternoon i'm going to generate my model and i'll get going and it's just not like that they're going to be disappointed it takes it takes a lot of patience and
you need to really understand what you're doing before you can place any trust in the results that you get out of the simulation you have to have good models your insights are only as good as your models are accurate if you have models that are not predictive then they are going to tell you something and that something is not close to what's going to happen in reality also you need to have a validation process in place and this goes back to the idea of like having good models you really cannot give up on testing because at the end of the day you need to compare the significant results at least in a in in a handful of cases with what happens in reality physical testing so that you know if your model is right or not also another thing that should not be discarded is that the amazing compute powers that we can rely on these days we're not quite there if you go back a decade ago right now you have designs like gpu gpu cards they have 50 billion transistors they can
launch literally hundreds of thousands of parallel threads of execution um and the amount of compute power that you have with your disposal is is just tremendous it's just a matter of like how you go about using it now i told you that uh we're in the basis of computer modeling and simulation uh what does that mean exactly um for the last 12 years uh we've been working on this software infrastructure called chrono and this is in collaboration with friends from italy and
at this point is about like half a million lines of code it's an open source simulation engine that is available on github and you can do all sorts of simulations we call it multiphysics you can you can use it to simulate things like for instance the flow of granular material the flow of fluid vehicles and and so on in case you are interested in this software there are some details here online you can go read about about it go to the project website download it
from github and and so on i just want to highlight a couple of components to understand what it can do and how and therefore how we use it in or hope that is used by other people and how you use it in for instance autonomous vehicle simulation um so there are certain modules to it there is like a core uh core component of this simulation uh platform it's called chrono engine that's the core and it was developed primarily in italy and as of 2005
sorry 2007 2008 we started working on it and there is a chrono parallel with uses parallel computing to accelerate certain classes of simulations that was developed by by our lab and there is a chrono vehicle module that has to do with vehicle dynamics developed in the u.s fluid dynamics in the u.s fea is developed by us and in italy and grinder dynamics is developed in in us so this is kind of like the multiphysics component to it but then there there are a couple of things
uh that have to do with mostly autonomy so these modules have to do with sensor simulation pi chrono is an interface that exposes the solver to chrono to sorry to python users jim chrono is if you're interested in machine learning in artificial intelligence i'll talk about it in the second talk if you're interested in synchronoum this is a tool that allows uh teams of of uh agents vehicles robots to to simulate together without penalizing the simulation time so basically uses
multiple compute nodes to uh speed up the simulation of large scenarios of autonomous agents again what's what's uh expressed here in gray font is going to be the topic of a second talk um is right now the focus is going to be on this and i'm just going to go through them and explain what they do so let's start with uh chrono engine so this is kind of like the core functionality and if you have mechanical systems that's what it it handles it's just like you know the
core of the the solar chrono parallel um if you have very large problems um that would run slowly uh on one core chronoparallel uses multiple compute cores on a chip to accelerate the simulation in this case you have like a bowl here which is made of flexible material and then you have like a stream of probably these are like cereal or something but long story short there's very low friction between the bowl and and this table and the material essentially eventually we will just
move this off the table but we're not going to wait for that here the next the next module has to do with modeling and simulating vehicles and these vehicles can move on move on rigid terrain or in deformable terrain uh more about this in the second talk then there is a module that has to do with fluid solid interaction and fluid so interaction um i don't know the animation doesn't play very well um but it has to do with the motion of
of mechanical systems through fluids and by the way i know that the the movie didn't come true very well but this presentation is going to be online if you want to download you can check out the movie for yourself then there is another module that has to do with uh finite element analysis um and where you should look here is at the wheels the wheels are made of rubber and the rubber deforms the tire deforms incidentally this is very taxing on the computation
this simulation took probably close to five days to to to run a vehicle with four uh nonlinear fired element tires negotiating an obstacle while moving on a bed of granular material that is made up of close to 1 million elements the last one here is chronogranular and probably you don't pay too much attention to granular media but i just want to say that after water is is the second most handled media in in industry out there so there's a lot of application in farming pharmaceutical
um even like astronomy it's a very common problem handling of granular material and there's a module in chrono that that handles its dynamics um another mod another application that i want to share with you combines fluid so interaction with granular and goes back uh to representing large bodies of material although it is granular as a continuum and here is a simulation of the landslide and it's inspired by the also 2014 landslide um you cannot put things in perspective but
the dimension of this block of material here is one kilometer so probably something like 0.7 miles and these are some some uh large if you think about it like buildings or rocks and you can see how the the the the mounting collapses and just moves topples over the um the rigid bodies which are proxies for for buildings and such uh so just some closing thought thoughts here um reasons to simulate simulation is using design to answer questions like will the mechanical system break
it's using control to answer the question can i make the mechanical system behave in a certain way if you want to optimize it can i make the mechanical system be really light or fast or inexpensive and so on or you know certainty quantification uh answering questions like okay well how much trust should i put in this design is my design a good one will it meet the the the scope or the goal that it was uh designed to uh to deal with
i want to close here uh with one slide saying that here at uw medicine in the lab we have uh what is called the computing engineering forum event it's three days there's a lot of talks going on and the talks about just using simulation engineering in general but also about using the software infrastructure that i talked about in this presentation if you're interested email me or email someone at epd this is like for instance this this event is an example of uh um
initiative that if you end up being an epd student you can register for and participate almost every year we have folks from like in the past harley davidson john deere and so and so on they take courses with epd and they also sign up to to to be a part of uh of this enriching activities that take part in our campus with that thank you very much for taking the time i said it will be 20 25 minutes i think it was like 26 minutes or so again this is the part it is part one there's another tech talk part two it has to do with simulating autonomous vehicles and robotics thank you for your time much appreciated
you

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