Skip to content

Commit 1d551ee

Browse files
authored
Merge pull request #2 from simscape/master
Hyperlink and doc update
2 parents 1e77729 + 38fa087 commit 1d551ee

30 files changed

+41
-41
lines changed
-106 Bytes
Binary file not shown.

Model/BEVsystemModel.slx

-27 Bytes
Binary file not shown.

Overview/ElectricVehicleDesignOverview.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
% This repository contains model and code to help engineers design battery electric
44
% vehicle (BEV), including range estimation and battery sizing workflows.
55
%
6-
% Copyright 2022 - 2023 The MathWorks, Inc.
6+
% Copyright 2022 - 2025 The MathWorks, Inc.
77

88

99

@@ -32,14 +32,14 @@
3232
%
3333
% * <matlab:open('BEVRangeEstimationMain.mlx') Range Estimation for Battery Electric Vehicles>
3434
% * <matlab:open('BEVBatterySizingMain.mlx') Sizing Battery for Electric Vehicles>
35-
% * <matlab:open('BatteryNeuralNetModel.mlx') Battery Neural Network Model for Temperature Prediction>
36-
% * <matlab:open('PMSMmotorTestBench.mlx') PMSM Thermal Test Bench for Battery Electric Vehicle (BEV)>
35+
% * <matlab:open('VirtualSensorNeuralNetModel.mlx') Battery Neural Network Model for Temperature Prediction>
36+
% * <matlab:open('generateDULossMap.mlx') Generate loss map for PMSM (BEV)>
3737
%
3838

3939
%% Documentation
4040
%
4141
% * <matlab:web('BatteryElectricVehicleModelOverview.html') Battery Electric Vehicle Model>
42-
% * <matlab:open('PMSMmotorTestBenchDescription.mlx') PMSM Thermal Model>
42+
% * <matlab:open('MotorDriveThermalTestBenchDescription.mlx') PMSM Thermal Model>
4343
%
4444

4545
%% Models

Overview/html/ElectricVehicleDesignOverview.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
To make changes, update the MATLAB code and republish this document.
88
-->
99
<title>Electric Vehicle Design with Simscape&trade;</title>
10-
<meta name="generator" content="MATLAB 23.2">
10+
<meta name="generator" content="MATLAB 24.2">
1111
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
12-
<meta name="DC.date" content="2024-07-18">
12+
<meta name="DC.date" content="2026-01-05">
1313
<meta name="DC.source" content="ElectricVehicleDesignOverview.m">
1414
<style type="text/css">
1515
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}
@@ -112,10 +112,10 @@ <h2 id="1">Overview</h2>
112112
<a href="matlab:open('BEVBatterySizingMain.mlx')">Sizing Battery for Electric Vehicles</a>
113113
</li>
114114
<li>
115-
<a href="matlab:open('BatteryNeuralNetModel.mlx')">Battery Neural Network Model for Temperature Prediction</a>
115+
<a href="matlab:open('VirtualSensorNeuralNetModel.mlx')">Battery Neural Network Model for Temperature Prediction</a>
116116
</li>
117117
<li>
118-
<a href="matlab:open('PMSMmotorTestBench.mlx')">PMSM Thermal Test Bench for Battery Electric Vehicle (BEV)</a>
118+
<a href="matlab:open('generateDULossMap.mlx')">Generate loss map for PMSM (BEV)</a>
119119
</li>
120120
</ul>
121121
</div>
@@ -126,7 +126,7 @@ <h2 id="5">Documentation</h2>
126126
<a href="matlab:web('BatteryElectricVehicleModelOverview.html')">Battery Electric Vehicle Model</a>
127127
</li>
128128
<li>
129-
<a href="matlab:open('PMSMmotorTestBenchDescription.mlx')">PMSM Thermal Model</a>
129+
<a href="matlab:open('MotorDriveThermalTestBenchDescription.mlx')">PMSM Thermal Model</a>
130130
</li>
131131
</ul>
132132
</div>
@@ -147,8 +147,8 @@ <h2 id="8">Acronyms</h2>
147147
<li>FWD : Forward Wheel Drive</li>
148148
</ul>
149149
</div>
150-
<p class="footer">Copyright 2022 - 2023 The MathWorks, Inc.<br>
151-
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023b</a>
150+
<p class="footer">Copyright 2022 - 2025 The MathWorks, Inc.<br>
151+
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024b</a>
152152
<br>
153153
</p>
154154
</div>
@@ -159,7 +159,7 @@ <h2 id="8">Acronyms</h2>
159159
% This repository contains model and code to help engineers design battery electric
160160
% vehicle (BEV), including range estimation and battery sizing workflows.
161161
%
162-
% Copyright 2022 - 2023 The MathWorks, Inc.
162+
% Copyright 2022 - 2025 The MathWorks, Inc.
163163
164164
165165
@@ -188,14 +188,14 @@ <h2 id="8">Acronyms</h2>
188188
%
189189
% * <matlab:open('BEVRangeEstimationMain.mlx') Range Estimation for Battery Electric Vehicles>
190190
% * <matlab:open('BEVBatterySizingMain.mlx') Sizing Battery for Electric Vehicles>
191-
% * <matlab:open('BatteryNeuralNetModel.mlx') Battery Neural Network Model for Temperature Prediction>
192-
% * <matlab:open('PMSMmotorTestBench.mlx') PMSM Thermal Test Bench for Battery Electric Vehicle (BEV)>
191+
% * <matlab:open('VirtualSensorNeuralNetModel.mlx') Battery Neural Network Model for Temperature Prediction>
192+
% * <matlab:open('generateDULossMap.mlx') Generate loss map for PMSM (BEV)>
193193
%
194194
195195
%% Documentation
196196
%
197197
% * <matlab:web('BatteryElectricVehicleModelOverview.html') Battery Electric Vehicle Model>
198-
% * <matlab:open('PMSMmotorTestBenchDescription.mlx') PMSM Thermal Model>
198+
% * <matlab:open('MotorDriveThermalTestBenchDescription.mlx') PMSM Thermal Model>
199199
%
200200
201201
%% Models
223 Bytes
Loading
36.7 KB
Loading

Script_Data/BatteryElectricVehicleModelOverview.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
% Simscape Bus.
151151
%
152152
% The electric motor loss map is generated using the PMSM test bench, as described
153-
% in <matlab:open('PMSMmotorTestBench.mlx'); PMSM Thermal Test Bench for Battery Electric Vehicle.>
153+
% in <matlab:open('generateDULossMap.mlx'); PMSM Thermal Test Bench for Battery Electric Vehicle.>
154154
%
155155
% <matlab:open_system("BEVsystemModel");open_system('BEVsystemModel/Vehicle/Front%20Motor%20(EM1)'); Open Front Motor Subsystem>
156156

@@ -203,7 +203,7 @@
203203
%%
204204
% The chiller extracts a fixed amount of heat from the coolant.
205205
%
206-
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/Vehicle/Chiller'); Open Chiller Subsystem>
206+
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/Chiller'); Open Chiller Subsystem>
207207
%
208208
load_system('VehicleElectroThermal.slx')
209209
open_system('VehicleElectroThermal/Chiller');
@@ -229,10 +229,10 @@
229229
% temperature is high, the heater is switched off as the battery can
230230
% sustain the temperature.
231231
%
232-
% <matlab:load_system("Controller_HVAC");open_system('Controller_HVAC/Cabin%20Control/Cabin%20Air%20Control'); Open Thermal Control Subsystem>
232+
% <matlab:load_system("Controller");open_system('Controller/Cabin%20Control/Cabin%20Air%20Control'); Open Thermal Control Subsystem>
233233
%
234-
load_system('Controller_HVAC');
235-
open_system('Controller_HVAC/Cabin Control/Cabin Air Control');
234+
load_system('Controller');
235+
open_system('Controller/Cabin Control/Cabin Air Control');
236236

237237
%% Cabin HVAC
238238
%
@@ -244,9 +244,9 @@
244244
% blower circulates the air from the vent through the cabin to heat or cool
245245
% the cabin.
246246
%
247-
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/HVAC/Cabin/Cabin%20Plant'); Open Cabin Subsystem>
247+
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/HVAC/Cabin%20Plant'); Open Cabin Subsystem>
248248
%
249-
open_system('VehicleElectroThermal/HVAC/Cabin/Cabin Plant');
249+
open_system('VehicleElectroThermal/HVAC/Cabin Plant');
250250

251251
%%
252252
% The cabin loses heat to the environment through the vehicle door, windows, and roof.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
% Copyright 2022 - 2023 The MathWorks, Inc.
22

3-
edit('PMSMmotorTestBench.mlx');
3+
edit('MotorDriveThermalTestBenchDescription.mlx');

Script_Data/html/BatteryElectricVehicleModelOverview.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
To make changes, update the MATLAB code and republish this document.
88
-->
99
<title>Battery Electric Vehicle Model</title>
10-
<meta name="generator" content="MATLAB 23.2">
10+
<meta name="generator" content="MATLAB 24.2">
1111
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
12-
<meta name="DC.date" content="2024-11-15">
12+
<meta name="DC.date" content="2026-01-05">
1313
<meta name="DC.source" content="BatteryElectricVehicleModelOverview.m">
1414
<style type="text/css">
1515
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}
@@ -140,7 +140,7 @@ <h2 id="1">Model Overview</h2>
140140
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_04.png" alt=""> <p><h3>Table based battery</h3></p>
141141
<p>The table based battery model tabulates battery characteristics as functions of state of charge (SOC) and temperature and scales the characteristics upto the capacity of the pack. For quick deployment the Battery block has a selection of predefined battery characteristics.</p>
142142
<p>
143-
<a href="matlab:open_system(%22BatteryPlantModel_Table%22)">Open Battery table Subsystem</a>
143+
<a href="matlab:open_system(%22BatteryTableBased%22)">Open Battery table Subsystem</a>
144144
</p>
145145
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_05.png" alt=""> <p><h3>Battery Management System</h3></p>
146146
<p>The battery management system (BMS) manages all the battery operations and keeps the battery within operational limits. The BMS maintains the current, voltage, and temperature of the pack within safe limits during the charging and discharging operations. In this example, the BMS controls the circuit breakers to protect the battery pack based on the pack sensor data and on estimated parameters such as the state of charge (SOC) and the current limits for charging and discharging.</p>
@@ -191,7 +191,7 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
191191
<a href="matlab:open_system(%22BEVsystemModel%22);open_system('BEVsystemModel/Vehicle/Rear%20Motor%20(EM2)');">Open Rear Motor Subsystem</a>
192192
</p>
193193
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_07.png" alt=""> <p>The electric motors are connected to the battery high voltage bus. The Emotors are connected or disconnected from the battery based on relay signal from the BMS which is connected to the fault port of the Motor &amp; Drive block. The plant model tracks a torque demand generated by the vehicle controller in close loop to reach a speed setpoint. You can load tabulated data of the speed and time to track a speed profile. This tabulated profile can be a standard drive cycle in the Drive Cycle Source block or a real drive cycle data from test runs. Output from the Emotor block goes to a gearbox and then to the wheel. The signals are passed to other components via Simscape Bus.</p>
194-
<p>The electric motor loss map is generated using the PMSM test bench, as described in <a href="matlab:open('PMSMmotorTestBench.mlx');">PMSM Thermal Test Bench for Battery Electric Vehicle.</a>
194+
<p>The electric motor loss map is generated using the PMSM test bench, as described in <a href="matlab:open('generateDULossMap.mlx');">PMSM Thermal Test Bench for Battery Electric Vehicle.</a>
195195
</p>
196196
<p>
197197
<a href="matlab:open_system(%22BEVsystemModel%22);open_system('BEVsystemModel/Vehicle/Front%20Motor%20(EM1)');">Open Front Motor Subsystem</a>
@@ -220,21 +220,21 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
220220
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverviewThermalDiagram.png" alt=""> </p>
221221
<p>The chiller extracts a fixed amount of heat from the coolant.</p>
222222
<p>
223-
<a href="matlab:load_system(%22VehicleElectroThermal%22);open_system('VehicleElectroThermal/Vehicle/Chiller');">Open Chiller Subsystem</a>
223+
<a href="matlab:load_system(%22VehicleElectroThermal%22);open_system('VehicleElectroThermal/Chiller');">Open Chiller Subsystem</a>
224224
</p>
225225
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_11.png" alt=""> <p>The heater adds a fixed amount of heat to the coolant in the circuit.</p>
226226
<p>
227227
<a href="matlab:load_system(%22VehicleElectroThermal%22);open_system('VehicleElectroThermal/Heater');">Open Heater Subsytem</a>
228228
</p>
229229
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_12.png" alt=""> <p>The pump and the valves are actuated based on the coolant temperature and whether battery requires cooling or heating. When the temperature of the coolant in the Emotor is low, then the coolant bypasses the radiator and keeps recirculating to increase the temperature. If the temperature is above a threshold value, coolant passes through the radiator. Similarly, when the battery temperature is above a threshold value the coolant passes through the chiller to cool the battery quickly. A positive temperature coefficient (PTC) heater increases the temperature of the battery in low ambient temperature conditions. Once the battery temperature is high, the heater is switched off as the battery can sustain the temperature.</p>
230230
<p>
231-
<a href="matlab:load_system(%22Controller_HVAC%22);open_system('Controller_HVAC/Cabin%20Control/Cabin%20Air%20Control');">Open Thermal Control Subsystem</a>
231+
<a href="matlab:load_system(%22Controller%22);open_system('Controller/Cabin%20Control/Cabin%20Air%20Control');">Open Thermal Control Subsystem</a>
232232
</p>
233233
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_13.png" alt=""> <h2 id="17">Cabin HVAC</h2>
234234
<p><h3>Abstract Refrigeration</h3></p>
235235
<p>The battery powers the cooling or heating of the cabin. In near zero ambient temperature conditions, heating the cabin consumes 10-15% of the battery capacity. The PTC heater, cooler, and the blower are in loop. The blower circulates the air from the vent through the cabin to heat or cool the cabin.</p>
236236
<p>
237-
<a href="matlab:load_system(%22VehicleElectroThermal%22);open_system('VehicleElectroThermal/HVAC/Cabin/Cabin%20Plant');">Open Cabin Subsystem</a>
237+
<a href="matlab:load_system(%22VehicleElectroThermal%22);open_system('VehicleElectroThermal/HVAC/Cabin%20Plant');">Open Cabin Subsystem</a>
238238
</p>
239239
<img vspace="5" hspace="5" src="BatteryElectricVehicleModelOverview_14.png" alt=""> <p>The cabin loses heat to the environment through the vehicle door, windows, and roof.</p>
240240
<p>The Scenarios subsystem sets the cabin setpoint temperature and the AC on/off control. The HVAC controller modulates the air flow in the cabin through the vent. The heater and cooler draw the required power from the main battery high voltage bus.</p>
@@ -248,7 +248,7 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
248248
<a href="matlab:web('ElectricVehicleDesignOverview.html');">Electric Vehicle Design with Simscape</a>
249249
</p>
250250
<p class="footer">Copyright 2022-2023 The MathWorks, Inc.<br>
251-
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023b</a>
251+
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024b</a>
252252
<br>
253253
</p>
254254
</div>
@@ -324,8 +324,8 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
324324
% upto the capacity of the pack. For quick deployment the Battery block has a selection of
325325
% predefined battery characteristics.
326326
%
327-
% <matlab:open_system("BatteryPlantModel_Table") Open Battery table Subsystem>
328-
open_system('BatteryPlantModel_Table')
327+
% <matlab:open_system("BatteryTableBased") Open Battery table Subsystem>
328+
open_system('BatteryTableBased')
329329
330330
%%
331331
%
@@ -406,7 +406,7 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
406406
% Simscape Bus.
407407
%
408408
% The electric motor loss map is generated using the PMSM test bench, as described
409-
% in <matlab:open('PMSMmotorTestBench.mlx'); PMSM Thermal Test Bench for Battery Electric Vehicle.>
409+
% in <matlab:open('generateDULossMap.mlx'); PMSM Thermal Test Bench for Battery Electric Vehicle.>
410410
%
411411
% <matlab:open_system("BEVsystemModel");open_system('BEVsystemModel/Vehicle/Front%20Motor%20(EM1)'); Open Front Motor Subsystem>
412412
@@ -459,7 +459,7 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
459459
%%
460460
% The chiller extracts a fixed amount of heat from the coolant.
461461
%
462-
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/Vehicle/Chiller'); Open Chiller Subsystem>
462+
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/Chiller'); Open Chiller Subsystem>
463463
%
464464
load_system('VehicleElectroThermal.slx')
465465
open_system('VehicleElectroThermal/Chiller');
@@ -485,10 +485,10 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
485485
% temperature is high, the heater is switched off as the battery can
486486
% sustain the temperature.
487487
%
488-
% <matlab:load_system("Controller_HVAC");open_system('Controller_HVAC/Cabin%20Control/Cabin%20Air%20Control'); Open Thermal Control Subsystem>
488+
% <matlab:load_system("Controller");open_system('Controller/Cabin%20Control/Cabin%20Air%20Control'); Open Thermal Control Subsystem>
489489
%
490-
load_system('Controller_HVAC');
491-
open_system('Controller_HVAC/Cabin Control/Cabin Air Control');
490+
load_system('Controller');
491+
open_system('Controller/Cabin Control/Cabin Air Control');
492492
493493
%% Cabin HVAC
494494
%
@@ -500,9 +500,9 @@ <h2 id="9">Electric Drivetrain (E-Axle)</h2>
500500
% blower circulates the air from the vent through the cabin to heat or cool
501501
% the cabin.
502502
%
503-
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/HVAC/Cabin/Cabin%20Plant'); Open Cabin Subsystem>
503+
% <matlab:load_system("VehicleElectroThermal");open_system('VehicleElectroThermal/HVAC/Cabin%20Plant'); Open Cabin Subsystem>
504504
%
505-
open_system('VehicleElectroThermal/HVAC/Cabin/Cabin Plant');
505+
open_system('VehicleElectroThermal/HVAC/Cabin Plant');
506506
507507
%%
508508
% The cabin loses heat to the environment through the vehicle door, windows, and roof.
107 Bytes
Loading

0 commit comments

Comments
 (0)