pvstring

This module contains the PVstring class.

PVstring

class pvmismatch.pvmismatch_lib.pvstring.PVstring(numberMods=10, pvmods=None, pvconst=<PVconstants(npts=101)>)

A class for PV strings.

Parameters:
  • numberMods – number of modules in string
  • pvmods (list, PVmodule) – either a list of modules, an instance of PVmodule [Optional]
  • pvconst – a configuration constants object
calcString()

Calculate string I-V curves. Returns (Istring, Vstring, Pstring) : tuple of numpy.ndarray of float

plotStr()

Plot string I-V curves. Returns strPlot : matplotlib.pyplot figure

setSuns(Ee)

Set irradiance on cells in modules of string in system. If Ee is ... ... scalar, then sets the entire string to that irradiance. ... a dictionary, then each key refers to a module in the string, and the corresponding value are passed to setSuns()

Parameters:Ee (dict or float) – irradiance [suns]

For Example:

Ee={0: {'cells': (1,2,3), 'Ee': (0.9, 0.3, 0.5)}}  # set module 0
Ee=0.91  # set all modules to 0.91 suns
Ee={12: 0.77}  # set module with index 12 to 0.77 suns
Ee={8: [0.23, (0, 1, 2)], 7: [(0.45, 0.35), (71, 72)]}
# set module 8, cells 0, 1 and 2 to 0.23 suns, then set module 7, cell
#   71 to 0.45 suns and module 72 to 0.35 suns.
setTemps(Tc)

Set temperature on cells in modules of string in system. If Tc is ... ... scalar, then sets the entire string to that temperature. ... a dictionary, then each key refers to a module in the string, and the corresponding value are passed to setTemps()

Parameters:Tc (dict or float) – temperature [K]

For Example:

Tc={0: {'cells': (1,2,3), 'Tc': (323.15, 348.15, 373.15)}}  # set module 0
Tc=323.15  # set all modules to 323.15K (50°C)
Tc={12: 348.15}  # set module with index 12 to 348.15K (75°C)