-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[ENH] extend iam.physical with optional n_ar parameter for AR coating #1616
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
Changes from 1 commit
70c0493
e54ff70
e58fdb6
f3a82dd
c0ba45a
ab07267
f295763
14cd046
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,10 +94,12 @@ def ashrae(aoi, b=0.05): | |
def physical(aoi, n=1.526, K=4.0, L=0.002, *, n_ar=None): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reasoning behind including an asterisk (allowing a variable number of arguments) in this specific function? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ‘single star’ syntax indicates the end of positional parameters and enforces the user to use a keyword for all following parameters, see https://peps.python.org/pep-3102. I think of using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh, interesting, I certainly didn't know that. I'm all for keeping it. Thanks for the explanation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it will be a first for pvlib, but I'm okay with keeping it. If anyone complains we can always revert it as @kdebrab points out. |
||
r""" | ||
Determine the incidence angle modifier using refractive index ``n``, | ||
extinction coefficient ``K``, and glazing thickness ``L``. | ||
extinction coefficient ``K``, glazing thickness ``L`` and refractive | ||
index ``n_ar`` of an eventual anti-reflective coating. | ||
AdamRJensen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
``iam.physical`` calculates the incidence angle modifier as described in | ||
[1]_, Section 3. The calculation is based on a physical model of absorption | ||
[1]_, Section 3, with additional support of an anti-reflective coating. | ||
The calculation is based on a physical model of reflections, absorption, | ||
and transmission through a transparent cover. | ||
|
||
Parameters | ||
|
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.
Don't forget to add yourself to the Contributors list below :)
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.
As well as the reviewers.