Skip to content

Commit f3fd7d6

Browse files
committed
Update AbstractPowerConverters.py
1 parent 890e4fa commit f3fd7d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

edg/abstract_parts/AbstractPowerConverters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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() -

0 commit comments

Comments
 (0)