📄 hecheng.mdl
字号:
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[380 0 50]|Amplitude|Step|-0.5 |10|0.3|2|[0.1 "
"1.2]|off|[1 0.8 1.2 1.0]|[0 0.1 0.15 0.2]|off|[3 0.2 -25 0]|[2 0.15 35 2]|[0."
"05 3]"
System {
Name "3-phase \nProgrammable Source"
Location [358, 341, 726, 626]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "3_Phase_Prog_Source"
Ports [0, 1]
Position [135, 127, 180, 193]
BackgroundColor "cyan"
DropShadow on
SourceBlock "powerlib_models/Continuous/3_Phase_Prog_Sou"
"rce"
SourceType "3-phase Programmable Source"
Par_Vps "Par_Vps"
VariationEntity "VariationEntity"
VariationType "VariationType"
VariationStep "VariationStep"
VariationRate "VariationRate"
VariationMag "VariationMag"
VariationFreq "VariationFreq"
Par_Timing_Variation "Par_Timing_Variation"
SinglePhase "SinglePhase"
Yampli "Yampli"
Xtime "Xtime"
HarmonicGeneration "HarmonicGeneration"
Par_HarmoA "Par_HarmoA"
Par_HarmoB "Par_HarmoB"
Par_Timing_Harmo "Par_Timing_Harmo"
}
Block {
BlockType Outport
Name "Uabc"
Position [240, 153, 270, 167]
}
Line {
SrcBlock "3_Phase_Prog_Source"
SrcPort 1
DstBlock "Uabc"
DstPort 1
}
Annotation {
Name "Programmable 3-phase Source "
Position [134, 29]
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Pierre Giroux, Gilbert Sybille\nPower Syste"
"m Laboratory, IREQ\nHydro-Quebec"
Position [125, 62]
}
Annotation {
Position [169, 29]
FontSize 14
FontWeight "bold"
}
Annotation {
Position [160, 62]
}
}
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [235, 331, 275, 349]
ShowName off
SampleTime ".001"
}
Block {
BlockType DigitalClock
Name "Digital Clock1"
Position [240, 391, 275, 409]
ShowName off
SampleTime ".001"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [305, 331, 340, 369]
ShowName off
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [305, 392, 340, 428]
InputSameDT off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [470, 385, 495, 420]
ShowName off
InputSameDT off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [470, 303, 495, 332]
ShowName off
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [610, 221, 650, 309]
BackgroundColor "green"
Location [350, 206, 944, 632]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "Te"
axes2 "ws"
axes3 "IA"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-5~-5~-5"
YMax "5~5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [525, 396, 545, 434]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Constant
Name "TL"
Position [300, 215, 330, 235]
}
Block {
BlockType Constant
Name "Totor-U"
Position [285, 125, 315, 155]
Value "0"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [370, 335, 400, 365]
ShowName off
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [370, 395, 400, 425]
ShowName off
Operator "cos"
}
Block {
BlockType SubSystem
Name "abc_dq0"
Ports [1, 2]
Position [240, 244, 280, 311]
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 [-2, 176, 978, 826]
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"
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]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -