📄 imcapvecb.mdl
字号:
SampleTime "0"
Port {
PortNumber 1
Name "vmain"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Bm"
Position [565, 150, 610, 180]
Orientation "left"
BackgroundColor "yellow"
Gain "1e-6"
}
Block {
BlockType Clock
Name "Clock1"
Position [55, 30, 75, 50]
ShowName off
Decimation "10"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [420, 216, 425, 254]
BackgroundColor "black"
ShowName off
Outputs "2"
Port {
PortNumber 1
Name "iaux"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "imain"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Ground
Name "Ground1"
Position [175, 185, 195, 205]
ShowName off
Port {
PortNumber 1
Name "wk"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "IM1"
Ports [3, 2]
Position [230, 120, 385, 270]
ForegroundColor "red"
ShowName off
TreatAsAtomicUnit off
MaskType "Inductionmachine"
MaskDescription "Space vector model of the induction machine in "
"a general frame k.\nSI units"
MaskPromptString "Stator resistance [ohm]|Rotor resistance [ohm]|"
"Stator leakage inductance [H]|Rotor leakage inductance [H]|Magnetizing induc"
"tance [H]|Base frequency [rad/s]|Number of poles"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "Rs=@1;Rr=@2;Lsl=@3;Lrl=@4;Lm=@5;wo=@6;p=@7;"
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('CAPACITOR\\nMOTOR')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2.02|4.12|8.54e-3|3.13e-3|180e-3|2*pi*60|4"
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"
}
System {
Name "IM1"
Location [532, 441, 979, 709]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "56"
Block {
BlockType Inport
Name "vs"
Position [15, 123, 45, 137]
}
Block {
BlockType Inport
Name "wk"
Position [15, 68, 45, 82]
Port "2"
}
Block {
BlockType Inport
Name "wmec"
Position [15, 333, 45, 347]
Port "3"
}
Block {
BlockType Reference
Name "Dot Product"
Ports [2, 1]
Position [575, 120, 615, 155]
ShowName off
SourceBlock "simulink/Math\nOperations/Dot Product"
SourceType "Dot Product"
}
Block {
BlockType Gain
Name "Gain"
Position [240, 210, 270, 240]
Orientation "left"
ShowName off
Gain "Rs"
}
Block {
BlockType Gain
Name "Gain1"
Position [240, 390, 270, 420]
Orientation "left"
ShowName off
Gain "Rr"
}
Block {
BlockType Gain
Name "Gain2"
Position [645, 125, 690, 155]
ShowName off
Gain "0.75*p*Lm"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [250, 115, 280, 145]
ShowName off
InitialCondition "[0 0]"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [250, 325, 280, 355]
ShowName off
InitialCondition "[0 0]"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [130, 52, 160, 83]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [130, 267, 160, 298]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [175, 120, 195, 140]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [175, 330, 195, 350]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [80, 280, 100, 300]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType SubSystem
Name "flux-current1"
Ports [2, 2]
Position [350, 107, 465, 203]
ShowName off
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('FLUX-CURRENT\\nRELATIONS')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 2
Name "ir"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "flux-current1"
Location [691, 419, 982, 710]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "fs"
Position [15, 38, 45, 52]
}
Block {
BlockType Inport
Name "fr"
Position [15, 103, 45, 117]
Port "2"
}
Block {
BlockType Gain
Name "Gm"
Position [120, 95, 150, 125]
NamePlacement "alternate"
Gain "Lm /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gm1"
Position [120, 160, 150, 190]
NamePlacement "alternate"
Gain "Lm /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gr"
Position [120, 225, 150, 255]
NamePlacement "alternate"
Gain "(Lsl+Lm )/(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gs"
Position [120, 30, 150, 60]
NamePlacement "alternate"
Gain "(Lrl+Lm) /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [175, 200, 195, 220]
ShowName off
IconShape "round"
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [175, 70, 195, 90]
ShowName off
IconShape "round"
Inputs "+-"
}
Block {
BlockType Outport
Name "is"
Position [235, 73, 265, 87]
}
Block {
BlockType Outport
Name "ir"
Position [235, 203, 265, 217]
Port "2"
}
Line {
SrcBlock "fs"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Gs"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Gm1"
DstPort 1
}
}
Line {
SrcBlock "Gs"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "fr"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Gm"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Gr"
DstPort 1
}
}
Line {
SrcBlock "Gm"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "is"
DstPort 1
}
Line {
SrcBlock "Gm1"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gr"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "ir"
DstPort 1
}
Annotation {
Name "INVERSE INDUCTANCE"
Position [142, 276]
}
}
}
Block {
BlockType Gain
Name "p/2"
Position [60, 325, 85, 355]
ShowName off
Gain "p/2"
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 Gain
Name "rot"
Position [200, 25, 230, 55]
Orientation "left"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "rot1"
Position [200, 240, 230, 270]
Orientation "left"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "rot2"
Position [525, 165, 555, 195]
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Constant
Name "vr"
Position [110, 325, 140, 355]
Value "[0 0]"
}
Block {
BlockType Outport
Name "Te"
Position [725, 133, 755, 147]
}
Block {
BlockType Outport
Name "is"
Position [725, 218, 755, 232]
Port "2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -