Skip to content

Ssc 195 day of week improvements#2109

Merged
brtietz merged 28 commits into
developfrom
ssc_195_day_of_week_improvements
Oct 8, 2025
Merged

Ssc 195 day of week improvements#2109
brtietz merged 28 commits into
developfrom
ssc_195_day_of_week_improvements

Conversation

@brtietz

@brtietz brtietz commented Sep 9, 2025

Copy link
Copy Markdown
Collaborator

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 NatLabRockies/ssc#195

Corresponding branches and PRs:

Develop for lk and wex

Corresponding ssc PR NatLabRockies/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

@sjanzou sjanzou left a comment

Copy link
Copy Markdown
Collaborator

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

@sjanzou sjanzou left a comment

Copy link
Copy Markdown
Collaborator

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

brtietz commented Sep 10, 2025

Copy link
Copy Markdown
Collaborator Author

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.

@cpaulgilman cpaulgilman left a comment

Copy link
Copy Markdown
Collaborator

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

@cpaulgilman cpaulgilman left a comment

Copy link
Copy Markdown
Collaborator

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

brtietz commented Sep 11, 2025

Copy link
Copy Markdown
Collaborator Author

@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

brtietz commented Sep 11, 2025

Copy link
Copy Markdown
Collaborator Author

@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
Copy Markdown
Collaborator

...this input does affect the BELPE results.

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

@janinefreeman

Copy link
Copy Markdown
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
cpaulgilman added a commit that referenced this pull request Jun 3, 2026
Also fix Belpe annual growth rate widget overlap
@cpaulgilman cpaulgilman removed the requires help revision Requires a Help revision before releasing public version label Jun 3, 2026
cpaulgilman added a commit that referenced this pull request Jun 9, 2026
… 2026 release (#2207)

* Remove wind cost model descriptions for #2154

* Fix help build issues

* Revise PV sizing topics for new PV UI design for #2135

* Clean up battery dispatch Help topics for #2115

* Revise Help for PVWatts detailed battery for #2113

* Update Help build instructions

* Consolidate battery Help topics

* Add description of load day of week input for #2109

Also fix Belpe annual growth rate widget overlap

* Revise degradation save lifetime outputs in Help for #2087

Also fix broken references in Electricity Load topic.

* Emphasis SRW is obsolete and fix format of weather file Help topics

* Add description of calculation to capacity payment Help topic.

* Revise Help for solar resource UI updates in #2120

* Clean up misc headings and broken links in Help

* Revise Help build instructions

* Fix broken welcome page Help link

* Revise Help for IPH system control copy TOD factors for #2024

Also fix TOU output fractions widget label for IPH "turbine output" to "heat sink output".

* Custom generation Help revisions for NatLabRockies/ssc#1384

* Clean up Help rates and load topics for NatLabRockies/ssc#1352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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