📄 asy_generator.mdl
字号:
InitialCondition "[0 0 .1 .1]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [210, 190, 255, 220]
ShowName off
MATLABFcn "asy_ge"
OutputDimensions "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [185, 141, 190, 269]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [365, 155, 370, 225]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [755, 185, 760, 255]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector4"
Ports [1, 1]
Position [495, 83, 535, 107]
Orientation "left"
ShowName off
Elements "[1 ]"
InputPortWidth "2"
}
Block {
BlockType Selector
Name "Selector5"
Ports [1, 1]
Position [400, 102, 440, 128]
Orientation "left"
ShowName off
Elements "[2]"
InputPortWidth "2"
}
Block {
BlockType Terminator
Name "Terminator"
Position [400, 247, 420, 263]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [400, 267, 420, 283]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator2"
Position [805, 262, 825, 278]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator3"
Position [805, 282, 825, 298]
ShowName off
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [640, 164, 660, 191]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [680, 204, 700, 231]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [710, 244, 730, 271]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "abc_to_dq0\nTransformation1"
Ports [2, 1]
Position [795, 209, 835, 256]
ShowName off
AncestorBlock "powerlib_extras/Measurements/abc_to_dq0\nTransf"
"ormation"
TreatAsAtomicUnit off
MaskType "abc to dq0 Transformation"
MaskDescription "This block performs the abc to dq0 transformat"
"ion on a set of three-phase signals. It computes the direct axis Vd, quadrati"
"c axis Vq, and zero sequence V0 quantities in a two axis rotating reference f"
"rame 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-2pi/3"
") + Vc*cos(wt+2pi/3)]\nV0 = 1/3*[Va + Vb + Vc ]\n\nwhere w= rotation spee"
"d (rad/s) of the rotating frame.\n\nThis transformation is commonly used in t"
"hree-phase electric machine models where it is known as the Park transformati"
"on."
MaskHelp "web(psbhelp);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "abc_to_dq0\nTransformation1"
Location [75, 158, 919, 710]
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 [565, 162, 755, 188]
ShowName off
Expr "-(2/3)^.5*((u[1]*u[4])+(u[2]*u[6])+(u[3]*u["
"8]))"
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)^.5*((u[1]*u[5])+(u[2]*u[7])+(u[3]*u[9"
"]))"
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 [525, 136, 530, 214]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [825, 146, 830, 224]
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 "dq0"
Position [845, 175, 865, 195]
InitialOutput "0"
}
Line {
Name "Vd"
FontSize 10
Labels [1, 1]
SrcBlock "Fcn2"
SrcPort 1
Points [45, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "dq0"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 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 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -