#11566: ZoneHVAC:HybridUnitaryHVAC - Return Air constraints not referenced#11576
#11566: ZoneHVAC:HybridUnitaryHVAC - Return Air constraints not referenced#11576kevin-moos wants to merge 4 commits intoNatLabRockies:developfrom
Conversation
| OAHRConstraintmet = true; | ||
| } | ||
| bool RATempConstraintMet = (Minimum_Return_Air_Temperature_Blank || Tra >= Minimum_Return_Air_Temperature) && | ||
| (Minimum_Return_Air_Temperature_Blank || Tra <= Maximum_Return_Air_Temperature); |
There was a problem hiding this comment.
Should the 2nd Minimum_RA_Temp_Blank be Max?
There was a problem hiding this comment.
Yes, thanks for catching that one!
| if (Tosa >= Minimum_Outdoor_Air_Temperature && Tosa <= Maximum_Outdoor_Air_Temperature) { | ||
| OATempConstraintmet = true; | ||
| } | ||
| bool OATempConstraintMet = (Tosa >= Minimum_Outdoor_Air_Temperature && Tosa <= Maximum_Outdoor_Air_Temperature); |
There was a problem hiding this comment.
Doesn't OAT have the same issue with a blank Min/Max OAT? I also don't see how the other default limits are applied? e.g., Min/Max humrat of 0.0 and 0.1 or RH of 0% and 100%, where do these get set? All these CMode::Initialize functions just return true, so how do any of the warnings following these function calls get executed? i.e., lines 610, 618 and 628.
There was a problem hiding this comment.
Thanks, Rich. I'm still working on this PR so it's not quite ready for review. Min/Max OAT does have the same issue, but that's being addressed in a different PR. The defaults for HumRat and RH are coming from the IDD during input processing. The temperatures don't have defaults because they're supposed to be unconstrained according to the documentation. And you're correct about those Initialize functions - all of those warnings are basically unreachable code that could be removed since IDD validation has already happened by this point.
There was a problem hiding this comment.
OK, I see the defaults now in the idd. This object has lots of inputs and I was looking at the wrong inputs.
Pull request overview
Description of the purpose of this PR
Add logic to check Return Air constraints for temperature, humidity ratio, and relative humidity. Add bools to track whether Min/Max Return Temp constraints were left blank in the IDF. Update logic to ignore these constraints when left blank.
Pull Request Author
Reviewer