@@ -607,16 +607,16 @@ def sapm(module, poa_direct, poa_diffuse, temp_cell, airmass_absolute, aoi):
607
607
-------
608
608
A DataFrame with the columns:
609
609
610
- * Isc : Short-circuit current (A)
611
- * Imp : Current at the maximum-power point (A)
612
- * Voc : Open-circuit voltage (V)
613
- * Vmp : Voltage at maximum-power point (V)
614
- * Pmp : Power at maximum-power point (W)
615
- * Ix : Current at module V = 0.5Voc, defines 4th point on I-V
610
+ * i_sc : Short-circuit current (A)
611
+ * I_mp : Current at the maximum-power point (A)
612
+ * v_oc : Open-circuit voltage (V)
613
+ * v_mp : Voltage at maximum-power point (V)
614
+ * p_mp : Power at maximum-power point (W)
615
+ * i_x : Current at module V = 0.5Voc, defines 4th point on I-V
616
616
curve for modeling curve shape
617
- * Ixx : Current at module V = 0.5(Voc+Vmp), defines 5th point on
617
+ * i_xx : Current at module V = 0.5(Voc+Vmp), defines 5th point on
618
618
I-V curve for modeling curve shape
619
- * Ee : Effective irradiance
619
+ * effective_irradiance : Effective irradiance
620
620
621
621
Notes
622
622
-----
@@ -687,34 +687,34 @@ def sapm(module, poa_direct, poa_diffuse, temp_cell, airmass_absolute, aoi):
687
687
688
688
dfout = pd .DataFrame (index = Ee .index )
689
689
690
- dfout ['Isc ' ] = (
690
+ dfout ['i_sc ' ] = (
691
691
module ['Isco' ] * Ee * (1 + module ['Aisc' ]* (temp_cell - T0 )) )
692
692
693
- dfout ['Imp ' ] = ( module ['Impo' ] *
693
+ dfout ['i_mp ' ] = ( module ['Impo' ] *
694
694
(module ['C0' ]* Ee + module ['C1' ]* (Ee ** 2 )) *
695
695
(1 + module ['Aimp' ]* (temp_cell - T0 )) )
696
696
697
- dfout ['Voc ' ] = (( module ['Voco' ] +
697
+ dfout ['v_oc ' ] = (( module ['Voco' ] +
698
698
module ['#Series' ]* delta * np .log (Ee ) + Bvoco * (temp_cell - T0 ) )
699
699
.clip_lower (0 ))
700
700
701
- dfout ['Vmp ' ] = ( module ['Vmpo' ] +
701
+ dfout ['v_mp ' ] = ( module ['Vmpo' ] +
702
702
module ['C2' ]* module ['#Series' ]* delta * np .log (Ee ) +
703
703
module ['C3' ]* module ['#Series' ]* ((delta * np .log (Ee )) ** 2 ) +
704
704
Bvmpo * (temp_cell - T0 ) ).clip_lower (0 )
705
705
706
- dfout ['Pmp ' ] = dfout ['Imp ' ] * dfout ['Vmp ' ]
706
+ dfout ['p_mp ' ] = dfout ['i_mp ' ] * dfout ['v_mp ' ]
707
707
708
- dfout ['Ix ' ] = ( module ['IXO' ] *
708
+ dfout ['i_x ' ] = ( module ['IXO' ] *
709
709
(module ['C4' ]* Ee + module ['C5' ]* (Ee ** 2 )) *
710
710
(1 + module ['Aisc' ]* (temp_cell - T0 )) )
711
711
712
712
# the Ixx calculation in King 2004 has a typo (mixes up Aisc and Aimp)
713
- dfout ['Ixx ' ] = ( module ['IXXO' ] *
713
+ dfout ['i_xx ' ] = ( module ['IXXO' ] *
714
714
(module ['C6' ]* Ee + module ['C7' ]* (Ee ** 2 )) *
715
715
(1 + module ['Aisc' ]* (temp_cell - T0 )) )
716
716
717
- dfout ['Ee ' ] = Ee
717
+ dfout ['effective_irradiance ' ] = Ee
718
718
719
719
return dfout
720
720
0 commit comments