Skip to content

Commit

Permalink
Remove saturation from DCCE model and examle
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kormann committed Apr 28, 2023
1 parent 856d2b3 commit f89b36b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,14 @@ model DC_CompoundExcited "Compound excited linear DC machine"
annotation (Dialog(group="Operational temperatures", enable=not useThermalPort));
parameter Real excitationTurnsRatio(start=-0.005) "Ratio of series excitation turns over shunt excitation turns"
annotation (Dialog(tab="Excitation"));
parameter Boolean considerSaturation=true "Consider saturation of excitation inductance"
annotation (Dialog(tab="Excitation", group="Saturation"), choices(checkBox=true));
parameter SI.Inductance Lzer=Le*10 "Inductance near current=0"
annotation (Dialog(
tab="Excitation",
group="Saturation",
enable=considerSaturation));
parameter SI.Inductance Linf=Le/10 "Inductance at large currents"
annotation (Dialog(
tab="Excitation",
group="Saturation",
enable=considerSaturation));
output SI.Voltage vee=pin_eep.v - pin_en.v "Field shunt excitation voltage";
output SI.Voltage ves=pin_esp.v - pin_en.v "Field series excitation voltage";
output SI.Current iee=pin_eep.i "Field shunt excitation current";
output SI.Current ies=pin_esp.i "Field series excitation current";
Machines.BasicMachines.Components.AirGapDC airGapDC(
final turnsRatio=turnsRatio,
considerSaturation=considerSaturation,
final Le=Lme,
final quasiStatic=quasiStatic,
Inom=IeNominal,
Lnom=Lme,
Lzer=Lzer*(1 - sigmae),
Linf=Linf*(1 - sigmae)) annotation (Placement(transformation(extent={{-10,-10},{10,10}}, rotation=270)));
final quasiStatic=quasiStatic) annotation (Placement(transformation(extent={{-10,-10},{10,10}}, rotation=270)));
Machines.BasicMachines.Components.CompoundDCExcitation compoundDCExcitation(final excitationTurnsRatio=
excitationTurnsRatio) annotation (Placement(transformation(extent={{-10,-30},{10,-10}})));
Modelica.Electrical.Analog.Basic.Ground ground
Expand Down
19 changes: 11 additions & 8 deletions Modelica/Electrical/Machines/Examples/DCMachines/DCCE_Generator.mo
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@ model DCCE_Generator "Test example: DC with compound excitation generating power
alpha20a=dcceData.alpha20a,
alpha20e=dcceData.alpha20e,
TeOperational=293.15,
excitationTurnsRatio=dcceData.excitationTurnsRatio,
considerSaturation=dcceData.considerSaturation,
Lzer=dcceData.Lzer,
Linf=dcceData.Linf)
annotation (Placement(transformation(extent={{-20,-50},{0,-30}})));
excitationTurnsRatio=dcceData.excitationTurnsRatio)
annotation (Placement(transformation(extent={{-20,-50},{0,-30}})));
Modelica.Blocks.Sources.Ramp ramp(
duration=tRamp,
startTime=tStart,
height=-100,
offset=101)
annotation (Placement(transformation(extent={{60,0},{40,20}})));
annotation (Placement(transformation(extent={{60,0},{40,20}})));
Modelica.Electrical.Analog.Basic.Ground ground annotation (Placement(
transformation(
origin={-70,40},
Expand All @@ -62,6 +59,11 @@ model DCCE_Generator "Test example: DC with compound excitation generating power
parameter Utilities.ParameterRecords.DcCompoundExcitedData dcceData(excitationTurnsRatio=-7e-4)
"DC machine data"
annotation (Placement(transformation(extent={{-20,-80},{0,-60}})));
Analog.Sources.ConstantVoltage constantVoltage(V=Ve)
annotation (Placement(transformation(
origin={-50,-30},
extent={{-10,-10},{10,10}},
rotation=90)));
equation
connect(dcce.pin_esp,dcce. pin_an) annotation (Line(points={{-20,-34},{-20,-30},{-16,-30}}, color={0,0,255}));
connect(speed.flange,dcce. flange) annotation (Line(points={{40,-40},{0,-40}}, color={0,0,0}));
Expand All @@ -71,8 +73,9 @@ equation
connect(ramp.y, variableResistor.R) annotation (Line(points={{39,10},{12,10}}, color={0,0,127}));
connect(variableResistor.p, dcce.pin_en)
annotation (Line(points={{0,20},{0,40},{-24,40},{-24,-40},{-20,-40}}, color={0,0,255}));
connect(dcce.pin_eep, dcce.pin_ap)
annotation (Line(points={{-20,-46},{-30,-46},{-30,-14},{0,-14},{0,-30},{-4,-30}}, color={0,0,255}));
connect(constantVoltage.n, dcce.pin_en)
annotation (Line(points={{-50,-20},{-50,-10},{-24,-10},{-24,-40},{-20,-40}}, color={0,0,255}));
connect(constantVoltage.p, dcce.pin_eep) annotation (Line(points={{-50,-40},{-50,-50},{-20,-50},{-20,-46}}, color={0,0,255}));
annotation (experiment(StopTime=2.0, Interval=1E-4, Tolerance=1E-6), Documentation(
info="<html>
<h4>Test example: Compound excited DC machine with a variable resistor as load</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ record DcCompoundExcitedData "Common parameters for DC machines"
parameter SI.Temperature TeNominal=293.15
"Nominal series excitation temperature"
annotation (Dialog(tab="Nominal parameters"));
parameter Boolean considerSaturation=true "Consider saturation of excitation inductance"
annotation (Dialog(tab="Excitation", group="Saturation"), choices(checkBox=true));
parameter SI.Inductance Lzer=Le*10 "Inductance near current=0"
annotation (Dialog(
tab="Excitation",
group="Saturation",
enable=considerSaturation));
parameter SI.Inductance Linf=Le/10 "Inductance at large currents"
annotation (Dialog(
tab="Excitation",
group="Saturation",
enable=considerSaturation));
annotation (
defaultComponentName="dcseData",
defaultComponentPrefixes="parameter",
Expand Down

0 comments on commit f89b36b

Please sign in to comment.