File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ def generate(self) -> None:
608608
609609 self .inductor = self .Block (Inductor (
610610 inductance = buck_values .inductance .intersect (boost_values .inductance ) * Henry ,
611- current = buck_values .inductor_peak_currents .hull (buck_values .inductor_peak_currents ),
611+ current = buck_values .inductor_peak_currents .hull (boost_values .inductor_peak_currents ),
612612 frequency = self .frequency
613613 ))
614614
@@ -620,7 +620,9 @@ def generate(self) -> None:
620620 self .assign (self .actual_inductor_current_ripple , buck_actual_ripple .hull (boost_actual_ripple ))
621621
622622 self .connect (self .switch_in , self .inductor .a )
623- dc_current_range = self .output_current / (1 - boost_values .effective_dutycycle .upper ) # DC range at worst case boost
623+
624+ # full range across all modes
625+ dc_current_range = self .output_current / Range (1 , (1 - boost_values .effective_dutycycle .upper ))
624626 self .assign (self .actual_inductor_current , dc_current_range + (self .actual_inductor_current_ripple .upper () / 2 ))
625627 self .connect (self .switch_out , self .inductor .b )
626628 self .assign (self .actual_avg_current_rating , (0 , self .current_limits .intersect (self .inductor .actual_current_rating ).upper () -
You can’t perform that action at this time.
0 commit comments