Correct/Eliminate Limit Checks for Plant Condenser Loop Operation Schemes#11178
Merged
Correct/Eliminate Limit Checks for Plant Condenser Loop Operation Schemes#11178
Conversation
Removed code that was checking limits because the IDD was already checking the limits properly. Old code had an additional condtion that contradicted the IDD. None of these limit checks are actually needed except the check making sure the lower limit is below the upper limit. Ranges are already checked against each other and a warning produced if the ranges overlap.
Addition of a unit test to test the code for Defect #11171. The problem was that the code was adding additional conditions that were unneeded and incorrect for temperatures. Those were removed. The unit test checks to make sure that the load range temperature max and min rules are being enforced correctly.
Contributor
Author
|
@Myoldmopar Ok, added the unit test and merge in the latest develop. Should be ready for review (assuming that this comes back all green which is what I anticipate). Thanks! |
Oops. Got aggressive with the equal sign. Should have only been a single =, not a double ==.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request overview
Description of the purpose of this PR
A user noted that for temperature based plant condenser loop operation schemes that temperature controls that used temperatures below 0C for the maximum of the range resulted in a severe error. This was problematic because in very cold climates it might be necessary to have control ranges that allow for temperatures below zero. It was also in conflict with the IDD which had a clear ranger of -70C to +70C as the range of allowable temperatures. As part of the fix, the checks within the get algorithm were removed because they are made superfluous by the correct definition of the IDD which already checks limits correctly before the code even get to this get algorithm. The code that makes sure that the minimum of the range is less than the maximum of the range was left in tact. No anticipated differences in the program output since this corrects an input reading issue and should not result in any calculation differences.
Pull Request Author
Reviewer