📄 wind-power.mdl
字号:
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [695, 149, 725, 216]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [620, 229, 650, 296]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "R"
Position [45, 220, 75, 250]
Value "5"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [315, 84, 380, 171]
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 "100"
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.22/u[1])*(116*u[2]-0.4*u[3]-5)*exp(-"
"12.5*u[2])"
}
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 Sum
Name "Sum"
Ports [2, 1]
Position [525, 270, 545, 290]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "P"
Position [770, 178, 800, 192]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "T"
Position [695, 83, 725, 97]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "w1"
Position [770, 258, 800, 272]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Tout"
Position [775, 318, 805, 332]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "v"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 55]
DstBlock "Fcn1"
DstPort 1
}
Branch {
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, 55]
DstBlock "Product3"
DstPort 2
}
Branch {
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Beta"
SrcPort 1
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [20, 0; 0, -65]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "R"
SrcPort 1
Points [0, 0; 65, 0]
Branch {
Points [0, -65]
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Fcn2"
DstPort 1
}
}
Line {
SrcBlock "J"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [130, 0; 0, -145]
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "p"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [165, 0; 0, -175]
DstBlock "Product"
DstPort 4
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "MinMax"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "MinMax"
DstPort 2
}
Line {
SrcBlock "MinMax"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "T"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
DstBlock "Product3"
DstPort 1
}
Branch {
Points [-180, 0; 0, 115]
DstBlock "Sum"
DstPort 1
}
}
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [185, 0; 0, -95]
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 45]
DstBlock "Tout"
DstPort 1
}
Branch {
DstBlock "Product4"
DstPort 2
}
}
Line {
SrcBlock "Tb"
SrcPort 1
Points [445, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "P"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "w1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Tout"
Position [435, 363, 465, 377]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "p"
Position [435, 173, 465, 187]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Step"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 65]
Branch {
DstBlock "wind"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Gain1"
DstPort 1
}
}
}
Line {
SrcBlock "wind"
SrcPort 4
DstBlock "Tout"
DstPort 1
}
Line {
SrcBlock "wind"
SrcPort 2
Points [0, 0; 30, 0]
Branch {
DstBlock "Subsystem"
DstPort 2
}
Branch {
Points [0, 155; -150, 0; 0, 30]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "wind"
SrcPort 3
Points [0, 0; 15, 0]
Branch {
DstBlock "Subsystem"
DstPort 3
}
Branch {
Points [0, 125]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "wind"
DstPort 4
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "wind"
DstPort 3
}
Line {
SrcBlock "wind"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "p"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "wind"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 40; -85, 0; 0, -120]
DstBlock "wind"
DstPort 5
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -