Skip to content
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

ERP CHP fuel HHV bug #325

Merged
merged 10 commits into from
Apr 19, 2024
Merged

ERP CHP fuel HHV bug #325

merged 10 commits into from
Apr 19, 2024

Conversation

hdunham
Copy link
Collaborator

@hdunham hdunham commented Nov 16, 2023

Fixed

  • When calculating CHP fuel intercept and slope, use 1 for the HHV because CHP fuel measured in units of kWh, instead of using non-existent CHP.fuel_higher_heating_value_kwh_per_gal

Changed

  • Renamed function generator_fuel_slope_and_intercept to fuel_slope_and_intercept and generalize to not be specific to diesel measured in units of gal

@hdunham hdunham requested a review from adfarth November 16, 2023 19:02
@@ -95,10 +95,10 @@ end


function add_MG_Gen_fuel_burn_constraints(m,p)
fuel_slope_gal_per_kwhe, fuel_intercept_gal_per_hr = generator_fuel_slope_and_intercept(
fuel_slope_gal_per_kwhe, fuel_intercept_gal_per_hr = fuel_slope_and_intercept(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we do this for CHP fuel burn below as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah sure! Added it in two more places to eliminate dupe code

@@ -27,6 +27,9 @@ Classify the change according to the following categories:
### Fixed
- Added `export_rate_beyond_net_metering_limit` to list of inputs to be converted to type Real, to avoid MethodError if type is vector of Any.
- Fix blended CRB processing when one or more load types have zero annual energy
- When calculating CHP fuel intercept and slope, use 1 for the HHV because CHP fuel measured in units of kWh, instead of using non-existent **CHP.fuel_higher_heating_value_kwh_per_gal**
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where was this implemented?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fuel_higher_heating_value_kwh_per_unit=1

@Bill-Becker Bill-Becker self-requested a review April 19, 2024 02:34
Copy link
Collaborator

@Bill-Becker Bill-Becker left a comment

Choose a reason for hiding this comment

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

Not sure why the Ubuntu tests always take forever since the switch to all tests with HiGHS, while the Windows and Mac ones finish reasonably quickly.

@hdunham hdunham merged commit d19f9b3 into develop Apr 19, 2024
3 of 4 checks passed
@hdunham hdunham mentioned this pull request Apr 19, 2024
indu-manogaran pushed a commit that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants