📄 power_3levelvsc.mdl
字号:
"ent"
SourceType "Three-Phase VI Measurement"
ShowPortLabels on
VoltageMeasurement "phase-to-ground"
SetLabelV on
LabelV "Vabc_B1"
Vpu off
CurrentMeasurement "yes"
SetLabelI on
LabelI "Iabc_B1"
Ipu off
Pbase "100e6"
Vbase "500e3"
OutputType "Magnitude"
PhasorSimulation off
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Breaker"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [765, 38, 800, 72]
ForegroundColor "red"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Breaker"
SourceType "Breaker"
ShowPortLabels on
BreakerResistance "0.001"
InitialState "0"
SnubberResistance "1e6"
SnubberCapacitance "inf"
SwitchingTimes "[0.05]"
External off
Measurements "None"
MoreParameters off
NoBreakLoop off
}
Block {
BlockType Reference
Name "C1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [682, 80, 718, 105]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "C"
Resistance "[]"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "75000e-06"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "C2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [682, 175, 718, 200]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "C"
Resistance "[]"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "75000e-06"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Scope
Name "Ctrl_Signals"
Ports [3]
Position [185, 344, 220, 416]
Floating off
Location [448, 149, 1011, 658]
Open off
NumInputPorts "3"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.2"
YMin "0.2~-0.5~-0.3"
YMax "1~1.5~0.1"
SaveName "V_Load"
DataFormat "Array"
LimitDataPoints off
SampleInput on
SampleTime "Ts_Control"
}
Block {
BlockType SubSystem
Name "DC Regulator"
Ports [3, 1]
Position [395, 253, 470, 327]
ForegroundColor "blue"
BackgroundColor "lightBlue"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "DC Voltage Regulator"
MaskPromptString "DC voltage setpoint (V):"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Vdc_Ref=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "500"
System {
Name "DC Regulator"
Location [150, 581, 910, 872]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc"
Position [25, 53, 55, 67]
BackgroundColor "yellow"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc"
Position [25, 98, 55, 112]
BackgroundColor "yellow"
Port "2"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vdc"
Position [30, 143, 60, 157]
BackgroundColor "yellow"
Port "3"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType SubSystem
Name "Anti-aliasing\nFilters (7)"
Ports [3, 3]
Position [180, 35, 245, 175]
BackgroundColor "yellow"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Anti-aliasing (2nd order lowpass)"
MaskPromptString "Cut-off frequency (Hz):|Sample time:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Fc=@1;Ts=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "750|Ts_Power"
MaskTabNameString ","
System {
Name "Anti-aliasing\nFilters (7)"
Location [295, 108, 764, 755]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc"
Position [50, 108, 80, 122]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc "
Position [50, 348, 80, 362]
Port "2"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vdc "
Position [45, 538, 75, 552]
Port "3"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter"
Ports [1, 1]
Position [190, 25, 245, 65]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 2000 0.2]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter1"
Ports [1, 1]
Position [190, 95, 245, 135]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter2"
Ports [1, 1]
Position [190, 170, 245, 210]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter3"
Ports [1, 1]
Position [190, 270, 245, 310]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 2000 0.2]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter4"
Ports [1, 1]
Position [190, 340, 245, 380]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter5"
Ports [1, 1]
Position [190, 415, 245, 455]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter6"
Ports [1, 1]
Position [185, 525, 240, 565]
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "on"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize "off"
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse "off"
param1 "[1 5000 0.1]"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [125, 78, 130, 152]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [125, 323, 130, 397]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [305, 78, 310, 152]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [305, 323, 310, 397]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name " Vabc*"
Position [350, 108, 380, 122]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Iabc*"
Position [350, 348, 380, 362]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name " Vdc*"
Position [360, 538, 390, 552]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Iabc*"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "2nd-Order\nFilter4"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [40, 0]
DstBlock "2nd-Order\nFilter5"
DstPort 1
}
Line {
SrcBlock "2nd-Order\nFilter5"
SrcPort 1
Points [40, 0]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "2nd-Order\nFilter4"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "2nd-Order\nFilter3"
SrcPort 1
Points [40, 0]
DstBlock "Mux1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -