8000 Revise modelchain.rst for multiple arrays, results attribute by cwhanse · Pull Request #1223 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Revise modelchain.rst for multiple arrays, results attribute #1223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates from review
  • Loading branch information
cwhanse committed May 10, 2021
commit a3efba1370ad1f2792d1b719fe8b89cc27540bc1
2 changes: 2 additions & 0 deletions docs/sphinx/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ Creating a ModelChain object.
modelchain.ModelChain.with_pvwatts
modelchain.ModelChain.with_sapm

.. _modelchain_runmodel:

Running
-------

Expand Down
17 changes: 9 additions & 8 deletions docs/sphinx/source/modelchain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ without a solid understanding of classes.

A :py:class:`~.modelchain.ModelChain` has three components:

* a :py:class:`~.pvsystem.PVSystem` object, representin a collection of modules and inverters
* a :py:class:`~.pvsystem.PVSystem` object, representing a collection of modules and inverters
* a :py:class:`~.location.Location` object, representing a location on the planet
* values for attributes that specify the model to be used for for each step in the PV modeling
process.

Modeling with a :py:class:`~.ModelChain` typically involves 3 steps:

1. Creating an instance of :py:class:`~pvlib.modelchain.ModelChain`.
2. Executing a ModelChain.run_model method with weather data as input.
3. Examining the model results that are stored in the ModelChain's ``results``
attribute.
2. Executing a ModelChain.run_model method with weather data as input. See
:ref:`_modelchain_runmodel` for a list of run_model methods.
3. Examining the model results that are stored in the ModelChain's
:py:class:`ModelChain.results <.ModelChain.ModelChainResult>` attribute.

A simple ModelChain example
---------------------------
Expand Down Expand Up @@ -159,7 +160,7 @@ model, AC model, AOI loss model, and spectral loss model.
mc.ac

Alternatively, we could have specified single diode or PVWatts related
information in the PVSystem construction. Here we assign parameters for
information in the PVSystem construction. Here we pass parameters for
PVWatts models to the PVSystem. ModelChain will automatically determine that
it should choose PVWatts DC and AC models. ModelChain still needs us to specify
``aoi_model`` and ``spectral_model`` keyword arguments because the
Expand Down Expand Up @@ -263,8 +264,8 @@ assigned to generic names, as described in the next section.

The methods called by :py:meth:`~pvlib.modelchain.ModelChain.run_model`
store their results in the ``results`` attribute, which is an instance of
:py:class:`~ModelChainResult`. :py:class:`~ModelChainResult` has the following
attributes:
:py:class:`~.ModelChainResult`. :py:class:`~.ModelChainResult` has the
following attributes:
``weather``, ``times``, ``solar_position``, ``airmass``, ``total_irrad``,
``aoi``, ``aoi_modifier``, ``spectral_modifier``,``effective_irradiance``,
``cell_temperature``, ``dc``, ``ac``, ``losses``, ``tracking``,
Expand Down Expand Up @@ -413,7 +414,7 @@ shown below.


ModelChain for a PVSystem with multiple Arrays
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The PVSystem can represent a PV system with a single array of modules, or
with multiple arrays (see :ref:`_multiarray`). The same models are applied to
Expand Down
0