Skip to content

Commit

Permalink
Initial commit R2022b.
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed Oct 13, 2022
1 parent 6737d19 commit 1c59a8a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
Binary file modified Libraries/driver_maneuver_library.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions Overview/bev_motor_cooling.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

open_system('bev_motor_cooling')

set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')

%% Simulation Results from Simscape Logging: With Cooling System
%
Expand All @@ -22,7 +22,7 @@
% for a brief period of time during an extended period of acceleration.
%
open_system('bev_motor_cooling')
set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
Cooling_On = 1;

out=sim('bev_motor_cooling');
Expand All @@ -41,7 +41,7 @@
% simulation without physically removing the components from the model.

open_system('bev_motor_cooling')
set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
Cooling_On = 0;
set_param([bdroot '/Cooling System'],'BackgroundColor','[0.9 0.9 0.9]');

Expand Down
11 changes: 5 additions & 6 deletions Overview/html/bev_motor_cooling.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Battery Electric Vehicle With Motor Cooling</title><meta name="generator" content="MATLAB 9.12"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-03-10"><meta name="DC.source" content="bev_motor_cooling.m"><style type="text/css">
--><title>Battery Electric Vehicle With Motor Cooling</title><meta name="generator" content="MATLAB 9.13"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-09-19"><meta name="DC.source" content="bev_motor_cooling.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,8 +67,7 @@



</style></head><body><div class="content"><h1>Battery Electric Vehicle With Motor Cooling</h1><!--introduction--><p>This example models a battery electric vehicle with a cooling system for the motor. It is used to size mechanical, electrical, and fluid components in the vehicle. The vehicle executes a passing maneuver and the speed, torque, and temperature measurements are used to assess if the system requirements are met.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#2">Simulation Results from Simscape Logging: With Cooling System</a></li><li><a href="#4">Simulation Results from Simscape Logging: No Cooling System</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="bev_motor_cooling_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging: With Cooling System</h2><p>The plot below shows the test run with the cooling system applied to the motor. The temperature of the motor only exceeds the rated temperature for a brief period of time during an extended period of acceleration.</p><pre class="codeoutput">Warning: Excluding ColorBars, Legends and non-axes
</pre><img vspace="5" hspace="5" src="bev_motor_cooling_02.png" alt=""> <h2 id="4">Simulation Results from Simscape Logging: No Cooling System</h2><p>The plot below shows the test run with no cooling system applied to the motor. The temperature of the motor increases when the vehicle is traveling at a constant speed, indicating that the cooling system is needed.</p><p>The Variant Connector block was used to exclude the cooling loop from simulation without physically removing the components from the model.</p><img vspace="5" hspace="5" src="bev_motor_cooling_03.png" alt=""> <img vspace="5" hspace="5" src="bev_motor_cooling_04.png" alt=""> <p class="footer">Copyright 2021-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
</style></head><body><div class="content"><h1>Battery Electric Vehicle With Motor Cooling</h1><!--introduction--><p>This example models a battery electric vehicle with a cooling system for the motor. It is used to size mechanical, electrical, and fluid components in the vehicle. The vehicle executes a passing maneuver and the speed, torque, and temperature measurements are used to assess if the system requirements are met.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#2">Simulation Results from Simscape Logging: With Cooling System</a></li><li><a href="#4">Simulation Results from Simscape Logging: No Cooling System</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="bev_motor_cooling_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging: With Cooling System</h2><p>The plot below shows the test run with the cooling system applied to the motor. The temperature of the motor only exceeds the rated temperature for a brief period of time during an extended period of acceleration.</p><img vspace="5" hspace="5" src="bev_motor_cooling_02.png" alt=""> <h2 id="4">Simulation Results from Simscape Logging: No Cooling System</h2><p>The plot below shows the test run with no cooling system applied to the motor. The temperature of the motor increases when the vehicle is traveling at a constant speed, indicating that the cooling system is needed.</p><p>The Variant Connector block was used to exclude the cooling loop from simulation without physically removing the components from the model.</p><img vspace="5" hspace="5" src="bev_motor_cooling_03.png" alt=""> <img vspace="5" hspace="5" src="bev_motor_cooling_04.png" alt=""> <p class="footer">Copyright 2021-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022b</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Battery Electric Vehicle With Motor Cooling
%
Expand All @@ -85,7 +84,7 @@
open_system('bev_motor_cooling')
set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
%% Simulation Results from Simscape Logging: With Cooling System
%
Expand All @@ -94,7 +93,7 @@
% for a brief period of time during an extended period of acceleration.
%
open_system('bev_motor_cooling')
set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
Cooling_On = 1;
out=sim('bev_motor_cooling');
Expand All @@ -113,7 +112,7 @@
% simulation without physically removing the components from the model.
open_system('bev_motor_cooling')
set_param(find_system('bev_motor_cooling','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
set_param(find_system('bev_motor_cooling','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')
Cooling_On = 0;
set_param([bdroot '/Cooling System'],'BackgroundColor','[0.9 0.9 0.9]');
Expand Down
Binary file modified Overview/html/bev_motor_cooling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/bev_motor_cooling_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/bev_motor_cooling_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/bev_motor_cooling_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/bev_motor_cooling_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bev_motor_cooling.slx
Binary file not shown.

0 comments on commit 1c59a8a

Please sign in to comment.