From 49309756650186c5ba84f8956ab4e8d47ecfba00 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:18:31 +0100 Subject: [PATCH] Remove unused parameter in _fuentes_hconv --- pvlib/temperature.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pvlib/temperature.py b/pvlib/temperature.py index 53920ee8ab..14d67a168e 100644 --- a/pvlib/temperature.py +++ b/pvlib/temperature.py @@ -713,8 +713,7 @@ def ross(poa_global, temp_air, noct=None, k=None): return temp_air + k * poa_global -def _fuentes_hconv(tave, windmod, tinoct, temp_delta, xlen, tilt, - check_reynold): +def _fuentes_hconv(tave, windmod, temp_delta, xlen, tilt, check_reynold): # Calculate the convective coefficient as in Fuentes 1987 -- a mixture of # free, laminar, and turbulent convection. densair = 0.003484 * 101325.0 / tave # density @@ -836,7 +835,7 @@ def fuentes(poa_global, temp_air, wind_speed, noct_installed, module_height=5, # convective coefficient of top surface of module at NOCT windmod = 1.0 tave = (tinoct + 293.15) / 2 - hconv = _fuentes_hconv(tave, windmod, tinoct, tinoct - 293.15, xlen, + hconv = _fuentes_hconv(tave, windmod, tinoct - 293.15, xlen, surface_tilt, False) # determine the ground temperature ratio and the ratio of the total @@ -896,7 +895,7 @@ def fuentes(poa_global, temp_air, wind_speed, noct_installed, module_height=5, for j in range(10): # overall convective coefficient tave = (tmod + tamb) / 2 - hconv = convrat * _fuentes_hconv(tave, windmod, tinoct, + hconv = convrat * _fuentes_hconv(tave, windmod, abs(tmod-tamb), xlen, surface_tilt, True) # sky radiation coefficient (Equation 3)