Skip to content

Commit

Permalink
Reduce scope
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Aug 21, 2024
1 parent be8f796 commit def3f7a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/EnergyPlus/HVACVariableRefrigerantFlow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7531,9 +7531,7 @@ void SizeVRF(EnergyPlusData &state, int const VRFTUNum)
std::string SizingString; // input field sizing description (e.g., Nominal Capacity)
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 name (e.g., CoolingAirflowSizing, HeatingAirflowSizing, CoolingCapacitySizing,
// HeatingCapacitySizing, etc.)
bool PrintFlag = true; // TRUE when sizing information is reported in the eio file
bool PrintFlag = true; // TRUE when sizing information is reported in the eio file

auto &ZoneEqSizing = state.dataSize->ZoneEqSizing;

Expand Down Expand Up @@ -7647,7 +7645,9 @@ void SizeVRF(EnergyPlusData &state, int const VRFTUNum)

int zoneHVACIndex = state.dataHVACVarRefFlow->VRFTU(VRFTUNum).HVACSizingIndex;

SizingMethod = CoolingAirflowSizing;
// Integer representation of sizing method name (e.g., CoolingAirflowSizing, HeatingAirflowSizing, CoolingCapacitySizing,
// HeatingCapacitySizing, etc.)
int SizingMethod = CoolingAirflowSizing;
PrintFlag = true;
bool errorsFound = false;
// supply air flow rate sizing method (SupplyAirFlowRate, FlowPerFloorArea, FractionOfAutosizedCoolingAirflow,
Expand Down Expand Up @@ -8011,7 +8011,7 @@ void SizeVRF(EnergyPlusData &state, int const VRFTUNum)

FieldNum = 3; // N3, \field Supply Air Flow Rate During Heating Operation
SizingString = state.dataHVACVarRefFlow->VRFTUNumericFields(VRFTUNum).FieldNames(FieldNum) + " [m3/s]";
SizingMethod = HeatingAirflowSizing;
int SizingMethod = HeatingAirflowSizing;
TempSize = state.dataHVACVarRefFlow->VRFTU(VRFTUNum).MaxHeatAirVolFlow;
errorsFound = false;
HeatingAirFlowSizer sizingHeatingAirFlow;
Expand Down Expand Up @@ -8364,7 +8364,6 @@ void SizeVRF(EnergyPlusData &state, int const VRFTUNum)
state.dataHVACVarRefFlow->VRFTU(VRFTUNum).DesignSuppHeatingCapacity = sizerWaterHeatingCapacity.size(state, TempSize, ErrorsFound);
}
} else {
SizingMethod = HVAC::HeatingCapacitySizing;
SizingString = "Supplemental Heating Coil Nominal Capacity [W]";
if (TempSize == DataSizing::AutoSize) {
IsAutoSize = true;
Expand Down

0 comments on commit def3f7a

Please sign in to comment.