-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Clarify module_parameters['EgRef'] usage, and set a default value #462
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
Comments
Sounds good to me. |
Would it make sense to lobby NREL to put those parameters into their database? |
It would. I opened an Issue on the SAM GitHub. |
Changing the plan a bit.
However, currently a I don't want to add a new kwarg to method So, what does this group think:
My hesitation is not knowing if adding code into the method which simply wraps an external function is breaking a style or programming convention. |
If I understand your proposal correctly, it doesn't break any conventions. We avoid setting any parameters in the wrapper methods, but we do have some code to gracefully mesh method calls with function keyword arguments. See, for example, So, we can:
Open question in my mind as to whether or not step 1 is an appropriate change. I lean towards yes. And yes, there are alternative ways to accomplish the kwarg meshing. Related but maybe separate... this reminds me that the |
I agree about the |
While you're at it, I would suggest removing the parameter M. It's really a generic mismatch factor, which is perhaps better implemented externally to modify effective irradiance. It doesn't actually become an "airmass modifier" until you use airmass to determine M. I'm not sure where the proposed polynomial should be placed thought, since the other two spectral correction functions (FS and SAPM) are organized in different ways. I don't know what the best solution is but I just wanted to draw your attention to this. |
@adriesse I agree. However, strictly speaking, substituting effective_irradiance for 'S' changes the Desoto model from its published reference. Desoto wrote that Rsh = Rsh_ref * (1000 / S), not Rsh = Rsh_ref * (1 / effective_irradiance). The difference is whether spectral change in irradiance is accounted for before, or after, shunt resistance is calculated. From a practical perspective, I doubt the distinction is meaningful for most uses of the Desoto model, and I suspect the authors didn't think this is an important point. I'm going to change to effective irradiance and document the change with inline comments. |
The CEC module parameters database does not contain the parameters EgRef or dEgdT. In the CEC model, and in the process NREL follows to generate the database from the CEC module data list, values EgRef = 1.121 and dEgdT = -0.0002677 are implicit. PVLib for Matlab exposed EgRef and dEgdT as a model parameter (which it is) and let the user determine the appropriate value. pvlib-python does likewise, however, readthedocs.io examples do not inform the user that s/he must specify EgRef and dEgdT nor do we provide default values when they are not specified.
I propose that we:
pvsystem.retrieve_sam('cecmod')
andThe text was updated successfully, but these errors were encountered: