@@ -494,6 +494,40 @@ def test_PVSystem_faiman_celltemp(mocker):
494494 assert_allclose (out , 56.4 , atol = 1e-1 )
495495
496496
497+ def test_PVSystem_faiman_rad_celltemp (mocker ):
498+ # default values (need to account for a certain ir_down and adjust u0, u1)
499+ ir_down = None
500+ u0 , u1 = 25.0 , 6.84
501+ sky_view = 1.0
502+ emissivity = 0.88
503+
504+ temp_model_params = {'ir_down' : ir_down , 'u0' : u0 , 'u1' : u1 ,
505+ 'sky_view' : sky_view , 'emissivity' : emissivity }
506+ system = pvsystem .PVSystem (temperature_model_parameters = temp_model_params )
507+ mocker .spy (temperature , 'faiman_rad' )
508+ temps = 25
509+ irrads = 1000
510+ winds = 1
511+ out = system .get_cell_temperature (irrads , temps , winds , model = 'faiman_rad' )
512+ temperature .faiman_rad .assert_called_once_with (irrads , temps , winds , u0 , u1 ,
513+ sky_view , emissivity )
514+ assert_allclose (out , 56.4 , atol = 1e-1 )
515+
516+
517+ def test_PVSystem_ross_celltemp (mocker ):
518+ # example value
519+ k = 0.0208 # free-standing system
520+
521+ temp_model_params = {'k' : k }
522+ system = pvsystem .PVSystem (temperature_model_parameters = temp_model_params )
523+ mocker .spy (temperature , 'ross' )
524+ temps = 25
525+ irrads = 1000
526+ out = system .get_cell_temperature (irrads , temps , model = 'ross' )
527+ temperature .faiman_rad .assert_called_once_with (irrads , temps , k )
528+ assert_allclose (out , 45.8 , atol = 1e-1 )
529+
530+
497531def test_PVSystem_noct_celltemp (mocker ):
498532 poa_global , temp_air , wind_speed , noct , module_efficiency = (
499533 1000. , 25. , 1. , 45. , 0.2 )
0 commit comments