-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from nzweibaum/master
add quadratic term to breakdown and add new contrib folder
- Loading branch information
Showing
3 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
""" | ||
This script uses default Tetris module configuration and cell parameters to | ||
calculate performance and generate IV and PV curves. | ||
""" | ||
|
||
from pvmismatch import * | ||
import numpy as np | ||
from matplotlib import pyplot as plt | ||
|
||
if __name__ == "__main__": | ||
|
||
# Model parameters | ||
NPTS=5000 # Because of the high cell breakdown voltage, NPTS must be >1000 | ||
|
||
# Cell parameters | ||
RS = 0.0181123 # [ohm] series resistance | ||
RSH = 58.082 # [ohm] shunt resistance | ||
ISAT1_T0 = 2.9885E-11 # [A] diode one saturation current | ||
ISAT2 = 1.6622E-07 # [A] diode two saturation current | ||
ISC0_T0 = 1.437 # [A] reference short circuit current | ||
ARBD = 9.0E-4 # reverse breakdown coefficient 1 | ||
BRBD = -0.056 # reverse breakdown coefficient 2 | ||
VRBD_ = -25.1 # [V] reverse breakdown voltage | ||
NRBD = 4.0 # reverse breakdown exponent | ||
EG = 1.166 # [eV] band gap of cSi | ||
ALPHA_ISC = 0.0003551 # [1/K] short circuit current temperature coefficient | ||
TCELL = 298.15 # [K] cell temperature | ||
CELLAREA = np.float64(38.064) # [cm^2] cell area used for efficiency calculation | ||
|
||
# Module parameters | ||
VBYPASS = np.float64(-0.885) # [V] trigger voltage of bypass diode | ||
NUMBERCOLS = 6 # number of hypercells per module | ||
|
||
# System parameters | ||
NUMBERMODS = 1 # number of modules per string | ||
NUMBERSTRS = 1 # number of strings in parallel | ||
|
||
# System definition | ||
tetrisCell = pvcell.PVcell(Rs=RS, Rsh=RSH, Isat1_T0=ISAT1_T0, Isat2=ISAT2, | ||
Isc0_T0=ISC0_T0, aRBD=ARBD, VRBD=VRBD_, bRBD=BRBD, | ||
nRBD=NRBD, Eg=EG, alpha_Isc=ALPHA_ISC, | ||
Tcell=TCELL) | ||
tetrisModule = pvmodule.PVmodule(cell_pos=pvmodule.PCT492, pvcells=tetrisCell, | ||
Vbypass=VBYPASS, cellArea=CELLAREA) # Tetris module with no cross-tiling | ||
tetrisSystem = pvsystem.PVsystem(pvconst=pvconstants.PVconstants(npts=NPTS), | ||
pvmods=tetrisModule, numberStrs=NUMBERSTRS, numberMods=NUMBERMODS) | ||
|
||
print 'Imp = ' + str(tetrisSystem.Imp) + ' A' | ||
print 'Vmp = ' + str(tetrisSystem.Vmp) + ' V' | ||
print 'Pmp = ' + str(tetrisSystem.Pmp) + ' W' | ||
print 'Isc = ' + str(tetrisSystem.Isc) + ' A' | ||
print 'Voc = ' + str(tetrisSystem.Voc) + ' V' | ||
print 'FF = ' + str(100*tetrisSystem.FF) + ' %' | ||
print 'Efficiency = ' + str(100*tetrisSystem.eff) + ' %' | ||
figure = tetrisSystem.plotSys() | ||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters