📄 s1.mdl
字号:
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
Points [55, 0; 0, 140; -285, 0; 0, -40]
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [55, 0; 0, -135; -615, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [55, 0; 0, 140; -620, 0; 0, -40]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [55, 0; 0, -45; -270, 0; 0, -30]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "psiqs_"
SrcPort 1
Points [0, 0]
Branch {
Points [35, 0; 0, 60; -325, 0; 0, -30]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [35, 0; 0, -25]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [35, 0; 0, 60]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [35, 0; 0, -75]
DstBlock "out_psiqs"
DstPort 1
}
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "psiqr'_"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psiqs_"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "out_iqs"
DstPort 1
}
Line {
SrcBlock "in_vqs"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "in_(wr/wb)*psidr'"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "out_iqr'"
DstPort 1
}
Annotation {
Position [602, 127]
VerticalAlignment top
Text "iqs"
}
Annotation {
Position [382, 132]
VerticalAlignment top
Text "psiqs"
}
Annotation {
Position [667, 207]
VerticalAlignment top
Text "psiqm"
}
Annotation {
Position [602, 299]
VerticalAlignment top
Text "iqr'"
}
Annotation {
Position [392, 283]
VerticalAlignment top
Text "psiqr'"
}
}
}
Block {
BlockType SubSystem
Name "Rotor"
Position [490, 159, 530, 231]
Orientation left
ShowPortLabels off
System {
Name "Rotor"
Location [149, 82, 784, 328]
Open off
ScreenColor white
Block {
BlockType Inport
Name "in_psids"
Position [55, 40, 75, 60]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_iqs"
Position [55, 80, 75, 100]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_psiqs"
Position [55, 120, 75, 140]
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_ids"
Position [55, 160, 75, 180]
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_Tmech"
Position [55, 200, 75, 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, 120, 510, 150]
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, 177, 510, 213]
Orientation left
Gain "Domega"
}
Block {
BlockType Mux
Name "Mux"
Position [105, 26, 130, 194]
Inputs "4"
}
Block {
BlockType Sum
Name "Taccl"
Position [355, 95, 370, 175]
Inputs "++-"
}
Block {
BlockType Fcn
Name "Tem_"
Position [150, 96, 310, 124]
Expr "Tfactor*(u[1]*u[2]-u[3]*u[4])"
}
Block {
BlockType Outport
Name "out_Tem"
Position [540, 60, 560, 80]
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_Tmech"
SrcPort 1
Points [230, 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, -40]
DstBlock "out_Tem"
DstPort 1
}
}
Line {
SrcBlock "1/s"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "out_wr/wb"
DstPort 1
}
Branch {
Points [15, 0; 0, 60]
DstBlock "Damping\ncoefficient"
DstPort 1
}
}
Line {
SrcBlock "Damping\ncoefficient"
SrcPort 1
Points [-105, 0; 0, -35]
DstBlock "Taccl"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Tem_"
DstPort 1
}
Line {
SrcBlock "in_psids"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "in_iqs"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "in_psiqs"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "in_ids"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Annotation {
Position [407, 182]
VerticalAlignment top
Text "Tdamp"
}
}
}
Block {
BlockType Scope
Name "Scope"
Position [560, 17, 575, 43]
Floating off
Location [15, 308, 735, 508]
Open on
Grid on
TickLabels on
ZoomMode on
TimeRange "2"
YMin "-30"
YMax "30"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows off
MaxRows "5000"
Decimation "2"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Position [730, 170, 750, 250]
Inputs "+++"
}
Block {
BlockType Terminator
Name "Term"
Position [415, 119, 425, 131]
}
Block {
BlockType Terminator
Name "Term1"
Position [445, 294, 455, 306]
}
Block {
BlockType SubSystem
Name "Tmech"
Position [445, 235, 485, 255]
ShowPortLabels on
MaskType "Repeating table"
MaskDescription "Repeating table."
MaskHelp "Repeats cycle given in table. Time values "
"should be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskVariables "rep_seq_t=@1;rep_seq_y=@2;"
MaskInitialization "period = max(rep_seq_t);\n"
MaskDisplay "plot([rep_seq_t,rep_seq_t+period,rep_seq_t+2*per"
"iod,rep_seq_t(1)+3*period],[rep_seq_y,rep_seq_y,"
"rep_seq_y,rep_seq_y(1)])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate off
MaskIconUnits autoscale
MaskValueString "tmech_time|tmech_value"
System {
Name "Tmech"
Location [382, 166, 692, 322]
Open off
ScreenColor white
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
DeleteFcn "simclock BlockIsBeingDestroyed"
PostSaveFcn "simclock Save"
Location [30, 40, 110, 80]
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look-Up Table"
Position [210, 58, 250, 82]
InputValues "rep_seq_t"
OutputValues "rep_seq_y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Look-Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look-Up Table"
DstPort 1
}
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [555, 61, 600, 79]
VariableName "y"
Buffer "80000"
Decimation "1"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Zero_seq"
Position [465, 310, 500, 360]
ShowPortLabels off
System {
Name "Zero_seq"
Location [160, 675, 612, 861]
Open off
ScreenColor white
Block {
BlockType Inport
Name "in_v0s"
Position [55, 60, 75, 80]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Integrator
Name "Integrator"
Position [265, 65, 295, 95]
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Sum
Name "Sum"
Position [140, 59, 155, 101]
Inputs "+-"
}
Block {
BlockType Gain
Name "rs"
Position [200, 122, 245, 158]
Orientation left
Gain "rs"
}
Block {
BlockType Gain
Name "wb/xls"
Position [180, 62, 240, 98]
Gain "wb/xls"
}
Block {
BlockType Outport
Name "out_i0s"
Position [365, 70, 385, 90]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "rs"
SrcPort 1
Points [-80, 0; 0, -50]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "wb/xls"
DstPort 1
}
Line {
SrcBlock "wb/xls"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "in_v0s"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 60]
DstBlock "rs"
DstPort 1
}
Branch {
DstBlock "out_i0s"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "abc2qds"
Position [235, 167, 280, 253]
ShowPortLabels off
System {
Name "abc2qds"
Location [108, 72, 707, 390]
Open off
ScreenColor white
Block {
BlockType Inport
Name "in_vag"
Position [80, 90, 100, 110]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_vbg"
Position [80, 135, 100, 155]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_vcg"
Position [80, 180, 100, 200]
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "ias+ibs+ics"
Position [80, 225, 100, 245]
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Gain
Name "1/Csg"
Position [185, 215, 280, 255]
Gain "50*Zb*wb"
}
Block {
BlockType Fcn
Name "Fcn"
Position [225, 81, 380, 109]
Expr "(2/3)*(u[1] - (u[2]+u[3])/2)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [225, 132, 375, 158]
Expr "(u[3]-u[2])/sqrt(3)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [225, 177, 375, 203]
Expr "(u[1]+u[2]+u[3])/3"
}
Block {
BlockType Integrator
Name "Integrator"
Position [300, 220, 330, 250]
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -