📄 cbldcm_8_2_ok_e3.mdl
字号:
freq "0"
mesure "Current"
PSBOutputType "11"
}
Block {
BlockType Reference
Name "CCSA2"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 2]
Position [450, 124, 485, 151]
Orientation "left"
SourceBlock "powerlib2/Electrical\nSources/Controlled Cu"
"rrent Source"
SourceType "Controlled Current Source"
initsrc off
srctyp "AC"
ia "0"
iph "0"
freq "0"
mesure "Current"
PSBOutputType "11"
}
Block {
BlockType Reference
Name "CCSA3"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 2]
Position [450, 189, 480, 216]
Orientation "left"
SourceBlock "powerlib2/Electrical\nSources/Controlled Cu"
"rrent Source"
SourceType "Controlled Current Source"
initsrc off
srctyp "AC"
ia "0"
iph "0"
freq "0"
mesure "Current"
PSBOutputType "11"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [565, 88, 570, 192]
Orientation "left"
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "R1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [300, 18, 360, 42]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "100000"
b "0"
c "inf"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "R2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [300, 88, 360, 112]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "100000"
b "0"
c "inf"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "R3"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [300, 158, 360, 182]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "100000"
b "0"
c "inf"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [265, 20, 285, 40]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [375, 20, 395, 40]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [270, 90, 290, 110]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector3"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [375, 90, 395, 110]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector4"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [265, 160, 285, 180]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector5"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [380, 160, 400, 180]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector6"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [395, 160, 415, 180]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "T connector7"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [395, 90, 415, 110]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Universal Bridge"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 3]
Position [110, 21, 175, 129]
SourceBlock "powerlib2/Power\nElectronics/Universal Brid"
"ge"
SourceType "Universal Bridge"
arms "3"
confi "ABC as output terminals"
injcc "1e5"
cf "1e-6"
device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
VFs "[ 0 0 ]"
Vf "0"
gtoparameters "[ 10e-6 , 20e-6 ]"
igbtparameters "[ 1e-6 , 2e-6 ]"
mesure "All voltages and currents"
PSBOutputType "111"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [295, 288, 325, 317]
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 [295, 343, 325, 372]
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 [295, 398, 325, 427]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "Voltage Measurement3"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [455, 243, 485, 272]
AncestorBlock "powerlib2/Measurements/Voltage Measurement"
CopyFcn "powericon('psblcfmeas',gcb,1)"
LoadFcn "powericon('psblcfmeas',gcb)"
ModelCloseFcn "powericon('loadsavedata',gcs,'close')"
InitFcn "powericon('checksum',bdroot)"
TreatAsAtomicUnit off
MaskType "Voltage Measurement"
MaskDescription "Ideal voltage measurement."
MaskHelp "web(psbhelp);"
MaskPromptString "Phasor simulation|Output signal :|Output ty"
"pe [1=PSB 0=simulink output]|Equivalent circuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-"
"Angle|Magnitude),edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,off,on,on"
MaskVisibilityString "off,on,off,off"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBOutput"
"Type=@3;PSBequivalent=@4;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelect"
"ion = 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelecti"
"on =[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputS"
"election =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n O"
"utputSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Ph"
"asorSimulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = No"
"rmalMode;\nend\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|Magnitude|0|1"
System {
Name "Voltage Measurement3"
Location [191, 324, 760, 455]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "+"
Position [15, 20, 35, 40]
FontSize 16
}
Block {
BlockType Inport
Name "-"
Position [15, 70, 35, 90]
FontSize 16
Port "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [385, 51, 390, 109]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Phasor Measurements"
Ports [1, 1, 1]
Position [255, 53, 360, 77]
BackgroundColor "green"
SourceBlock "powerlib2/Measurements/Voltage Measurem"
"ent/Phasor Measurements"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [415, 58, 480, 102]
Elements "SelectionMode"
InputPortWidth "length(OutputSelection)+1"
}
Block {
BlockType Constant
Name "Simulation method"
Position [250, 15, 360, 35]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
ShowName off
Value "PhasorSimulation"
}
Block {
BlockType Terminator
Name "Terminator"
Position [75, 15, 100, 45]
}
Block {
BlockType Terminator
Name "Terminator1"
Position [75, 65, 100, 95]
}
Block {
BlockType SubSystem
Name "source"
Ports [0, 1]
Position [135, 54, 205, 76]
TreatAsAtomicUnit off
MaskInitialization "pss=powericon('loadsavedata','cbldcm_8_"
"2_ok_e3','load');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwitch=0;"
"Ts=0;YSwitchCurrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch"
"=pss.Rswitch;TypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent"
";end"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "source"
Location [442, 172, 1084, 578]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "GTO-IGBT Bridge"
Ports [1, 3]
Position [335, 229, 390, 261]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "GTO-IGBT Bridge"
Location [148, 105, 915, 763]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [17, 130, 43, 150]
Orientation "down"
}
Block {
BlockType Demux
Name "Demux V"
Ports [1, 1]
Position [95, 141, 100, 419]
BackgroundColor "black"
Outputs "1"
}
Block {
BlockType From
Name "From1"
Position [50, 30, 215, 60]
GotoTag "tp080395"
}
Block {
BlockType Mux
Name "MuxItail"
Ports [1, 1]
Position [580, 141, 585, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "MuxStatus"
Ports [1, 1]
Position [465, 141, 470, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "MuxVf"
Ports [1, 1]
Position [685, 141, 690, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [19, 185, 41, 225]
Orientation "down"
Elements "[1 2 3 4 5 6]"
InputPortWidth "10"
}
Block {
BlockType SubSystem
Name "model1"
Ports [2, 3]
Position [250, 30, 315, 60]
BackgroundColor "lightBlue"
DropShadow on
AncestorBlock "powerlib_models/Continuous/GTO-IG"
"BT Bridge"
TreatAsAtomicUnit off
MaskType "GTO & IGBT Bridge Logic"
MaskDescription "Generates the switch status ( 0 o"
"r 1) and the tail currents for a forced-commutated two- level bridge using GT"
"O/Diode or IGBT/Diode pairs.\nSpecify 3 arms (6 switches) for 3 phase bridge"
", 2 arms for 4 switches, or 1 arm.\nTo turn-off the tail current, specify Tf="
"0 and Tt=0."
MaskPromptString "Number of bridge arms (1,2 or 3)|"
"Curent 10% fall time Tf (s) :|Current tail time Tt (s) :|Snubber Capacitance "
"Cs (F):|Forward voltages [ Vf Vfd ]|Device resistances"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -