diff --git a/src/EnergyPlus/DXCoils.cc b/src/EnergyPlus/DXCoils.cc index 355e0bc83fc..5b61ad6afc0 100644 --- a/src/EnergyPlus/DXCoils.cc +++ b/src/EnergyPlus/DXCoils.cc @@ -7270,60 +7270,29 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) int Mode; // Operating mode for MultiMode DX coil; Always 1 for other coil types int NumOfSpeedCompanion; // Number of speed for a companion cooling coil (Multispeed HO heating coil only std::string equipName; - Real64 RatedAirVolFlowRateDes; // Design rated air volume flow for reporting - Real64 RatedAirVolFlowRateUser; // Hard-sized rated air volume flow for reporting - Real64 RatedAirVolFlowRate2Des; // Design rated low speed air volume flow for reporting - Real64 RatedAirVolFlowRate2User; // Hard-sized rated low speed air volume flow for reporting - Real64 RatedTotCapDes; // Design rated total capacity for reproting - Real64 RatedTotCapUser; // Hard-sized rated total capacity for reproting - Real64 RatedTotCap2Des; // Design rated low speed total capacity for reproting - Real64 RatedTotCap2User; // Hard-sized rated low speed total capacity for reproting - Real64 RatedSHRDes; // Design ratd SHR for reporting - Real64 RatedSHRUser; // Hard-sized ratd SHR for reporting - Real64 RatedSHR2Des; // Design ratd low speed SHR for reporting - Real64 RatedSHR2User; // Hard-sized ratd low speed SHR for reporting - Real64 EvapCondAirFlowDes; // Design evaporative condenser air flow for reporting - Real64 EvapCondAirFlowUser; // Hard-sized evaporative condenser air flow for reporting - Real64 EvapCondAirFlow2Des; // Design low speed evaporative condenser air flow for reporting - Real64 EvapCondAirFlow2User; // Hard-sized low speed evaporative condenser air flow for reporting - Real64 EvapCondPumpElecNomPowerDes; // Design evaporative condenser pump rated power consumption for reporting - Real64 EvapCondPumpElecNomPowerUser; // Hard-sized evaporative condenser pump rated power consumption for reporting - Real64 EvapCondPumpElecNomPower2Des; // Design low speed condenser pump rated power consumption for reporting - Real64 EvapCondPumpElecNomPower2User; // Hard-sized low speed condenser pump rated power consumption for reporting - Real64 DefrostCapacityDes; // Design defrost heater capacity for reporting - Real64 DefrostCapacityUser; // Hard-sized defrost heater capacity for reporting - Real64 MSRatedAirVolFlowRateDes; // Design multispeed rated air volume flow rate for reporting - Real64 MSRatedAirVolFlowRateUser; // Hard-sized multispeed rated air volume flow rate for reporting - Real64 MSRatedTotCapDesAtMaxSpeed; // Design multispeed rated total capacity for reporting (at maximum speed) - Real64 MSRatedTotCapUser; // Hard-sized multispeed rated total capacity for reporting - Real64 MSRatedSHRDes; // Design multispeed rated SHR for reporting - Real64 MSRatedSHRUser; // Hard-sized multispeed rated SHR for reporting - Real64 MSEvapCondAirFlowDes; // Design evaporative condenser air flow for reporting - Real64 MSEvapCondAirFlowUser; // Hard-sized evaporative condenser air flow for reporting - Real64 MSEvapCondAirFlow2Des; // Design low speed evaporative condenser air flow for reporting - Real64 MSEvapCondAirFlow2User; // Hard-sized low speed evaporative condenser air flow for reporting - Real64 MSEvapCondPumpElecNomPowerDes; // Design evaporative condenser pump rated power consumption for reporting - Real64 MSEvapCondPumpElecNomPowerUser; // Hard-sized evaporative condenser pump rated power consumption for reporting - Real64 MSEvapCondPumpElecNomPower2Des; // Design low speed condenser pump rated power consumption for reporting - Real64 MSEvapCondPumpElecNomPower2User; // Hard-sized low speed condenser pump rated power consumption for reporting - Real64 MSDefrostCapacityDes; // Design defrost heater capacity for reporting - Real64 MSDefrostCapacityUser; // Hard-sized defrost heater capacity for reporting - bool HardSizeNoDesRun; // Indicator to a hard-sized field with no design sizing data - bool IsAutoSize; // Indicator to autosize for reporting - bool IsCoolCoilCapAutoSize; // Indicator to cooling capacity autosize for reporting - bool SizingDesRunThisAirSys; // true if a particular air system had a Sizing:System object and system sizing done - bool SizingDesRunThisZone; // true if a particular zone had a Sizing:Zone object and zone sizing was done - std::string CompName; // component name - std::string CompType; // component type - std::string SizingString; // input field sizing description (e.g., Nominal Capacity) - bool bPRINT = true; // TRUE if sizing is reported to output (eio) - Real64 TempSize; // autosized value of coil input field - int FieldNum = 2; // IDD numeric field number where input field description is found - int SizingMethod; // Integer representation of sizing method (e.g., CoolingAirflowSizing, HeatingCapacitySizing, etc.) - bool PrintFlag; // TRUE when sizing information is reported in the eio file - bool SizeSecDXCoil; // if true do sizing calculation for secondary coil - Real64 SecCoilAirFlowDes; // Design secondary DX coil air flow for reporting - Real64 SecCoilAirFlowUser; // Hard-sized secondary DX coil air flow for reporting + Real64 DefrostCapacityDes; // Design defrost heater capacity for reporting + Real64 DefrostCapacityUser; // Hard-sized defrost heater capacity for reporting + Real64 MSRatedAirVolFlowRateDes; // Design multispeed rated air volume flow rate for reporting + Real64 MSRatedTotCapDesAtMaxSpeed; // Design multispeed rated total capacity for reporting (at maximum speed) + Real64 MSRatedSHRDes; // Design multispeed rated SHR for reporting + Real64 MSEvapCondAirFlowDes; // Design evaporative condenser air flow for reporting + Real64 MSEvapCondAirFlowUser; // Hard-sized evaporative condenser air flow for reporting + Real64 MSEvapCondPumpElecNomPowerDes; // Design evaporative condenser pump rated power consumption for reporting + Real64 MSEvapCondPumpElecNomPowerUser; // Hard-sized evaporative condenser pump rated power consumption for reporting + bool HardSizeNoDesRun; // Indicator to a hard-sized field with no design sizing data + bool IsAutoSize; // Indicator to autosize for reporting + bool SizingDesRunThisAirSys; // true if a particular air system had a Sizing:System object and system sizing done + bool SizingDesRunThisZone; // true if a particular zone had a Sizing:Zone object and zone sizing was done + std::string CompName; // component name + std::string CompType; // component type + std::string SizingString; // input field sizing description (e.g., Nominal Capacity) + bool bPRINT = true; // TRUE if sizing is reported to output (eio) + Real64 TempSize; // autosized value of coil input field + int FieldNum = 2; // IDD numeric field number where input field description is found + bool PrintFlag; // TRUE when sizing information is reported in the eio file + bool SizeSecDXCoil; // if true do sizing calculation for secondary coil + Real64 SecCoilAirFlowDes; // Design secondary DX coil air flow for reporting + Real64 SecCoilAirFlowUser; // Hard-sized secondary DX coil air flow for reporting // Initiate all reporting variables if (state.dataSize->SysSizingRunDone || state.dataSize->ZoneSizingRunDone) { @@ -7344,47 +7313,16 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) } IsAutoSize = false; - IsCoolCoilCapAutoSize = false; SizeSecDXCoil = false; - RatedAirVolFlowRateDes = 0.0; - RatedAirVolFlowRateUser = 0.0; - RatedAirVolFlowRate2Des = 0.0; - RatedAirVolFlowRate2User = 0.0; - RatedTotCapDes = 0.0; - RatedTotCapUser = 0.0; - RatedTotCap2Des = 0.0; - RatedTotCap2User = 0.0; MSRatedTotCapDesAtMaxSpeed = 0.0; - RatedSHRDes = 0.0; - RatedSHRUser = 0.0; - RatedSHR2Des = 0.0; - RatedSHR2User = 0.0; - EvapCondAirFlowDes = 0.0; - EvapCondAirFlowUser = 0.0; - EvapCondAirFlow2Des = 0.0; - EvapCondAirFlow2User = 0.0; - EvapCondPumpElecNomPowerDes = 0.0; - EvapCondPumpElecNomPowerUser = 0.0; - EvapCondPumpElecNomPower2Des = 0.0; - EvapCondPumpElecNomPower2User = 0.0; DefrostCapacityDes = 0.0; DefrostCapacityUser = 0.0; MSRatedAirVolFlowRateDes = 0.0; - MSRatedAirVolFlowRateUser = 0.0; - // MSRatedTotCapDes = 0.0; - MSRatedTotCapUser = 0.0; MSRatedSHRDes = 0.0; - MSRatedSHRUser = 0.0; MSEvapCondAirFlowDes = 0.0; MSEvapCondAirFlowUser = 0.0; - MSEvapCondAirFlow2Des = 0.0; - MSEvapCondAirFlow2User = 0.0; MSEvapCondPumpElecNomPowerDes = 0.0; MSEvapCondPumpElecNomPowerUser = 0.0; - MSEvapCondPumpElecNomPower2Des = 0.0; - MSEvapCondPumpElecNomPower2User = 0.0; - MSDefrostCapacityDes = 0.0; - MSDefrostCapacityUser = 0.0; SecCoilAirFlowDes = 0.0; SecCoilAirFlowUser = 0.0; @@ -7549,14 +7487,12 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) PrintFlag = true; state.dataSize->DataTotCapCurveIndex = thisDXCoil.CCapFTemp(Mode); if (thisDXCoil.DXCoilType_Num == HVAC::CoilDX_CoolingTwoStageWHumControl) { - SizingMethod = HVAC::CoolingCapacitySizing; CompName = thisDXCoil.Name + ":" + thisDXCoil.CoilPerformanceName(Mode); FieldNum = 1; TempSize = thisDXCoil.RatedTotCap(Mode); SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(Mode).FieldNames(FieldNum) + " [W]"; } else if (thisDXCoil.DXCoilType_Num == HVAC::CoilDX_HeatingEmpirical || thisDXCoil.DXCoilType_Num == HVAC::CoilVRF_Heating || thisDXCoil.DXCoilType_Num == HVAC::CoilVRF_FluidTCtrl_Heating) { - SizingMethod = HVAC::HeatingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 1; TempSize = thisDXCoil.RatedTotCap(Mode); @@ -7564,7 +7500,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) state.dataSize->DataCoolCoilCap = state.dataSize->DXCoolCap; } else if (thisDXCoil.DXCoilType_Num == HVAC::CoilDX_HeatPumpWaterHeaterPumped || thisDXCoil.DXCoilType_Num == HVAC::CoilDX_HeatPumpWaterHeaterWrapped) { - SizingMethod = HVAC::CoolingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 1; TempSize = thisDXCoil.RatedTotCap(Mode); @@ -7573,7 +7508,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) state.dataLoopNodes->Node(thisDXCoil.WaterInNode).Temp = thisDXCoil.RatedInletWaterTemp; // set the rated water inlet node for HPWHs for use in CalcHPWHDXCoil } else if (thisDXCoil.DXCoilType_Num == HVAC::CoilVRF_FluidTCtrl_Cooling) { - SizingMethod = HVAC::CoolingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 1; TempSize = thisDXCoil.RatedTotCap(Mode); @@ -7592,7 +7526,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) } CalcVRFCoilCapModFac(state, 0, _, CompName, CoilInTemp, _, _, _, state.dataSize->DataTotCapCurveValue); } else if (thisDXCoil.DXCoilType_Num == HVAC::CoilDX_MultiSpeedCooling) { - SizingMethod = HVAC::CoolingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 7 + (thisDXCoil.NumOfSpeeds - 1) * 13; state.dataSize->DataTotCapCurveIndex = thisDXCoil.MSCCapFTemp(thisDXCoil.NumOfSpeeds); @@ -7600,7 +7533,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) PrintFlag = false; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(Mode).FieldNames(FieldNum) + " [W]"; } else if (thisDXCoil.DXCoilType_Num == HVAC::CoilDX_MultiSpeedHeating) { - SizingMethod = HVAC::HeatingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 10 + (thisDXCoil.NumOfSpeeds - 1) * 5; state.dataSize->DataTotCapCurveIndex = thisDXCoil.MSCCapFTemp(thisDXCoil.NumOfSpeeds); @@ -7608,7 +7540,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) PrintFlag = false; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(Mode).FieldNames(FieldNum) + " [W]"; } else { - SizingMethod = HVAC::CoolingCapacitySizing; CompName = thisDXCoil.Name; FieldNum = 1; TempSize = thisDXCoil.RatedTotCap(Mode); @@ -7749,7 +7680,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) CompName = thisDXCoil.Name; FieldNum = 15; // Low Speed Evaporative Condenser Air Flow Rate SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(Mode).FieldNames(FieldNum) + " [m3/s]"; - SizingMethod = HVAC::AutoCalculateSizing; CompType = thisDXCoil.DXCoilType; // Autosize low speed condenser air flow to 1/3 Total Capacity * 0.000114 m3/s/w (850 cfm/ton) state.dataSize->DataConstantUsedForSizing = thisDXCoil.RatedTotCap(Mode); @@ -7783,7 +7713,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) if (state.dataGlobal->isEpJSON) stringOverride = "evaporative_condenser_pump_rated_power_consumption [W]"; } } - SizingMethod = HVAC::AutoCalculateSizing; CompType = thisDXCoil.DXCoilType; // Autosize high speed evap condenser pump power to Total Capacity * 0.004266 w/w (15 w/ton) state.dataSize->DataConstantUsedForSizing = thisDXCoil.RatedTotCap(Mode); @@ -7892,7 +7821,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) CompName = thisDXCoil.Name; FieldNum = 7; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(Mode).FieldNames(FieldNum); - SizingMethod = HVAC::AutoCalculateSizing; CompType = thisDXCoil.DXCoilType; // Autosize low speed SHR to be the same as high speed SHR state.dataSize->DataConstantUsedForSizing = thisDXCoil.RatedSHR(Mode); @@ -7974,7 +7902,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) FieldNum = 10 + (Mode - 1) * 14; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [m3/s]"; if (IsAutoSize || !HardSizeNoDesRun) { - SizingMethod = HVAC::AutoCalculateSizing; // Autosize low speed flow to fraction of the highest speed flow state.dataSize->DataConstantUsedForSizing = thisDXCoil.MSRatedAirVolFlowRate(thisDXCoil.NumOfSpeeds); if (!IsAutoSize && !HardSizeNoDesRun) state.dataSize->DataConstantUsedForSizing = MSRatedAirVolFlowRateDes; @@ -8025,7 +7952,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) if (Mode == thisDXCoil.NumOfSpeeds) { PrintFlag = true; state.dataSize->DataFlowUsedForSizing = thisDXCoil.MSRatedAirVolFlowRate(Mode); - SizingMethod = HVAC::CoolingCapacitySizing; FieldNum = 7 + (Mode - 1) * 14; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [W]"; state.dataSize->DataEMSOverrideON = thisDXCoil.RatedTotCapEMSOverrideOn(Mode); @@ -8039,7 +7965,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) sizerCoolingCapacity.overrideSizingString(SizingString); sizerCoolingCapacity.initializeWithinEP(state, CompType, CompName, PrintFlag, RoutineName); TempSize = sizerCoolingCapacity.size(state, TempSize, ErrorsFound); - SizingMethod = HVAC::AutoCalculateSizing; state.dataSize->DataConstantUsedForSizing = TempSize; state.dataSize->DataFractionUsedForSizing = 1.0; MSRatedTotCapDesAtMaxSpeed = TempSize; @@ -8059,11 +7984,9 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) } else { // cooling capacity at lower speeds PrintFlag = true; - SizingMethod = HVAC::CoolingCapacitySizing; FieldNum = 7 + (Mode - 1) * 14; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [W]"; if (IsAutoSize || !HardSizeNoDesRun) { - SizingMethod = HVAC::AutoCalculateSizing; // autosize low speed capacity to fraction of the highest speed capacity if (!HardSizeNoDesRun) { state.dataSize->DataConstantUsedForSizing = MSRatedTotCapDesAtMaxSpeed; @@ -8318,7 +8241,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) FieldNum = 12 + (Mode - 1) * 6; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [m3/s]"; if (IsAutoSize || !HardSizeNoDesRun) { - SizingMethod = HVAC::AutoCalculateSizing; // Auto-size low speed flow to fraction of the highest speed capacity state.dataSize->DataConstantUsedForSizing = thisDXCoil.MSRatedAirVolFlowRate(thisDXCoil.NumOfSpeeds); if (!IsAutoSize && !HardSizeNoDesRun) state.dataSize->DataConstantUsedForSizing = MSRatedAirVolFlowRateDes; @@ -8407,7 +8329,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) CompName = thisDXCoil.Name; CompType = thisDXCoil.DXCoilType; if (Mode == thisDXCoil.NumOfSpeeds) { - SizingMethod = HVAC::HeatingCapacitySizing; state.dataSize->DataFlowUsedForSizing = thisDXCoil.MSRatedAirVolFlowRate(Mode); FieldNum = 10 + (Mode - 1) * 6; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [W]"; @@ -8415,7 +8336,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) if (IsAutoSize || !HardSizeNoDesRun) { // Heating capacity is assumed to be equal to the cooling capacity PrintFlag = false; - SizingMethod = HVAC::AutoCalculateSizing; state.dataSize->DataFractionUsedForSizing = 1.0; if (thisDXCoil.CompanionUpstreamDXCoil > 0) { NumOfSpeedCompanion = state.dataDXCoils->DXCoil(thisDXCoil.CompanionUpstreamDXCoil).NumOfSpeeds; @@ -8431,7 +8351,6 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) sizerHeatingCapacity.overrideSizingString(SizingString); sizerHeatingCapacity.initializeWithinEP(state, CompType, CompName, PrintFlag, RoutineName); MSRatedTotCapDesAtMaxSpeed = sizerHeatingCapacity.size(state, TempSize, ErrorsFound); - SizingMethod = HVAC::AutoCalculateSizing; state.dataSize->DataConstantUsedForSizing = MSRatedTotCapDesAtMaxSpeed; state.dataSize->DataFractionUsedForSizing = 1.0; } @@ -8449,11 +8368,9 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) } } else { PrintFlag = true; - SizingMethod = HVAC::HeatingCapacitySizing; FieldNum = 10 + (Mode - 1) * 6; SizingString = state.dataDXCoils->DXCoilNumericFields(DXCoilNum).PerfMode(1).FieldNames(FieldNum) + " [W]"; if (IsAutoSize || !HardSizeNoDesRun) { - SizingMethod = HVAC::AutoCalculateSizing; // autosize low speed capacity to fraction of the highest speed capacity if (!HardSizeNoDesRun) { state.dataSize->DataConstantUsedForSizing = MSRatedTotCapDesAtMaxSpeed;