@@ -1631,8 +1631,7 @@ namespace StandardRatings {
1631
1631
Real64 IEER_2022(0.0); // Integerated Energy Efficiency Ratio in SI [W/W]
1632
1632
Real64 NetCoolingCapRated2022(0.0);
1633
1633
1634
- int ns = 2;
1635
- Array1D<Real64> NetCoolingCapRated_2023(ns); // Net Cooling Coil capacity at Rated conditions, accounting for supply fan heat [W]
1634
+ int constexpr ns = 2;
1636
1635
Array1D<Real64> NetTotCoolingCapRated_2023(16); // net total cooling capacity of DX Coils for the sixteen ASHRAE Std 127 Test conditions
1637
1636
Array1D<Real64> TotElectricPowerRated_2023(16); // total electric power of DX Coils for the sixteen ASHRAE Std 127 Test conditions
1638
1637
@@ -1716,8 +1715,6 @@ namespace StandardRatings {
1716
1715
TSEIRFTemp,
1717
1716
TSRatedCOP,
1718
1717
EIRFFlowCurveIndex);
1719
- NetCoolingCapRated_2023(ns) = NetCoolingCapRated2022;
1720
-
1721
1718
} else {
1722
1719
ShowSevereError(state,
1723
1720
"Standard Ratings: Coil:Cooling:DX:TwoSpeed either has a zero rated total cooling capacity or zero air flow rate. "
@@ -1894,7 +1891,6 @@ namespace StandardRatings {
1894
1891
ObjexxFCL::Optional<const HPdefrostControl> DefrostControl)
1895
1892
{
1896
1893
Real64 DesignHeatingRequirement2023(0.0); // HSPF2 minimum design heating requirement [W]
1897
- int BinNum2023; // HSPF2 bin number counter
1898
1894
Real64 FractionalBinHours2023(0.0); // HSPF2 Fractional bin hours for the heating season [-]
1899
1895
Real64 BuildingLoad2023(0.0); // HSPF2 Building space conditioning load corresponding to an outdoor bin temperature [W]
1900
1896
Real64 NetHeatingCapReduced2023(0.0); // HSPF2 Net Heating Coil capacity corresponding to an outdoor bin temperature [W]
@@ -1920,7 +1916,7 @@ namespace StandardRatings {
1920
1916
DesignHeatingRequirement2023 = NetHeatingCapRated_2023;
1921
1917
Int64 RN = static_cast<int64_t>(RegionNum);
1922
1918
1923
- for (BinNum2023 = 0; BinNum2023 < TotalNumOfTemperatureBinsHSPF2[RN - 1]; ++BinNum2023) {
1919
+ for (int BinNum2023 = 0; BinNum2023 < TotalNumOfTemperatureBinsHSPF2[RN - 1]; ++BinNum2023) {
1924
1920
1925
1921
FractionalBinHours2023 = FracBinHoursAtOutdoorBinTempHSPF2[RN - 1][BinNum2023];
1926
1922
@@ -2462,7 +2458,7 @@ namespace StandardRatings {
2462
2458
Array1D<int> MSEIRAirFFlow;
2463
2459
Array1D<int> MSPLRFPLF;
2464
2460
2465
- int nsp = operatingMode.speeds.size();
2461
+ int const nsp = operatingMode.speeds.size();
2466
2462
2467
2463
for (int i = 0; i < nsp; ++i) {
2468
2464
CoilCoolingDXCurveFitSpeed speed = operatingMode.speeds[i];
@@ -2515,7 +2511,7 @@ namespace StandardRatings {
2515
2511
Array1D<Real64> MSRatedCOP;
2516
2512
Array1D<int> MSEIRAirFFlow;
2517
2513
2518
- int nsp = operatingMode.speeds.size();
2514
+ int const nsp = operatingMode.speeds.size();
2519
2515
2520
2516
for (int i = 0; i < nsp; ++i) {
2521
2517
CoilCoolingDXCurveFitSpeed speed = operatingMode.speeds[i];
@@ -5699,10 +5695,6 @@ namespace StandardRatings {
5699
5695
Real64 NetHeatingCapRatedHighTemp(0.0);
5700
5696
Real64 NetHeatingCapRatedLowTemp(0.0);
5701
5697
5702
- int BinNum; // bin number counter
5703
- int spnum; // compressor speed number
5704
- int StandardDHRNum; // Integer counter for standardized DHRs
5705
-
5706
5698
Array1D<Real64> FanPowerPerEvapAirFlowRate(nsp); // Fan power per air volume flow rate through the evaporator coil [W/(m3/s)]
5707
5699
Array1D<Real64> TotHeatCapTestH0(nsp); // Total cooling capacity at A2 test condition (High speed)
5708
5700
Array1D<Real64> TotHeatCapTestH1(nsp); // Total cooling capacity at B2 test condition (High speed)
@@ -5758,7 +5750,7 @@ namespace StandardRatings {
5758
5750
NetHeatingCapWeighted = 0.0;
5759
5751
TotHeatingElecPowerWeighted = 0.0;
5760
5752
5761
- for (spnum = 1; spnum <= nsp; ++spnum) {
5753
+ for (int spnum = 1; spnum <= nsp; ++spnum) {
5762
5754
FanPowerPerEvapAirFlowRate(spnum) = 0.0;
5763
5755
if (MSFanPowerPerEvapAirFlowRateInput(spnum) <= 0.0) {
5764
5756
FanPowerPerEvapAirFlowRate(spnum) = DefaultFanPowerPerEvapAirFlowRate;
@@ -5768,7 +5760,7 @@ namespace StandardRatings {
5768
5760
}
5769
5761
5770
5762
// Proceed withe HSPF value calculation
5771
- for (spnum = 1; spnum <= nsp; ++spnum) {
5763
+ for (int spnum = 1; spnum <= nsp; ++spnum) {
5772
5764
TotCapFlowModFac(spnum) = Curve::CurveValue(state, CapFFlowCurveIndex(spnum), AirMassFlowRatioRated);
5773
5765
{
5774
5766
if (state.dataCurveManager->PerfCurve(CapFTempCurveIndex(spnum))->numDims == 1) {
@@ -5841,7 +5833,7 @@ namespace StandardRatings {
5841
5833
DesignHeatingRequirementMax = 2.20 * DesignHeatingRequirementMin;
5842
5834
}
5843
5835
// Set the Design Heating Requirement to nearest standard value (From Table 18, AHRI/ANSI Std 210/240)
5844
- for (StandardDHRNum = 0; StandardDHRNum < TotalNumOfStandardDHRs - 1; ++StandardDHRNum) {
5836
+ for (int StandardDHRNum = 0; StandardDHRNum < TotalNumOfStandardDHRs - 1; ++StandardDHRNum) {
5845
5837
if (DesignHeatingRequirementMin < StandardDesignHeatingRequirement[0]) {
5846
5838
5847
5839
DesignHeatingRequirement = min(StandardDesignHeatingRequirement[0], DesignHeatingRequirementMax);
@@ -5862,7 +5854,7 @@ namespace StandardRatings {
5862
5854
// The minimum temperature below which the compressor is turned off
5863
5855
OATempCompressorOff = MinOATCompressor;
5864
5856
5865
- for (BinNum = 0; BinNum < TotalNumOfTemperatureBins[RegionNum - 1]; ++BinNum) { // NumOfOATempBins
5857
+ for (int BinNum = 0; BinNum < TotalNumOfTemperatureBins[RegionNum - 1]; ++BinNum) { // NumOfOATempBins
5866
5858
5867
5859
FractionalBinHours = FracBinHoursAtOutdoorBinTemp[RegionNum - 1][BinNum];
5868
5860
@@ -5889,7 +5881,7 @@ namespace StandardRatings {
5889
5881
}
5890
5882
5891
5883
// determine the speed number
5892
- for (spnum = 1; spnum <= nsp - 1; ++spnum) {
5884
+ for (int spnum = 1; spnum <= nsp - 1; ++spnum) {
5893
5885
// Low Speed
5894
5886
if (OutdoorBinTemperature[BinNum] < -8.33) {
5895
5887
HeatingCapacityLS = TotHeatCapTestH3(spnum) + ((TotHeatCapTestH1(spnum) - TotHeatCapTestH3(spnum)) *
0 commit comments