wind_turbine.mdl
来自「基于MATLAB Simulink的风力发电系统的风力机模型。」· MDL 代码 · 共 1,337 行 · 第 1/3 页
MDL
1,337 行
Name "Scope1"
Ports [1]
Position [450, 439, 480, 471]
Location [1, 45, 1017, 729]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [570, 444, 600, 476]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [335, 219, 400, 306]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [84, 153, 703, 468]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "125"
Block {
BlockType Inport
Name "Lampta"
Position [45, 63, 75, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Beta"
Position [45, 174, 75, 186]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [160, 110, 220, 140]
Expr "1/(u(1)+0.08*u(2))-0.035/(u(2)^3+1)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [305, 110, 365, 140]
Expr "0.5173*(116*u(2)-0.4*u(3)-5)*exp(-21*u("
"2))+0.0068*u(1)"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [125, 106, 130, 144]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [250, 77, 255, 173]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Cp"
Position [415, 118, 445, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Cp"
DstPort 1
}
Line {
SrcBlock "Beta"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -45]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [135, 0]
DstBlock "Mux1"
DstPort 3
}
}
Line {
SrcBlock "Lampta"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 45]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [135, 0]
DstBlock "Mux1"
DstPort 1
}
}
}
}
Block {
BlockType Outport
Name "Pm"
Position [700, 153, 730, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Te"
Position [695, 323, 725, 337]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Air_density"
SrcPort 1
Points [20, 0]
DstBlock "0."
DstPort 1
}
Line {
SrcBlock "R"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, 40]
Branch {
DstBlock "Fcn3"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Product2"
DstPort 1
}
}
Branch {
DstBlock "Fcn2"
DstPort 1
}
}
Line {
SrcBlock "W"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "V"
SrcPort 1
Points [5, 0; 10, 0]
Branch {
DstBlock "Fcn4"
DstPort 1
}
Branch {
Points [0, 85]
Branch {
DstBlock "Fcn5"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Fcn6"
DstPort 1
}
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "Product2"
DstPort 3
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Pm"
DstPort 1
}
Line {
SrcBlock "0."
SrcPort 1
Points [0, 0; 320, 0]
Branch {
Points [0, 175]
DstBlock "Product3"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Beta"
SrcPort 1
Points [10, 0; 0, -45]
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [5, 0; 0, 10; 15, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 140]
DstBlock "Scope"
DstPort 1
}
}
Branch {
Points [0, -30]
DstBlock "Product"
DstPort 5
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [50, 0]
Branch {
Points [0, 45]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [45, 0]
Branch {
Points [0, -105]
DstBlock "Product"
DstPort 3
}
Branch {
Points [30, 0; 0, 195]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Display"
DstPort 1
}
}
}
}
Branch {
Points [0, 190]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Product3"
DstPort 3
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [335, 0; 0, 140]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "Product3"
DstPort 4
}
Line {
SrcBlock "Fcn6"
SrcPort 1
Points [365, 0; 0, -240]
DstBlock "Product"
DstPort 4
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Te"
DstPort 1
}
}
}
Line {
SrcBlock "Wind Turbine generator"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Wind Turbine generator"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Wind Turbine generator"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 0; 0, -70]
DstBlock "0.5*pi"
DstPort 1
}
Branch {
Points [45, 0]
Branch {
Points [0, -35]
DstBlock "Wind Turbine generator"
DstPort 4
}
Branch {
DstBlock "Scope2"
DstPort 1
}
}
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Wind Turbine generator"
DstPort 5
}
Line {
SrcBlock "Wind Turbine generator"
SrcPort 2
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Ramp"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "0.5*pi"
SrcPort 1
DstBlock "Wind Turbine generator"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?