📄 s4stp.mdl
字号:
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_Tmech"
Position [60, 200, 80, 220]
Port "5"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Gain
Name "1/2H"
Position [395, 109, 460, 161]
Gain "1/(2*H)"
}
Block {
BlockType Integrator
Name "1/s"
Position [480, 118, 515, 152]
ExternalReset none
InitialConditionSource internal
InitialCondition "wrbywbo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Gain
Name "Damping\ncoefficient"
Position [440, 180, 515, 220]
Orientation left
Gain "Domega"
}
Block {
BlockType Mux
Name "Mux"
Position [110, 31, 130, 189]
Inputs "4"
}
Block {
BlockType Sum
Name "Taccl"
Position [355, 95, 375, 175]
Inputs "++-"
}
Block {
BlockType Fcn
Name "Tem"
Position [150, 94, 310, 126]
Expr "Tfactor*(u[1]*u[2] - u[3]*u[4])"
}
Block {
BlockType Outport
Name "out_Tem"
Position [540, 50, 560, 70]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_wr/wb"
Position [550, 123, 570, 147]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "in_idse"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "in_psiqse"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "in_iqse"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "in_psidse"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Tem"
DstPort 1
}
Line {
SrcBlock "1/s"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "out_wr/wb"
DstPort 1
}
Branch {
Points [10, 0]
DstBlock "Damping\ncoefficient"
DstPort 1
}
}
Line {
SrcBlock "in_Tmech"
SrcPort 1
Points [225, 0; 0, -75]
DstBlock "Taccl"
DstPort 2
}
Line {
SrcBlock "Taccl"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "1/s"
DstPort 1
}
Line {
SrcBlock "Tem"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Taccl"
DstPort 1
}
Branch {
Points [10, 0; 0, -50]
DstBlock "out_Tem"
DstPort 1
}
}
Line {
SrcBlock "Damping\ncoefficient"
SrcPort 1
Points [-105, 0; 0, -40]
DstBlock "Taccl"
DstPort 3
}
Annotation {
Position [417, 187]
VerticalAlignment top
Text "Tdamp"
}
}
}
Block {
BlockType Sum
Name "Sum"
Position [275, 160, 290, 195]
Orientation left
Inputs "+-"
}
Block {
BlockType Terminator
Name "Term"
Position [255, 74, 265, 86]
}
Block {
BlockType Terminator
Name "Term1"
Position [275, 254, 285, 266]
}
Block {
BlockType Constant
Name "we/wb"
Position [315, 175, 335, 195]
Orientation left
Value "1"
}
Block {
BlockType Outport
Name "out_iqse"
Position [540, 55, 560, 75]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_idse"
Position [535, 235, 555, 255]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_Tem"
Position [285, 95, 305, 115]
Orientation left
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_wr/wb"
Position [350, 210, 370, 230]
Orientation down
Port "4"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Daxis"
SrcPort 3
DstBlock "Term1"
DstPort 1
}
Line {
SrcBlock "Qaxis"
SrcPort 3
DstBlock "Term"
DstPort 1
}
Line {
SrcBlock "in_Tmech"
SrcPort 1
Points [375, 0; 0, -115]
DstBlock "Rotor"
DstPort 5
}
Line {
SrcBlock "Daxis"
SrcPort 1
Points [10, 0; 0, -15; -85, 0; 0, -120]
DstBlock "Qaxis"
DstPort 3
}
Line {
SrcBlock "in_vdse"
SrcPort 1
DstBlock "Daxis"
DstPort 1
}
Line {
SrcBlock "Rotor"
SrcPort 2
Points [0, 0]
Branch {
Points [-20, 0]
DstBlock "out_wr/wb"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Rotor"
SrcPort 1
Points [-35, 0; 0, -30]
DstBlock "out_Tem"
DstPort 1
}
Line {
SrcBlock "Qaxis"
SrcPort 2
Points [0, 0]
Branch {
DstBlock "out_iqse"
DstPort 1
}
Branch {
Points [325, 0; 0, 70]
DstBlock "Rotor"
DstPort 2
}
}
Line {
SrcBlock "in_vqse"
SrcPort 1
DstBlock "Qaxis"
DstPort 1
}
Line {
SrcBlock "Daxis"
SrcPort 4
Points [50, 0; 0, -85]
DstBlock "Prod1"
DstPort 2
}
Line {
SrcBlock "Qaxis"
SrcPort 4
Points [45, 0; 0, 35]
DstBlock "Prod"
DstPort 1
}
Line {
SrcBlock "Daxis"
SrcPort 2
Points [0, 0]
Branch {
DstBlock "out_idse"
DstPort 1
}
Branch {
Points [275, 0; 0, -125]
DstBlock "Rotor"
DstPort 1
}
Branch {
Points [320, 0; 0, -80]
DstBlock "Rotor"
DstPort 4
}
}
Line {
SrcBlock "Prod"
SrcPort 1
Points [-15, 0]
DstBlock "Daxis"
DstPort 2
}
Line {
SrcBlock "Qaxis"
SrcPort 1
Points [0, 0]
Branch {
Points [305, 0; 0, 100]
DstBlock "Rotor"
DstPort 3
}
Branch {
Points [5, 0; 0, -10; -90, 0; 0, 235]
DstBlock "Daxis"
DstPort 3
}
}
Line {
SrcBlock "Prod1"
SrcPort 1
Points [-25, 0; 0, -110]
DstBlock "Qaxis"
DstPort 2
}
Line {
SrcBlock "we/wb"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
Points [-45, 0; 0, -40]
DstBlock "Prod"
DstPort 2
}
Branch {
DstBlock "Prod1"
DstPort 1
}
}
Annotation {
Position [237, 162]
VerticalAlignment top
Text "(wr-we)/wb"
}
Annotation {
Position [217, 52]
VerticalAlignment top
Text "iqse"
}
Annotation {
Position [222, 37]
VerticalAlignment top
Text "psiqse"
}
Annotation {
Position [357, 157]
VerticalAlignment top
Text "wr/wb"
}
Annotation {
Position [366, 124]
VerticalAlignment top
Text "Tem"
}
Annotation {
Position [217, 232]
VerticalAlignment top
Text "idse"
}
Annotation {
Position [216, 262]
VerticalAlignment top
Text "psidre"
}
Annotation {
Position [207, 82]
VerticalAlignment top
Text "psiqre"
}
Annotation {
Position [222, 212]
VerticalAlignment top
Text "psidse"
}
}
}
Line {
SrcBlock "S4EIG"
SrcPort 3
DstBlock "Term2"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, -45]
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "S4EIG"
SrcPort 4
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [0, 5]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "S4EIG"
SrcPort 2
DstBlock "Term1"
DstPort 1
}
Line {
SrcBlock "S4EIG"
SrcPort 1
DstBlock "Term"
DstPort 1
}
Line {
SrcBlock "Tmech"
SrcPort 1
DstBlock "S4EIG"
DstPort 3
}
Line {
SrcBlock "Vqse"
SrcPort 1
DstBlock "S4EIG"
DstPort 1
}
Line {
SrcBlock "Vdse"
SrcPort 1
DstBlock "S4EIG"
DstPort 2
}
Annotation {
Position [312, 122]
VerticalAlignment top
Text "wr/wb"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -