📄 power_wind_dfig_det.mdl
字号:
Block {
BlockType Reference
Name "Grounding\nTransformer\nX0=4.7 Ohms"
Ports [0, 0, 0, 0, 0, 4, 3]
Position [230, 155, 280, 205]
Orientation "left"
BackgroundColor "yellow"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Tw"
"o Windings)"
SourceType "Three-Phase Transformer (Two Windings)"
ShowPortLabels on
NominalPower "[100e6 60]"
Winding1Connection "Yn"
Winding1 "[ 25e3 4.7/(25e3^2/100e6)/30 4.7/(25e3^2/10"
"0e6)]"
Winding2Connection "Delta (D11)"
Winding2 "[ 25e3 1e-6 0]"
SetSaturation off
Rm "500"
Lm "500"
Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
Hysteresis off
DataFile "'basic_model'"
SetInitialFlux off
InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
Measurements "None"
TransfoNumber "0"
MoreParameters off
BreakLoop off
}
Block {
BlockType Reference
Name "Load\n500 kW"
Ports [0, 0, 0, 0, 0, 3]
Position [575, 155, 605, 195]
Orientation "down"
BackgroundColor "yellow"
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nSeries RLC Load"
SourceType "Three-Phase Series RLC Load"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "A|B|C"
Configuration "Y (grounded)"
NominalVoltage "575"
NominalFrequency "60"
ActivePower "500e3"
InductivePower "0"
CapacitivePower "0"
Measurements "None"
}
Block {
BlockType Gain
Name "MW"
Position [715, 307, 765, 353]
Gain "6*1.5/0.9"
}
Block {
BlockType SubSystem
Name "More info"
Ports []
Position [880, 495, 907, 520]
ForegroundColor "blue"
DropShadow on
OpenFcn "web('power_wind_dfig_det.html')"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More info"
Location [125, 254, 937, 641]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [690, 311, 695, 349]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [8]
Position [865, 241, 930, 464]
BackgroundColor "green"
Floating off
Location [404, 142, 1022, 899]
Open off
NumInputPorts "8"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
axes8 "%<SignalLabel>"
}
TimeRange "0.2"
YMin "-1.5~-0.75~2~-5~1100~1~-1.5~-1"
YMax "1.5~0.75~8~5~1300~1.2~1.5~1"
SaveToWorkspace on
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [320, 321, 360, 359]
ShowName off
Elements "[1]"
InputPortWidth "3"
}
Block {
BlockType Display
Name "THD Va_B25"
Ports [1]
Position [485, 325, 575, 355]
Decimation "200"
Lockdown off
}
Block {
BlockType SubSystem
Name "Wind Turbine\nDoubly-Fed Induction Generator\n("
"Detailed Model)"
Ports [1, 1, 0, 0, 0, 3]
Position [765, 18, 830, 132]
BackgroundColor "lightBlue"
DialogController "PMDialogs.PMDefaultMaskDlg"
LoadFcn "%find_system(gcs,'FollowLinks', 'on', 'LookUnde"
"rMasks', 'all');"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Wind Turbine\nDoubly-Fed Induction Generator"
"\n(Detailed Model)"
Location [46, 74, 985, 962]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Wind (m/s) "
Position [560, 543, 590, 557]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Asynchronous Machine\npu Units"
Ports [1, 1, 0, 0, 0, 3, 3]
Position [505, 104, 620, 216]
BackgroundColor "yellow"
SourceBlock "powerlib/Machines/Asynchronous Machine\npu "
"Units"
SourceType "Asynchronous Machine"
ShowPortLabels "on"
PresetModel "No"
MechanicalLoad "Torque Tm"
ShowDetailedParameters "on"
RotorType "Wound"
ReferenceFrame "Stationary"
NominalParameters "[ Pnom Vnom Fnom ]"
Stator "[ Rs Lls]"
Rotor "[ Rr Llr]"
Lm "Lm"
Mechanical "[H F p]"
InitialConditions "[-0.1 0 0 0 0 0 0 0]"
Units "0"
LoadFlowParameters "0"
SimulateSaturation "off"
Saturation "[ 0 0 ; 0 0 ]"
}
Block {
BlockType Reference
Name "B1"
Ports [0, 2, 0, 0, 0, 3, 3]
Position [85, 36, 90, 214]
BackgroundColor "black"
SourceBlock "powerlib/Measurements/Three-Phase\nV-I Meas"
"urement"
SourceType "Three-Phase VI Measurement"
ShowPortLabels "on"
VoltageMeasurement "phase-to-ground"
SetLabelV "off"
LabelV "Vabc_B1"
Vpu "on"
CurrentMeasurement "yes"
SetLabelI "off"
LabelI "Iabc_Beol"
Ipu "on"
Pbase "Pnom"
Vbase "Vnom"
OutputType "Complex"
PhasorSimulation "off"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "B_grid_conv"
Ports [0, 1, 0, 0, 0, 3, 3]
Position [345, 294, 350, 406]
BackgroundColor "black"
SourceBlock "powerlib/Measurements/Three-Phase\nV-I Meas"
"urement"
SourceType "Three-Phase VI Measurement"
ShowPortLabels "on"
VoltageMeasurement "no"
SetLabelV "off"
LabelV "Vabc_B1"
Vpu "off"
CurrentMeasurement "yes"
SetLabelI "off"
LabelI "Iabc_Beol"
Ipu "on"
Pbase "Pnom"
Vbase "Vnom"
OutputType "Complex"
PhasorSimulation "off"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "B_rotor_conv"
Ports [0, 1, 0, 0, 0, 3, 3]
Position [670, 331, 675, 409]
BackgroundColor "black"
SourceBlock "powerlib/Measurements/Three-Phase\nV-I Meas"
"urement"
SourceType "Three-Phase VI Measurement"
ShowPortLabels "on"
VoltageMeasurement "no"
SetLabelV "off"
LabelV "Vabc_B1"
Vpu "on"
CurrentMeasurement "yes"
SetLabelI "off"
LabelI "Iabc_Beol"
Ipu "on"
Pbase "Pnom"
Vbase "Vnom"
OutputType "Complex"
PhasorSimulation "off"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "B_stator"
Ports [0, 1, 0, 0, 0, 3, 3]
Position [290, 104, 295, 216]
BackgroundColor "black"
SourceBlock "powerlib/Measurements/Three-Phase\nV-I Meas"
"urement"
SourceType "Three-Phase VI Measurement"
ShowPortLabels "on"
VoltageMeasurement "no"
SetLabelV "off"
LabelV "Vabc_B1"
Vpu "off"
CurrentMeasurement "yes"
SetLabelI "off"
LabelI "Iabc_Beol"
Ipu "on"
Pbase "Pnom"
Vbase "Vnom"
OutputType "Complex"
PhasorSimulation "off"
PSBequivalent "0"
}
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 2]
Position [650, 95, 655, 135]
ShowName off
OutputSignals "Mechanical.Rotor speed (wm),Mechanical.Roto"
"r angle thetam (rad)"
Port {
PortNumber 1
Name "<Rotor speed (wm)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "<Rotor angle thetam (rad)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "C1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [480, 345, 500, 375]
Orientation "down"
BackgroundColor "cyan"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "C"
Resistance "[]"
Inductance "[]"
SetiL0 "off"
InitialCurrent "0"
Capacitance "C_DClink"
Setx0 "on"
InitialVoltage "Vdc_nom"
Measurements "Branch voltage"
}
Block {
BlockType SubSystem
Name "Control System"
Ports [10, 4]
Position [160, 464, 290, 856]
ForegroundColor "blue"
BackgroundColor "lightBlue"
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Converter maximum power (p.u.):|Nominal DC "
"bus voltage (V):|DC bus capacitor (F):|Tracking characteristic speeds: [speed"
"_A(pu) ... speed_D(pu)]|Power at point C (pu/mechanical power):|Pitch angle c"
"ontroller gain [Kp]:|Maximum pitch angle (deg):|Maximum rate of change of pit"
"ch angle (deg/s):|Reactive power regulator gains: [Kp Ki]|DC bus voltage regu"
"lator gains: [Kp Ki]|Grid-side converter current regulator gains: [Kp Ki]|Rot"
"or-side converter current regulator gains: [Kp Ki]|Maximum rate of change of "
"reference reactive power (p.u./s):|Maximum rate of change of reference torque"
" (p.u./s):|Maximum rate of change of converter reference currents (p.u./s):"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edi"
"t,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n"
MaskCallbackString "||||||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n"
MaskVarAliasString ",,,,,,,,,,,,,,"
MaskVariables "Pmax=@1;Vdc_nom=@2;capacitor=@3;speed_ABCD="
"@4;power_C=@5;pitch_gain=@6;pitch_max=@7;pitch_rate=@8;Kpi_Q=@9;Kpi_dc_reg=@1"
"0;Kpi_grid_side_cur_reg=@11;Kpi_rotor_side_cur_reg=@12;Q_slew_rate=@13;torque"
"_slew_rate=@14;current_slew_rate=@15;"
MaskInitialization "%Imax_grid_conv=Pmax_pu/Vnom_pu=Pmax_pu/1;"
"\nImax_grid_conv=Pmax;\n\n%Points for reference power curve\nspeed_A=speed_AB"
"CD(1); %pu of synchronous speed\nspeed_B=speed_ABCD(2); %pu of synchronous sp"
"eed\nspeed_C=speed_ABCD(3); %pu of synchronous speed\nspeed_D=speed_ABCD(4); "
"%pu of synchronous speed\n\npower_A=0; %pu of mechanical power\npower_B=power"
"_C*(speed_B/speed_C)^3; %pu of mechanical power\npower_D=1; %pu of mechanical"
" power\n\n%Controler gains\nKp_Q=Kpi_Q(1);\nKi_Q=Kpi_Q(2);\nKp_dc_reg=Kpi_dc_"
"reg(1);\nKi_dc_reg=Kpi_dc_reg(2);\nKp_grid_side_cur_reg=Kpi_grid_side_cur_reg"
"(1);\nKi_grid_side_cur_reg=Kpi_grid_side_cur_reg(2);\nKp_rotor_side_cur_reg=K"
"pi_rotor_side_cur_reg(1);\nKi_rotor_side_cur_reg=Kpi_rotor_side_cur_reg(2);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.5|Vdc_nom|C_DClink|[0.7 0.71 1.2 1.21]|po"
"wer_C|500|45|2|[0.05 5]|[0.002 0.05]|[2.5 500]|[0.3 8]|100|1|200"
MaskTabNameString ",,,,,,,,,,,,,,"
System {
Name "Control System"
Location [109, 290, 1024, 846]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc_B1"
Position [35, 58, 65, 72]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Q_ref"
Position [35, 283, 65, 297]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Iq_grid_conv_ref"
Position [35, 328, 65, 342]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "wr"
Position [35, 418, 65, 432]
Port "4"
IconDisplay "Port number"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -