Buck Converter Example¶
This tutorial validates the simulation workflow for a buck topology using the built-in project template.
Objective¶
- Open the buck template.
- Adjust basic input/switching/load parameters.
- Run a transient simulation.
- Read
Vsw,Vout, and inductor current.
Steps¶
- Open
File → New from Template. - Select Buck Converter.
- Verify core blocks:
- Input source (
Vin) - Switching element (MOSFET)
- Freewheel diode
- Inductor (
L1) - Output capacitor (
Cout) - Load (
Rload) - Open
Simulation Settingsand start with: Stop time:10msStep size:2usOutput points:5000to10000- Transient robustness enabled
- Run with Run (
F5). - In viewer/scope, inspect:
V(SW)V(VOUT)I(L1)
What to Analyze¶
- SW node: high-frequency pulsed waveform.
- VOUT: stabilized average level with ripple.
- I(L1): triangular ramp (continuous or discontinuous mode depending on load/inductance).
Useful Adjustments¶
- High
VOUTripple: increaseCoutand/or switching frequency. - Excessive inductor ripple current: increase
L1. - Poor convergence: reduce
Step size, keep robustness enabled, and review extreme parameters.
Internal References¶
- Project examples:
examples/ - Detailed solver setup: Simulation Configuration