📄 rxasytiaosu.mdl
字号:
SrcBlock "ic"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "ia"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "ic"
DstPort 2
}
}
Line {
SrcBlock "ib"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "ic"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Flux Calculation"
Ports [1, 1]
Position [185, 35, 270, 65]
Orientation "left"
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
MaskType "Flux Calcultation"
MaskInitialization "NF=0.44572610323020e-6;\nDF=[1 -0.999987154"
"86734];"
MaskDisplay "disp('Flux\\nCalc.')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Flux Calculation"
Location [24, 605, 408, 813]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Id"
Position [320, 38, 350, 52]
Orientation "left"
}
Block {
BlockType SubSystem
Name "Discrete Tranfer Function"
Ports [1, 1]
Position [95, 20, 165, 70]
Orientation "left"
TreatAsAtomicUnit off
MaskType "First Order Low Pass Filter (Discrete)"
MaskDescription "H(s)=1/(1+T.s)"
MaskPromptString "Time constant T (s) :|Time step (s)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "T=@1;Ts=@2;"
MaskInitialization " X=[0 1 2 3 4];\n Y=[-2 -2 -3 -4 -4];\n"
" str=sprintf('\\nH=1/(1+T.s)\\n T= %g s\\n\\n\\n',T);\nnum=1;\nden=[T 1];\n\n"
"% discrete transfer function\n% descending powers of z\nnumd= Ts/T;\ndend=[ 1"
" (Ts-T)/T];\n\n"
MaskDisplay "plot(X,Y);\ndisp(str);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1557|2e-6"
System {
Name "Discrete Tranfer Function"
Location [565, 312, 994, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [75, 27, 135, 63]
Numerator "numd"
Denominator "dend"
SampleTime "Ts"
}
Block {
BlockType Outport
Name "Out"
Position [165, 38, 195, 52]
InitialOutput "0"
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Lm"
Position [220, 27, 280, 63]
Orientation "left"
Gain "34.7e-3"
}
Block {
BlockType Outport
Name "Phir"
Position [25, 38, 55, 52]
Orientation "left"
}
Line {
SrcBlock "Discrete Tranfer Function"
SrcPort 1
DstBlock "Phir"
DstPort 1
}
Line {
SrcBlock "Id"
SrcPort 1
DstBlock "Lm"
DstPort 1
}
Line {
SrcBlock "Lm"
SrcPort 1
DstBlock "Discrete Tranfer Function"
DstPort 1
}
Annotation {
Name "Phir = Lm *Id / (1 +Tr .s) "
Position [95, 118]
}
Annotation {
Name "Lm = 34.7 mH"
Position [74, 139]
}
Annotation {
Name "Lr = Ll'r +Lm = 0.8 +34.7= 35.5 mH"
Position [124, 179]
}
Annotation {
Name "Tr = Lr / Rr = 0.1557 s"
Position [89, 159]
}
Annotation {
Name "Rr = 0.228 ohms"
Position [284, 179]
}
}
}
Block {
BlockType SubSystem
Name "Teta Calculation"
Ports [3, 1]
Position [205, 94, 260, 156]
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
System {
Name "Teta Calculation"
Location [117, 609, 657, 816]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Iq"
Position [15, 23, 45, 37]
}
Block {
BlockType Inport
Name "Phir"
Position [15, 58, 45, 72]
Port "2"
}
Block {
BlockType Inport
Name "wm"
Position [225, 78, 255, 92]
Port "3"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [380, 54, 400, 86]
ShowName off
IntegratorMethod "Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
}
Block {
BlockType Fcn
Name "Fcn"
Position [105, 40, 265, 60]
ShowName off
Expr "34.7e-3*u[1]/(u[2]*0.1557+1e-3)"
}
Block {
BlockType Gain
Name "Gain2"
Position [295, 35, 325, 65]
ShowName off
}
Block {
BlockType Gain
Name "Gain3"
Position [295, 73, 315, 97]
ShowName off
Gain "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [70, 12, 75, 83]
Inputs "2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [350, 33, 360, 102]
ShowName off
}
Block {
BlockType Outport
Name "Teta"
Position [425, 63, 455, 77]
InitialOutput "0"
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Teta"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "wm"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Phir"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Iq"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Annotation {
Name " Teta= Electrical angle= integ ( wr + w"
"m)"
Position [122, 124]
}
Annotation {
Name "wr = Rotor frequency (rad/s) = Lm *Iq /"
" ( Tr * Phir)"
Position [149, 141]
}
Annotation {
Name "Lm = 34.7 mH"
Position [339, 124]
}
Annotation {
Name "Rr= 0.228 ohms"
Position [344, 164]
}
Annotation {
Name "Lr = Ll'r +Lm = 0.8 +34.7= 35.5 mH"
Position [389, 144]
}
Annotation {
Name "wm= Rotor mechanical speed (rad/s)"
Position [114, 156]
}
Annotation {
Name "Tr = Lr / Rr = 0.1557 s"
Position [354, 189]
}
}
}
Block {
BlockType UnitDelay
Name "Unit Delay5"
Position [295, 59, 315, 91]
Orientation "left"
ShowName off
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "id* Calculation"
Ports [1, 1]
Position [80, 159, 130, 191]
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
System {
Name "id* Calculation"
Location [446, 119, 869, 283]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Phir*"
Position [25, 38, 55, 52]
}
Block {
BlockType Gain
Name "KF"
Position [80, 29, 140, 61]
Gain "1/34.7e-3"
}
Block {
BlockType Outport
Name "Id*"
Position [165, 38, 195, 52]
}
Line {
SrcBlock "KF"
SrcPort 1
DstBlock "Id*"
DstPort 1
}
Line {
SrcBlock "Phir*"
SrcPort 1
DstBlock "KF"
DstPort 1
}
Annotation {
Name "Id* = Phir*/ Lm "
Position [89, 98]
}
Annotation {
Name "Lm= 34.7 mH"
Position [84, 118]
}
}
}
Block {
BlockType SubSystem
Name "iqs* Calculation"
Ports [2, 1]
Position [190, 242, 235, 293]
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
System {
Name "iqs* Calculation"
Location [181, 527, 660, 674]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Te*"
Position [25, 13, 55, 27]
}
Block {
BlockType Inport
Name "Phir"
Position [25, 53, 55, 67]
Port "2"
}
Block {
BlockType Fcn
Name "Fcn"
Position [125, 35, 245, 55]
ShowName off
Expr "u[1]*0.341/(u[2]+1e-3)"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [80, 25, 100, 60]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "Iq*"
Position [275, 38, 305, 52]
InitialOutput "0"
}
Line {
SrcBlock "Phir"
SrcPort 1
Points [0, -10]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Iq*"
DstPort 1
}
Line {
SrcBlock "Te*"
SrcPort 1
Points [0, 15]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -