Solar Module (pv)
A photovoltaic module that turns sunlight into current.
Group: Sources · Kind: {"kind":"pv"}
When to use it
Use it for solar inverters, maximum power point tracking and microgrids. Set nser and npar for a whole array instead of placing many modules.
Pins
| Pin | Domain | Meaning |
|---|---|---|
p |
electrical | Positive terminal |
n |
electrical | Negative terminal |
g |
signal | Sunlight in W/m² (an input signal); replaces irr when connected |
Common parameters
isc: Short-circuit current at standard test conditions (Default: 9.5)voc: Open-circuit voltage at standard test conditions (Default: 38)imp: Current at the maximum power point (Default: 9)vmp: Voltage at the maximum power point (Default: 31)irr: Sunlight on the module; the g pin replaces it when connected (Default: 1000)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
isc |
A | 9.5 | Short-circuit current at standard test conditions | |
voc |
V | 38 | Open-circuit voltage at standard test conditions | |
imp |
A | 9 | Current at the maximum power point | |
vmp |
V | 31 | Voltage at the maximum power point | |
irr |
W/m² | 1000 | Sunlight on the module; the g pin replaces it when connected | |
temp |
°C | 25 | Cell temperature | |
ns |
— | 60 | Cells in series inside the module | |
alphaIsc |
%/K | 0.05 | Change of short-circuit current with temperature | |
betaVoc |
%/K | -0.3 | Change of open-circuit voltage with temperature | |
nser |
— | 1 | Modules in series | |
npar |
— | 1 | Strings of modules in parallel |
Parameter descriptions are in English in both languages.
Use for: MPPT converters · Solar inverters · Whole arrays (nser, npar)
Not for: A fixed DC supply → dcVoltageSource
Formulas
| Formula | Equation | Source |
|---|---|---|
| Fill factor | FF = Vmp·Imp/(Voc·Isc) | Gray, The Physics of the Solar Cell, in Luque & Hegedus (eds.), Handbook of Photovoltaic Science and Engineering, 2nd ed. (2011), ch. 3 |
| Short-circuit current at G and T | Isc(G,T) = Isc·G/1000·(1 + α·(T − 25)) | Villalva, Gazoli & Filho, IEEE Trans. Power Electron. 24(5) (2009), pp. 1198-1208, temperature and irradiance dependence |
| Open-circuit voltage at T | Voc(T) = Voc·(1 + β·(T − 25)) | Villalva, Gazoli & Filho, IEEE Trans. Power Electron. 24(5) (2009), pp. 1198-1208, temperature dependence |
| Array power at standard test conditions | P = nser·npar·Vmp·Imp | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power) |
Quick check
Inputs:
isc: Short-circuit current = 9.5 A,iscvoc: Open-circuit voltage = 38 V,vocimp: Current at the maximum power point = 9 A,impvmp: Voltage at the maximum power point = 31 V,vmpirr: Sunlight = 1k W/m²,irrtemp: Cell temperature = 25 °C,tempalphaIsc: Temperature coefficient of isc = 50m %/K,alphaIscbetaVoc: Temperature coefficient of voc = -300m %/K,betaVocnser: Modules in series = 1 —,nsernpar: Strings in parallel = 1 —,npar
Outputs:
ff: Fill factor =vmp*imp/(voc*isc)—isct: Short-circuit current now =isc*irr/1000*(1 + alphaIsc/100*(temp - 25))Avoct: Open-circuit voltage now =voc*(1 + betaVoc/100*(temp - 25))Vpstc: Array power at standard conditions =nser*npar*vmp*impW
Model logic
- A photocurrent source, a diode and the series resistance rs make the model; there is no shunt resistance.
- Before the run the diode and rs are fitted so that the curve passes through isc, voc and the point (vmp, imp).
- The photocurrent follows the sunlight, and isc and voc follow the cell temperature by alphaIsc and betaVoc.
- The diode is solved by Newton's method, and the current of the part is the current out of p. Shading and bypass diodes are not modelled.
Model
The module is the single-diode model with a series resistance: a photocurrent source, a diode and rs, with no shunt resistance. Before the run, the diode and rs are fitted so that the curve passes exactly through the short-circuit current isc, the open-circuit voltage voc and the maximum power point (vmp, imp), and the power peaks at that point. The photocurrent grows in proportion to the sunlight. At another cell temperature, isc and voc change by alphaIsc and betaVoc. The diode is solved by Newton's method, so its current follows the exponential law exactly. The current of the part named like the module is the current out of p. Partial shading, bypass diodes and the reverse region are not modelled.
Common mistakes
- imp must be below isc, vmp below voc, and vmp more than half of voc. Other values are refused before the run.
- A module with nothing connected sits at its open-circuit voltage. Connect a load or a converter to draw power.
- Set ns to the cells in series. The run warns when the fitted diode looks unusual, which often means ns or a datasheet value is wrong.
Datasheet and sources
isc, voc, imp and vmp come from the electrical table at standard test conditions (1000 W/m², 25 °C). alphaIsc and betaVoc are the temperature coefficients of isc and voc in %/K, and ns is the number of cells. The default values are an illustrative 60-cell module, not a real product.
Example
Open the example with the command file.openExample and the name demo:pv.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.