📄 imvectrol9.mdl
字号:
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "is"
DstPort 1
}
Line {
SrcBlock "G21"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "G22"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "ir"
DstPort 1
}
Annotation {
Position [142, 276]
Text "INVERSE INDUCTANCE"
}
}
}
Block {
BlockType Constant
Name "fr0"
Position [215, 371, 255, 399]
Value "[1 0]"
VectorParams1D on
}
Block {
BlockType Constant
Name "fs0"
Position [205, 156, 255, 184]
Value "[1.033 0]"
VectorParams1D on
}
Block {
BlockType Gain
Name "rot"
Position [200, 25, 230, 55]
Orientation "left"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "rot1"
Position [195, 240, 225, 270]
Orientation "left"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "rot2"
Position [405, 25, 435, 55]
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "vr"
Position [110, 325, 140, 355]
Value "[0 0]"
VectorParams1D on
}
Block {
BlockType Outport
Name "Te"
Position [615, 43, 645, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "is"
Position [615, 218, 645, 232]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "fr"
Position [615, 248, 645, 262]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-80, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "vr"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "flux-current1"
DstPort 1
}
Branch {
Points [0, -100]
Branch {
DstBlock "rot"
DstPort 1
}
Branch {
DstBlock "rot2"
DstPort 1
}
}
}
Line {
Labels [2, 0]
SrcBlock "Integrator1"
SrcPort 1
Points [15, 0; 0, -95]
Branch {
Points [0, -65]
DstBlock "flux-current1"
DstPort 2
}
Branch {
DstBlock "rot1"
DstPort 1
}
Branch {
DstBlock "fr"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "rot1"
SrcPort 1
Points [-80, 0; 0, 20]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "rot"
SrcPort 1
Points [-85, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "rot2"
SrcPort 1
DstBlock "Dot Product"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
Name "Te"
Labels [0, 0]
SrcBlock "Dot Product"
SrcPort 1
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "vs"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Iwk"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 215]
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "wm"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "flux-current1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 85]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "is"
DstPort 1
}
}
Branch {
Points [0, -80]
DstBlock "Dot Product"
DstPort 2
}
}
Line {
SrcBlock "fr0"
SrcPort 1
DstBlock "Integrator1"
DstPort 2
}
Line {
SrcBlock "fs0"
SrcPort 1
DstBlock "Integrator"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-85, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
Name "ir"
Labels [3, 0]
SrcBlock "flux-current1"
SrcPort 2
Points [10, 0; 0, 235]
DstBlock "Gain1"
DstPort 1
}
Annotation {
Position [243, 297]
ForegroundColor "red"
Text "ROTOR"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [238, 86]
ForegroundColor "red"
Text "STATOR"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [337, 79]
Text "fs"
}
Annotation {
Position [335, 294]
Text "fr"
}
Annotation {
Position [520, 105]
Text "is"
}
Annotation {
Position [490, 130]
Text "is"
}
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [368, 255, 402, 290]
Orientation "up"
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
Port {
PortNumber 1
Name "theta"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [263, 255, 297, 290]
Orientation "up"
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
Port {
PortNumber 1
Name "thetaC"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Lm/(wo*Tr)"
Position [807, 350, 853, 385]
Orientation "down"
NamePlacement "alternate"
Gain "Lm/(wo*Tr)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Lm/(wo*Tr*fro)"
Position [146, 245, 194, 285]
Orientation "down"
NamePlacement "alternate"
Gain "Lm/(wo*Tr*fro)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Lr/(Lm*fro)"
Position [115, 165, 155, 195]
Gain "Lr/(Lm*fro)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "iqs*"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "Mechanical \nsystem"
Ports [2, 1]
Position [850, 125, 940, 220]
ForegroundColor "orange"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Inertia constant [s]|Torque-speed coefficient"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "H=@1;Bm=@2;"
MaskDisplay "disp('Mechanical\\nSystem')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.3|1e-5"
MaskVariableAliases ","
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Mechanical \nsystem"
Location [519, 118, 866, 247]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tl"
Position [15, 13, 45, 27]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Te"
Position [15, 48, 45, 62]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Gain
Name "1/2H"
Position [115, 37, 175, 73]
ShowName off
Gain "1/(2*H)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Bm"
Position [145, 80, 175, 110]
Orientation "left"
ShowName off
Gain "Bm"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [195, 39, 225, 71]
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [70, 45, 90, 65]
ShowName off
IconShape "round"
Inputs "-+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "wm"
Position [270, 48, 300, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Tl"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Te"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "wm"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Bm"
DstPort 1
}
}
Line {
SrcBlock "Bm"
SrcPort 1
Points [-60, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -