Skip to content

Commit

Permalink
Update thermal_model.py
Browse files Browse the repository at this point in the history
Correct the function compute_conductor_temperature. Stop dividing the temperature, and divide the current passed to the solver instead.
  • Loading branch information
genisott authored Nov 28, 2024
1 parent 2cd94db commit b0b1d51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linerate/models/thermal_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0b1d51

Please sign in to comment.