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

Fix PTHP capacity and VAV minimum damper calculation issues #1804

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

mdahlhausen
Copy link
Collaborator

@mdahlhausen mdahlhausen commented Sep 6, 2024

Pull request overview

This issues handles two edge cases, one with PTHPs having undefined capacity, and the other where there is no outdoor or zone design airflow rate when setting the minimum vav damper position.

Pull Request Author

  • Method changes or additions
  • Documented new methods using yard syntax
  • Resolved yard documentation errors for new code (ran bundle exec rake doc)
  • Resolved rubocop syntax errors for new code (ran bundle exec rake rubocop)
  • All new and existing tests passes

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a code review on GitHub
  • All related changes have been implemented: method additions, changes, tests
  • Check rubocop errors
  • Check yard doc errors
  • If fixing a defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • CI status: all green or justified

When looking up PTHP COPs, give a warning message if the size is nil and default to a 7 kBtu/hr unit for efficiency.
Expand the code to give warning messages if the equipment is less than 7 kBtu/hr or above 15 kBtu/hr, and use either 7 kBtu/hr or 15 kBtu/hr to determine equipment efficiency.
This change may result in some regression and performance differences for models with PTHP units.
The air_loop_hvac_adjust_minimum_vav_damper_positions method expects that zones have outdoor air and design air flow rate. If the space does not have a DesignSpecificationOutdoorAir object, or it is zero, then the calculation is unnecessary. If either the zone CoolingDesignAirFlowRate or HeatingDesignAirFlowRate are zero, then the zone discharge air fraction (z_d) could have a divide by zero and result in NaN. This crashes the code when trying to calculate the minimum zone ventilation effectiveness (e_vz).

Add informative error messages that the zone CoolingDesignAirFlowRate or HeatingDesignAirFlowRate are zero, and default the zone discharge air fraction (z_d) to zero if either the zone minimum discharge airflow rate (v_dz) is zero, or the zone outdoor airflow rate is zero (v_oz).
@mdahlhausen mdahlhausen changed the title Fix Issue 1590 Fix PTHP capacity and VAV minimum damper calculation issues Sep 6, 2024
@mdahlhausen mdahlhausen merged commit 95b5a0b into master Sep 10, 2024
1 of 2 checks passed
@mdahlhausen mdahlhausen deleted the fix/issue1590 branch September 10, 2024 04:20
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.

Error in Standards.AirLoopHVAC - no implicit conversion from nil to integer
2 participants