📄 pmsm_motor_model_220708.mdl
字号:
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "time"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Constant
Name "V0 = 0"
Position [820, 193, 845, 217]
FontName "Arial"
FontSize 12
FontWeight "bold"
Value "0"
}
Block {
BlockType Reference
Name "abc_to_dq0\nTransformation"
Ports [2, 1]
Position [285, 114, 405, 196]
BackgroundColor "cyan"
NamePlacement "alternate"
FontName "Arial"
FontSize 16
FontWeight "bold"
SourceBlock "powerlib_extras/Measurements/abc_to_dq0\nTr"
"ansformation"
SourceType "abc to dq0 Transformation"
ShowPortLabels on
}
Block {
BlockType SubSystem
Name "d-q Model of PMSM"
Ports [3, 3]
Position [580, 77, 720, 233]
ForegroundColor "blue"
BackgroundColor "orange"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "d-q Model of PMSM"
Location [2, 94, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vd"
Position [40, 15, 95, 45]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vq"
Position [45, 289, 105, 321]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "we"
Position [45, 92, 105, 128]
ForegroundColor "[0.000000, 0.501961, 0.000000]"
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Electro Magnetic Torque \nComputation"
Ports [2, 1]
Position [665, 451, 775, 529]
BackgroundColor "yellow"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Electro Magnetic Torque \nComputation"
Location [2, 94, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "id"
Position [85, 95, 145, 125]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "iq"
Position [80, 275, 145, 305]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [290, 154, 295, 236]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Fcn
Name "Te Computation\nTe = {(3/2)*(p)*[ P"
"M_Flux*iq + (Ld-Lq)*id*iq] }"
Position [335, 152, 715, 238]
FontName "Arial"
FontSize 16
FontWeight "bold"
Expr "(3/2)*p*(PM_Flux*u(2) + (Ld - Lq)*u"
"(1)*u(2))"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [850, 54, 910, 96]
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Te"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Outport
Name "Te"
Position [810, 179, 870, 211]
FontName "Arial"
FontSize 16
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Te Computation\nTe = {(3/2)*(p)*[ P"
"M_Flux*iq + (Ld-Lq)*id*iq] }"
DstPort 1
}
Line {
SrcBlock "Te Computation\nTe = {(3/2)*(p)*[ P"
"M_Flux*iq + (Ld-Lq)*id*iq] }"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Te"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "id"
SrcPort 1
Points [65, 0; 0, 65]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "iq"
SrcPort 1
Points [65, 0; 0, -75]
DstBlock "Mux"
DstPort 2
}
Annotation {
Name "Computation of the Electro Magnetic"
" Torque\nProduced by the PMSM"
Position [458, 423]
BackgroundColor "orange"
FontName "Arial"
FontSize 24
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "d-axis Circuit Model"
Ports [3, 1]
Position [310, 42, 465, 178]
ForegroundColor "blue"
BackgroundColor "magenta"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "d-axis Circuit Model"
Location [2, 94, 993, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vd"
Position [35, 197, 90, 223]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "we"
Position [35, 331, 90, 359]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "iq"
Position [40, 440, 95, 470]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "1/Ld"
Position [215, 184, 300, 236]
FontName "Arial"
FontSize 16
FontWeight "bold"
Gain "1/Ld"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [685, 187, 735, 233]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Block {
BlockType Gain
Name "Lq/Ld"
Position [330, 326, 445, 384]
FontName "Arial"
FontSize 16
FontWeight "bold"
Gain "Lq/Ld"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [225, 333, 265, 377]
FontName "Arial"
FontSize 16
FontWeight "bold"
RndMeth "Floor"
}
Block {
BlockType Gain
Name "Rs/Ld"
Position [320, 85, 435, 145]
FontName "Arial"
FontSize 16
FontWeight "bold"
Gain "Rs/Ld"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [560, 163, 605, 257]
FontName "Arial"
FontSize 16
FontWeight "bold"
Inputs "-++"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [855, 284, 915, 326]
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "id"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [50, 72, 110, 108]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Vd"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Outport
Name "id"
Position [900, 197, 950, 223]
FontName "Arial"
FontSize 16
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "we"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Lq/Ld"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Lq/Ld"
SrcPort 1
Points [55, 0; 0, -115]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Rs/Ld"
SrcPort 1
Points [70, 0; 0, 65]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "1/Ld"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "iq"
SrcPort 1
Points [65, 0; 0, -90]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Vd"
SrcPort 1
Points [60, 0]
Branch {
DstBlock "1/Ld"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Points [55, 0]
Branch {
DstBlock "id"
DstPort 1
}
Branch {
Points [0, -170; -635, 0; 0, 75]
DstBlock "Rs/Ld"
DstPort 1
}
}
Branch {
Points [0, 95]
DstBlock "To Workspace"
DstPort 1
}
}
Annotation {
Name "d-axis Circuit Model of the PMSM Mo"
"tor"
Position [398, 563]
BackgroundColor "orange"
FontName "Arial"
FontSize 24
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "q-axis Circuit Model"
Ports [3, 1]
Position [310, 280, 465, 420]
ForegroundColor "red"
BackgroundColor "lightBlue"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "q-axis Circuit Model"
Location [2, 94, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "vq"
Position [30, 131, 85, 159]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "we"
Position [40, 334, 95, 366]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "id"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -