📄 swing1.mdl
字号:
"rbance occurs which modifies\nthe electrical output Pe while the mechanical i"
"nput Pm\nremains constant. Swings curves are generated for \nspecified cleari"
"ng times Tc. Power-angle curves\nare also exhibited."
Position [151, 54]
FontName "Arial"
FontSize 12
}
Annotation {
Name " Double click the <RUN> block to enter the "
"parameters\n and initial conditions and run the simulation"
Position [145, 134]
FontName "Arial"
FontSize 11
}
}
}
Block {
BlockType Gain
Name "1/2H"
Position [320, 169, 370, 211]
Gain "1/(2*H)"
}
Block {
BlockType Clock
Name "Clock"
Position [125, 265, 145, 285]
Decimation "10"
}
Block {
BlockType Gain
Name "D"
Position [255, 130, 295, 160]
Orientation "down"
NamePlacement "alternate"
Gain "D"
}
Block {
BlockType Fcn
Name "EVsin(delta)/X"
Position [310, 269, 405, 301]
Expr "E*V*sin(u(2))/u(1)"
Port {
PortNumber 1
Name "Pe"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [405, 19, 435, 51]
ShowName off
Port {
PortNumber 1
Name "delta"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [405, 175, 435, 205]
ShowName off
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Lookup
Name "Look-Up\nTable"
Position [175, 249, 225, 301]
InputValues "[0 t0 t0 t0+Tc t0+Tc 4]"
OutputValues "[Xbefore Xbefore Xduring Xduring Xafter Xafter]"
Port {
PortNumber 1
Name "X"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [275, 266, 280, 304]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "Pm"
Position [185, 175, 220, 205]
Value "Pm"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [260, 20, 290, 50]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [260, 175, 290, 205]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Gain
Name "wo\n"
Position [325, 14, 370, 56]
Gain "2*pi*f"
}
Block {
BlockType Constant
Name "ws"
Position [190, 21, 225, 49]
}
Block {
BlockType Outport
Name "angle"
Position [510, 28, 540, 42]
}
Block {
BlockType Outport
Name "speed"
Position [515, 183, 545, 197]
Port "2"
}
Block {
BlockType Outport
Name "power"
Position [515, 278, 545, 292]
Port "3"
}
Line {
SrcBlock "ws"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "delta"
Labels [2, 0]
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 300; -240, 0; 0, -40]
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "angle"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "wo\n"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "EVsin(delta)/X"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
Name "wm"
Labels [2, 0]
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -100; -185, 0]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "speed"
DstPort 1
}
}
Line {
SrcBlock "Pm"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "D"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "wo\n"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [0, 75; -105, 0]
DstBlock "D"
DstPort 1
}
}
Line {
Name "Pe"
SrcBlock "EVsin(delta)/X"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Labels [1, 0]
DstBlock "power"
DstPort 1
}
Branch {
Points [0, -50; -150, 0]
DstBlock "Sum2"
DstPort 3
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Look-Up\nTable"
DstPort 1
}
Line {
Name "X"
Labels [-1, 1]
SrcBlock "Look-Up\nTable"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Annotation {
Name "SYNCHRONOUS\nMACHINE\nTRANSIENT\nSTABILITY"
Position [78, 52]
ForegroundColor "red"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Damping"
Position [237, 121]
}
Annotation {
Name "Double click"
Position [65, 261]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -