From f968a2cdf0cb54b9601193697f886cb89ee1af1c Mon Sep 17 00:00:00 2001 From: Lixing Gu Date: Thu, 1 Aug 2024 10:11:51 -0400 Subject: [PATCH] Remove an unnecessary function --- .../include/AirflowNetwork/Solver.hpp | 3 --- src/EnergyPlus/AirflowNetwork/src/Solver.cpp | 24 ------------------- 2 files changed, 27 deletions(-) diff --git a/src/EnergyPlus/AirflowNetwork/include/AirflowNetwork/Solver.hpp b/src/EnergyPlus/AirflowNetwork/include/AirflowNetwork/Solver.hpp index 93e34b5669e..b3f013708e8 100644 --- a/src/EnergyPlus/AirflowNetwork/include/AirflowNetwork/Solver.hpp +++ b/src/EnergyPlus/AirflowNetwork/include/AirflowNetwork/Solver.hpp @@ -307,7 +307,6 @@ namespace AirflowNetwork { void venting_control(int i, // AirflowNetwork surface number Real64 &OpenFactor // Window or door opening factor (used to calculate airflow) ); - void assign_fan_airloop(); void validate_distribution(); void validate_fan_flowrate(); // Catch a fan flow rate from EPlus input file and add a flag for VAV terminal damper void validate_exhaust_fan_input(); @@ -364,7 +363,6 @@ namespace AirflowNetwork { int NumOfOAFans = 0; // number of OutdoorAir fans int NumOfReliefFans = 0; // number of OutdoorAir relief fans bool AirflowNetworkGetInputFlag = true; - bool AssignFanAirLoopNumFlag = true; bool ValidateDistributionSystemFlag = true; Array1D FacadeAng = Array1D(5); // Facade azimuth angle (for walls, angle of outward normal to facade measured clockwise from North) (deg) @@ -592,7 +590,6 @@ namespace AirflowNetwork { NumOfOAFans = 0; NumOfReliefFans = 0; AirflowNetworkGetInputFlag = true; - AssignFanAirLoopNumFlag = true; ValidateDistributionSystemFlag = true; FacadeAng = Array1D(5); AirflowNetworkZnRpt.deallocate(); diff --git a/src/EnergyPlus/AirflowNetwork/src/Solver.cpp b/src/EnergyPlus/AirflowNetwork/src/Solver.cpp index 058ea051962..fb175eb7226 100644 --- a/src/EnergyPlus/AirflowNetwork/src/Solver.cpp +++ b/src/EnergyPlus/AirflowNetwork/src/Solver.cpp @@ -269,12 +269,6 @@ namespace AirflowNetwork { // VAV terminal set only if (present(FirstHVACIteration) && FirstHVACIteration) VAVTerminalRatio = 0.0; - // Set AirLoop Number for fans - if (FirstHVACIteration && AssignFanAirLoopNumFlag) { - assign_fan_airloop(); - AssignFanAirLoopNumFlag = false; - } - if (AirflowNetworkFanActivated && distribution_simulated) { if (ValidateDistributionSystemFlag) { validate_distribution(); @@ -10098,24 +10092,6 @@ namespace AirflowNetwork { } } - void Solver::assign_fan_airloop() - { - // Assign the system Fan AirLoop Number based on the zone inlet node - - for (int i = 1; i <= AirflowNetworkNumOfZones; i++) { - for (int j = 1; j <= m_state.dataGlobal->NumOfZones; j++) { - if (!m_state.dataZoneEquip->ZoneEquipConfig(j).IsControlled) continue; - if ((MultizoneZoneData(i).ZoneNum == j) && (m_state.dataZoneEquip->ZoneEquipConfig(j).NumInletNodes > 0)) { - for (int k = 1; k <= DisSysNumOfCVFs; k++) { - if (DisSysCompCVFData(k).AirLoopNum == 0) { - DisSysCompCVFData(k).AirLoopNum = m_state.dataZoneEquip->ZoneEquipConfig(j).InletNodeAirLoopNum(1); - } - } - } - } - } - } - void Solver::validate_distribution() {