Add bifacial scaling to Townsend snow loss model#2756
Open
shethkajal7 wants to merge 1 commit into
Open
Conversation
Add optional front_side_fraction argument to loss_townsend for bifacial snow loss adjustment. Includes test coverage for the scaling behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add optional
front_side_fractionargument toloss_townsendfor bifacial snow loss adjustment. Includes test coverage for the scaling behavior.Description
This PR adds an optional
front_side_fractionargument topvlib.snow.loss_townsend.The new argument allows users to scale the calculated Townsend snow loss by the front-side energy fraction for bifacial systems. This follows the bifacial guidance in Townsend and Previtali (2023), where bifacial snow modeling uses total front + rear POA in the Townsend calculation and then scales the resulting loss by the front-side energy contribution.
The default value is
None, so existing behavior is unchanged.Changes
front_side_fractionkeyword argument toloss_townsendfront_side_fractionscales the existing Townsend result correctlyBackward compatibility
This change is backward compatible. When
front_side_fraction=None, the function follows the existing behavior.Tests
Ran locally:
Both passed.
Checklist
docs/sphinx/source/referencefor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`shethkajal7`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.