Skip to content

Weather and load forecasts for BTM#606

Merged
brtietz merged 14 commits into
developfrom
weather_forecast_for_btm
Aug 24, 2021
Merged

Weather and load forecasts for BTM#606
brtietz merged 14 commits into
developfrom
weather_forecast_for_btm

Conversation

@brtietz

@brtietz brtietz commented Aug 19, 2021

Copy link
Copy Markdown
Collaborator

Add options for load forecasts for behind the meter systems. Load forecast functions the same as actual load - can be either hourly for a single year (8760) or match the weather file timestep. Interpolation is handled by single_year_to_lifetime_interpolated.

Additionally, extend forecast options to generic system.

Pairs with SAM pull request: NatLabRockies/SAM#688

Comment thread ssc/cmod_battery.cpp Outdated
// day one is zeros
for (size_t idx = 0; idx != 24 * step_per_hour; idx++)
{
load_prediction.push_back(0);

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.

why isn't this from the last 24 hours of the load forecast?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was matching the convention from the weather file forecast: https://github.com/NREL/ssc/blob/fcff96bd16bf1a8dbc38966a94bca69d2ab99ec0/ssc/cmod_battery.cpp#L1328 is it worth changing both?

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.

I think so. I'd imagine if we're in year 2, and if we were doing lookahead, we'd use jan data for dec 31, and if doing lookbehind, we'd do the counterpart. This keeps continuity. What do you think?

Comment thread ssc/cmod_battery.cpp
Comment thread ssc/cmod_pvsamv1.cpp
@brtietz brtietz merged commit ac171db into develop Aug 24, 2021
@brtietz brtietz deleted the weather_forecast_for_btm branch August 24, 2021 22:25
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.

2 participants