From b0b1d51212ea41f0b490d731a0747914986b869c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gen=C3=ADs=20Calderer?= <33183260+genisott@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:23:59 +0100 Subject: [PATCH] Update thermal_model.py Correct the function compute_conductor_temperature. Stop dividing the temperature, and divide the current passed to the solver instead. --- linerate/models/thermal_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linerate/models/thermal_model.py b/linerate/models/thermal_model.py index fcf004c..5f5a588 100644 --- a/linerate/models/thermal_model.py +++ b/linerate/models/thermal_model.py @@ -262,12 +262,12 @@ def compute_conductor_temperature( Union[float, float64, ndarray[Any, dtype[float64]]] :math:`I~\left[\text{A}\right]`. The thermal rating. """ + n = self.span.num_conductors T = solver.compute_conductor_temperature( self.compute_heat_balance, - current=current, + current=current / n, min_temperature=min_temperature, max_temperature=max_temperature, tolerance=tolerance, ) - n = self.span.num_conductors - return T / n + return T