@@ -260,8 +260,8 @@ def physicaliam(K, L, n, aoi):
260
260
return IAM
261
261
262
262
263
- def calcparams_desoto (S , temp_cell , alpha_isc , module_parameters , EgRef ,
264
- dEgdT , M = 1 , Sref = 1000 , Tref = 25 ):
263
+ def calcparams_desoto (poa_global , temp_cell , alpha_isc , module_parameters ,
264
+ EgRef , dEgdT , M = 1 , irrad_ref = 1000 , temp_ref = 25 ):
265
265
'''
266
266
Applies the temperature and irradiance corrections to
267
267
inputs for singlediode.
@@ -275,7 +275,7 @@ def calcparams_desoto(S, temp_cell, alpha_isc, module_parameters, EgRef,
275
275
276
276
Parameters
277
277
----------
278
- S : float or Series
278
+ poa_global : float or Series
279
279
The irradiance (in W/m^2) absorbed by the module.
280
280
281
281
temp_cell : float or Series
@@ -317,9 +317,7 @@ def calcparams_desoto(S, temp_cell, alpha_isc, module_parameters, EgRef,
317
317
DataFrame of dEgdT values corresponding to each input condition (this
318
318
may be useful if dEgdT is a function of temperature).
319
319
320
- Other Parameters
321
- ----------------
322
- M : float or DataFrame (optional, Default=1)
320
+ M : float or Series (optional, default=1)
323
321
An optional airmass modifier, if omitted, M is given a value of 1,
324
322
which assumes absolute (pressure corrected) airmass = 1.5. In this
325
323
code, M is equal to M/Mref as described in [1] (i.e. Mref is assumed
@@ -329,33 +327,33 @@ def calcparams_desoto(S, temp_cell, alpha_isc, module_parameters, EgRef,
329
327
>>> M = np.polyval([-0.000126, 0.002816, -0.024459, 0.086257, 0.918093],
330
328
... AMa) # doctest: +SKIP
331
329
332
- M may be a DataFrame .
330
+ M may be a Series .
333
331
334
- Sref : float (optional, Default=1000)
335
- Optional reference irradiance in W/m^2. If omitted, a value of
336
- 1000 is used.
332
+ irrad_ref : float (optional, default=1000)
333
+ Reference irradiance in W/m^2.
337
334
338
- Tref : float (Optional, Default=25)
339
- Optional reference cell temperature in C. If omitted, a value of
340
- 25 C is used.
335
+ temp_ref : float (optional, default=25)
336
+ Reference cell temperature in C.
341
337
342
338
Returns
343
339
-------
344
- IL : float or DataFrame
340
+ Tuple of the following results:
341
+
342
+ photocurrent : float or Series
345
343
Light-generated current in amperes at irradiance=S and
346
344
cell temperature=Tcell.
347
345
348
- I0 : float or DataFrame
346
+ saturation_current : float or Series
349
347
Diode saturation curent in amperes at irradiance
350
348
S and cell temperature Tcell.
351
349
352
- Rs : float
350
+ resistance_series : float
353
351
Series resistance in ohms at irradiance S and cell temperature Tcell.
354
352
355
- Rsh : float or DataFrame
353
+ resistance_shunt : float or Series
356
354
Shunt resistance in ohms at irradiance S and cell temperature Tcell.
357
355
358
- nNsVth : float or DataFrame
356
+ nNsVth : float or Series
359
357
Modified diode ideality factor at irradiance S and cell temperature
360
358
Tcell. Note that in source [1] nNsVth = a (equation 2). nNsVth is the
361
359
product of the usual diode ideality factor (n), the number of
@@ -456,17 +454,17 @@ def calcparams_desoto(S, temp_cell, alpha_isc, module_parameters, EgRef,
456
454
Rs_ref = module_parameters ['R_s' ]
457
455
458
456
k = 8.617332478e-05
459
- Tref_K = Tref + 273.15
457
+ Tref_K = temp_ref + 273.15
460
458
Tcell_K = temp_cell + 273.15
461
459
462
460
E_g = EgRef * (1 + dEgdT * (Tcell_K - Tref_K ))
463
461
464
462
nNsVth = a_ref * (Tcell_K / Tref_K )
465
463
466
- IL = S / Sref * M * (IL_ref + alpha_isc * (Tcell_K - Tref_K ))
464
+ IL = poa_global / irrad_ref * M * (IL_ref + alpha_isc * (Tcell_K - Tref_K ))
467
465
I0 = ( I0_ref * ((Tcell_K / Tref_K ) ** 3 ) *
468
466
(np .exp (EgRef / (k * (Tref_K )) - (E_g / (k * (Tcell_K ))))) )
469
- Rsh = Rsh_ref * (Sref / S )
467
+ Rsh = Rsh_ref * (irrad_ref / poa_global )
470
468
Rs = Rs_ref
471
469
472
470
return IL , I0 , Rs , Rsh , nNsVth
0 commit comments