📄 power_wind_ig.mdl
字号:
"ammable\nVoltage Source"
SourceType "Three-Phase Programmable Voltage Source"
ShowPortLabels on
PositiveSequence "[120e3 0 60]"
VariationEntity "None"
VariationType "Table of time-amplitude pairs"
VariationStep "-0.15"
VariationRate "10"
VariationMagnitude "0.3"
VariationFrequency "2"
VariationTiming "[5 5.5]"
VariationPhaseA off
Amplitudes "[1.0 0.5 1.0 ]"
TimeValues "[0 10 10.1]"
HarmonicGeneration off
HarmonicA "[1 -0.1 0 1]"
HarmonicB "[2 0.15 35 2]"
Timing "[5 5.5]"
}
Block {
BlockType Reference
Name "120 kV/25 kV\n47 MVA"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [205, 80, 260, 130]
BackgroundColor "yellow"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Tw"
"o Windings)"
SourceType "Three-Phase Transformer (Two Windings)"
ShowPortLabels on
NominalPower "[47e6 60 ]"
Winding1Connection "Yg"
Winding1 "[ 120e3 0.08/30 0.08 ]"
Winding2Connection "Delta (D1)"
Winding2 "[ 25e3 0.08/30 0.08]"
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 "25 km line"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [345, 83, 425, 127]
BackgroundColor "yellow"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nPI Section Line"
SourceType "Three-Phase PI Section Line"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a|b|c"
RConnTagsString "A|B|C"
Frequency "60"
Resistances "[0.1153 0.413]"
Inductances "[1.05e-3 3.32e-3]"
Capacitances "[11.33e-009 5.01e-009]"
Length "25"
}
Block {
BlockType Reference
Name "2500 MVA\nX0/X1=3"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [120, 83, 175, 127]
BackgroundColor "yellow"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nMutual Inductanc"
"e\nZ1-Z0"
SourceType "Three-Phase Mutual Inductance Z1-Z0"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a|b|c"
RConnTagsString "A|B|C"
PositiveSequence "[0.1 1.0/(2*pi*60)] *120e3^2/2500e6"
ZeroSequence "[0.3 3.0/(2*pi*60)] *120e3^2/2500e6"
}
Block {
BlockType Reference
Name "3.3ohms "
Ports [0, 0, 0, 0, 0, 1, 1]
Position [284, 225, 306, 245]
Orientation "down"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "3.3"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "B25\n(25 kV)"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [495, 82, 500, 128]
BackgroundColor "black"
SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurem"
"ent"
SourceType "Three-Phase VI Measurement"
ShowPortLabels on
VoltageMeasurement "phase-to-ground"
SetLabelV on
LabelV "Vabc_B25"
Vpu on
CurrentMeasurement "yes"
SetLabelI on
LabelI "Iabc_B25"
Ipu on
Pbase "10e6"
Vbase "25e3"
OutputType "Complex"
PhasorSimulation on
PSBequivalent "0"
}
Block {
BlockType Scope
Name "B25 Bus"
Ports [5]
Position [235, 341, 295, 489]
BackgroundColor "green"
Floating off
Location [26, 59, 461, 711]
Open off
NumInputPorts "5"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
TimeRange "20"
YMin "0.95~0~0~0.97~0.4"
YMax "1.05~10~3~1.04~1.1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "B25_WF Bus\nData acquisition"
Ports [0, 5]
Position [25, 341, 95, 489]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
Port {
PortNumber 1
Name "Vabc_B25 (pu)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "P_B25 (MW)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "Q_B25 (Mvar)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "V_B25 pos. seq. (pu)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "I_B25 pos. seq. (pu/10 MVA) "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "B25_WF Bus\nData acquisition"
Location [276, 91, 945, 603]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Gain
Name "-1"
Position [525, 202, 555, 228]
Gain "-1"
}
Block {
BlockType Reference
Name "3-Phase\nActive & Reactive Power\n(Phasor T"
"ype)"
Ports [2, 1]
Position [220, 139, 275, 201]
SourceBlock "powerlib_extras/Phasor\nLibrary/3-Phase\nAc"
"tive & Reactive Power\n(Phasor Type)"
SourceType "3-Phase Active & Reactive Power (Phasor Typ"
"e)"
ShowPortLabels on
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle "
Ports [1, 1]
Position [175, 29, 195, 51]
ShowName off
Output "Magnitude"
}
Block {
BlockType Constant
Name "Constant"
Position [370, 245, 400, 265]
ShowName off
Value "0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [365, 134, 370, 201]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType From
Name "From"
Position [50, 30, 115, 50]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Vabc_B25"
}
Block {
BlockType From
Name "From2"
Position [40, 176, 110, 194]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Iabc_B25"
}
Block {
BlockType Gain
Name "MW"
Position [295, 146, 345, 194]
Gain "-1/1e6"
}
Block {
BlockType SubSystem
Name "Mean Value1"
Ports [2, 1]
Position [435, 144, 490, 171]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Mean value"
MaskDescription "This block uses the running window averagin"
"g technique to compute the mean value of the input signal over the specified "
"period.\n"
MaskPromptString "Averaging period (s):"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Period=@1;"
MaskInitialization "\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1/60"
System {
Name "Mean Value1"
Location [220, 282, 763, 473]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [20, 73, 50, 87]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Init"
Position [380, 143, 410, 157]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain"
Position [310, 73, 385, 117]
Gain "1/Period"
}
Block {
BlockType Step
Name "Step"
Position [370, 25, 400, 55]
Time "Period+eps"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [250, 69, 270, 116]
Inputs "+-"
}
Block {
BlockType Switch
Name "Switch"
Position [435, 90, 465, 120]
Threshold "0.5"
InputSameDT off
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [175, 90, 205, 120]
DelayTime "Period"
}
Block {
BlockType Integrator
Name "integrator"
Ports [1, 1]
Position [85, 59, 115, 101]
IgnoreLimit off
}
Block {
BlockType Outport
Name "Mean"
Position [490, 98, 520, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "integrator"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, 25]
DstBlock "Transport\nDelay"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "integrator"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Mean"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
Points [10, 0; 0, 65]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Init"
SrcPort 1
Points [0, -35]
DstBlock "Switch"
DstPort 3
}
Annotation {
Name "Mean value"
Position [48, 26]
UseDisplayTextAsClickCallback off
FontSize 12
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "Mean Value2"
Ports [2, 1]
Position [435, 199, 490, 226]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Mean value"
MaskDescription "This block uses the running window averagin"
"g technique to compute the mean value of the input signal over the specified "
"period.\n"
MaskPromptString "Averaging period (s):"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Period=@1;"
MaskInitialization "\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -