I've been looking for mathematical models for photovoltaic cells. Most of the references I've found use the following circuit to the model the behavior:
Particularly, the diode current is modeled with the following equation:
$$ I_D = I_0\left( e^\frac{qV_{D}}{nkT} - 1 \right) $$
Regarding the reverse saturation current of the diode, almost all references I've found use the following equation:
$$ I_0 = I_{0,ref} \left( \frac{T}{T_{ref}} \right)^3 e^{\frac{qE_{g}}{nk}\left(\frac{1}{T_{ref}}-\frac{1}{T}\right)} $$
Analyzing the exponential in the equation, there seems to be a mistake because the resulting term inside is not dimensionless. Considering that q is measured in C, Eg in eV, k in J/K, T in K and n is dimensionless, the resulting term inside the exponent would have dimension C (Coulomb).
So far I've only found one reference that uses a different version of the previous equation, with a dimensionless term inside the exponent:
$$ I_0 = I_{0,ref} \left( \frac{T}{T_{ref}} \right)^3 e^{\frac{E_{g}}{k}\left(\frac{1}{T_{ref}}-\frac{1}{T}\right)} $$
What would be the correct equation for the diode saturation current in this case? Most references use the first one, but doing the dimensional analysis it seems to be incorrect. Am I missing or misunderstanding some important detail?