within Modelica.Electrical.Machines.BasicMachines.SynchronousMachines; model SM_PermanentMagnet "Permanent magnet synchronous machine" extends Machines.Interfaces.PartialBasicInductionMachine( Lssigma(start=0.1*ZsRef/(2*pi*fsNominal)), final idq_ss=airGap.i_ss, final idq_sr=airGap.i_sr, final idq_rs=airGap.i_rs, final idq_rr=airGap.i_rr, redeclare final Machines.Thermal.SynchronousMachines.ThermalAmbientSMPM thermalAmbient( final useDamperCage=useDamperCage, final Tr=TrOperational, final Tpm=TpmOperational), redeclare final Machines.Interfaces.InductionMachines.ThermalPortSMPM thermalPort(final useDamperCage=useDamperCage), redeclare final Machines.Interfaces.InductionMachines.ThermalPortSMPM internalThermalPort(final useDamperCage=useDamperCage), redeclare final Machines.Interfaces.InductionMachines.PowerBalanceSMPM powerBalance( final lossPowerRotorWinding=damperCageLossPower, final lossPowerRotorCore=0, final lossPowerPermanentMagnet=permanentMagnet.lossPower), statorCore(final w=statorCoreParameters.wRef)); Modelica.Blocks.Interfaces.RealOutput ir[2]( start=zeros(2), each final quantity="ElectricCurrent", each final unit="A") if useDamperCage "Damper cage currents" annotation (Placement(visible=false),Dialog(showStartAttribute=true)); Modelica.Blocks.Interfaces.RealOutput idq_dr[2]( each stateSelect=StateSelect.prefer, each final quantity="ElectricCurrent", each final unit="A") if useDamperCage "Damper space phasor current / rotor fixed frame" annotation (Placement(visible=false)); Machines.BasicMachines.Components.AirGapR airGap( final p=p, final Lmd=Lmd, final Lmq=Lmq, final m=m) annotation (Placement(transformation(extent={{-10,-10},{10,10}}, rotation=270))); final parameter SI.Temperature TpmOperational=293.15 "Operational temperature of permanent magnet" annotation (Dialog(group="Operational temperatures")); parameter SI.Temperature TrOperational(start=293.15) "Operational temperature of (optional) damper cage" annotation ( Dialog(group="Operational temperatures", enable=not useThermalPort and useDamperCage)); parameter SI.Voltage VsOpenCircuit(start=112.3) "Open circuit RMS voltage per phase @ fsNominal"; parameter SI.Inductance Lmd(start=0.3*ZsRef/(2*pi*fsNominal)) "Stator main field inductance per phase in d-axis" annotation (Dialog(tab="Nominal resistances and inductances")); parameter SI.Inductance Lmq(start=0.3*ZsRef/(2*pi*fsNominal)) "Stator main field inductance per phase in q-axis" annotation (Dialog(tab="Nominal resistances and inductances")); parameter Boolean useDamperCage(start=true) "Enable / disable damper cage" annotation (Evaluate=true, Dialog(tab= "Nominal resistances and inductances", group="Damper cage")); parameter SI.Inductance Lrsigmad(start=0.05*ZsRef/(2*pi* fsNominal)) "Damper stray inductance in d-axis" annotation ( Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter SI.Inductance Lrsigmaq=Lrsigmad "Damper stray inductance in q-axis" annotation (Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter SI.Resistance Rrd(start=0.04*ZsRef) "Damper resistance in d-axis at TRef" annotation (Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter SI.Resistance Rrq=Rrd "Damper resistance in q-axis at TRef" annotation (Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter SI.Temperature TrRef(start=293.15) "Reference temperature of damper resistances in d- and q-axis" annotation (Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter Machines.Thermal.LinearTemperatureCoefficient20 alpha20r(start=0) "Temperature coefficient of damper resistances in d- and q-axis" annotation (Dialog( tab="Nominal resistances and inductances", group="Damper cage", enable=useDamperCage)); parameter Machines.Losses.PermanentMagnetLossParameters permanentMagnetLossParameters(IRef( start=100), wRef(start=2*pi*fsNominal/p)) "Permanent magnet loss parameter record" annotation (Dialog(tab="Losses")); Components.PermanentMagnetWithLosses permanentMagnet( final Ie=Ie, final useHeatPort=true, final m=m, final permanentMagnetLossParameters=permanentMagnetLossParameters, final is=is) annotation (Placement(transformation( origin={30,-30}, extent={{10,10},{-10,-10}}, rotation=180))); Machines.BasicMachines.Components.DamperCage damperCage( final Lrsigmad=Lrsigmad, final Lrsigmaq=Lrsigmaq, final Rrd=Rrd, final Rrq=Rrq, final T_ref=TrRef, final alpha=Machines.Thermal.convertAlpha(alpha20r, TrRef), final useHeatPort=true) if useDamperCage annotation (Placement( transformation( origin={0,-40}, extent={{-10,-10},{10,10}}, rotation=270))); protected final parameter SI.Current Ie=sqrt(2)*VsOpenCircuit/(Lmd* 2*pi*fsNominal) "Equivalent excitation current"; Modelica.Blocks.Interfaces.RealOutput damperCageLossPower(final quantity="Power", final unit="W") "Damper losses"; equation connect(ir, damperCage.i); connect(idq_dr, damperCage.i); connect(damperCageLossPower, damperCage.lossPower); if not useDamperCage then damperCageLossPower = 0; end if; connect(airGap.spacePhasor_r, damperCage.spacePhasor_r) annotation (Line(points={{10,-10},{10,-30}}, color={0,0,255})); connect(airGap.spacePhasor_r, permanentMagnet.spacePhasor_r) annotation (Line(points={{10,-10},{10,-20},{20,-20}}, color={0,0,255})); connect(airGap.support, internalSupport) annotation (Line( points={{-10,0},{-40,0},{-40,-90},{60,-90},{60,-100}})); connect(lssigma.spacePhasor_b, airGap.spacePhasor_s) annotation (Line( points={{20,10},{10,10}}, color={0,0,255})); connect(airGap.flange, inertiaRotor.flange_a) annotation (Line( points={{10,0},{70,0}})); connect(permanentMagnet.heatPort, internalThermalPort.heatPortPermanentMagnet) annotation (Line( points={{20,-40},{20,-80},{0,-80}}, color={191,0,0})); connect(permanentMagnet.flange, inertiaRotor.flange_b) annotation (Line( points={{30,-20},{90,-20},{90,0}})); connect(damperCage.heatPort, internalThermalPort.heatPortRotorWinding) annotation (Line( points={{-10,-40},{-10,-80},{0,-80},{0,-80}}, color={191,0,0})); connect(internalSupport, permanentMagnet.support) annotation (Line( points={{60,-100},{60,-100},{60,-90},{30,-90},{30,-40},{30,-40}})); annotation ( defaultComponentName="smpm", Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Rectangle( extent={{-130,10},{-100,-10}}, fillColor={0,255,0}, fillPattern=FillPattern.Solid), Rectangle( extent={{-100,10},{-70,-10}}, fillColor={255,0,0}, fillPattern=FillPattern.Solid), Ellipse(extent={{-134,34},{-66,-34}}, lineColor={0,0,255})}), Documentation(info="
Model of a three-phase permanent magnet synchronous machine.
Resistance and stray inductance of stator is modeled directly in stator phases, then using space phasor transformation and a rotor-fixed AirGap model. Resistance and stray inductance of rotor's squirrel cage is modeled in two axis of the rotor-fixed coordinate system. Permanent magnet excitation is modelled by a constant equivalent excitation current feeding the d-axis. The machine models take the following loss effects into account:
Whether a damper cage is present or not, can be selected with Boolean parameter useDamperCage (default = true).
Default values for machine's parameters (a realistic example) are:
| number of pole pairs p | 2 | |
| stator's moment of inertia | 0.29 | kg.m2 |
| rotor's moment of inertia | 0.29 | kg.m2 |
| nominal frequency fNominal | 50 | Hz |
| nominal voltage per phase | 100 | V RMS |
| no-load voltage per phase | 112.3 | V RMS @ nominal speed |
| nominal current per phase | 100 | A RMS |
| nominal torque | 181.4 | Nm |
| nominal speed | 1500 | rpm |
| nominal mechanical output | 28.5 | kW |
| nominal rotor angle | 20.75 | degree |
| efficiency | 95.0 | % |
| power factor | 0.98 | |
| stator resistance | 0.03 | Ohm per phase at reference temperature |
| reference temperature TsRef | 20 | °C |
| temperature coefficient alpha20s | 0 | 1/K |
| stator reactance Xd | 0.4 | Ohm per phase in d-axis |
| stator reactance Xq | 0.4 | Ohm per phase in q-axis |
| stator stray reactance Xss | 0.1 | Ohm per phase |
| damper resistance in d-axis | 0.04 | Ohm at reference temperature |
| damper resistance in q-axis | same as d-axis | |
| reference temperature TrRef | 20 | °C |
| temperature coefficient alpha20r | 0 | 1/K |
| damper stray reactance in d-axis XDds | 0.05 | Ohm |
| damper stray reactance in q-axis XDqs | same as d-axis | |
| stator operational temperature TsOperational | 20 | °C |
| damper operational temperature TrOperational | 20 | °C |
| These values give the following inductances: | ||
| main field inductance in d-axis | (Xd - Xss)/(2*pi*fNominal) | |
| main field inductance in q-axis | (Xq - Xss)/(2*pi*fNominal) | |
| stator stray inductance per phase | Xss/(2*pi*fNominal) | |
| damper stray inductance in d-axis | XDds/(2*pi*fNominal) | |
| damper stray inductance in q-axis | XDqs/(2*pi*fNominal) |