Electric Converter
electric_converterCalculates buck, boost, and inverting buck-boost converter duty cycles, CCM/DCM ripple, small-ripple behavior, stresses, and losses from electrical and switching inputs.
Instructions
State-space averaged buck/boost/inverting buck-boost duty, CCM/DCM triangular ripple, stresses and losses; small-ripple model.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "electric_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Conduction requirement: auto selects CCM/DCM; ccm or dcm rejects incompatible load and inductance. | auto |
| topology | No | Power stage: buck, boost, or buck_boost (inverting output); a diode unless synchronous=true. | buck |
| dead_time | No | With synchronous=true: dead time per edge, e.g. '30 ns'; body diode (diode_drop) conducts, loss Vf*(Ipk+Imin)*t*f. | 0 s |
| fall_time | No | Switch turn-off voltage-current overlap duration, e.g. '30 ns'; must fit the switching period. | 0 s |
| rise_time | No | Switch turn-on voltage-current overlap duration, e.g. '20 ns'; triangular overlap estimate. | 0 s |
| diode_drop | No | Forward diode drop while it conducts, e.g. '0.6 V'; with synchronous=true only the body-diode drop in dead_time. | 0 V |
| inductance | No | Inductor value with units, e.g. '150 uH'; omit only when target_current_ripple sizes it. | |
| gate_charge | No | Gate charge per switching cycle with coulomb units, e.g. '30 nC'; sum of both FETs if synchronous=true. | 0 C |
| synchronous | No | True: a synchronous FET replaces the diode (see low_side_resistance, dead_time); below the CCM boundary it acts as diode emulation. | |
| gate_voltage | No | Gate-drive voltage paired with gate_charge, e.g. '10 V'; both must be positive or both zero. | 0 V |
| capacitor_esr | No | Output-capacitor series resistance with units, e.g. '20 mohm'; zero is ideal. | 0 ohm |
| input_voltage | No | Positive DC source voltage with units, e.g. '24 V'; supported 1e-6..1e6 V. | |
| output_current | No | Positive DC load-current magnitude with units, e.g. '5 A'; no-load operation is excluded. | |
| output_voltage | No | Positive output-voltage magnitude, e.g. '12 V'; buck_boost reports a negative signed output. | |
| switch_resistance | No | On-state MOSFET resistance Rds(on), e.g. '10 mohm'; the off-state is open. | 0 ohm |
| output_capacitance | No | Optional output capacitance with units, e.g. '470 uF'; needed for ripple and control-pole outputs. | |
| inductor_resistance | No | Inductor winding DC resistance, e.g. '30 mohm'; core and AC copper losses are excluded. | 0 ohm |
| low_side_resistance | No | With synchronous=true: Rds(on) of the synchronous (low-side) FET, e.g. '8 mohm'; replaces the diode drop in the off interval. | 0 ohm |
| switching_frequency | No | Fixed switching frequency with Hz units, e.g. '20 kHz'; supported 1e-3..1e9 Hz. | |
| target_output_ripple | No | Optional total output peak-to-peak ripple target, e.g. '50 mV'; sizes capacitance after the ESR allowance. | |
| target_current_ripple | No | Optional desired inductor peak-to-peak ripple in A; in DCM this is the peak current, e.g. '2 A'. | |
| reverse_recovery_charge | No | Diode hard-commutation reverse-recovery charge, e.g. '15 nC'; assumed zero recovery loss in DCM. | 0 C |