-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add polo-smm #2491
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
base: main
Are you sure you want to change the base?
Add polo-smm #2491
Changes from 4 commits
3363ace
ceba758
36c9b43
eaa90b4
794ed98
7926a3d
988557c
45e768f
38e5694
c24e013
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -710,3 +710,86 @@ | |||||||||||||||||||||||||
+ coeff[2] * (airmass - 1.5) | ||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||
return mismatch | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi, | ||||||||||||||||||||||||||
altitude, module_type=None, coefficients=None, | ||||||||||||||||||||||||||
albedo=0.2): | ||||||||||||||||||||||||||
""" | ||||||||||||||||||||||||||
Estimation of spectral mismatch for BIPV application in vertical facades. | ||||||||||||||||||||||||||
|
Estimation of spectral mismatch for BIPV application in vertical facades. | |
Estimate the spectral mismatch for BIPV application in vertical facades. |
I think the imperative form is standard practice for the summary line
jesuspolo marked this conversation as resolved.
Show resolved
Hide resolved
jesuspolo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to link these terms to their respective definitions on the nomenclature page. Not all definitions on that page have been fully developed, but we can link over to them anyway and they will soon be updated.
airmass_absolute : numeric | |
absolute (pressure-adjusted) airmass. [unitless] | |
aod500 : numeric | |
atmospheric aerosol optical depth at 500 nm. [unitless] | |
aoi : numeric | |
angle of incidence. [degrees] | |
airmass_absolute : numeric | |
absolute (pressure-adjusted) airmass. See :term:`airmass_absolute`. [unitless] | |
aod500 : numeric | |
atmospheric aerosol optical depth at 500 nm. [unitless] | |
aoi : numeric | |
angle of incidence. See :term:`aoi`. [degrees] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For aoi
, I think the definition here should be angle of incidence on the vertical surface
, and maybe we don't link to the generic aoi
term.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* ``'monosi'`` - anonymous sc-si module. | |
* ``'monosi'`` - anonymous sc-si module. |
What is "sc-si"? Is this a typo and should be "monocrystalline Si"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can albedo both be a float and an array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I always thought it as a float, since it refers to a total albedo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was more wondering if the code allows for albedo being passed in as a time series?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was more wondering if the code allows for albedo being passed in as a time series?
+1 to making this possible if not already
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
albedo | |
Ground albedo (default value if 0.2). [unitless] | |
albedo | |
Ground albedo (default value if 0.2). See :term:`albedo`. [unitless] |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user-defined coefficients, if not using one of the default coefficient | |
set via the ``module_type`` parameter. | |
user-defined coefficients, if not using one of the coefficient | |
sets via the ``module_type`` parameter. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[1]. Polo, J., Sanz-saiz, C., Development of spectral mismatch models | |
for BIPV applications in building façades Abbreviations : Renew. Energy 245 | |
,122820, 2025.:doi:`10.1016/j.renene.2025.122820` | |
.. [1] J. Polo and C. Sanz-Saiz, 'Development of spectral mismatch models | |
for BIPV applications in building façades', Renewable Energy, vol. 245, | |
p. 122820, Jun. 2025, | |
:doi:`10.1016/j.renene.2025.122820` |
This is the IEEE citation I get with Zotero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it correct that aoi = 90 - zenith
? I think so, because the surface is assumed to be vertical. If that's the case, then I think requesting zenith
rather than aoi
as input would be significantly easier for a user to understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't read the reference so perhaps I miss something, but aoi and zenith being complementary also requires the solar azimuth to be equal to the surface azimuth, which in general won't be the case, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires the solar azimuth to be equal to the surface azimuth
Yes, you are correct.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if module_type is not None: | |
if module_type is not None: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this is intentional, but this will ignore whatever value the user provides. If it's intentional, the docstring does not reflect that albedo is only used when the type is given, and assumed 0.2 when given the coefficients.
Uh oh!
There was an error while loading. Please reload this page.