📄 pv_boost_dcac_averaged.mdl
字号:
Position [885, 113, 915, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "D"
Position [325, 323, 355, 337]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "efficiency"
Position [885, 248, 915, 262]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Pout"
Position [880, 348, 910, 362]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/C"
DstPort 1
}
Line {
SrcBlock "1/C"
SrcPort 1
DstBlock "Integrator (C)"
DstPort 1
}
Line {
Name "vc"
Labels [0, 0]
SrcBlock "Integrator (C)"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Vout"
DstPort 1
}
Branch {
Points [0, -45; -685, 0; 0, 40]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 105]
Branch {
DstBlock "Efficiency\ncalculation"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Product2"
DstPort 1
}
}
}
Line {
SrcBlock "Iout"
SrcPort 1
DstBlock "-1"
DstPort 1
}
Line {
SrcBlock "-1"
SrcPort 1
Points [280, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "RL"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Iref"
SrcPort 1
Points [5, 0]
Branch {
Points [45, 0]
Branch {
DstBlock "RL"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [0, 45]
DstBlock "Efficiency\ncalculation"
DstPort 4
}
}
Line {
SrcBlock "Vg"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "Efficiency\ncalculation"
DstPort 3
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Switching loss current"
SrcPort 1
Points [20, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Limiter"
DstPort 1
}
Line {
Name "Iout"
SrcBlock "Limiter"
SrcPort 1
Points [35, 0; 0, 0]
Branch {
Labels [1, 0]
Points [0, -115]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 10; 285, 0]
Branch {
DstBlock "Efficiency\ncalculation"
DstPort 2
}
Branch {
Points [0, 115]
DstBlock "Product2"
DstPort 2
}
}
}
Line {
SrcBlock "Efficiency\ncalculation"
SrcPort 1
DstBlock "efficiency"
DstPort 1
}
Line {
SrcBlock "constant"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "D"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Pout"
DstPort 1
}
Line {
Name "1-D"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
DstBlock "0<=D<=1"
DstPort 1
}
Line {
SrcBlock "0<=D<=1"
SrcPort 1
Points [15, 0; 0, 100]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
DstBlock "Sum4"
DstPort 1
}
}
Annotation {
Name "ECEN2060 Switched-mode Boost (step-up) DC-D"
"C averaged converter model\nwith input current control and efficiency model"
Position [449, 14]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output voltage"
Position [881, 99]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "inductor current"
Position [877, 32]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output current"
Position [59, 15]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "input voltage"
Position [55, 65]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Iref"
Position [33, 217]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Capacitor"
Position [709, 88]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Display
Name "Boost efficiency"
Ports [1]
Position [570, 240, 660, 270]
Decimation "1"
Lockdown off
}
Block {
BlockType Scope
Name "Boost scope"
Ports [3]
Position [600, 105, 630, 165]
Floating off
Location [246, 465, 995, 935]
Open off
NumInputPorts "3"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.018"
YMin "180~0.4~0.963"
YMax "220~0.6000000000000001~0.967"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Product
Name "Compute\nefficiency"
Ports [2, 1]
Position [735, 402, 765, 433]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "DC-AC\nscope"
Ports [5]
Position [885, 58, 925, 192]
NamePlacement "alternate"
Floating off
Location [482, 152, 1539, 932]
Open off
NumInputPorts "5"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
TimeRange "0.018"
YMin "-200~-10~0~0~0"
YMax "200~10~5~1~1000"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Display
Name "DC-AC Efficiency"
Ports [1]
Position [795, 405, 885, 435]
Decimation "1"
Lockdown off
}
Block {
BlockType SubSystem
Name "DC-AC Inverter"
Ports [2, 6]
Position [690, 61, 795, 214]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDescription "Averaged model of a switched-mode DC-AC inverte"
"r for single-phase grid-connected systems. Output current is in phase with th"
"e AC line voltage and has the RMS value set by the input reference Iref. Cond"
"uction losses are modeled by an output por series resistance. Switching losse"
"s are modeled by an input port current Isw. "
MaskPromptString "AC line RMS voltage|AC line frequency|Output po"
"rt series resistance|Switching loss current"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "Vrms=@1;f=@2;RL=@3;IQ=@4;"
MaskDisplay "text(0.5,0.75,'DC-AC','horizontalAlignment', 'c"
"enter');\ntext(0.5,0.6,'inverter','horizontalAlignment', 'center');\ntext(0.5"
",0.45,'(averaged)','horizontalAlignment', 'center');"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "120|60|0.8|0.04"
MaskTabNameString ",,,"
Port {
PortNumber 1
Name "vac"
PropagatedSignals "vac"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "iac"
PropagatedSignals "iref"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "iin"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "Duty"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "pin"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 6
Name "pout"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "DC-AC Inverter"
Location [368, 532, 1252, 970]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Vdc"
Position [20, 118, 50, 132]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Iref"
Position [15, 248, 45, 262]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [620, 95, 650, 125]
Value "IQ"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [475, 77, 505, 108]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "2D-1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Fcn
Name "Fcn"
Position [605, 45, 665, 75]
Expr "(u+1)/2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [175, 232, 205, 263]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "iref"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [630, 152, 660, 183]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -