Skip to content

Conversation

brtietz
Copy link
Collaborator

@brtietz brtietz commented Sep 9, 2025

Pull Request Template

Description

Add UI functionality for day of week behavior. This was implemented one of three places:

  • Behind the meter models: load page
  • Front of meter models: TOD factors page
  • Merchant plant models: merchant plant description

The host developer model has the pages for both (1) and (2) so that required the implementation of UI variables. The core SSC variable is on the financial analysis page so that the compute modules have access to it. Open to ideas on a cleaner approach here.

The LCOE models and No financial configurations use the ?=0 in the vartable and continue to default to Monday (maintaning the previous behavior). We can open this up if users ask.

Fixes NREL/ssc#195

Corresponding branches and PRs:

Develop for lk and wex

Corresponding ssc PR NREL/ssc#1352

Unit Test Impact:

No expected changes to SAM tests.

Checklist

  • requires help revision and I added that label
  • adds, removes, modifies, or deletes variables in existing compute modules
  • adds a new compute module
  • changes defaults
  • I've tagged this PR to a milestone

Reminders- this section can be deleted

[Checking for PySAM Incompatible API Changes]
(https://github.com/NREL/SAM/wiki/PySAM-Incompatible-API-Changes-&-Regenerating-PySAM-Files).

[When do the PySAM files need to be regenerated?]
(https://github.com/NREL/SAM/wiki/PySAM-Incompatible-API-Changes-&-Regenerating-PySAM-Files#when-do-the-pysam-files-need-to-be-regenerated-via-export_config)

@brtietz brtietz added this to the SAM Fall 2025 Release milestone Sep 9, 2025
@brtietz brtietz added enhancement financial Financial model battery requires help revision Requires a Help revision before releasing public version labels Sep 9, 2025
@brtietz brtietz changed the base branch from patch to develop September 9, 2025 22:52
Copy link
Collaborator

@sjanzou sjanzou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of UI and default changes here... there are also 338 api changes - do you want those to go with this pull request?

Image

@sjanzou sjanzou self-requested a review September 10, 2025 08:16
Copy link
Collaborator

@sjanzou sjanzou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All 174 default configuraitons run on MacOS 15.6 (arm64 build) with Clang 16.0.0.16000026 and XCode 16.2 without issue using wxWidgets 3.2.6

Image

@brtietz
Copy link
Collaborator Author

brtietz commented Sep 10, 2025

Lots of UI and default changes here... there are also 338 api changes - do you want those to go with this pull request?
Image

Ah, thanks for the reminder! Just pushed them.

* Change label from "Jan 1st Day of Week" to "January 1 day of week".
* Add tooltip on Electric Load page for consistency with other inputs.
* Add UI message for TPO Host / Developer so users know Electric Load page and TOD Factors page inputs are linked.
Copy link
Collaborator

@cpaulgilman cpaulgilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add January 1 day of week input to Electric Building Load Calculator form.

image

@brtietz brtietz requested a review from cpaulgilman September 11, 2025 14:53
Copy link
Collaborator

@cpaulgilman cpaulgilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brtietz Thank you for adding start day of year to BELPE UI form.

Note for documentation that BELPE does not calculate different loads for weekdays and weekends, so this input has no impact on the load data itself.

@brtietz
Copy link
Collaborator Author

brtietz commented Sep 11, 2025

@brtietz Thank you for adding start day of year to BELPE UI form.

Note for documentation that BELPE does not calculate different loads for weekdays and weekends, so this input has no impact on the load data itself.

I tested this a bit and for the default residential case there are slight differences:

image

Start on Monday:
image

Start on Saturday:
image

Note where the 1.8 kW peaks land (weekdays appear to peak at 1.7). So not a huge difference (I have to lean in and squint), but this input does affect the BELPE results.

@brtietz
Copy link
Collaborator Author

brtietz commented Sep 11, 2025

@cpaulgilman Just flagging that I forgot to push the ssc changes until just now, so you wouldn't have seen any changes when you tested this morning. Doh!

@cpaulgilman
Copy link
Collaborator

...this input does affect the BELPE results.

Good to know that BELPE bumps up the load slightly on weekend days.

@janinefreeman
Copy link
Collaborator

Fixing an extra space between "January" and "1" on the input page label for the Electric load page, otherwise looks good with my testing!

@janinefreeman janinefreeman self-requested a review October 8, 2025 16:57
@brtietz brtietz merged commit ca0cdaf into develop Oct 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

battery enhancement financial Financial model requires help revision Requires a Help revision before releasing public version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line up day of week in financial model with performance model

4 participants