Repository navigation
Description
Following my GSoC proposal, there are two models I plan to contribute regarding Photosynthetically Active Radiation, PAR. This is of great importance in the design of AgriVoltaic systems, since PAR is one of the metrics used for the simulation of crops productivity.
I pretend this is the first one due to simplicity. The model takes an input of the global irradiance diffuse fraction and the solar elevation, and outputs the fraction of diffuse PAR. See Eq. (1) in [2]. It is a derivation of equations (9) & (10) in [1]. This is known as the Spitters relationship in [2].
- [1] C. J. T. Spitters, H. A. J. M. Toussaint, and J. Goudriaan,
'Separating the diffuse and direct component of global radiation and its
implications for modeling canopy photosynthesis Part I. Components of
incoming radiation', Agricultural and Forest Meteorology, vol. 38,
no. 1, pp. 217-229, Oct. 1986, :doi:10.1016/0168-1923(86)90060-2. - [2] S. Ma Lu et al., 'Photosynthetically active radiation decomposition
models for agrivoltaic systems applications', Solar Energy, vol. 244,
pp. 536-549, Sep. 2022, :doi:10.1016/j.solener.2022.05.046.
Describe the solution you'd like
A function in a new module, presumably pvlib.par, that has the function spitters_relationship with the described inputs and output.
Describe alternatives you've considered
Other names for the module pvlib.agrivoltaic[s] or trying to fit it into current structure until new things can be included and then arranged in the future. Take into account moving things requires deprecations.
Other names for the function, may be par_diffuse_fraction_from_global or so. However, I think an author-named model is better in this case. There may be more models about that, like the modified by Gu et al., Eq. (3) in [2].
As always, I'm open to other alternatives.
Additional context
I will open a PR in short as an initial proposal.
Ask, discuss and suggest freely.
Activity
kandersolar commentedon May 13, 2024
I am a complete non-expert in agriPV, but my initial reaction is that PAR is too narrow a modeling scope to warrant its own
pvlib.parmodule. I could potentially be convinced that a broaderpvlib.agrivoltaicsmodule is a good idea, but it seems to me that many models relevant to agriPV will fit naturally into existing modules. For example, PAR models could go inpvlib.spectrum(PAR is basically just spectral mismatch for plants, right?) orpvlib.irradiance, and several relevant view factor calculations are already available inpvlib.bifacial.utils.AdamRJensen commentedon May 24, 2024
I agree that it seems to make sense to put PAR functions in
pvlib.spectrum.echedey-ls commentedon May 24, 2024
I've kept the documentation API section on agrivoltaics. Should I remove it too?
Just a minor organization idea, the function can be under
pvlib.spectrumnamespace but in another file, currently I've put it insidemismatch.py.AdamRJensen commentedon May 24, 2024
Hmm I'd lean towards keeping it with it's module.
What would the argument be for thar?
echedey-ls commentedon May 24, 2024
Okay, I don't have a strong opinion on that either.
I kinda dislike having too many functions of different topics in the same file. Not a problem to have it there for me; in fact, isolating one function in a file is kinda weird too, so I'm happy with it in
mismatch.py. It is just another idea to take into account in case of a big-reorg.cwhanse commentedon May 24, 2024
@echedey-ls @AdamRJensen I commented on echedey's GSoC issue. I think the PAR function should live in
pvlib.irradiance.wholmgren commentedon May 25, 2024
This is my preference if we anticipate additional spectral models for agrivoltaics. I don't know much about it but anticipate that there may be interest in, say, integration of quantum efficiency curves and that naturally should be near the similar code for traditional PV.
I'm not too enthusiastic about irradiance.py... this function only appears to potentially fit there because that module is already so broad in scope. (Recall previous discussion of breaking it up into transposition.py and other modules)
cwhanse commentedon May 25, 2024
But the new function in #2048 isn't a spectral model in the scope of
pvlib.spectrums code module description. It's just translating broadband DHI fraction from diffuse fraction for a restricted range of wavelength. I think it is another version of an irradiance separation model.cwhanse commentedon May 25, 2024
We have three comment threads on this naming/organization: here, #2064 and #2048.