Skip to content

Commit 4c8a49f

Browse files
mikofskicwhanse
andauthored
[DOC] add TEMPERATURE_MODEL_PARAMETERS to api.rst (#1036)
* add TEMPERATURE_MODEL_PARAMETERS to api.rst * apply suggested changes to temp model params docstring Co-authored-by: Cliff Hansen <[email protected]> * fix stickler, typos in example Co-authored-by: Cliff Hansen <[email protected]>
1 parent b2a17e4 commit 4c8a49f

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

docs/sphinx/source/api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ PV temperature models
238238
temperature.pvsyst_cell
239239
temperature.faiman
240240

241+
Temperature Model Parameters
242+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
243+
.. currentmodule:: pvlib.temperature
244+
.. autodata:: TEMPERATURE_MODEL_PARAMETERS
245+
:annotation:
246+
247+
.. currentmodule:: pvlib
248+
241249
Single diode models
242250
-------------------
243251

pvlib/temperature.py

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@
1616
'pvsyst': {'freestanding': {'u_c': 29.0, 'u_v': 0},
1717
'insulated': {'u_c': 15.0, 'u_v': 0}}
1818
}
19+
"""Dictionary of temperature parameters organized by model.
20+
21+
There are keys for each model at the top level. Currently there are two models,
22+
``'sapm'`` for the Sandia Array Performance Model, and ``'pvsyst'``. Each model
23+
has a dictionary of configurations; a value is itself a dictionary containing
24+
model parameters. Retrieve parameters by indexing the model and configuration
25+
by name. Note: the keys are lower-cased and case sensitive.
26+
27+
Example
28+
-------
29+
Retrieve the open rack glass-polymer configuration for SAPM::
30+
31+
from pvlib.temperature import TEMPERATURE_MODEL_PARAMETERS
32+
temperature_model_parameters = (
33+
TEMPERATURE_MODEL_PARAMETERS['sapm']['open_rack_glass_polymer'])
34+
# {'a': -3.56, 'b': -0.075, 'deltaT': 3}
35+
"""
1936

2037

2138
def _temperature_model_params(model, parameter_set):
@@ -87,7 +104,7 @@ def sapm_cell(poa_global, temp_air, wind_speed, a, b, deltaT,
87104
ambient air temperature :math:`T_{a}` (C). Model parameters depend both on
88105
the module construction and its mounting. Parameter sets are provided in
89106
[1]_ for representative modules and mounting, and are coded for convenience
90-
in ``pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS``.
107+
in :data:`~pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS`.
91108
92109
+---------------+----------------+-------+---------+---------------------+
93110
| Module | Mounting | a | b | :math:`\Delta T [C]`|
@@ -168,7 +185,7 @@ def sapm_module(poa_global, temp_air, wind_speed, a, b):
168185
:math:`T_{C}`. Model parameters depend both on the module construction and
169186
its mounting. Parameter sets are provided in [1]_ for representative
170187
modules and mounting, and are coded for convenience in
171-
``temperature.TEMPERATURE_MODEL_PARAMETERS``.
188+
:data:`~pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS`.
172189
173190
+---------------+----------------+-------+---------+---------------------+
174191
| Module | Mounting | a | b | :math:`\Delta T [C]`|
@@ -238,7 +255,7 @@ def sapm_cell_from_module(module_temperature, poa_global, deltaT,
238255
Model parameters depend both on the module construction and its mounting.
239256
Parameter sets are provided in [1]_ for representative modules and
240257
mounting, and are coded for convenience in
241-
``pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS``.
258+
:data:`~pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS`.
242259
243260
+---------------+----------------+-------+---------+---------------------+
244261
| Module | Mounting | a | b | :math:`\Delta T [C]`|
@@ -323,8 +340,8 @@ def pvsyst_cell(poa_global, temp_air, wind_speed=1.0, u_c=29.0, u_v=0.0,
323340
the module construction and its mounting. Parameters are provided in
324341
[1]_ for open (freestanding) and close (insulated) mounting configurations,
325342
, and are coded for convenience in
326-
``temperature.TEMPERATURE_MODEL_PARAMETERS``. The heat loss factors
327-
provided represent the combined effect of convection, radiation and
343+
:data:`~pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS`. The heat loss
344+
factors provided represent the combined effect of convection, radiation and
328345
conduction, and their values are experimentally determined.
329346
330347
+--------------+---------------+---------------+

0 commit comments

Comments
 (0)