Skip to content

Commit 76951a4

Browse files
committed
Initial commit R2021a
1 parent 821349c commit 76951a4

33 files changed

+25
-25
lines changed

HEV_SeriesParallel.slx

933 Bytes
Binary file not shown.
667 Bytes
Binary file not shown.
1.24 KB
Binary file not shown.

Libraries/Battery/HEV_Battery_Lib.slx

1.26 KB
Binary file not shown.
389 Bytes
Binary file not shown.
395 Bytes
Binary file not shown.
820 Bytes
Binary file not shown.

Libraries/Vehicle/Engine_Testrig.slx

739 Bytes
Binary file not shown.
756 Bytes
Binary file not shown.
745 Bytes
Binary file not shown.

Scripts_Data/Compare_HEV_Results.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
% SELECT SIMULATION RESULTS TO BE COMPARED
44
VarSetStr = 'DSM';

Scripts_Data/Configure_HEV_Simulation.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
%disp('CONFIGURING MODEL...');
44
HEV_Solver_Selection = 'ode15s';

Scripts_Data/HEVPS_setupRTtest.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2014-2020 The MathWorks(TM), Inc.
1+
% Copyright 2014-2021 The MathWorks(TM), Inc.
22
Select_HEV_Model_Systems(mdl,'Sys BC VS',HEV_Configs);
33
set_param([mdl '/Vehicle Dynamics/Simple'],'LinkStatus','inactive')
44
HEV_Vehicle_Mass = 1600;

Scripts_Data/HEVSP_setdesktop.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
set_param(bdroot,'Solver','ODE15s');
44
HEV_Param.Control.Mode_Logic_TS = 0.1;

Scripts_Data/HEVSP_setrealtime.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
tvar_Nonlinear_Iterations = '3';
44
tvar_StepSize = '0.005';

Scripts_Data/HEVSP_tictoc.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function HEVSP_tictoc(enable)
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
if(strcmpi(enable,'on'))
55
set_param(bdroot,'StartFcn','tic;');

Scripts_Data/HEV_Model_Demo_Script.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!--
77
This HTML was auto-generated from MATLAB code.
88
To make changes, update the MATLAB code and republish this document.
9-
--><title>HEV Model Demo Script</title><meta name="generator" content="MATLAB 9.9"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2020-10-06"><meta name="DC.source" content="HEV_Model_Demo_Script.m"><style type="text/css">
9+
--><title>HEV Model Demo Script</title><meta name="generator" content="MATLAB 9.10"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-03-09"><meta name="DC.source" content="HEV_Model_Demo_Script.m"><style type="text/css">
1010
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}
1111

1212
html { min-height:100%; margin-bottom:1px; }
@@ -86,7 +86,7 @@
8686
<tr>9. <a href="matlab:cd(fileparts(which('HEV_Model_RSIM.m')));edit HEV_Model_RSIM">Deploy Simulation As a Standalone Executable</a><br>
8787
</style>
8888
</style>
89-
</p><p>Copyright 2011-2020 The MathWorks&#8482;, Inc.</p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2020b</a><br></p></div><!--
89+
</p><p>Copyright 2011-2021 The MathWorks&#8482;, Inc.</p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2021a</a><br></p></div><!--
9090
##### SOURCE BEGIN #####
9191
%% HEV Model Demo Script
9292
%
@@ -111,7 +111,7 @@
111111
% </style>
112112
% </html>
113113
%
114-
% Copyright 2011-2020 The MathWorks(TM), Inc.
114+
% Copyright 2011-2021 The MathWorks(TM), Inc.
115115
116116
117117

Scripts_Data/HEV_Model_Demo_Script.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
% </style>
2222
% </html>
2323
%
24-
% Copyright 2011-2020 The MathWorks(TM), Inc.
24+
% Copyright 2011-2021 The MathWorks(TM), Inc.
2525

2626

Scripts_Data/HEV_Model_PARAM.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
%disp('DEFINING PARAMETERS...');
44
% HEV SERIES PARALLEL PARAMETERS

Scripts_Data/Select_HEV_Model_Systems.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Select_HEV_Model_Systems(modelname,HEV_Config_Name,HEV_Configs)
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
% Find block with mask parameters to set variants
55
f = Simulink.FindOptions('SearchDepth',1,'regexp',true);

Scripts_Data/Setup_HEV_Model_Configurations.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
expModel = bdroot;
44

Scripts_Data/Test_HEV_Model_SHORT.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
expModel = 'HEV_SeriesParallel';
44
open_system(expModel);

Scripts_Data/plot_HEV_Data.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function plot_HEV_Data(FigID,SubPlID,DataStr,SigID,ValID,titlestr,PlotChoice)
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
figure(FigID)
55
temp_colororder = get(gca,'defaultAxesColorOrder');

Scripts_Data/startup_HEV_Model.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
HEV_Model_HomeDir = pwd;
44

Workflows/Fuel_Consumption/Create_Fuel_Consumption_LUT.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% ESTIMATE FUEL CONSUMPTION WITH MEASURED DATA
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33
% CONSTANTS
44
gasoline_density_gpm3 = 750*1000; % Grams per cubic meter
55
gallons_per_m3 = 264.172; % gallons per cubic meter

Workflows/Fuel_Consumption/Fuel_Consumption_PlotData.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2011-2020 The MathWorks, Inc.
1+
% Copyright 2011-2021 The MathWorks, Inc.
22

33
hndl = plot3(FCData.Speed_RPM, FCData.Trq_Nm, FCData.FuelUse_gps,'o','MarkerFaceColor','blue','MarkerEdgeColor','white');
44
grid on

Workflows/Param_Sweep/HEV_Model_PCT_Sim.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% Script to run HEV_SeriesParallel in parallel
2-
% Copyright 2013-2020 The MathWorks(TM), Inc.
2+
% Copyright 2013-2021 The MathWorks(TM), Inc.
33

44
% Move to folder where script is saved
55
cd(fileparts(which(mfilename)));

Workflows/Power_Quality/DC_Power_Quality_Analysis.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% CONSTANTS
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
FigurePos1 = [450 499 574 186];
55
FigurePos2 = [449 69 574 372];

Workflows/RSIM/HEV_Model_RSIM.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% OPEN AND CONFIGURE MODEL
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
mdl = 'HEV_SeriesParallel';
55
open_system(mdl);

Workflows/Real_Time/Test_RT_Model.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@
9999
hold off
100100
legend({'Reference','Fixed-Step','Real-Time','Modified'},'Location','NorthWest');
101101

102-
% Copyright 2011-2020 The MathWorks(TM), Inc.
102+
% Copyright 2011-2021 The MathWorks(TM), Inc.
103103
%% Close model and clean up directory
104104
cleanup_rt_dir

Workflows/Real_Time/cleanup_rt_dir.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% CLEANUP RT TEST DIR
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33

44
mdl = 'HEV_SeriesParallel';
55
delete([mdl '*bio.m'])

Workflows/Reports/HEV_Model_Report_SHORT.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html><head>
22
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
3-
<title>HEV Simulation Test Report</title><meta name="generator" content="DocBook MathWorks XSL Stylesheets V1.75.2-mathworks"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div lang="de" class="book" title="HEV Simulation Test Report"><div class="titlepage"><div><div><h1 class="title"><a name="d38e1"></a>HEV Simulation Test Report</h1></div><div><h2 class="subtitle">Generated by the Simulink Report Generator</h2></div><div><div class="mediaobject" align="left"><img src="./HEV_Model_Report_SHORT_html_files/image-000-copied.jpg"></div></div><div><div class="legalnotice" title="Rechtlicher Hinweis"><a name="d38e13"></a><p><span>Copyright 2020 The MathWorks, Inc.</span></p></div></div><div><p class="pubdate">16-Apr-2019 11:38:20</p></div></div><hr></div><div class="toc"><p><b>Inhaltsverzeichnis</b></p><dl><dt><span class="chapter"><a href="#d38e17">1. <span>Configuration "Sys BD VS" Tests</span></a></span></dt><dd><dl><dt><span class="sect1"><a href="#d38e57"><span>1. Drive Cycle 1</span></a></span></dt><dt><span class="sect1"><a href="#d38e86"><span>2. Drive Cycle 2</span></a></span></dt><dt><span class="sect1"><a href="#d38e115"><span>3. Drive Cycle 3</span></a></span></dt></dl></dd><dt><span class="chapter"><a href="#d38e144">2. Simulation Time Table</a></span></dt></dl></div><div class="list-of-figures"><p><b>Abbildungsverzeichnis</b></p><dl><dt>1.1. <a href="#d38e62">Vehicle
3+
<title>HEV Simulation Test Report</title><meta name="generator" content="DocBook MathWorks XSL Stylesheets V1.75.2-mathworks"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div lang="de" class="book" title="HEV Simulation Test Report"><div class="titlepage"><div><div><h1 class="title"><a name="d38e1"></a>HEV Simulation Test Report</h1></div><div><h2 class="subtitle">Generated by the Simulink Report Generator</h2></div><div><div class="mediaobject" align="left"><img src="./HEV_Model_Report_SHORT_html_files/image-000-copied.jpg"></div></div><div><div class="legalnotice" title="Rechtlicher Hinweis"><a name="d38e13"></a><p><span>Copyright 2021 The MathWorks, Inc.</span></p></div></div><div><p class="pubdate">16-Apr-2019 11:38:20</p></div></div><hr></div><div class="toc"><p><b>Inhaltsverzeichnis</b></p><dl><dt><span class="chapter"><a href="#d38e17">1. <span>Configuration "Sys BD VS" Tests</span></a></span></dt><dd><dl><dt><span class="sect1"><a href="#d38e57"><span>1. Drive Cycle 1</span></a></span></dt><dt><span class="sect1"><a href="#d38e86"><span>2. Drive Cycle 2</span></a></span></dt><dt><span class="sect1"><a href="#d38e115"><span>3. Drive Cycle 3</span></a></span></dt></dl></dd><dt><span class="chapter"><a href="#d38e144">2. Simulation Time Table</a></span></dt></dl></div><div class="list-of-figures"><p><b>Abbildungsverzeichnis</b></p><dl><dt>1.1. <a href="#d38e62">Vehicle
44
Speed</a></dt><dt>1.2. <a href="#d38e68">Speeds From Urban Cycle 1</a></dt><dt>1.3. <a href="#d38e74">Voltages From Urban Cycle 1</a></dt><dt>1.4. <a href="#d38e80">Currents From Urban Cycle 1</a></dt><dt>1.5. <a href="#d38e91">Vehicle
55
Speed</a></dt><dt>1.6. <a href="#d38e97">Speeds From Urban Cycle 2</a></dt><dt>1.7. <a href="#d38e103">Voltages From Urban Cycle 2</a></dt><dt>1.8. <a href="#d38e109">Currents From Urban Cycle 2</a></dt><dt>1.9. <a href="#d38e120">Vehicle
66
Speed</a></dt><dt>1.10. <a href="#d38e126">Speeds From Urban Cycle 3</a></dt><dt>1.11. <a href="#d38e132">Voltages From Urban Cycle 3</a></dt><dt>1.12. <a href="#d38e138">Currents From Urban Cycle 3</a></dt></dl></div><div class="list-of-tables"><p><b>Tabellenverzeichnis</b></p><dl><dt>2.1. <a href="#d38e148">Simulation Time</a></dt></dl></div><div class="chapter" title="Kapitel 1. Configuration &#34;Sys BD VS&#34; Tests"><div class="titlepage"><div><div><h2 class="title"><a name="d38e17"></a>Kapitel 1. <span>Configuration "Sys BD VS" Tests</span></h2></div></div></div><div class="toc"><p><b>Inhaltsverzeichnis</b></p><dl><dt><span class="sect1"><a href="#d38e57"><span>1. Drive Cycle 1</span></a></span></dt><dt><span class="sect1"><a href="#d38e86"><span>2. Drive Cycle 2</span></a></span></dt><dt><span class="sect1"><a href="#d38e115"><span>3. Drive Cycle 3</span></a></span></dt></dl></div><pre xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd"><span style="color:green">% CONFIGURE HEV Model</span>

Workflows/Reports/actxlicense.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function lic = actxlicense(progid)
2-
% Copyright 2011-2020 The MathWorks, Inc.
2+
% Copyright 2011-2021 The MathWorks, Inc.
33
if strcmpi(progid, 'air.airctrl.1')
44
lic = 'Copyright (c) 1996 ';
55
return;

0 commit comments

Comments
 (0)