{"id":2626,"date":"2010-12-17T14:01:41","date_gmt":"2010-12-17T14:01:41","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/17\/explore-your-physical-modeling-data\/"},"modified":"2010-12-17T14:01:41","modified_gmt":"2010-12-17T14:01:41","slug":"explore-your-physical-modeling-data","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/17\/explore-your-physical-modeling-data\/","title":{"rendered":"Explore Your Physical Modeling Data"},"content":{"rendered":"<a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/76890\">Will<\/a>'s pick this week is the <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/28184-simscape-simulation-results-explorer\">Simscape Simulation Results Explorer<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/102299\">Atul Suri<\/a>.\r\n<br><br>\r\nWhat's this, a new blogger? As Jiro and Brett continue their quest for the missing third amigo, they have graced me with the opportunity to select a few exchange contributions for this much-coveted award. I'm an aerospace engineer who has used MATLAB for over a decade. Since joining MathWorks, I have focused on Simulink, hence you will see favoritism towards Simulink contributions in my selections. Word to the wise, I am notorious as a perfectionist around the office. So get your submissions squeaky clean if you want to win the prize.\r\n<br><br>\r\nThis week, I have selected a utility for our <a href=\"https:\/\/www.mathworks.com\/solutions\/physical-modeling.html\">Physical Modeling<\/a> tools. <a href=\"https:\/\/www.mathworks.com\/products\/simscape\/\">Simscape<\/a> facilitates simulation of electrical, mechanical, hydraulic, magnetic, pneumatic, and thermal systems within Simulink. Rather than having to derive a system of equations and then implement those equations with basic Simulink blocks, I can instead schematically draft a physical network diagram. In the example below, I have created a simple Graetz bridge <a href=\"http:\/\/en.wikipedia.org\/wiki\/Rectifier\">rectifier<\/a> electrical circuit.\r\n<br><br>\r\n<img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/will_campbell\/potw_ssc_explore\/rectifier.png\" alt=\"rectifier model\" \/>\r\n<br><br>\r\nOk, great. But how do I analyze the results of my simulation? Well, we could rely on Simulink Scope blocks to acquire time traces of data. <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/17969-simscape-probes\">Simscape Probes<\/a> is a former Pick of the Week winner that streamlines this process. However, if you go down this path, you can't escape the limitation that you will have to attach one Scope to every parameter you're interested in. If you want the voltage and current pertaining to every element of your diagram, that's going to require a lot of extra work.\r\n<br><br>\r\nFortunately, it is possible to log all data in a Simscape diagram in one fell swoop. Within the Configuration Parameter Simscape tab, enable Data Logging.\r\n<br><br>\r\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/will_campbell\/potw_ssc_explore\/config_params.png\" alt=\"Rectifier Configuration Parameters\" height=\"416\" width=\"650\" \/>\r\n<br><br>\r\nUpon running your simulation, you will get a Simscape data logging variable. The structure of this variable can be explored manually, and you can leverage all\u00a0 your traditional MATLAB analysis and visualization tools.\r\n<br><br>\r\nAtul's submission is a utility that makes examination of Simscape data even easier. Simply type <font face=\"Monospace\"><b>ssc_explore(simlog)<\/b><\/font> and a new window will open. It provides a data tree to explore the different elements of your physical network. We can open different elements and view plots of our data.\r\n<br><br>\r\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/will_campbell\/potw_ssc_explore\/ssc_explore.png\" alt=\"Simscape Simulation Results Explorer\" height=\"568\" width=\"655\" \/>\r\n<br><br>\r\nThis is one of my most-used File Exchange contributions. And for that, it is my inaugural Pick of the Week.\r\n<br><br>\r\n<strong>Comments<\/strong><br>\r\nLet us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2626#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/28184-simscape-simulation-results-explorer#comments\">comment<\/a> for Atul.","protected":false},"excerpt":{"rendered":"<p>Will's pick this week is the Simscape Simulation Results Explorer by Atul Suri.\r\n\r\nWhat's this, a new blogger? As Jiro and Brett continue their quest for the missing third amigo, they have graced me... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/17\/explore-your-physical-modeling-data\/\">read more >><\/a><\/p>","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,24],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2626"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2626"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2626\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}