📄 psbmosconv.mdl
字号:
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2e-06"
YMin "-1"
YMax "8"
DataFormat "Array"
}
Block {
BlockType Reference
Name "Io = 5A"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [658, 120, 682, 155]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib2/Electrical\nSources/AC Current Source"
SourceType "AC Current Source"
A "5"
P "90"
F "0.01"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Lr=0.1 uH"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [335, 16, 385, 64]
SourceBlock "powerlib2/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
a "1e3"
b "0.1e-6"
c "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType SubSystem
Name "More Info"
Ports []
Position [540, 365, 567, 390]
DropShadow on
TreatAsAtomicUnit off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More Info"
Location [51, 172, 760, 461]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "This example illustrates the use of MOSFET"
"\n in the Zero-Current-Quasi-Resonant Switch (ZCQRS) converter\n_____________"
"____"
Position [319, 52]
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Circuit Description"
Position [104, 107]
FontSize 14
FontWeight "bold"
}
Annotation {
Name "The MOSFET is used in a Zero-Current-Quasi-"
"Resonant Switch (ZCQRS) converter topology. \nIn this topology, the devi"
"ce current flows through the resonant tank (Lr, Cr), thus causing zero "
" \ncurrent turn off. "
" "
" \nThe load is modeled as an ideal current source "
"(Io). "
" \nThe MOSFET is driven by a 2 MHz pulse train with 20 % "
"duty cycle. \n\nNo"
"te: To avoid cascading two current sources, (MOSFET in series with Lr), a re"
"sistor Radd of \n10 kOhm is connected across Lr. "
" "
" "
Position [346, 182]
FontName "times"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Mosfet"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [205, 30, 245, 70]
SourceBlock "powerlib2/Power\nElectronics/Mosfet"
SourceType "Mosfet"
Ron "0.4"
Lon "1e-9"
Rd "0.3"
IC "0"
Rs "inf"
Cs "0"
PSBOutputType "10"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [154, 220, 221, 235]
Orientation "down"
NamePlacement "alternate"
ShowName off
Inputs "2"
}
Block {
BlockType SubSystem
Name "Pulse\nGenerator"
Ports [0, 1]
Position [145, 45, 175, 75]
TreatAsAtomicUnit off
MaskType "Pulse Generator"
MaskDescription "Pulse Generator"
MaskHelp "Pulse generator which ensures pulse transitions"
" are hit. Provides a vector of pulses when the height is entered as a vector."
" Unmask to see how it works."
MaskPromptString "Period (secs):|Duty cycle (% of period):|Amplit"
"ude:|Start time:"
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 "period=@1;duty=@2;amplitude=@3;start=@4;"
MaskInitialization "\n"
MaskDisplay "plot(0,0,100,100,[95,90,90,75,75,60,60,45,45,30"
",30,15,15,5],[25,25,75,75,25,25,75,75,25,25,75,75,25,25]); \n "
" "
" \n "
" "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1e-6|30|1|0"
System {
Name "Pulse\nGenerator"
Location [200, 343, 539, 534]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant1"
Position [40, 135, 60, 155]
Value "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [35, 83, 65, 107]
SineType "Time based"
Frequency "2*pi./period"
Phase "-2*pi*(start./period + duty/200 - 1/4)"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [35, 27, 65, 53]
Time "start"
After "amplitude"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch"
Position [120, 65, 155, 125]
Threshold "sin(pi*(0.5 - duty/100))"
}
Block {
BlockType Outport
Name "out1"
Position [250, 88, 280, 102]
InitialOutput "0"
}
Line {
SrcBlock "Step"
SrcPort 1
Points [20, 0; 0, 35]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "out1"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0; 20, 0]
DstBlock "Switch"
DstPort 2
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [265, 49, 295, 71]
InputPortWidth "2"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [485, 79, 515, 101]
InputPortWidth "2"
}
Block {
BlockType Reference
Name "State-plane\nTrajectory"
Ports [2]
Position [300, 162, 330, 193]
DropShadow on
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
xmin "-5"
xmax "50"
ymin "-10"
ymax "20"
st "-1"
}
Block {
BlockType Reference
Name "Subsystem7"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [435, 30, 455, 50]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [250, 295, 310, 325]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [575, 165, 635, 195]
VariableName "simout1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "U cr"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [325, 108, 350, 132]
Orientation "left"
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "1"
}
Block {
BlockType Reference
Name "U=20V"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [110, 160, 130, 195]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
V "24"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [439, 245, 471, 275]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground2"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [104, 240, 136, 270]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 5]
Branch {
DstBlock "I_MOS U_Cr "
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "U cr"
SrcPort 1
Points [-35, 0]
Branch {
DstBlock "State-plane\nTrajectory"
DstPort 1
}
Branch {
Points [-115, 0]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Selector1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "I_diode"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "Subsystem7"
SrcPort 1
Points [210, 0]
DstBlock "Io = 5A"
DstPort 1
}
Line {
SrcBlock "Diode"
SrcPort 1
DstBlock "Subsystem7"
DstPort enable
}
Line {
SrcBlock "Lr=0.1 uH"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 75]
Branch {
DstBlock "U cr"
DstPort 1
}
Branch {
DstBlock "Cr\n30nF"
DstPort 1
}
}
Branch {
DstBlock "Subsystem7"
DstPort 1
}
}
Line {
SrcBlock "Cr\n30nF"
SrcPort 1
Points [0, 5]
Branch {
Points [-25, 0; 0, -70]
DstBlock "U cr"
DstPort 2
}
Branch {
DstBlock "Ground1"
DstPort 1
}
}
Line {
SrcBlock "Io = 5A"
SrcPort 1
DstBlock "Ground"
DstPort 1
}
Line {
SrcBlock "Diode"
SrcPort 2
Points [0, -50]
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "output Ground1"
SrcPort 1
DstBlock "Diode"
DstPort 1
}
Line {
SrcBlock "Mosfet"
SrcPort 2
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Mosfet"
SrcPort 1
DstBlock "Lr=0.1 uH"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Mosfet"
DstPort 2
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [15, 0; 0, 35; -110, 0; 0, 90]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "State-plane\nTrajectory"
DstPort 2
}
}
Line {
SrcBlock "output Ground2"
SrcPort 1
DstBlock "U=20V"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "U=20V"
SrcPort 1
Points [0, -115]
DstBlock "Mosfet"
DstPort 1
}
Annotation {
Name "Double click on the More Info button (?) for de"
"tails"
Position [327, 393]
FontSize 14
}
Annotation {
Name "MOSFET in Zero-Current-Quasi-Resonant Converter"
Position [330, 370]
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -