Plecs { Name "Flyback" Version "4.0" CircuitModel "ContStateSpace" StartTime "0.0" StopTime "1.0" Solver "dopri" MaxStep "1e-3" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AssertionAction "1" InitializationCommands "" InitialState "1" SystemState "" CodeGenParameterInlining "2" CodeGenInliningExceptions "AAAACwAAAAAA" CodeGenFloatingPointFormat "2" CodeGenIntegerWordSize "32" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "Generic" CodeGenTargetSettings "" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" ExternalModeSettings "" Schematic { Location [963, 662; 1340, 904] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Transformer Name "Tr1" Show off Position [190, 125] Direction right Flipped on Parameter { Variable "Windings" Value "[1 1]" Show off } Parameter { Variable "n" Value "[12 -3]" Show on } Parameter { Variable "Polarity" Value "+" Show off } Parameter { Variable "Lm" Value "inf" Show off } Parameter { Variable "im0" Value "0" Show off } } Component { Type Inductor Name "Lm" Show on Position [135, 120] Direction down Flipped on Parameter { Variable "L" Value "30e-6" Show on } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Capacitor Name "C1" Show off Position [290, 120] Direction down Flipped on Parameter { Variable "C" Value "100e-6" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type DCVoltageSource Name "V_d" Show on Position [30, 140] Direction down Flipped on Parameter { Variable "V" Value "32" Show on } } Component { Type Diode Name "D1" Show off Position [255, 90] Direction right Flipped on Parameter { Variable "Vf" Value "0" Show off } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Mosfet Name "MOSFET1" Show off Position [135, 185] Direction up Flipped off Parameter { Variable "Ron" Value "0.001" Show off } Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Resistor Name "R_LOAD" Show on Position [360, 120] Direction down Flipped off Parameter { Variable "R" Value "1" Show on } } Component { Type PulseGenerator Name "Pulse\nGenerator" Show off Position [80, 185] Direction right Flipped off Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "200e3" Show off } Parameter { Variable "DutyCycle" Value "0.5" Show on } Parameter { Variable "Delay" Value "0" Show off } } Connection { Type Wire SrcComponent "C1" SrcTerminal 2 Points [290, 150] Branch { Points [220, 150; 220, 135] DstComponent "Tr1" DstTerminal 4 } Branch { Points [360, 150] DstComponent "R_LOAD" DstTerminal 1 } } Connection { Type Wire SrcComponent "MOSFET1" SrcTerminal 2 Points [135, 225; 30, 225] DstComponent "V_d" DstTerminal 2 } Connection { Type Wire SrcComponent "D1" SrcTerminal 2 Points [290, 90] Branch { DstComponent "C1" DstTerminal 1 } Branch { Points [360, 90] DstComponent "R_LOAD" DstTerminal 2 } } Connection { Type Wire SrcComponent "Tr1" SrcTerminal 3 Points [220, 105; 220, 90] DstComponent "D1" DstTerminal 1 } Connection { Type Signal SrcComponent "Pulse\nGenerator" SrcTerminal 1 DstComponent "MOSFET1" DstTerminal 3 } Connection { Type Wire SrcComponent "Lm" SrcTerminal 1 Points [135, 100] Branch { Points [135, 60; 30, 60] DstComponent "V_d" DstTerminal 1 } Branch { Points [175, 100; 175, 105] DstComponent "Tr1" DstTerminal 1 } } Connection { Type Wire SrcComponent "Lm" SrcTerminal 2 Points [135, 145] Branch { DstComponent "MOSFET1" DstTerminal 1 } Branch { Points [160, 145; 160, 135] DstComponent "Tr1" DstTerminal 2 } } Annotation { Name "Single-output flyback converter" Position [125, 20] } } } DemoSignature "MPdOFDZVxglrkJzvE80HcUnl9+n1dfgj/160zXPVBtM="