Skip to content

Commit 4cd973d

Browse files
committed
Update Motor Generator 2 component. Add tests.
1 parent 57fb512 commit 4cd973d

File tree

155 files changed

+7364
-5917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+7364
-5917
lines changed

ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## Version 1.6 ... work-in-progress
4+
5+
- Motor Drive Unit (MDU) component is revamped with
6+
a new harness model and tests.
7+
- Motor Generator 1 component is updated to use the new MDU
8+
and added tests.
9+
310
## Version 1.5
411

512
- Simulink Connection Bus is used in all high-voltage electrical ports.

Components/MotorDriveUnit/MotorDriveUnit_refsub_Basic.mdl

Lines changed: 43 additions & 48 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.

Components/MotorDriveUnit/Utility/stash/MotorDriveUnitBasic_plot_result_outputs.m

Lines changed: 0 additions & 72 deletions
This file was deleted.

Components/MotorDriveUnit/Utility/stash/MotorDriveUnit_plotResultMotorSpeed.m

Lines changed: 0 additions & 30 deletions
This file was deleted.

Components/MotorGenerator1/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
This is a model of motor drive unit
44
specifically parameterized for Motor Generator 1 (MG1),
55
which is used as part of power-split hybrid electric vehicle.
6+
MG1 controls the power splitting of internal combustion engine
7+
to distribute engine's mechanical power for
8+
driving vehicle axle and generating electric power.
69
This component is designed to be used
710
as a reusable model.
811

Components/MotorGenerator2/Harness/MotorGenerator2_Component_harness_model.mdl

Lines changed: 5747 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
%% Setup Script for Motor Generator 2
2+
3+
% Copyright 2021-2022 The MathWorks, Inc.
4+
5+
MotorGenerator2_refsub_Basic_params
6+
7+
%% Block parameters
8+
9+
batteryHighVoltage.voltage_V = 650;
10+
batteryHighVoltage.internal_R_Ohm = 0.1;
11+
12+
% Li-ion (3.5V-3.7V cell)
13+
batteryHighVoltage.cellVoltage_V = 3.6;
14+
15+
batteryHighVoltage.capacity_kWh = 9;
16+
17+
batteryHighVoltage.charge_Ahr = batteryHighVoltage.capacity_kWh / batteryHighVoltage.cellVoltage_V * 1000;
18+
19+
%% Initial conditions
20+
21+
initial.hvBattery_Charge_Ahr = batteryHighVoltage.charge_Ahr * 0.6;
22+
23+
initial.vehicle_speed_kph = 0;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
%% Parameters for Motor Generator 2
2+
3+
% Copyright 2021-2022 The MathWorks, Inc.
4+
5+
defineBus_HighVoltage
6+
defineBus_Rotational
7+
8+
%% Block parameters
9+
10+
motorGenerator2.trqMax_Nm = 163; % P610
11+
% motorGenerator2.spdMax_rpm = 17000; % P610
12+
motorGenerator2.powerMax_kW = 53; % P610
13+
motorGenerator2.responseTime_s = 0.02;
14+
15+
motorGenerator2.efficiency_pct = 98;
16+
motorGenerator2.spd_eff_rpm = 2000;
17+
motorGenerator2.trq_eff_Nm = 50;
18+
19+
motorGenerator2.thermalMass_J_perK = 5000;
20+
21+
motorGenerator2.dampSpringStiffness_Nm_per_rad = 10000;
22+
motorGenerator2.dampSpringFriction_Nm_per_rpm = 100;
23+
24+
smoothing.mg2_dampSpringVelTol_rpm = 0.1;
25+
26+
%% Initial conditions
27+
28+
initial.MG2_Temperature_degC = 20;
29+
30+
initial.MG2_AirTemp_degC = 20;

0 commit comments

Comments
 (0)