pvlib.pvsystem.i_from_v¶
-
pvlib.pvsystem.
i_from_v
(resistance_shunt, resistance_series, nNsVth, voltage, saturation_current, photocurrent)[source]¶ Calculates current from voltage per Eq 2 Jain and Kapoor 2004 [1].
Parameters: resistance_shunt : numeric
Shunt resistance in ohms under desired IV curve conditions. Often abbreviated
Rsh
.resistance_series : numeric
Series resistance in ohms under desired IV curve conditions. Often abbreviated
Rs
.nNsVth : numeric
The product of three components. 1) The usual diode ideal factor (n), 2) the number of cells in series (Ns), and 3) the cell thermal voltage under the desired IV curve conditions (Vth). The thermal voltage of the cell (in volts) may be calculated as
k*temp_cell/q
, where k is Boltzmann’s constant (J/K), temp_cell is the temperature of the p-n junction in Kelvin, and q is the charge of an electron (coulombs).voltage : numeric
The voltage in Volts under desired IV curve conditions.
saturation_current : numeric
Diode saturation current in amperes under desired IV curve conditions. Often abbreviated
I_0
.photocurrent : numeric
Light-generated current (photocurrent) in amperes under desired IV curve conditions. Often abbreviated
I_L
.Returns: current : np.array
References
[1] A. Jain, A. Kapoor, “Exact analytical solutions of the parameters of real solar cells using Lambert W-function”, Solar Energy Materials and Solar Cells, 81 (2004) 269-277.