📄 yibudianji_fangzhen_moxing_yunxing.mdl
字号:
Line {
SrcBlock "psiqs"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "ids"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 65]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "*p"
DstPort 1
}
Line {
SrcBlock "*p"
SrcPort 1
DstBlock "Te"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Tload"
Position [650, 175, 680, 205]
}
Block {
BlockType SubSystem
Name "abc_dq0"
Ports [1, 2]
Position [185, 155, 225, 215]
TreatAsAtomicUnit off
System {
Name "abc_dq0"
Location [2, 74, 1014, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Uabc"
Position [395, 113, 425, 127]
}
Block {
BlockType Clock
Name "Clock"
Position [45, 300, 65, 320]
Decimation "10"
}
Block {
BlockType Gain
Name "Deg->Rad"
Position [160, 396, 200, 424]
Gain "pi/180"
}
Block {
BlockType Constant
Name "Freq1"
Position [75, 254, 105, 276]
ShowName off
Value "50"
}
Block {
BlockType Constant
Name "Freq2"
Position [75, 344, 105, 366]
ShowName off
Value "2*pi"
}
Block {
BlockType Constant
Name "Initial\nVd_Vq1"
Position [55, 398, 120, 422]
ShowName off
Value "60"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [465, 356, 470, 429]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [180, 242, 215, 378]
ShowName off
Inputs "***"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [270, 291, 295, 364]
ShowName off
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [380, 315, 410, 345]
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [385, 395, 415, 425]
Operator "cos"
}
Block {
BlockType SubSystem
Name "abc_to_dq0\nTransformation"
Ports [2, 2]
Position [510, 106, 575, 164]
TreatAsAtomicUnit off
MaskType "abc to dq0 Transformation"
MaskDescription "This block performs the abc to dq0 transfo"
"rmation on a set of three-phase signals. It computes the direct axis Vd, quad"
"ratic axis Vq, and zero sequence V0 quantities in a two axis rotating referen"
"ce frame according to the following transformation:\n\nVd = 2/3*[Va*sin(wt) "
"+ Vb*sin(wt-2pi/3) + Vc*sin(wt+2pi/3)] \nVq = 2/3*[Va*cos(wt) + Vb*cos(wt-2"
"pi/3) + Vc*cos(wt+2pi/3)]\nV0 = 1/3*[Va + Vb + Vc ]\n\nwhere w= rotation "
"speed (rad/s) of the rotating frame.\n\nThis transformation is commonly used "
"in three-phase electric machine models where it is known as the Park transfor"
"mation."
MaskHelp "web(psbhelp);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "abc_to_dq0\nTransformation"
Location [0, 181, 980, 831]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "abc"
Position [20, 25, 40, 45]
PortDimensions "3"
Port {
PortNumber 1
Name "Vabc"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "sin_cos"
Position [20, 80, 40, 100]
Port "2"
PortDimensions "2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [65, 63, 70, 112]
ShowName off
Outputs "2"
Port {
PortNumber 1
Name "sin(wt)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "cos(wt)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Fcn1"
Position [575, 162, 765, 188]
ShowName off
Expr "2/3*((u[1]*u[5])+(u[2]*u[7])+(u[3]*u[9]"
"))"
Port {
PortNumber 1
Name "Vq"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Fcn2"
Position [575, 88, 760, 112]
ShowName off
Expr "2/3*((u[1]*u[4])+(u[2]*u[6])+(u[3]*u[8]"
"))"
Port {
PortNumber 1
Name "Vd"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Constant
Name "K1"
Position [50, 180, 75, 200]
ShowName off
Value "0.5"
}
Block {
BlockType Constant
Name "K2"
Position [35, 219, 85, 241]
ShowName off
Value "sqrt(3)/2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [515, 134, 535, 216]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [450, 108, 455, 342]
ShowName off
Inputs "6"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [185, 173, 215, 197]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [185, 213, 215, 237]
ShowName off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [180, 318, 210, 342]
ShowName off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [180, 278, 210, 302]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 164, 255, 246]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt-2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [230, 269, 250, 351]
ShowName off
Inputs "-+"
Port {
PortNumber 1
Name "cos(wt-2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [315, 266, 335, 299]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt+2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [315, 372, 335, 403]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "cos(wt+2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "Out1"
Position [800, 93, 830, 107]
}
Block {
BlockType Outport
Name "Out2"
Position [815, 168, 845, 182]
Port "2"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Fcn2"
DstPort 1
}
}
Line {
Name "cos(wt-2pi/3)"
FontSize 10
SrcBlock "Sum1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 70]
DstBlock "Sum3"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, -65]
DstBlock "Mux2"
DstPort 4
}
}
Line {
Name "sin(wt-2pi/3)"
FontSize 10
SrcBlock "Sum"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Labels [-1, 1]
DstBlock "Mux2"
DstPort 3
}
}
Line {
SrcBlock "K2"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 105]
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "K1"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 105]
DstBlock "Product3"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 2
}
}
Line {
Name "sin(wt+2pi/3)"
FontSize 10
Labels [-1, 1]
SrcBlock "Sum2"
SrcPort 1
DstBlock "Mux2"
DstPort 5
}
Line {
Name "cos(wt+2pi/3)"
FontSize 10
Labels [3, 0]
SrcBlock "Sum3"
SrcPort 1
Points [15, 0; 0, -65]
DstBlock "Mux2"
DstPort 6
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "sin(wt)"
FontSize 10
SrcBlock "Demux"
SrcPort 1
Points [85, 0]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -