-
Notifications
You must be signed in to change notification settings - Fork 397
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
More robust internal gain subtotals for UFAD and Displacement Ventilation #10419
Conversation
DataHeatBalance::IntGainType::RefrigerationTransSysAirCooledGasCooler, | ||
DataHeatBalance::IntGainType::RefrigerationTransSysSuctionPipeMT, | ||
DataHeatBalance::IntGainType::RefrigerationTransSysSuctionPipeLT, | ||
DataHeatBalance::IntGainType::Pump_VarSpeed, | ||
DataHeatBalance::IntGainType::Pump_ConSpeed, | ||
DataHeatBalance::IntGainType::Pump_Cond, | ||
DataHeatBalance::IntGainType::PumpBank_VarSpeed, | ||
DataHeatBalance::IntGainType::PumpBank_ConSpeed, | ||
DataHeatBalance::IntGainType::PlantComponentUserDefined, | ||
DataHeatBalance::IntGainType::CoilUserDefined, | ||
DataHeatBalance::IntGainType::ZoneHVACForcedAirUserDefined, | ||
DataHeatBalance::IntGainType::AirTerminalUserDefined, | ||
DataHeatBalance::IntGainType::PackagedTESCoilTank, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilSingleSpeed, | ||
DataHeatBalance::IntGainType::SecHeatingDXCoilSingleSpeed, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilTwoSpeed, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilMultiSpeed, | ||
DataHeatBalance::IntGainType::SecHeatingDXCoilMultiSpeed, | ||
DataHeatBalance::IntGainType::ElectricLoadCenterConverter, | ||
DataHeatBalance::IntGainType::FanSystemModel}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, seems like these end use types should be included in the occupied zone convective gains rather than be ignored? But maybe I don't understand the intent here.
@EnergyArchmage ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?? I'll accept it as is if everything is running fine, but open to comments/follow-up changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this looks fine. I'll check CI, and test locally, but it's probably worth merging this purely from the string to enum cleanups alone :)
@@ -1304,7 +1304,6 @@ namespace DataHeatBalance { | |||
struct GenericComponentZoneIntGainStruct | |||
{ | |||
// Members | |||
std::string CompObjectType; // device object class name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, shouldn't need to hang on to these type strings.
@@ -603,27 +601,31 @@ namespace RoomAir { | |||
} | |||
} | |||
|
|||
ConvGainsOccupiedSubzone = SumInternalConvectionGainsByTypes(state, ZoneNum, IntGainTypesOccupied); | |||
ConvGainsOccupiedSubzone = InternalHeatGains::SumInternalConvectionGainsByTypes(state, ZoneNum, IntGainTypesOccupied); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the namespace fixing.
ConvGainsMixedSubzone += RetAirGain; | ||
} | ||
|
||
ConvGains = ConvGainsOccupiedSubzone + ConvGainsMixedSubzone; | ||
|
||
// Make sure all types of internal gains have been gathered | ||
assert((int)(size(IntGainTypesOccupied) + size(IntGainTypesMixedSubzone) + size(ExcludedIntGainTypes)) == | ||
(int)DataHeatBalance::IntGainType::Num); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this should be fine.
DataHeatBalance::IntGainType::RefrigerationTransSysAirCooledGasCooler, | ||
DataHeatBalance::IntGainType::RefrigerationTransSysSuctionPipeMT, | ||
DataHeatBalance::IntGainType::RefrigerationTransSysSuctionPipeLT, | ||
DataHeatBalance::IntGainType::Pump_VarSpeed, | ||
DataHeatBalance::IntGainType::Pump_ConSpeed, | ||
DataHeatBalance::IntGainType::Pump_Cond, | ||
DataHeatBalance::IntGainType::PumpBank_VarSpeed, | ||
DataHeatBalance::IntGainType::PumpBank_ConSpeed, | ||
DataHeatBalance::IntGainType::PlantComponentUserDefined, | ||
DataHeatBalance::IntGainType::CoilUserDefined, | ||
DataHeatBalance::IntGainType::ZoneHVACForcedAirUserDefined, | ||
DataHeatBalance::IntGainType::AirTerminalUserDefined, | ||
DataHeatBalance::IntGainType::PackagedTESCoilTank, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilSingleSpeed, | ||
DataHeatBalance::IntGainType::SecHeatingDXCoilSingleSpeed, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilTwoSpeed, | ||
DataHeatBalance::IntGainType::SecCoolingDXCoilMultiSpeed, | ||
DataHeatBalance::IntGainType::SecHeatingDXCoilMultiSpeed, | ||
DataHeatBalance::IntGainType::ElectricLoadCenterConverter, | ||
DataHeatBalance::IntGainType::FanSystemModel}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?? I'll accept it as is if everything is running fine, but open to comments/follow-up changes.
FoundDuplicate = true; | ||
break; | ||
} | ||
if ((thisIntGain.device(IntGainsNum).CompType == IntGainCompType) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
CI was all happy the last time this ran. Everything builds and tests OK with develop pulled in. I'll merge this PR in, and follow-on stuff can continue in a later PR. |
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.