@@ -29,7 +29,7 @@ def test_buck_converter_example(self):
2929 # using the example from https://passive-components.eu/buck-converter-design-and-calculation/
3030 values = BuckConverterPowerPath ._calculate_parameters (
3131 Range .exact (12 + 0.4 ), Range .exact (3.3 + 0.4 ), Range .exact (500e3 ), Range .exact (1 ),
32- Range .exact (1 ), Range .exact (0.35 ), 1 , 0.0165 ,
32+ Range .exact (2 ), Range .exact (0.35 ), 1 , 0.0165 ,
3333 efficiency = Range .exact (1 )
3434 )
3535 self .assertAlmostEqual (values .dutycycle .upper , 0.298 , places = 3 )
@@ -38,7 +38,7 @@ def test_buck_converter_example(self):
3838 # the example uses a ripple current of 0.346 for the rest of the calculations
3939 values = BuckConverterPowerPath ._calculate_parameters (
4040 Range .exact (12 + 0.4 ), Range .exact (3.3 + 0.4 ), Range .exact (500e3 ), Range .exact (1 ),
41- Range .exact (1 ), Range .exact (0.346 ), 1 , 0.0165 ,
41+ Range .exact (2 ), Range .exact (0.346 ), 1 , 0.0165 ,
4242 efficiency = Range .exact (1 )
4343 )
4444 self .assertAlmostEqual (values .inductor_peak_currents .upper , 1.173 , places = 3 )
@@ -47,7 +47,7 @@ def test_buck_converter_example(self):
4747 def test_boost_converter (self ):
4848 values_ref = BoostConverterPowerPath ._calculate_parameters (
4949 Range .exact (5 ), Range .exact (10 ), Range .exact (100e3 ), Range .exact (0.5 ),
50- Range .exact (1 ), Range .exact (0.4 ), 0.01 , 0.001 ,
50+ Range .exact (2 ), Range .exact (0.4 ), 0.01 , 0.001 ,
5151 efficiency = Range .exact (1 )
5252 )
5353 self .assertEqual (values_ref .dutycycle , Range .exact (0.5 ))
@@ -58,7 +58,7 @@ def test_boost_converter(self):
5858 # test that component values are calculated for worst-case conversion
5959 values = BoostConverterPowerPath ._calculate_parameters (
6060 Range (5 , 8 ), Range (7 , 10 ), Range .exact (100e3 ), Range .exact (0.5 ),
61- Range .exact (1 ), Range .exact (0.4 ), 0.01 , 0.001 ,
61+ Range .exact (2 ), Range .exact (0.4 ), 0.01 , 0.001 ,
6262 efficiency = Range .exact (1 )
6363 )
6464 self .assertEqual (values_ref .inductance , values .inductance )
0 commit comments