📄 smeqvec8.mdl
字号:
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [765, 229, 770, 291]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [380, 159, 385, 226]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux6"
Ports [2, 1]
Position [665, 414, 670, 481]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "P controller"
Ports [1, 1]
Position [260, 654, 340, 706]
BackgroundColor "orange"
TreatAsAtomicUnit off
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ki=@2;sat=@3;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString ".2|1|3"
System {
Name "P controller"
Location [762, 604, 1069, 751]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "P_er"
Position [20, 78, 50, 92]
}
Block {
BlockType Gain
Name "Gain"
Position [85, 71, 110, 99]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 16, 150, 44]
ShowName off
Gain "Kp"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [130, 70, 155, 100]
ShowName off
LimitOutput on
UpperSaturationLimit "sat"
LowerSaturationLimit "-sat"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 50, 245, 70]
ShowName off
UpperLimit "sat"
LowerLimit "-sat"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [175, 50, 195, 70]
ShowName off
IconShape "round"
}
Block {
BlockType Outport
Name "Tmec"
Position [260, 53, 290, 67]
InitialOutput "0"
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "P_er"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Tmec"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Scope
Name "P&Q"
Ports [2]
Position [1015, 73, 1045, 117]
ForegroundColor "green"
NamePlacement "alternate"
Location [571, 291, 1101, 498]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "Reactive Power Q [pu]"
axes2 "Power P[pu]"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "12"
YMin "-1~-2"
YMax "1~2"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Lookup
Name "Psref"
Position [125, 661, 160, 699]
BackgroundColor "yellow"
NamePlacement "alternate"
FontWeight "bold"
InputValues "[0 2 2.01 10] "
OutputValues "[0 0 -1 -1]"
}
Block {
BlockType SubSystem
Name "Q controller"
Ports [1, 1]
Position [255, 299, 335, 351]
BackgroundColor "orange"
TreatAsAtomicUnit off
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ki=@2;sat=@3;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString ".1|.2|.1"
System {
Name "Q controller"
Location [762, 604, 1069, 751]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Q_er"
Position [20, 78, 50, 92]
}
Block {
BlockType Gain
Name "Gain"
Position [85, 71, 110, 99]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 16, 150, 44]
ShowName off
Gain "Kp"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [130, 70, 155, 100]
ShowName off
InitialCondition "vf0"
LimitOutput on
UpperSaturationLimit "sat"
LowerSaturationLimit "-sat"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 50, 245, 70]
ShowName off
UpperLimit "sat"
LowerLimit "-sat"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [175, 50, 195, 70]
ShowName off
IconShape "round"
}
Block {
BlockType Outport
Name "vf"
Position [260, 53, 290, 67]
InitialOutput "0"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "vf"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Q_er"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -55]
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Lookup
Name "Qsref"
Position [120, 306, 155, 344]
BackgroundColor "yellow"
NamePlacement "alternate"
FontWeight "bold"
InputValues "[0 5 5.01 10] "
OutputValues "[0 0 -.3 -.3 ]"
}
Block {
BlockType SubSystem
Name "SM"
Ports [3, 3]
Position [365, 248, 520, 402]
ForegroundColor "blue"
ShowName off
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('SYNCHRONOUS\\nMACHINE')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 3
Name "Te"
PropagatedSignals "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "SM"
Location [632, 406, 1112, 803]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "70"
Block {
BlockType Inport
Name "vs"
Position [25, 113, 55, 127]
}
Block {
BlockType Inport
Name "vf"
Position [30, 283, 60, 297]
Port "2"
}
Block {
BlockType Inport
Name "wm"
Position [25, 63, 55, 77]
Port "3"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [455, 97, 460, 233]
BackgroundColor "black"
ShowName off
Outputs "3"
Port {
PortNumber 3
Name "if"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Dot Product"
Ports [2, 1]
Position [555, 19, 595, 61]
ShowName off
SourceBlock "simulink/Math\nOperations/Dot Product"
SourceType "Dot Product"
Port {
PortNumber 1
Name "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Gain"
Position [200, 235, 230, 265]
Orientation "left"
ShowName off
Gain "Ra"
}
Block {
BlockType Gain
Name "Gain1"
Position [205, 330, 235, 360]
Orientation "left"
ShowName off
Gain "Rf"
}
Block {
BlockType Gain
Name "Gain4"
Position [180, 105, 205, 135]
ShowName off
Gain "wo"
}
Block {
BlockType Gain
Name "Gain5"
Position [175, 380, 205, 410]
ShowName off
Gain "-wo"
}
Block {
BlockType Gain
Name "Gain6"
Position [180, 275, 205, 305]
ShowName off
Gain "wo"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [235, 105, 265, 135]
ShowName off
InitialCondition "fa0"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [235, 380, 265, 410]
ShowName off
InitialCondition "fk0"
Port {
PortNumber 1
Name "fk"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [235, 275, 265, 305]
ShowName off
InitialCondition "phif0"
Port {
PortNumber 1
Name "ff"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Inverse\ninductance"
Position [350, 127, 425, 203]
Gain "L_1"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [320, 96, 325, 234]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [90, 47, 120, 78]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 280, 155, 300]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [135, 110, 155, 130]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Gain
Name "damper\nreistances"
Position [205, 450, 255, 490]
Orientation "left"
Gain "[Rkd 0;0 Rkq]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "rot"
Position [180, 15, 210, 45]
Orientation "left"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "rot1"
Position [380, 15, 410, 45]
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Outport
Name "ia"
Position [630, 243, 660, 257]
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -