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

Bugfix for autosizing when detailed performance capacity fractions are provided #1862

Merged
merged 8 commits into from
Oct 22, 2024

Conversation

yzhou601
Copy link
Collaborator

@yzhou601 yzhou601 commented Oct 17, 2024

Pull Request Description

The autosizing to convert design condition load to rated condition capacity (47F) is based on the 47F maximum capacity fraction, which is not correct. It should apply the nominal capacity fraction (which is 1.0).
cc @jonwinkler

Checklist

Not all may apply:

  • Schematron validator (EPvalidator.xml) has been updated
  • Sample files have been added/updated (openstudio tasks.rb update_hpxmls)
  • Tests have been added/updated (e.g., HPXMLtoOpenStudio/tests/test*.rb and/or workflow/tests/test*.rb)
  • Documentation has been updated
  • Changelog has been updated
  • openstudio tasks.rb update_measures has been run
  • No unexpected changes to simulation results of sample files

@yzhou601
Copy link
Collaborator Author

yzhou601 commented Oct 17, 2024

  case8 case11
design temperatgure 6.62 6.62
outdoor temp maximum capacity fraction maximum capacity fraction
67 1.641 2.001
47 1.216 1.483
17 0.913 1.101
5 0.867 1.049
     
slope (17F to 5F) 0.003833333 0.004333333
fraction design to nominal (interpolated) 0.873133333 1.055933333
fraction design to max 47F 0.718037281 0.712025174
design load 55527.13901 55527.13901
rated capacity EXPECTED 63595.25732 52585.83781
rated capacity ACTUAL 77331.8329 77984.79748
capacity at 5F maximum speed EXPECTED 55137.0881 55162.54387
capacity at 5F maximum speed ACTUAL 67046.69912 81806.05255

These two cases run the same home with different heat pump detailed performance inputs (capacity fractions), using autosizing. The design temperature is 6.6F but the capacities at 5F after hvac sizing are very different, which is caused by this issue. This PR fixed it and now gave numbers very close to expectations.

hpxml_bldg.heat_pumps[0].cooling_detailed_performance_data.find { |dp| dp.outdoor_temperature == HVAC::AirSourceCoolRatedODB && dp.capacity_description == HPXML::CapacityDescriptionMaximum }.capacity_fraction_of_nominal = 1.1
XMLHelper.write_file(hpxml.to_doc, @tmp_hpxml_path)
_model, _hpxml, hpxml_bldg = _test_measure(args_hash)
assert_equal(hpxml_bldg.heat_pumps[0].heating_capacity, htg_cap_orig)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The unit test here verifies that the autosized rated capacity is the same as original, regardless of maximum speed capacity fractions of nominal at rated temperatures. The fractions will be applied later when pop up the capacities in detailed performance data points.

@yzhou601 yzhou601 marked this pull request as ready for review October 22, 2024 16:44
…o detailed_performance_autosizing_bugfix
@yzhou601 yzhou601 requested a review from shorowit October 22, 2024 17:43
@shorowit shorowit added the bug Something isn't working label Oct 22, 2024
@shorowit
Copy link
Contributor

@yzhou601 I see that there are no CI diffs, but I was thinking that base-hvac-air-to-air-heat-pump-var-speed-detailed-performance-autosize.xml might show some diffs. Why does that file not change?

@yzhou601
Copy link
Collaborator Author

yzhou601 commented Oct 22, 2024

@yzhou601 I see that there are no CI diffs, but I was thinking that base-hvac-air-to-air-heat-pump-var-speed-detailed-performance-autosize.xml might show some diffs. Why does that file not change?

This issue only shows up when the maximum speed capacity fraction at rated temperature is over 1.0. For that test file we configured it to be 1.0 at maximum speed, 47F (for ducted system, it is close to 1.0, in default: https://github.com/NREL/OpenStudio-HPXML/blob/master/HPXMLtoOpenStudio/resources/hvac.rb#L1899). Besides, the test file uses HERS sizing methodology, where the loads override the sized capacity. See my unit test, it reveals the issue and gets fixed with the changes in this PR.

@yzhou601
Copy link
Collaborator Author

@yzhou601 I see that there are no CI diffs, but I was thinking that base-hvac-air-to-air-heat-pump-var-speed-detailed-performance-autosize.xml might show some diffs. Why does that file not change?

FYI, the defect test file uses MaxLoad sizing methodology and is a ductless minisplit so this issue is captured

@shorowit shorowit merged commit 9112f44 into master Oct 22, 2024
@shorowit shorowit deleted the detailed_performance_autosizing_bugfix branch October 22, 2024 20:56
@joseph-robertson joseph-robertson mentioned this pull request Oct 23, 2024
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants