ivcurves.precise.lambert_i_from_v#
- ivcurves.precise.lambert_i_from_v(v, il, io, rs, rsh, n, vth, ns)#
Given a voltage, calculates the associated current using the Lambert W function.
- Parameters:
v (numeric) – Voltage [V]
il (numeric) – Light-generated current \(I_L\) (photocurrent) [A]
io (numeric) – Diode saturation \(I_0\) current under desired IV curve conditions. [A]
rs (numeric) – Series resistance \(R_s\) under desired IV curve conditions. [ohm]
rsh (numeric) – Shunt resistance \(R_{sh}\) under desired IV curve conditions. [ohm]
n (numeric) – Diode ideality factor \(n\)
vth (numeric) – Thermal voltage of the cell \(V_{th}\) [V] The thermal voltage of the cell (in volts) may be calculated as \(k_B T_c / q\), where \(k_B\) is Boltzmann’s constant (J/K), \(T_c\) is the temperature of the p-n junction in Kelvin, and \(q\) is the charge of an electron (coulombs).
ns (numeric) – Number of cells in series \(N_s\)
- Returns:
Current associated to given voltage via the single diode equation.
- Return type:
mpmath float
Notes
See
pvlib.pvsystem.singlediode()
for original function. This implemention differs only in that it does not accept Series as inputs and can take mpmath floats as inputs.