📄 imrotfluxframe2.mdl
字号:
ShowName off
Amplitude "vs"
Frequency "2*pi*ws*60"
Phase "pi/2-an+2*pi/3"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Lookup
Name "Torque pulse"
Position [530, 30, 560, 60]
NamePlacement "alternate"
InputValues "[0 0.1 0.1 0.5 0.5 2] "
OutputValues "[Tl0 Tl0 0 0 0.5 0.5] "
Port {
PortNumber 1
Name "Tl"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "ab2dq"
Ports [2, 1]
Position [240, 138, 300, 207]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
Port {
PortNumber 1
Name "v_dq"
PropagatedSignals ", "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "ab2dq"
Location [606, 270, 960, 480]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "85"
AutoZoom on
Block {
BlockType Inport
Name "ab"
Position [20, 77, 50, 93]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "thetak"
Position [20, 112, 50, 128]
Port "2"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [150, 16, 300, 64]
ShowName off
Expr "u(1)*cos(u(3))+u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [150, 185, 310, 225]
ShowName off
Expr "-u(1)*sin(u(3))+u(2)*cos(u(3))"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 177, 130, 228]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [340, 106, 345, 139]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "dq"
Position [370, 118, 400, 132]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "ab"
SrcPort 1
Points [15, 0; 0, 0]
Branch {
Points [0, -60]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "thetak"
SrcPort 1
Points [125, 0]
Branch {
Points [0, -35; -80, 0; 0, -35]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 40; -80, 0; 0, 55]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [10, 0]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [20, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "dq"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "current"
Ports [1]
Position [575, 191, 610, 239]
NamePlacement "alternate"
Floating off
Location [13, 120, 516, 354]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "dq currents"
}
Grid "on"
TimeRange "1"
YMin "-0.4"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "20000"
Decimation "20"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "info"
Ports []
Position [397, 374, 469, 443]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "info"
Location [250, 605, 514, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "103"
AutoZoom on
Annotation {
Position [129, 27]
Text "Running of an Induction Motor \nModeled in"
" the Rotor Flux Frame\nunder Three-Phase Sinusoidal Excitation "
FontSize 12
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "space vector"
Ports []
Position [697, 365, 765, 431]
ForegroundColor "orange"
DropShadow on
ShowName off
OpenFcn "close all,figure(1),plot(wm,Te,'-r'),grid,title"
"('TORQUE-SPEED CHARACTERISTICS'),xlabel('SPEED [pu]'),ylabel('TORQUE [pu]')"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('T-w plot')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "space vector"
Location [81, 508, 528, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Scope
Name "torque"
Ports [1]
Position [735, 36, 770, 84]
NamePlacement "alternate"
Floating off
Location [527, 86, 1006, 353]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "torque"
}
Grid "on"
TimeRange "1"
YMin "-0.4"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "20000"
Decimation "20"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "voltages"
Ports [3]
Position [350, 21, 380, 79]
NamePlacement "alternate"
Floating off
Location [46, 96, 523, 354]
Open on
NumInputPorts "3"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-1~-1~-1"
YMax "1~1~1"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "wf"
Ports [1]
Position [820, 286, 855, 334]
NamePlacement "alternate"
Floating off
Location [523, 438, 1001, 702]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "rotor flux speed"
}
Grid "on"
TimeRange "1"
YMin "0.99"
YMax "1.025"
SaveToWorkspace off
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "20000"
Decimation "20"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "wm1"
Ports [1]
Position [820, 131, 855, 179]
NamePlacement "alternate"
Floating off
Location [527, 408, 1002, 677]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "speed"
}
Grid "on"
TimeRange "1"
YMin "0.975"
YMax "1.015"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "20000"
Decimation "20"
SampleInput off
SampleTime "0"
}
Block {
BlockType Gain
Name "wo"
Position [580, 252, 610, 288]
Gain "2*pi*60"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "wm"
Position [820, 203, 850, 217]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Te"
Position [575, 153, 605, 167]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux6"
SrcPort 1
DstBlock "torque"
DstPort 1
}
Line {
Name "Tl"
Labels [0, 0]
SrcBlock "Torque pulse"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Labels [-1, 1]
DstBlock "Mux6"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "Mechanical \nsystem"
DstPort 2
}
}
Line {
Name "wm"
Labels [2, 0]
SrcBlock "Mechanical \nsystem"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "wm1"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
Points [0, 135; -495, 0; 0, -90]
DstBlock "IM"
DstPort 2
}
Branch {
DstBlock "wm"
DstPort 1
}
}
}
Line {
Name "v_dq"
Labels [0, 0]
SrcBlock "ab2dq"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "IM"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -105]
DstBlock "voltages"
DstPort 3
}
}
Line {
Name "v_ABC"
Labels [0, 0]
SrcBlock "Mux4"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "ABC2ab"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -125]
DstBlock "voltages"
DstPort 1
}
}
Line {
Name "v_ab"
Labels [0, 0]
SrcBlock "ABC2ab"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "ab2dq"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -105]
DstBlock "voltages"
DstPort 2
}
}
Line {
Name "i_dq"
Labels [0, 0]
SrcBlock "IM"
SrcPort 2
DstBlock "current"
DstPort 1
}
Line {
SrcBlock "IM"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Te"
DstPort 1
}
Branch {
Points [0, -30]
Branch {
Points [0, -60]
DstBlock "Mux6"
DstPort 2
}
Branch {
DstBlock "Mechanical \nsystem"
DstPort 1
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Mux4"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Torque pulse"
DstPort 1
}
Line {
SrcBlock "wo"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
Name "wf"
Labels [1, 0]
SrcBlock "IM"
SrcPort 3
Points [15, 0]
Branch {
DstBlock "wo"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "wf"
DstPort 1
}
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [15, 0; 0, 95; -470, 0; 0, -175]
DstBlock "ab2dq"
DstPort 2
}
Annotation {
Position [437, 101]
Text "Rotor flux\nREFERENCE\nFRAME"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [667, 41]
Text "Tl"
}
Annotation {
Position [51, 69]
Text "3-phase\nvoltages"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -