{"id":301,"date":"2017-10-20T04:04:13","date_gmt":"2017-10-20T04:04:13","guid":{"rendered":"https:\/\/blogs.mathworks.com\/student-lounge\/?p=301"},"modified":"2017-11-28T13:32:47","modified_gmt":"2017-11-28T13:32:47","slug":"advantages-of-vehicle-modeling","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/10\/20\/advantages-of-vehicle-modeling\/","title":{"rendered":"Advantages of Vehicle Modeling \u2013 Don\u2019t Miss Out!"},"content":{"rendered":"<p>In today\u2019s blog post I am happy to introduce <a href=\"https:\/\/www.linkedin.com\/in\/ed-marquez-62a78375\/\">Ed Marquez Brunal<\/a>, a first-time guest in this blog. <!--introduction-->\u00a0This is a holistic summary of our project on modeling vehicles. Find 4 videos and 2 MATLAB Central File Exchange submissions, including anything you may need to get started, linked in the article.<!--\/introduction--><\/p>\n<p>&#8211; &#8211; &#8211;<\/p>\n<p>If you are part of an automotive competition these days, you\u2019ve probably heard about \u201cvehicle modeling\u201d. But before I tell you more about vehicle modeling and its advantages, let\u2019s briefly see how the term \u201cmodel\u201d has evolved since the adoption of Model-Based Design in the automotive industry.<\/p>\n<p>When people said \u201cvehicle model\u201d in the early 90\u2019s, what came to mind was most likely a car prototype that was very expensive, highly complex, and hard to build. Engineers had to drive, and sometimes break, the so called \u201cvehicle model\u201d of the early 90\u2019s to gather data. Just imagine the pain of these engineers spending tons of time and money building a prototype that they had to break to figure out what was wrong with it!<\/p>\n<p>Today, most people would associate the term \u201cvehicle model\u201d with a computer representation that can be simulated under certain scenarios.\u00a0 Now you may be wondering, why did automotive engineers and students go from building prototypes to working on a computer? Well, it is fun to build the better product that meet specs, and saving time and money is the added benefit.<\/p>\n<p>Let\u2019s talk more about some of the other advantages of vehicle modeling in the next section. But before that, be sure to check our <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/63823-matlab-and-simulink-racing-lounge--vehicle-modeling\">Simulink based models<\/a> and <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/64648-matlab-and-simulink-racing-lounge--vehicle-modeling-with-simscape-multibody\">Simscape Multibody model<\/a> in File Exchange.<\/p>\n<h1>Faster, Better, and Cheaper<\/h1>\n<p>That\u2019s right!\u00a0Some advantages of vehicle modeling are that the final product can be built faster, it can be better (in terms of engineering requirements), and all while reducing cost. Sounds too good to be true? Let me explain.<\/p>\n<p>Building and simulating a vehicle model enables the engineers to analyze several powertrain configurations and determine if requirements are met for each design. If engineering requirements are not met by a powertrain configuration, it is much easier to change a parameter in a computer model than it is to make a change to a vehicle prototype that is already built. For example, it is easy to change the power rating of an electric motor in a computer model, but we know it can be challenging to swap motors in a real vehicle.<\/p>\n<p>Another advantage of vehicle modeling is that the engineers can study the performance and energy consumptions aspects of a powertrain configuration from a vehicle model. Finally, let\u2019s not forget that running computer simulation is faster and more cost effective than building and driving an actual vehicle prototype (90\u2019s model).<\/p>\n<p>If you are interested in seeing some student success stories, be sure to check out the series page: <a href=\"https:\/\/www.mathworks.com\/videos\/series\/student-teams-share-their-keys-to-success-101105.html\">Formula Student Teams Share Their Keys to Success<\/a>.<\/p>\n<p>Alright, this vehicle modeling stuff sounds great! But, how can you get started?<\/p>\n<h1>Vehicle Modeling Tools<\/h1>\n<p>We have created instructional videos, vehicle models, and guidelines for when to use each tool. There is no right or wrong choice here. In fact, you can combine these tools in your models to get the best out of all worlds. However, a clever way to proceed is to think about what tool will fit your needs best before you build your model. For instance: if you are in initial stages of you design, consider Simulink or Simscape. Conversely, consider an alternative like Powertrain Blockset for fine-tuning of your model. An important consideration is that Simulink serves as the foundational platform for all the tools we will cover below.<\/p>\n<h2>Simulink<\/h2>\n<p>Simulink is a graphical programming environment for modeling, simulating, and analyzing dynamic systems.\u00a0Consider Simulink\u00a0for vehicle modeling if you:<\/p>\n<ul>\n<li>Want to get started with vehicle modeling<\/li>\n<li>Seek simplicity and speed for your models<\/li>\n<li>Have equations describing a system<\/li>\n<\/ul>\n<p>If you are interested in doing some hardware testing and deployment at later stages of your development process, you can leverage the automated code generation capabilities that Simulink provides. Yes, you can go from a Simulink model to C\/C++ code that can be executed by hardware platforms and\/or simulators. In fact, all products that we cover in this section support code generation with the appropriate settings. For more details, please refer to <a href=\"https:\/\/blogs.mathworks.com\/racing-lounge\/2017\/09\/28\/racecar-small-workflow-professional\/\">Jose\u2019s blog post<\/a>.\u00a0For demos and more information on Simulink, please see Part 1 of our 4-video series on vehicle modeling.<\/p>\n<p><a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-vehicle-modeling-part-1-simulink-1502466996305.html\">[Video] MATLAB and Simulink Racing Lounge: Vehicle Modeling, Part 1: Simulink<\/a><\/p>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"5538732644001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<h2>Powertrain Blockset<\/h2>\n<p>Powertrain Blockset is an add-on that expands Simulink capabilities for vehicle modeling, and it is great for parameterizing plant models using test data.<\/p>\n<p>Powertrain Blockset implements a data-driven approach.\u00a0Consider Powertrain Blockset if you:<\/p>\n<ul>\n<li>Want well-documented, open, and reconfigurable models<\/li>\n<li>Have access to vehicle parameters and test data<\/li>\n<li>Seek to maintain or increase model fidelity with fewer blocks (compared to Simulink)<\/li>\n<\/ul>\n<p>For details and demos on Powertrain Blockset, please check out Part 2 of our 4-video series on vehicle modeling.<\/p>\n<p><a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-vehicle-modeling-part-2-powertrain-blockset-1502821383453.html\">[Video] MATLAB and Simulink Racing Lounge: Vehicle Modeling, Part 2: Powertrain Blockset<\/a><\/p>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"5541859325001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<h2>Simscape<\/h2>\n<p>Simscape is the MathWorks language of physical modeling. This tool provides the ability to model multidomain systems. An important aspect of Simscape is that the connections between components are bidirectional, and these physical connections also have units.<\/p>\n<p>Consider Simscape for vehicle modeling if you:<\/p>\n<ul>\n<li>Use blocks that implement system equations for you<\/li>\n<li>Reduce visual complexity of a Simulink model<\/li>\n<li>Model and integrate different domains in a system<\/li>\n<\/ul>\n<p>For demos and more details on Simscape, please see Part 3 of our 4-video series on vehicle modeling. Also, if you want to use Simscape, I recommend our <a href=\"https:\/\/www.mathworks.com\/academia\/student-competitions\/physical-modeling-training.html\">Student Competition Training<\/a> on physical modeling as a prerequisite.<\/p>\n<p><a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-vehicle-modeling-part-3-simscape-1506716231952.html\">[Video] MATLAB and Simulink Racing Lounge: Vehicle Modeling, Part 3: Simscape<\/a><\/p>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"5593484887001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<h2>Simscape Multibody<\/h2>\n<p>Simscape Multibody allows to simulate 3D rigid body dynamics\u00a0of a system, while providing a 3D animation of the system response. In vehicle modeling, the power of Simscape Multibody can be leveraged to simulate and visualize system dynamics. It can also be used to optimize a design, like a suspension \u2013 check the episode on <a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-design-optimization-whats-behind-it-118827.html\">Design Optimization<\/a> for more details.\u00a0 Last but not least, Simscape Multibody is helpful for modeling wheel-to-ground contact, see racing lounge blog post &#8220;<a href=\"https:\/\/blogs.mathworks.com\/racing-lounge\/2017\/09\/12\/introduction-to-contact-modeling\/\">Introduction to Contact Modeling<\/a>&#8220;.<\/p>\n<p>Consider Simscape\u00a0Multibody for vehicle modeling if you:<\/p>\n<ul>\n<li>Need to model a mechanical system in 3D<\/li>\n<li>Need a 3D visualization of the system response<\/li>\n<li>Need to perform system-level analysis<\/li>\n<li>Need to model wheel-to-ground contact<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blogs.mathworks.com\/racing-lounge\/files\/2017\/10\/17_11_vehicle_modeling_1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-309 size-full\" src=\"https:\/\/blogs.mathworks.com\/racing-lounge\/files\/2017\/10\/17_11_vehicle_modeling_1.png\" width=\"639\" height=\"382\" \/><\/a><\/p>\n<p>For your convenience, we put together a 3D vehicle model demo using Simscape Multibody. For more details on the demo, be sure to download the MATLAB Central File Exchange entry (link in introduction). For more details on the demo interface and Simscape Multibody, please check our Part 4 or our 4-video series on vehicle modeling.<\/p>\n<p class=\"add_margin_0 add_font_color_emphasize\"><a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-vehicle-modeling-part-4-simscape-multibody-1508365817599.html\">[Video] MATLAB and Simulink Racing Lounge: Vehicle Modeling, Part 4: Simscape Multibody<\/a><\/p>\n<p class=\"add_margin_0 add_font_color_emphasize\"><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"5616565709001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<p>If there is one thing to remember from today\u2019s blog is that computational vehicle modeling offers the potential to produce a better final product in a faster and more cost-effective manner. This is possible because of the benefits that computer models and simulations offer over physical prototypes. Some of these benefits include:Conclusion<\/p>\n<ul>\n<li>Ability to analyze several powertrain configurations<\/li>\n<li>Ability to determine if requirements are met for each design<\/li>\n<li>Flexibility to quickly change design parameters in a computer model<\/li>\n<li>Faster computer simulations vs actual track tests<\/li>\n<li>Cost effective simulations vs expensive prototype tests<\/li>\n<\/ul>\n<p>We also introduced four powerful MathWorks products to model vehicle systems. Namely, these products are: Simulink\u00ae, Powertrain Blockset\u2122, Simscape\u2122, and Simscape Multibody\u2122. An important idea to remember is that there is no right or wrong choice here. You can combine these tools in your models to get the best of all worlds, but be wise and thoughtful when choosing how to develop your models. To make this easier for you, we also provided some guidelines for when to use what product.<\/p>\n<p>Now that you know the advantages of vehicle modeling with MathWorks tools, and you also know the available options to create your models, it is time to get started and have fun! Let us know how things are going as well as your questions.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"thumbnail thumbnail_asset asset_overlay video\"><a href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/10\/20\/advantages-of-vehicle-modeling\/?dir=autoplay\"><img decoding=\"async\" src=\"https:\/\/cf-images.us-east-1.prod.boltdns.net\/v1\/static\/62009828001\/3ae154c4-58bc-4547-8f8d-1e51027d60ef\/a3c46423-5980-4283-afc2-7138f38a9b3d\/1280x720\/match\/image.jpg\" onError=\"this.style.display ='none';\"\/><\/p>\n<div class=\"overlay_container\">\n      <span class=\"icon-video icon_color_null\"><time class=\"video_length\">30:36<\/time><\/span>\n      <\/div>\n<p>      <\/a><\/div>\n<p>In today\u2019s blog post I am happy to introduce Ed Marquez Brunal, a first-time guest in this blog. \u00a0This is a holistic summary of our project on modeling vehicles. Find 4 videos and 2 MATLAB Central&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/10\/20\/advantages-of-vehicle-modeling\/\">read more >><\/a><\/p>\n","protected":false},"author":151,"featured_media":327,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5,9,8,10,11],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/301"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/users\/151"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":20,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/301\/revisions\/624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media\/327"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}