Plecs { Name "buck_avg" Version "4.0" CircuitModel "ContStateSpace" StartTime "0.0" StopTime "1.0" Solver "dopri" MaxStep "1e-5" 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 [453, 382; 861, 621] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Reference SrcComponent "Components/Electrical/Power Modules/Buck1" Name "Buck1" Show on Position [205, 140] Direction up Flipped off Frame [-20, -50; 20, 50] LabelPosition [-5, 0] LabelAlign right Parameter { Variable "Configuration" Value "2" Show off } Terminal { Type Input Position [-20, -30] Direction left } Terminal { Type Port Position [0, -55] Direction up } Terminal { Type Port Position [0, 55] Direction down } Terminal { Type Port Position [25, 0] Direction right } } Component { Type DCVoltageSource Name "V_d" Show on Position [125, 155] Direction down Flipped on Parameter { Variable "V" Value "8" Show off } } Component { Type PulseGenerator Name "Pulse\nGenerator" Show off Position [60, 35] Direction right Flipped off Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "50e3" Show on } Parameter { Variable "DutyCycle" Value "0.75" Show on } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Inductor Name "L" Show on Position [255, 140] Direction left Flipped off Parameter { Variable "L" Value "20e-6" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Capacitor Name "C" Show on Position [305, 170] Direction down Flipped on Parameter { Variable "C" Value "10e-6" Show off } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Resistor Name "R_load" Show on Position [345, 165] Direction up Flipped off Parameter { Variable "R" Value "0.5" Show off } } Component { Type Reference SrcComponent "Components/Control/Filters/Periodic Average" Name "Periodic Average" Show on Position [125, 35] Direction up Flipped off Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "T_average" Value "0.001" Show off } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 0] Direction left } } Connection { Type Wire SrcComponent "V_d" SrcTerminal 1 Points [125, 85] DstComponent "Buck1" DstTerminal 2 } Connection { Type Wire SrcComponent "Buck1" SrcTerminal 4 DstComponent "L" DstTerminal 1 } Connection { Type Wire SrcComponent "C" SrcTerminal 1 Points [305, 140] Branch { DstComponent "L" DstTerminal 2 } Branch { Points [345, 140] DstComponent "R_load" DstTerminal 1 } } Connection { Type Wire SrcComponent "V_d" SrcTerminal 2 Points [125, 195; 205, 195] Branch { DstComponent "Buck1" DstTerminal 3 } Branch { Points [305, 195] Branch { Points [345, 195] DstComponent "R_load" DstTerminal 2 } Branch { DstComponent "C" DstTerminal 2 } } } Connection { Type Signal SrcComponent "Pulse\nGenerator" SrcTerminal 1 DstComponent "Periodic Average" DstTerminal 2 } Connection { Type Signal SrcComponent "Periodic Average" SrcTerminal 1 Points [170, 35] DstComponent "Buck1" DstTerminal 1 } } } DemoSignature "hxN8ZELADE6gsuDH/M8PLaAvSx4qTgZa0XBnKz6xvhQ="