Skip to content

Conversation

@JanghyunJK
Copy link
Contributor

@JanghyunJK JanghyunJK commented Mar 19, 2025

Pull request overview

image

  • unsure if it is really the right fix tho.

Pull Request Author

  • Method changes or additions
  • Data changes or additions
  • Added tests for added methods
  • If methods have been deprecated, update rest of code to use the new methods
  • 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
  • If the code adds new require statements, ensure these are in core ruby or add to the gemspec

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
  • If a new feature, test the new feature and try creative ways to break it
  • CI status: all green or justified

@mdahlhausen mdahlhausen requested a review from lymereJ March 25, 2025 22:58
@lymereJ lymereJ requested a review from weilixu March 25, 2025 23:07
Copy link
Collaborator

@lymereJ lymereJ left a comment

Choose a reason for hiding this comment

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

@JanghyunJK - Thanks for this PR, it does look this is indeed missing from the code base. This is a PRM requirement, specifically for the "stable" PRM baseline so it should be under the ASHRAE901PRM class, not ASHRAE9012016 and ASHRAE9012019, unless of course there is a need for it outside of the PRM class.

Comment on lines 19 to 26
# Limit the OATwb
if design_oat_wb_f < 55
design_oat_wb_f = 55
OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.PlantLoop', "For #{plant_loop.name}, a design OATwb of 55F will be used for sizing the cooling towers because the actual design value is below the limit in G3.1.3.11.")
elsif design_oat_wb_f > 90
design_oat_wb_f = 90
OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.PlantLoop', "For #{plant_loop.name}, a design OATwb of 90F will be used for sizing the cooling towers because the actual design value is above the limit in G3.1.3.11.")
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these in line with what's accepted by the EnergyPlus cooling tower models? It looks like we're using slightly different values there: https://github.com/NREL/openstudio-standards/blob/master/lib/openstudio-standards/prototypes/common/objects/Prototype.CoolingTower.rb#L21-L32

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I'm not aware of what's acceptable.

@mdahlhausen
Copy link
Collaborator

@JanghyunJK do you still want this merged? can you address Jeremy's comment?

@JanghyunJK
Copy link
Contributor Author

JanghyunJK commented Nov 18, 2025

@mdahlhausen I don't necessarily need this. Just wanted to add a missing piece while I was looking at it. I made changes just now based on @lymereJ suggestion (I think). But I'm really unsure about that comment regarding the accepted ranges of cooling tower parameters.

@lymereJ
Copy link
Collaborator

lymereJ commented Nov 18, 2025

@JanghyunJK - Thanks for following up! Could you please also address this comment: #1916 (comment). It would be great to have a small unit test as well.

@mdahlhausen mdahlhausen changed the base branch from master to develop January 6, 2026 20:52
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.

4 participants