In basic_chain dc power only for only single module, rather than for array of multiple modules? #1385
-
I am just starting with python pvlib and the basic_chain function seemed a good way to get acquainted . However, one thing really wonders me. The PV-array is only described with the module_parameters argument, and there is no parameter or keyword to describe the size of the array. Also the code suggests that only the dc- power of a single module is calculated, and when I run the function for a 250 W module and a 5kW inverter the AC output is never comes above 200W, again confirming by suspicion that only the DC output of a single module is calculated. As a quick workaround I have made a local version of the basic_chain function with an array-inverter power ratio as additional output and a scaling of the DC output within the function*. This solved my problem for the moment, but I still have some questions:
*The changed code:
"array_inverter_ratio" is a new keyword with default value 1. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @Kaesekopf, thanks for your interest in pvlib! I confess I have never used I do wonder if we should add a short note to its docstring explaining the limitations and pointing users to the more capable alternative. |
Beta Was this translation helpful? Give feedback.
-
Thanks. |
Beta Was this translation helpful? Give feedback.
-
@Kaesekopf I think feedinlib is using @kanderso-nrel I think you are right, that |
Beta Was this translation helpful? Give feedback.
Hi @Kaesekopf, thanks for your interest in pvlib! I confess I have never used
basic_chain
and was only vaguely aware that it existed. Skimming the commits in #93, I get the sense that it was something of a prototype for the eventualModelChain
class. Anyway, instead of modifyingbasic_chain
to suit your needs, I suggest using the more detailed modeling workflow provided byModelChain
,PVSystem
, andArray
. The docs have some pages and gallery examples to get started there. I'll point out thatArray
has parameters for the number of modules per string and the total number of strings :)I do wonder if we should add a short note to its docstring explaining the limitations and pointing users to…