Skip to content

Commit d6469d4

Browse files
agonzaleagonzale
authored andcommitted
feat: add optional DC Bus Voltage input on loss tables
1 parent 290bd4b commit d6469d4

18 files changed

+303
-39
lines changed

GenerateSimulinkThermalModel.mlx

117 KB
Binary file not shown.

ValidateSimulinkThermalModel.mlx

171 KB
Binary file not shown.

data/OutputFromGSTM.mat

173 KB
Binary file not shown.

interface/+mcadinterface/BasicInterface.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
% The Motor-CAD names used for get/set commands. (Loss variables are in order.)
1010
McadParameterNameList = { ...
1111
'Ambient_Temperature'; ...
12+
'DCBusVoltage'; ...
1213
'StatorCopperLossesVaryWithTemp'; ...
1314
'StatorCopperTempCoefResistivity'; ...
1415
'StatorWindingTemperatureAtWhichPcuInput'; ...
@@ -121,6 +122,7 @@
121122
% The MATLAB internal names for parameters. (Loss names must match one-to-one with the above.)
122123
ParameterNameList = { ...
123124
'Tambient_degC'; ...
125+
'DCBusVoltage'; ...
124126
'EnableStatorTempCoeffRes'; ...
125127
'StatorTempCoeffRes'; ...
126128
'TrefStator_degC'; ...
@@ -232,6 +234,7 @@
232234
properties(Access=public)
233235
%% Operating Parameters
234236
Tambient_degC (1,1) double % Ambient temperature [degC]
237+
DCBusVoltage (1,1) double % DC Bus Voltage [V]
235238
EnableStatorTempCoeffRes (1,1) int32 % Enable stator temperature coefficient for resistivity
236239
StatorTempCoeffRes (1,1) double % Stator temperature coefficient for resistivity
237240
TrefStator_degC (1,1) double % Stator reference temperature [degC]
@@ -400,6 +403,11 @@
400403
obj.setParameter('Tambient_degC', value);
401404
obj.Tambient_degC = value;
402405
end
406+
407+
function set.DCBusVoltage(obj, value)
408+
obj.setParameter('DCBusVoltage', value);
409+
obj.DCBusVoltage = value;
410+
end
403411

404412
function set.EnableStatorTempCoeffRes(obj, value)
405413
obj.setParameter('EnableStatorTempCoeffRes', value);

interface/+mcadinterface/ThermalInterface.m

Lines changed: 147 additions & 39 deletions
Large diffs are not rendered by default.

libraries/mcadROM_lib.slx

2.59 KB
Binary file not shown.

models/e5_IM_HWJ_ROM.slx

-175 Bytes
Binary file not shown.

models/e8_IPMSM_HWJandVent_ROM.slx

-357 KB
Binary file not shown.
-6.24 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design" />
5+
</Category>
6+
</Info>

0 commit comments

Comments
 (0)