boostson.mdl
来自「This is the model of boost converter. Th」· MDL 代码 · 共 1,185 行 · 第 1/3 页
MDL
1,185 行
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/Controlled Voltage Source"
SourceType "Controlled Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Initialize on
Source_Type "DC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Diode"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [225, 170, 280, 210]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Ron "0.001 "
Lon "0"
Vf "0.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [319, 335, 341, 360]
Orientation "down"
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Icikis"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [315, 178, 340, 202]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Ideal Switch"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [165, 225, 205, 280]
Orientation "down"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Ron "0.001"
Lon "0"
IC "0"
Rs "1e5"
Cs "inf"
Measurements off
}
Block {
BlockType Reference
Name "L\n0.4mH"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [90, 176, 160, 204]
Orientation "left"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RL"
Resistance "0.2"
Inductance "0.4e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "4700e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "R1\n33"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [346, 215, 374, 285]
Orientation "down"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "22"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "4700e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Vcikis"
Ports [0, 1, 0, 0, 0, 2]
Position [525, 238, 550, 262]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Outport
Name "Io"
Position [500, 118, 530, 132]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Vo"
Position [595, 243, 625, 257]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
LineType "Connection"
SrcBlock "C2\n470uF"
SrcPort LConn1
Points [0, -5]
Branch {
ConnectType "DEST_SRC"
Points [30, 0]
DstBlock "Vcikis"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [-55, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "C2\n47uF1"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [-65, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "R1\n33"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Icikis"
SrcPort RConn1
Points [5, 0]
}
}
}
}
Line {
LineType "Connection"
SrcBlock "C2\n470uF"
SrcPort RConn1
Points [-30, 0]
Branch {
ConnectType "DEST_SRC"
Points [-25, 0]
Branch {
ConnectType "DEST_DEST"
Points [360, 300; 65, 0]
Branch {
ConnectType "SRC_SRC"
Points [-30, 0]
Branch {
ConnectType "DEST_SRC"
Points [-145, 0]
Branch {
ConnectType "DEST_SRC"
Points [0, 90]
DstBlock "Controlled Voltage Source"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Ideal Switch"
DstPort RConn1
}
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Ground"
DstPort LConn1
}
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "R1\n33"
SrcPort RConn1
Points [0, 0]
}
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "C2\n47uF1"
SrcPort RConn1
Points [0, 0]
}
}
Branch {
ConnectType "DEST_SRC"
Points [60, 0]
DstBlock "Vcikis"
DstPort LConn2
}
}
Line {
LineType "Connection"
SrcBlock "Controlled Voltage Source"
SrcPort RConn1
Points [0, -5; -5, 0; 0, -120]
DstBlock "L\n0.4mH"
DstPort RConn1
}
Line {
LineType "Connection"
Points [195, 190; 15, 0]
DstBlock "Diode"
DstPort LConn1
Branch {
ConnectType "SRC_DEST"
SrcBlock "L\n0.4mH"
SrcPort LConn1
Points [20, 0]
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Ideal Switch"
SrcPort LConn1
Points [0, -20]
}
}
Line {
LineType "Connection"
SrcBlock "Icikis"
SrcPort LConn1
DstBlock "Diode"
DstPort RConn1
}
Line {
SrcBlock "Icikis"
SrcPort 1
Points [140, 0]
DstBlock "Io"
DstPort 1
}
Line {
SrcBlock "Vcikis"
SrcPort 1
DstBlock "Vo"
DstPort 1
}
Line {
SrcBlock "d"
SrcPort 1
DstBlock "Ideal Switch"
DstPort 1
}
Line {
SrcBlock "Vi"
SrcPort 1
Points [5, 0; 0, 140]
DstBlock "Controlled Voltage Source"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Io"
Position [605, 208, 635, 222]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Vo"
Position [700, 333, 730, 347]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "d"
SrcPort 1
Points [0, 35]
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [150, 0]
DstBlock "Io"
DstPort 1
}
Line {
SrcBlock "Vi"
SrcPort 1
Points [235, 0]
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [0, 20]
DstBlock "Vo"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?