|
14 | 14 | % precipitable water, Pwat, using the following function:
|
15 | 15 | %
|
16 | 16 | % M = coeff(1) + coeff(2)*AMa + coeff(3)*Pwat + coeff(4)*AMa.^.5
|
17 |
| -% + coeff(5)*Pwat.^.5 + coeff(6)*AMa./Pwat (1) |
| 17 | +% + coeff(5)*Pwat.^.5 + coeff(6)*AMa./Pwat.^0.5 (1) |
18 | 18 | %
|
19 | 19 | % Default coefficients are determined for several cell types with
|
20 | 20 | % known quantum efficiency curves, by using the Simple Model of the
|
21 | 21 | % Atmospheric Radiative Transfer of Sunshine (SMARTS) [1].
|
22 | 22 | % Using SMARTS, spectrums are simulated with all combinations of AMa
|
23 | 23 | % and Pwat where:
|
24 |
| -% * 0.5 cm <= Pwat <= 5 cm |
25 |
| -% * 0.8 <= AMa <= 4.75 (Pressure of 800 mbar and 1.01 <= AM <= 6) |
| 24 | +% * 0.1 cm <= Pwat <= 5 cm |
| 25 | +% * 1.0 <= AMa <= 5 |
26 | 26 | % * Spectral range is limited to that of CMP11 (280 nm to 2800 nm)
|
27 | 27 | % * spectrum simulated on a plane normal to the sun
|
28 | 28 | % * All other parameters fixed at G173 standard
|
|
31 | 31 | % Eq. 1 to determine the coefficients for each module.
|
32 | 32 | %
|
33 | 33 | % Function pvl_FSspeccorr was developed by Mitchell Lee and Alex Panchula,
|
34 |
| -% at First Solar, 2015. |
| 34 | +% at First Solar, 2015. Detailed description of spectral correction |
| 35 | +% can be found in [2] |
35 | 36 | %
|
36 | 37 | % Inputs:
|
37 | 38 | % Pwat - atmospheric precipitable water (cm). Can be
|
|
47 | 48 | % 'multisi','polysi' - coefficients for multi-crystalline silicon
|
48 | 49 | % modules. The module used to calculate the spectral
|
49 | 50 | % correction coefficients corresponds to the Mult-crystalline
|
50 |
| -% silicon Manufacturer 2 Model C from [2]. |
| 51 | +% silicon Manufacturer 2 Model C from [3]. |
51 | 52 | % custCoeff - allows for entry of user defined spectral correction
|
52 | 53 | % coefficients. Coefficients must be entered as a numeric row or
|
53 | 54 | % column vector of length 6. Derivation of coefficients requires use
|
|
69 | 70 | % [1] Gueymard, Christian. SMARTS2: a simple model of the atmospheric
|
70 | 71 | % radiative transfer of sunshine: algorithms and performance
|
71 | 72 | % assessment. Cocoa, FL: Florida Solar Energy Center, 1995.
|
72 |
| -% [2] Marion, William F., et al. User's Manual for Data for Validating |
| 73 | +% [2] Lee, Mitchell, and Panchula, Alex. "Spectral Correction for |
| 74 | +% Photovoltaic Module Performance Based on Air Mass and Precipitable |
| 75 | +% Water." IEEE Photovoltaic Specialists Conference, Portland, 2016 |
| 76 | +% [3] Marion, William F., et al. User's Manual for Data for Validating |
73 | 77 | % Models for PV Module Performance. National Renewable Energy Laboratory, 2014.
|
74 | 78 | % http://www.nrel.gov/docs/fy14osti/61610.pdf
|
75 | 79 |
|
76 | 80 |
|
77 | 81 |
|
| 82 | +% Correct for AMa and Pwat having transposed dimensions |
| 83 | +if isrow(AMa) |
| 84 | + AMa = AMa'; |
| 85 | +end |
| 86 | + |
| 87 | +if isrow(Pwat) |
| 88 | + Pwat = Pwat'; |
| 89 | +end |
| 90 | + |
| 91 | +% --- Screen Input Data --- |
| 92 | + |
| 93 | +% *** Pwat *** |
| 94 | +% Replace Pwat Values below 0.1 cm with 0.1 cm to prevent model from |
| 95 | +% diverging |
| 96 | +if min(Pwat) < 0.1 |
| 97 | + Pwat(Pwat < 0.1) = 0.1; |
| 98 | + warning(['Exceptionally low Pwat values replaced with 0.1 cm to prevent',... |
| 99 | + ' model divergence']); |
| 100 | +end |
| 101 | + |
| 102 | +% Warn user about Pwat data that is exceptionally high |
| 103 | +if max(Pwat) > 8 |
| 104 | + warning(['Exceptionally high Pwat values. Check input data:', ... |
| 105 | + ' model may diverge in this range']); |
| 106 | +end |
| 107 | + |
| 108 | +% *** AMa *** |
| 109 | +% Replace Extremely High AM with AM 10 to prevent model divergence |
| 110 | +% AM > 10 will only occur very close to sunset |
| 111 | +if max(AMa) > 10 |
| 112 | + AMa(AMa > 10) = 10; |
| 113 | +end |
| 114 | + |
| 115 | +% Warn user about AMa data that is exceptionally low |
| 116 | +if min(AMa) < 0.58 |
| 117 | + warning(['Exceptionally low air mass: ',... |
| 118 | + 'model not intended for extra-terrestrial use']) |
| 119 | + % pvl_absoluteairmass(1,pvl_alt2pres(4340)) = 0.58 |
| 120 | + % Elevation of Mina Pirquita, Argentian = 4340 m. Highest elevation city |
| 121 | + % with population over 50,000. |
| 122 | +end |
| 123 | + |
78 | 124 | % If user input is a character array, use appropriate default coefficients.
|
79 | 125 | if ischar(varargin{1})
|
80 | 126 | modType = lower(varargin{1});
|
|
84 | 130 | % Coefficients for First Solar Series 4-2 (and later) modules.
|
85 | 131 | % For modeling the performance of earlier CdTe module series,
|
86 | 132 | % use the coefficients that are commented out
|
87 |
| - % [0.7900, -0.0644, -0.01658, 0.1835, 0.09077, -0.002330]; |
88 |
| - coeff = [0.8752, -0.04588, -0.01559, 0.08751, 0.09158, -0.002295]; |
| 133 | + % [0.79418,-0.049883,-0.013402,0.16766,0.083377,-0.0044007]; |
| 134 | + coeff = [0.86273, -0.038948, -0.012506, 0.098871, 0.084658, -0.0042948]; |
89 | 135 | case {'monosi','xsi'}
|
90 | 136 | % Coefficients for First Solar TetraSun Modules
|
91 |
| - coeff = [0.8478, -0.03326, -0.0022953, 0.1565, 0.01566, -0.001712]; |
| 137 | + coeff = [0.85914, -0.020880, -0.0058853, 0.12029, 0.026814, -0.0017810]; |
92 | 138 | case {'polysi','multisi'}
|
93 | 139 | % Coefficients for Multi-Si: Manufacturer 2 Model C
|
94 |
| - coeff = [0.83019, -0.04063, -0.005281, 0.1695, 0.02974, -0.001676]; |
| 140 | + coeff = [0.84090, -0.027539, -0.0079224, 0.13570, 0.038024, -0.0021218]; |
95 | 141 | otherwise
|
96 | 142 | error('Incorrect module type for use of default parameters')
|
97 | 143 | end
|
|
100 | 146 | coeff = varargin{1};
|
101 | 147 | end
|
102 | 148 |
|
103 |
| -% Correct for AMa and Pwat having transposed dimensions |
104 |
| -if isrow(AMa) |
105 |
| - AMa = AMa'; |
106 |
| -end |
107 |
| - |
108 |
| -if isrow(Pwat) |
109 |
| - Pwat = Pwat'; |
110 |
| -end |
111 |
| - |
112 | 149 | % Evaluate Spectral Shift
|
113 |
| -M = coeff(1) + coeff(2)*AMa + coeff(3)*Pwat + coeff(4)*AMa.^.5 + coeff(5)*Pwat.^.5 + coeff(6)*AMa./Pwat; |
| 150 | +M = coeff(1) + coeff(2)*AMa + coeff(3)*Pwat + coeff(4)*AMa.^.5 + coeff(5)*Pwat.^.5 + coeff(6)*AMa./Pwat.^0.5; |
114 | 151 | end
|
115 | 152 |
|
0 commit comments