📄 s6.mdl
字号:
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[3]*u[2]-u[1]*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_i'ds"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "in_psi'ds"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "in_iqs"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "in_psiqs"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Tem_"
DstPort 1
}
Line {
SrcBlock "Damping\ncoefficient"
SrcPort 1
Points [-105, 0; 0, -35]
DstBlock "Taccl"
DstPort 3
}
Line {
SrcBlock "1/s"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, 60]
DstBlock "Damping\ncoefficient"
DstPort 1
}
Branch {
DstBlock "out_wr/wb"
DstPort 1
}
}
Line {
SrcBlock "Tem_"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, -40]
DstBlock "out_Tem"
DstPort 1
}
Branch {
DstBlock "Taccl"
DstPort 1
}
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "1/s"
DstPort 1
}
Line {
SrcBlock "Taccl"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "in_Tmech"
SrcPort 1
Points [230, 0; 0, -75]
DstBlock "Taccl"
DstPort 2
}
Annotation {
Position [407, 182]
VerticalAlignment top
Text "Tdamp"
}
}
}
Block {
BlockType Scope
Name "Scope"
Position [220, 18, 245, 42]
Orientation left
Floating off
Location [70, 329, 736, 568]
Open on
Grid on
TickLabels on
ZoomMode on
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Selector
Name "Selector"
Position [285, 20, 325, 40]
Orientation left
Elements "[2 3 5 7 10 11]"
InputPortWidth "11"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [45, 240, 90, 260]
Amplitude "Vm"
Frequency "we"
Phase "-pi/2"
SampleTime "-1"
}
Block {
BlockType Terminator
Name "T"
Position [395, 174, 405, 186]
}
Block {
BlockType Terminator
Name "T1"
Position [365, 339, 375, 351]
}
Block {
BlockType SubSystem
Name "Tmech"
Position [485, 340, 515, 360]
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 [460, 21, 505, 39]
VariableName "y"
Buffer "80000"
Decimation "1"
SampleTime "0"
}
Line {
SrcBlock "Daxis"
SrcPort 3
DstBlock "T1"
DstPort 1
}
Line {
SrcBlock "Qaxis"
SrcPort 3
DstBlock "T"
DstPort 1
}
Line {
SrcBlock "ExtConn"
SrcPort 3
Points [85, 0]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Rotor"
SrcPort 1
Points [20, 0; 0, -70; -40, 0]
DstBlock "Mux"
DstPort 10
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [10, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Daxis"
SrcPort 5
Points [10, 0; 0, 25; -260, 0]
DstBlock "ExtConn"
DstPort 4
}
Line {
SrcBlock "Qaxis"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -20; -45, 0]
DstBlock "Mux"
DstPort 5
}
Branch {
Points [155, 0; 0, 55]
DstBlock "Rotor"
DstPort 1
}
}
Line {
SrcBlock "Qaxis"
SrcPort 2
Points [0, 0]
Branch {
Points [10, 0]
DstBlock "Mux"
DstPort 6
}
Branch {
Points [140, 0; 0, 70]
DstBlock "Rotor"
DstPort 2
}
}
Line {
SrcBlock "Daxis"
SrcPort 1
Points [0, 0]
Branch {
Points [70, 0]
DstBlock "Mux"
DstPort 7
}
Branch {
Points [70, 0; 0, -50]
DstBlock "Rotor"
DstPort 3
}
}
Line {
SrcBlock "Tmech"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0]
DstBlock "Mux"
DstPort 9
}
Branch {
Points [15, 0; 0, -25]
DstBlock "Rotor"
DstPort 5
}
}
Line {
SrcBlock "ExtConn"
SrcPort 2
Points [0, 0]
Branch {
Points [30, 0]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [100, 0; 0, 35]
DstBlock "Daxis"
DstPort 1
}
}
Line {
SrcBlock "ExtConn"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -130; -25, 0]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "Qaxis"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "ExtConn"
DstPort 1
}
Line {
SrcBlock "Daxis"
SrcPort 2
Points [0, 0]
Branch {
Points [125, 0]
DstBlock "Mux"
DstPort 8
}
Branch {
Points [40, 0; 0, 85; -305, 0; 0, -105]
DstBlock "ExtConn"
DstPort 3
}
Branch {
Points [125, 0; 0, -35]
DstBlock "Rotor"
DstPort 4
}
}
Line {
SrcBlock "Daxis"
SrcPort 4
Points [30, 0; 0, -80]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Qaxis"
SrcPort 4
Points [10, 0; 0, 30]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Rotor"
SrcPort 2
Points [0, 0]
Branch {
Points [35, 0]
DstBlock "Mux"
DstPort 11
}
Branch {
Points [35, 0; 0, 120; -570, 0; 0, -145]
DstBlock "ExtConn"
DstPort 2
}
Branch {
Points [35, 0; 0, 70; -235, 0; 0, -105]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [35, 0; 0, 70; -235, 0; 0, -140]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [-30, 0; 0, 135]
DstBlock "Daxis"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [-20, 0; 0, -85]
DstBlock "Qaxis"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -25]
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Selector"
DstPort 1
}
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Annotation {
Position [127, 22]
VerticalAlignment top
Text "Single-Phase Induction \nMachine Simulation"
}
Annotation {
Position [616, 209]
VerticalAlignment top
Text "Tem"
}
Annotation {
Position [627, 287]
VerticalAlignment top
Text "wr/wb"
}
Annotation {
Position [372, 302]
VerticalAlignment top
Text "psi'ds"
}
Annotation {
Position [372, 317]
VerticalAlignment top
Text "i'ds"
}
Annotation {
Position [387, 152]
VerticalAlignment top
Text "iqs"
}
Annotation {
Position [392, 137]
VerticalAlignment top
Text "psiqs"
}
Annotation {
Position [227, 277]
VerticalAlignment top
Text "v'ds"
}
Annotation {
Position [222, 142]
VerticalAlignment top
Text "vqs"
}
Annotation {
Position [387, 192]
VerticalAlignment top
Text "psiqr"
}
Annotation {
Position [406, 362]
VerticalAlignment top
Text "psidr"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -