diff --git a/src/EnergyPlus/BoilerSteam.cc b/src/EnergyPlus/BoilerSteam.cc index 7cff91d5e66..20782ce5c1f 100644 --- a/src/EnergyPlus/BoilerSteam.cc +++ b/src/EnergyPlus/BoilerSteam.cc @@ -153,10 +153,8 @@ namespace BoilerSteam { int NumAlphas; // Number of elements in the alpha array int NumNums; // Number of elements in the numeric array int IOStat; // IO Status when calling get input subroutine - int SteamFluidIndex; // Fluid Index for Steam bool ErrorsFound(false); - SteamFluidIndex = 0; state.dataIPShortCut->cCurrentModuleObject = "Boiler:Steam"; int numBoilers = state.dataInputProcessing->inputProcessor->getNumObjectsFound(state, state.dataIPShortCut->cCurrentModuleObject); diff --git a/src/EnergyPlus/FluidProperties.cc b/src/EnergyPlus/FluidProperties.cc index 7f6728f391f..73a0a3b239a 100644 --- a/src/EnergyPlus/FluidProperties.cc +++ b/src/EnergyPlus/FluidProperties.cc @@ -4852,27 +4852,6 @@ namespace Fluid { //***************************************************************************** - bool CheckFluidPropertyName(EnergyPlusData const &state, - std::string const &name) // Name from input(?) to be checked against valid FluidPropertyNames - { - - // FUNCTION INFORMATION: - // AUTHOR Linda K. Lawrie - // DATE WRITTEN October 2002 - - // PURPOSE OF THIS FUNCTION: - // This function checks on an input fluid property to make sure it is valid. - auto const &df = state.dataFluid; - - auto foundRefrig = std::find_if(df->refrigs.begin(), df->refrigs.end(), [name](RefrigProps const *refrig) { return refrig->Name == name; }); - if (foundRefrig != df->refrigs.end()) return true; - - auto foundGlycol = std::find_if(df->glycols.begin(), df->glycols.end(), [name](GlycolProps const *glycol) { return glycol->Name == name; }); - if (foundGlycol != df->glycols.end()) return true; - - return false; - } - void ReportOrphanFluids(EnergyPlusData &state) { @@ -4930,93 +4909,18 @@ namespace Fluid { } } - void GetFluidDensityTemperatureLimits(EnergyPlusData &state, int const FluidIndex, Real64 &MinTempLimit, Real64 &MaxTempLimit) + void GlycolProps::getDensityTemperatureLimits(EnergyPlusData &state, Real64 &MinTempLimit, Real64 &MaxTempLimit) { - if (FluidIndex > 0) { - auto const &df = state.dataFluid->glycols(FluidIndex); - MinTempLimit = df->RhoLowTempValue; - MaxTempLimit = df->RhoHighTempValue; - } + MinTempLimit = this->RhoLowTempValue; + MaxTempLimit = this->RhoHighTempValue; } - void GetFluidSpecificHeatTemperatureLimits(EnergyPlusData &state, int const FluidIndex, Real64 &MinTempLimit, Real64 &MaxTempLimit) + void GlycolProps::getSpecificHeatTemperatureLimits(EnergyPlusData &state, Real64 &MinTempLimit, Real64 &MaxTempLimit) { - if (FluidIndex > 0) { - auto const &df = state.dataFluid->glycols(FluidIndex); - MinTempLimit = df->CpLowTempValue; - MaxTempLimit = df->CpHighTempValue; - } + MinTempLimit = this->CpLowTempValue; + MaxTempLimit = this->CpHighTempValue; } -#ifdef GET_OUT - GlycolAPI::GlycolAPI(EnergyPlusData &state, std::string const &glycolName) - { - this->glycolName = EnergyPlus::Util::makeUPPER(glycolName); - this->glycolIndex = 0; - this->cf = "GlycolAPI:Instance"; - if (this->glycolName != "WATER") { - EnergyPlus::ShowFatalError(state, "Can only do water right now"); - } - } - Real64 GlycolAPI::specificHeat(EnergyPlusData &state, Real64 temperature) - { - return Fluid::GetSpecificHeatGlycol(state, this->glycolName, temperature, this->glycolIndex, this->cf); - } - Real64 GlycolAPI::density(EnergyPlusData &state, Real64 temperature) - { - return Fluid::GetDensityGlycol(state, this->glycolName, temperature, this->glycolIndex, this->cf); - } - Real64 GlycolAPI::conductivity(EnergyPlusData &state, Real64 temperature) - { - return Fluid::GetConductivityGlycol(state, this->glycolName, temperature, this->glycolIndex, this->cf); - } - Real64 GlycolAPI::viscosity(EnergyPlusData &state, Real64 temperature) - { - return Fluid::GetViscosityGlycol(state, this->glycolName, temperature, this->glycolIndex, this->cf); - } - - RefrigerantAPI::RefrigerantAPI(EnergyPlusData &state, std::string const &refrigName) - { - this->rName = EnergyPlus::Util::makeUPPER(refrigName); - this->rIndex = 0; - this->cf = "RefrigerantAPI:Instance"; - if (this->rName != "STEAM") { - EnergyPlus::ShowFatalError(state, "Can only do steam right now"); - } - } - Real64 RefrigerantAPI::saturationPressure(EnergyPlusData &state, Real64 temperature) - { - return Fluid::GetSatPressureRefrig(state, this->rName, temperature, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::saturationTemperature(EnergyPlusData &state, Real64 pressure) - { - return Fluid::GetSatTemperatureRefrig(state, this->rName, pressure, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::saturatedEnthalpy(EnergyPlusData &state, Real64 temperature, Real64 quality) - { - return Fluid::GetSatEnthalpyRefrig(state, this->rName, temperature, quality, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::saturatedDensity(EnergyPlusData &state, Real64 temperature, Real64 quality) - { - return Fluid::GetSatDensityRefrig(state, this->rName, temperature, quality, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::saturatedSpecificHeat(EnergyPlusData &state, Real64 temperature, Real64 quality) - { - return Fluid::GetSatSpecificHeatRefrig(state, this->rName, temperature, quality, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::superHeatedEnthalpy(EnergyPlusData &state, Real64 temperature, Real64 pressure) - { - return Fluid::GetSupHeatEnthalpyRefrig(state, this->rName, temperature, pressure, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::superHeatedPressure(EnergyPlusData &state, Real64 temperature, Real64 enthalpy) - { - return Fluid::GetSupHeatPressureRefrig(state, this->rName, temperature, enthalpy, this->rIndex, this->cf); - } - Real64 RefrigerantAPI::superHeatedDensity(EnergyPlusData &state, Real64 temperature, Real64 pressure) - { - return Fluid::GetSupHeatDensityRefrig(state, this->rName, temperature, pressure, this->rIndex, this->cf); - } -#endif // GET_OUT #ifdef UNUSED_FLUID_PROPS static constexpr std::array, DefaultNumSteamSuperheatedPressure> diff --git a/src/EnergyPlus/FluidProperties.hh b/src/EnergyPlus/FluidProperties.hh index 0d2f3851ea4..277068188c0 100644 --- a/src/EnergyPlus/FluidProperties.hh +++ b/src/EnergyPlus/FluidProperties.hh @@ -375,18 +375,23 @@ namespace Fluid { Real64 getViscosity(EnergyPlusData &state, Real64 Temperature, // actual temperature given as input std::string_view CalledFrom); // routine this function was called from (error messages) + + void getDensityTemperatureLimits(EnergyPlusData &state, + Real64 &MinTempLimit, + Real64 &MaxTempLimit); + + void getSpecificHeatTemperatureLimits(EnergyPlusData &state, + Real64 &MinTempLimit, + Real64 &MaxTempLimit); + + }; struct cached_tsh { // Members - std::uint64_t iT; - Real64 sh; - - // Default Constructor - cached_tsh() : iT(1000), sh(0.0) - { - } + std::uint64_t iT = 1000; + Real64 sh = 0.0; }; void GetFluidPropertiesData(EnergyPlusData &state); @@ -571,48 +576,8 @@ namespace Fluid { int UpperBound // Valid values upper bound (set by calling program) ); - bool CheckFluidPropertyName(EnergyPlusData const &state, - std::string const &NameToCheck); // Name from input(?) to be checked against valid FluidPropertyNames - void ReportOrphanFluids(EnergyPlusData &state); - - void GetFluidDensityTemperatureLimits(EnergyPlusData &state, int FluidIndex, Real64 &MinTempLimit, Real64 &MaxTempLimit); - - void GetFluidSpecificHeatTemperatureLimits(EnergyPlusData &state, int FluidIndex, Real64 &MinTempLimit, Real64 &MaxTempLimit); - -#ifdef GET_OUT - struct GlycolAPI - { - std::string glycolName; - int glycolIndex; - std::string cf; - explicit GlycolAPI(EnergyPlusData &state, std::string const &glycolName); - ~GlycolAPI() = default; - Real64 specificHeat(EnergyPlusData &state, Real64 temperature); - Real64 density(EnergyPlusData &state, Real64 temperature); - Real64 conductivity(EnergyPlusData &state, Real64 temperature); - Real64 viscosity(EnergyPlusData &state, Real64 temperature); - }; - - struct RefrigerantAPI - { - std::string rName; - int rIndex; - std::string cf; - explicit RefrigerantAPI(EnergyPlusData &state, std::string const &refrigName); - ~RefrigerantAPI() = default; - Real64 saturationPressure(EnergyPlusData &state, Real64 temperature); - Real64 saturationTemperature(EnergyPlusData &state, Real64 pressure); - Real64 saturatedEnthalpy(EnergyPlusData &state, Real64 temperature, Real64 quality); - Real64 saturatedDensity(EnergyPlusData &state, Real64 temperature, Real64 quality); - Real64 saturatedSpecificHeat(EnergyPlusData &state, Real64 temperature, Real64 quality); - Real64 superHeatedEnthalpy(EnergyPlusData &state, Real64 temperature, Real64 pressure); - Real64 superHeatedPressure(EnergyPlusData &state, Real64 temperature, Real64 enthalpy); - Real64 superHeatedDensity(EnergyPlusData &state, Real64 temperature, Real64 pressure); - }; -#endif // GET_OUT - -} // namespace FluidProperties +} // namespace Fluid struct FluidData : BaseGlobalStruct { diff --git a/src/EnergyPlus/OutdoorAirUnit.hh b/src/EnergyPlus/OutdoorAirUnit.hh index 977c9c4f3fc..5c132fa75f0 100644 --- a/src/EnergyPlus/OutdoorAirUnit.hh +++ b/src/EnergyPlus/OutdoorAirUnit.hh @@ -151,7 +151,7 @@ namespace OutdoorAirUnit { int CoilWaterOutletNode; DataPlant::PlantEquipmentType CoilType; PlantLocation plantLoc; - int FluidIndex; // used in Steam... + int FluidIndex = 0; Real64 MaxVolWaterFlow; Real64 MaxWaterMassFlow; Real64 MinVolWaterFlow; @@ -162,7 +162,7 @@ namespace OutdoorAirUnit { // Default Constructor OAEquipList() : Type(CompType::Invalid), ComponentIndex(0), CoilAirInletNode(0), CoilAirOutletNode(0), CoilWaterInletNode(0), CoilWaterOutletNode(0), - CoilType(DataPlant::PlantEquipmentType::Invalid), plantLoc{}, FluidIndex(0), MaxVolWaterFlow(0.0), MaxWaterMassFlow(0.0), + CoilType(DataPlant::PlantEquipmentType::Invalid), plantLoc{}, MaxVolWaterFlow(0.0), MaxWaterMassFlow(0.0), MinVolWaterFlow(0.0), MinWaterMassFlow(0.0), FirstPass(true) { } diff --git a/src/EnergyPlus/PackagedThermalStorageCoil.cc b/src/EnergyPlus/PackagedThermalStorageCoil.cc index 9e2f175a746..cf9089fa59b 100644 --- a/src/EnergyPlus/PackagedThermalStorageCoil.cc +++ b/src/EnergyPlus/PackagedThermalStorageCoil.cc @@ -198,9 +198,6 @@ void GetTESCoilInput(EnergyPlusData &state) // Using/Aliasing using BranchNodeConnections::TestCompSet; using DataZoneEquipment::FindControlledZoneIndexFromSystemNodeNumberForZone; - using Fluid::CheckFluidPropertyName; - using Fluid::GetFluidDensityTemperatureLimits; - using Fluid::GetFluidSpecificHeatTemperatureLimits; using GlobalNames::VerifyUniqueCoilName; using NodeInputManager::GetOnlySingleNode; using ScheduleManager::GetScheduleIndex; @@ -290,7 +287,6 @@ void GetTESCoilInput(EnergyPlusData &state) break; case MediaType::Water: thisTESCoil.StorageFluidName = "WATER"; - thisTESCoil.StorageFluidIndex = Fluid::GetGlycolNum(state, "WATER"); thisTESCoil.glycol = Fluid::GetWater(state); break; default: @@ -1549,15 +1545,15 @@ void GetTESCoilInput(EnergyPlusData &state) if (!state.dataIPShortCut->lNumericFieldBlanks(42)) { thisTESCoil.MinimumFluidTankTempLimit = state.dataIPShortCut->rNumericArgs(42); } else { - GetFluidDensityTemperatureLimits(state, thisTESCoil.StorageFluidIndex, TminRho, TmaxRho); - GetFluidSpecificHeatTemperatureLimits(state, thisTESCoil.StorageFluidIndex, TminCp, TmaxCp); + thisTESCoil.glycol->getDensityTemperatureLimits(state, TminRho, TmaxRho); + thisTESCoil.glycol->getSpecificHeatTemperatureLimits(state, TminCp, TmaxCp); thisTESCoil.MinimumFluidTankTempLimit = max(TminRho, TminCp); } if (!state.dataIPShortCut->lNumericFieldBlanks(43)) { thisTESCoil.MaximumFluidTankTempLimit = state.dataIPShortCut->rNumericArgs(43); } else { - GetFluidDensityTemperatureLimits(state, thisTESCoil.StorageFluidIndex, TminRho, TmaxRho); - GetFluidSpecificHeatTemperatureLimits(state, thisTESCoil.StorageFluidIndex, TminCp, TmaxCp); + thisTESCoil.glycol->getDensityTemperatureLimits(state, TminRho, TmaxRho); + thisTESCoil.glycol->getSpecificHeatTemperatureLimits(state, TminCp, TmaxCp); thisTESCoil.MaximumFluidTankTempLimit = min(TmaxRho, TmaxCp); } } diff --git a/src/EnergyPlus/PackagedThermalStorageCoil.hh b/src/EnergyPlus/PackagedThermalStorageCoil.hh index 85653528ca1..f2af1eea6da 100644 --- a/src/EnergyPlus/PackagedThermalStorageCoil.hh +++ b/src/EnergyPlus/PackagedThermalStorageCoil.hh @@ -323,7 +323,6 @@ namespace PackagedThermalStorageCoil { // TES tank MediaType StorageMedia; // water/fluid or ice based TES std::string StorageFluidName; // if user defined, name of fluid type - int StorageFluidIndex = 0; // if user defined, index of fluid type Fluid::GlycolProps *glycol = nullptr; Real64 FluidStorageVolume; // volume of water in storage tank for water systems [m3/s] @@ -422,7 +421,7 @@ namespace PackagedThermalStorageCoil { CondInletTemp(0.0), EvapCondPumpElecNomPower(0.0), EvapCondPumpElecEnergy(0.0), BasinHeaterPowerFTempDiff(0.0), BasinHeaterAvailSchedNum(0), BasinHeaterSetpointTemp(0.0), EvapWaterSupplyMode(EvapWaterSupply::WaterSupplyFromMains), EvapWaterSupTankID(0), EvapWaterTankDemandARRID(0), CondensateCollectMode(CondensateAction::Discard), CondensateTankID(0), - CondensateTankSupplyARRID(0), StorageMedia(MediaType::Invalid), StorageFluidIndex(0), FluidStorageVolume(0.0), IceStorageCapacity(0.0), + CondensateTankSupplyARRID(0), StorageMedia(MediaType::Invalid), FluidStorageVolume(0.0), IceStorageCapacity(0.0), StorageCapacitySizingFactor(0.0), MinimumFluidTankTempLimit(0.0), MaximumFluidTankTempLimit(100.0), RatedFluidTankTemp(0.0), StorageAmbientNodeNum(0), StorageUA(0.0), TESPlantConnectionAvailable(false), TESPlantInletNodeNum(0), TESPlantOutletNodeNum(0), TESPlantLoopNum(0), TESPlantLoopSideNum(DataPlant::LoopSideLocation::Invalid), TESPlantBranchNum(0), TESPlantCompNum(0), diff --git a/src/EnergyPlus/PlantPressureSystem.cc b/src/EnergyPlus/PlantPressureSystem.cc index 3c1f418781a..8d01a3e5af2 100644 --- a/src/EnergyPlus/PlantPressureSystem.cc +++ b/src/EnergyPlus/PlantPressureSystem.cc @@ -374,7 +374,6 @@ void BranchPressureDrop(EnergyPlusData &state, static constexpr std::string_view RoutineName("CalcPlantPressureSystem"); // SUBROUTINE LOCAL VARIABLE DECLARATIONS: - int FluidIndex; // Plant loop level Fluid Index int InletNodeNum; // Component inlet node number DataBranchAirLoopPlant::PressureCurveType pressureCurveType; // Type of curve used to evaluate pressure drop int PressureCurveIndex; // Curve index for PerfCurve structure @@ -392,7 +391,6 @@ void BranchPressureDrop(EnergyPlusData &state, } // Get data from data structure - FluidIndex = state.dataPlnt->PlantLoop(LoopNum).FluidIndex; InletNodeNum = state.dataPlnt->PlantLoop(LoopNum).LoopSide(LoopSideNum).Branch(BranchNum).NodeNumIn; pressureCurveType = state.dataPlnt->PlantLoop(LoopNum).LoopSide(LoopSideNum).Branch(BranchNum).PressureCurveType; PressureCurveIndex = state.dataPlnt->PlantLoop(LoopNum).LoopSide(LoopSideNum).Branch(BranchNum).PressureCurveIndex; @@ -845,7 +843,6 @@ Real64 ResolveLoopFlowVsPressure(EnergyPlusData &state, Real64 PhiPump; Real64 PhiSystem; Real64 PsiPump; - int FluidIndex; int Iteration; Real64 LocalSystemMassFlow; Real64 LoopEffectiveK; @@ -856,7 +853,6 @@ Real64 ResolveLoopFlowVsPressure(EnergyPlusData &state, Real64 DampingFactor; // Get loop level data - FluidIndex = state.dataPlnt->PlantLoop(LoopNum).FluidIndex; LoopEffectiveK = state.dataPlnt->PlantLoop(LoopNum).PressureEffectiveK; SystemPressureDrop = LoopEffectiveK * pow_2(SystemMassFlow); diff --git a/src/EnergyPlus/RefrigeratedCase.hh b/src/EnergyPlus/RefrigeratedCase.hh index efbfe8ce317..641f0d882c1 100644 --- a/src/EnergyPlus/RefrigeratedCase.hh +++ b/src/EnergyPlus/RefrigeratedCase.hh @@ -1092,7 +1092,6 @@ namespace RefrigeratedCase { bool CoilFlag = false; // Flag to show if coil type load on secondary system std::string Name; // Name of refrigeration system std::string FluidName; // Name of circulating fluid - int FluidIndex = 0; // Numerical ID used for calls to properties subroutine Fluid::GlycolProps *glycol = nullptr; Fluid::RefrigProps *refrig = nullptr; std::string EndUseSubcategory; // Used for reporting purposes diff --git a/src/EnergyPlus/SingleDuct.hh b/src/EnergyPlus/SingleDuct.hh index e624bf5cd4c..a8e7a314eb7 100644 --- a/src/EnergyPlus/SingleDuct.hh +++ b/src/EnergyPlus/SingleDuct.hh @@ -182,7 +182,6 @@ namespace SingleDuct { Action DamperHeatingAction; Real64 DamperPosition; int ADUNum; // index of corresponding air distribution unit - int FluidIndex; // Refrigerant index int ErrCount1; // iteration limit exceeded in Hot Water Flow Calc int ErrCount1c; // iteration limit exceeded in Hot Water Flow Calc - continue int ErrCount2; // bad iterations limits in hot water flow calc @@ -232,7 +231,7 @@ namespace SingleDuct { ReheatAirOutletNode(0), MaxReheatWaterVolFlow(0.0), MaxReheatSteamVolFlow(0.0), MaxReheatWaterFlow(0.0), MaxReheatSteamFlow(0.0), MinReheatWaterVolFlow(0.0), MinReheatSteamVolFlow(0.0), MinReheatWaterFlow(0.0), MinReheatSteamFlow(0.0), ControllerOffset(0.0), MaxReheatTemp(0.0), MaxReheatTempSetByUser(false), DamperHeatingAction(Action::HeatingNotUsed), DamperPosition(0.0), ADUNum(0), - FluidIndex(0), ErrCount1(0), ErrCount1c(0), ErrCount2(0), ZoneFloorArea(0.0), CtrlZoneNum(0), CtrlZoneInNodeIndex(0), + ErrCount1(0), ErrCount1c(0), ErrCount2(0), ZoneFloorArea(0.0), CtrlZoneNum(0), CtrlZoneInNodeIndex(0), MaxAirVolFlowRateDuringReheat(0.0), MaxAirVolFractionDuringReheat(0.0), AirMassFlowDuringReheatMax(0.0), ZoneOutdoorAirMethod(0), OutdoorAirFlowRate(0.0), NoOAFlowInputFromUser(true), OARequirementsPtr(0), AirLoopNum(0), HWplantLoc{}, SecInNode(0), IterationLimit(0), IterationFailed(0), OAPerPersonMode(DataZoneEquipment::PerPersonVentRateMode::Invalid), EMSOverrideAirFlow(false), diff --git a/src/EnergyPlus/SurfaceGroundHeatExchanger.cc b/src/EnergyPlus/SurfaceGroundHeatExchanger.cc index 810b3928660..07792e9a711 100644 --- a/src/EnergyPlus/SurfaceGroundHeatExchanger.cc +++ b/src/EnergyPlus/SurfaceGroundHeatExchanger.cc @@ -183,8 +183,6 @@ namespace SurfaceGroundHeatExchanger { // Using/Aliasing using BranchNodeConnections::TestCompSet; - using Fluid::CheckFluidPropertyName; - using NodeInputManager::GetOnlySingleNode; using namespace DataLoopNode; diff --git a/src/EnergyPlus/WaterToAirHeatPump.cc b/src/EnergyPlus/WaterToAirHeatPump.cc index 5b3ed3257c2..f3fded4df63 100644 --- a/src/EnergyPlus/WaterToAirHeatPump.cc +++ b/src/EnergyPlus/WaterToAirHeatPump.cc @@ -197,7 +197,6 @@ namespace WaterToAirHeatPump { // Using/Aliasing using namespace NodeInputManager; using BranchNodeConnections::TestCompSet; - using Fluid::CheckFluidPropertyName; using GlobalNames::VerifyUniqueCoilName; using PlantUtilities::RegisterPlantCompDesignFlow; using namespace OutputReportPredefined; diff --git a/tst/EnergyPlus/unit/AirTerminalSingleDuctMixer.unit.cc b/tst/EnergyPlus/unit/AirTerminalSingleDuctMixer.unit.cc index 45639930d44..a0cff1c2fdd 100644 --- a/tst/EnergyPlus/unit/AirTerminalSingleDuctMixer.unit.cc +++ b/tst/EnergyPlus/unit/AirTerminalSingleDuctMixer.unit.cc @@ -7768,7 +7768,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctMixer_SimFCU_ATMInletSideTest) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(2)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -7785,7 +7784,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctMixer_SimFCU_ATMInletSideTest) // hot water plant loop auto &HWLoop(state->dataPlnt->PlantLoop(1)); HWLoop.Name = "HotWaterLoop"; - HWLoop.FluidIndex = 1; HWLoop.FluidName = "WATER"; HWLoop.glycol = Fluid::GetWater(*state); HWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = HWCoil.Name; @@ -8200,7 +8198,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctMixer_FCU_NightCycleTest) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(2)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -8217,7 +8214,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctMixer_FCU_NightCycleTest) // hot water plant loop auto &HWLoop(state->dataPlnt->PlantLoop(1)); HWLoop.Name = "HotWaterLoop"; - HWLoop.FluidIndex = 1; HWLoop.FluidName = "WATER"; HWLoop.glycol = Fluid::GetWater(*state); HWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = HWCoil.Name; diff --git a/tst/EnergyPlus/unit/BoilerHotWater.unit.cc b/tst/EnergyPlus/unit/BoilerHotWater.unit.cc index 4f79b5bfaec..8191efb8826 100644 --- a/tst/EnergyPlus/unit/BoilerHotWater.unit.cc +++ b/tst/EnergyPlus/unit/BoilerHotWater.unit.cc @@ -86,7 +86,6 @@ TEST_F(EnergyPlusFixture, Boiler_HotWaterSizingTest) state->dataSize->PlantSizData.allocate(1); // Hot Water Loop state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -134,7 +133,6 @@ TEST_F(EnergyPlusFixture, Boiler_HotWaterAutoSizeTempTest) state->dataSize->PlantSizData.allocate(1); // Hot Water Loop state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).DesVolFlowRate = 1.0; @@ -253,7 +251,6 @@ TEST_F(EnergyPlusFixture, Boiler_HotWater_BoilerEfficiency) auto &thisBoiler = state->dataBoilers->Boiler(1); state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/BoilerSteam.unit.cc b/tst/EnergyPlus/unit/BoilerSteam.unit.cc index b012d0a56f1..47771f7bb9e 100644 --- a/tst/EnergyPlus/unit/BoilerSteam.unit.cc +++ b/tst/EnergyPlus/unit/BoilerSteam.unit.cc @@ -220,10 +220,9 @@ TEST_F(EnergyPlusFixture, BoilerSteam_BoilerEfficiency) auto &thisBoiler = state->dataBoilerSteam->Boiler((int)state->dataBoilerSteam->Boiler.size()); state->dataPlnt->PlantLoop(1).Name = "SteamLoop"; - state->dataPlnt->PlantLoop(1).FluidName = "Steam"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "STEAM"; + state->dataPlnt->PlantLoop(1).steam = Fluid::GetSteam(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = thisBoiler.Name; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = DataPlant::PlantEquipmentType::Boiler_Steam; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).NodeNumIn = thisBoiler.BoilerInletNodeNum; diff --git a/tst/EnergyPlus/unit/ChillerAbsorption.unit.cc b/tst/EnergyPlus/unit/ChillerAbsorption.unit.cc index 5142ddd345b..a2f82f05a0f 100644 --- a/tst/EnergyPlus/unit/ChillerAbsorption.unit.cc +++ b/tst/EnergyPlus/unit/ChillerAbsorption.unit.cc @@ -1944,7 +1944,6 @@ TEST_F(EnergyPlusFixture, ChillerAbsorption_Autosize) auto &thisLoop = chwLoop; auto &thisLoopSizing = chwLoopSizing; thisLoop.Name = "ChilledWaterLoop"; - thisLoop.FluidIndex = 1; thisLoop.FluidName = "WATER"; thisLoop.glycol = Fluid::GetWater(*state); thisLoop.PlantSizNum = chwLoopNum; @@ -1971,7 +1970,6 @@ TEST_F(EnergyPlusFixture, ChillerAbsorption_Autosize) auto &thisLoop = cndLoop; auto &thisLoopSizing = cndLoopSizing; thisLoop.Name = "CondenserWaterLoop"; - thisLoop.FluidIndex = 1; thisLoop.FluidName = "WATER"; thisLoop.glycol = Fluid::GetWater(*state); thisLoop.PlantSizNum = cndLoopNum; @@ -1998,7 +1996,6 @@ TEST_F(EnergyPlusFixture, ChillerAbsorption_Autosize) auto &thisLoop = genLoop; auto &thisLoopSizing = genLoopSizing; thisLoop.Name = "Generator HW Loop"; - thisLoop.FluidIndex = 1; thisLoop.FluidName = "WATER"; thisLoop.glycol = Fluid::GetWater(*state); thisLoop.PlantSizNum = genLoopNum; diff --git a/tst/EnergyPlus/unit/ChillerConstantCOP.unit.cc b/tst/EnergyPlus/unit/ChillerConstantCOP.unit.cc index 574ed087fee..b059fd30fa3 100644 --- a/tst/EnergyPlus/unit/ChillerConstantCOP.unit.cc +++ b/tst/EnergyPlus/unit/ChillerConstantCOP.unit.cc @@ -116,7 +116,6 @@ TEST_F(EnergyPlusFixture, ChillerConstantCOP_WaterCooled_Autosize) auto &thisChiller = state->dataPlantChillers->ConstCOPChiller(1); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -127,7 +126,6 @@ TEST_F(EnergyPlusFixture, ChillerConstantCOP_WaterCooled_Autosize) state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).NodeNumOut = thisChiller.EvapOutletNodeNum; state->dataPlnt->PlantLoop(2).Name = "CondenserWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).PlantSizNum = 2; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/ChillerElectric.unit.cc b/tst/EnergyPlus/unit/ChillerElectric.unit.cc index 5875a77e69e..e8120bf95ee 100644 --- a/tst/EnergyPlus/unit/ChillerElectric.unit.cc +++ b/tst/EnergyPlus/unit/ChillerElectric.unit.cc @@ -122,7 +122,6 @@ TEST_F(EnergyPlusFixture, ChillerElectric_WaterCooled_Autosize) ElectricChillerSpecs::getInput(*state); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -136,7 +135,6 @@ TEST_F(EnergyPlusFixture, ChillerElectric_WaterCooled_Autosize) state->dataPlantChillers->ElectricChiller(1).EvapOutletNodeNum; state->dataPlnt->PlantLoop(2).Name = "CondenserWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).PlantSizNum = 2; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); @@ -280,7 +278,6 @@ TEST_F(EnergyPlusFixture, ChillerElectric_WaterCooled_Simulate) ElectricChillerSpecs::getInput(*state); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -296,7 +293,6 @@ TEST_F(EnergyPlusFixture, ChillerElectric_WaterCooled_Simulate) state->dataPlnt->PlantLoop(1).TempSetPointNodeNum = state->dataPlantChillers->ElectricChiller(1).EvapOutletNodeNum; state->dataPlnt->PlantLoop(2).Name = "CondenserWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).PlantSizNum = 2; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/ChillerElectricEIR.unit.cc b/tst/EnergyPlus/unit/ChillerElectricEIR.unit.cc index 7de2756dcc1..f2d32627611 100644 --- a/tst/EnergyPlus/unit/ChillerElectricEIR.unit.cc +++ b/tst/EnergyPlus/unit/ChillerElectricEIR.unit.cc @@ -116,14 +116,12 @@ TEST_F(EnergyPlusFixture, ElectricEIRChiller_HeatRecoveryAutosizeTest) state->dataSize->PlantSizData.allocate(2); // chilled water loop state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).DesVolFlowRate = 1.0; state->dataSize->PlantSizData(1).DeltaT = 5.0; // condenser water loop state->dataPlnt->PlantLoop(2).PlantSizNum = 2; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(2).DesVolFlowRate = 1.0; @@ -219,7 +217,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_AirCooledChiller) auto &thisEIR = state->dataChillerElectricEIR->ElectricEIRChiller(1); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -357,7 +354,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_EvaporativelyCooled_Calculate) auto &thisEIRChiller = state->dataChillerElectricEIR->ElectricEIRChiller(1); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -498,7 +494,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_WaterCooledChillerVariableSpeedCond state->dataLoopNodes->Node.allocate(10); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -516,7 +511,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_WaterCooledChillerVariableSpeedCond state->dataSize->PlantSizData(1).DeltaT = 5.0; state->dataPlnt->PlantLoop(2).Name = "CondenserWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).PlantSizNum = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/ChillerExhaustAbsorption.unit.cc b/tst/EnergyPlus/unit/ChillerExhaustAbsorption.unit.cc index 32d7e145ec9..8b7839ad6b6 100644 --- a/tst/EnergyPlus/unit/ChillerExhaustAbsorption.unit.cc +++ b/tst/EnergyPlus/unit/ChillerExhaustAbsorption.unit.cc @@ -647,7 +647,6 @@ TEST_F(EnergyPlusFixture, ExhAbsorption_calcHeater_Fix_Test) thisChillerHeater.HWPlantLoc.loopSideNum = DataPlant::LoopSideLocation::Demand; auto &hwPlantLoop = state->dataPlnt->PlantLoop(1); hwPlantLoop.FluidName = "WATER"; - hwPlantLoop.FluidIndex = 1; hwPlantLoop.glycol = Fluid::GetWater(*state); hwPlantLoop.LoopDemandCalcScheme = DataPlant::LoopDemandCalcScheme::SingleSetPoint; hwPlantLoop.LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Locked; @@ -1446,7 +1445,6 @@ TEST_F(EnergyPlusFixture, ExhAbsorption_calcChiller_Err_Msg_Test) thisChillerHeater.CWPlantLoc.loopSideNum = DataPlant::LoopSideLocation::Demand; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopDemandCalcScheme = DataPlant::LoopDemandCalcScheme::SingleSetPoint; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Locked; diff --git a/tst/EnergyPlus/unit/ChillerGasAbsorption.unit.cc b/tst/EnergyPlus/unit/ChillerGasAbsorption.unit.cc index fbaf870845f..f67d3feafa5 100644 --- a/tst/EnergyPlus/unit/ChillerGasAbsorption.unit.cc +++ b/tst/EnergyPlus/unit/ChillerGasAbsorption.unit.cc @@ -333,7 +333,6 @@ TEST_F(EnergyPlusFixture, GasAbsorption_calculateHeater_Fix_Test) thisChillerHeater.HWplantLoc.loopNum = 1; thisChillerHeater.HWplantLoc.loopSideNum = DataPlant::LoopSideLocation::Demand; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopDemandCalcScheme = DataPlant::LoopDemandCalcScheme::SingleSetPoint; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Locked; diff --git a/tst/EnergyPlus/unit/ChillerReformulatedEIR.unit.cc b/tst/EnergyPlus/unit/ChillerReformulatedEIR.unit.cc index fd9909ae824..3e21e370fc7 100644 --- a/tst/EnergyPlus/unit/ChillerReformulatedEIR.unit.cc +++ b/tst/EnergyPlus/unit/ChillerReformulatedEIR.unit.cc @@ -150,7 +150,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricReformulatedEIR_WaterCooledChillerVaria state->dataLoopNodes->Node.allocate(4); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -169,7 +168,6 @@ TEST_F(EnergyPlusFixture, ChillerElectricReformulatedEIR_WaterCooledChillerVaria state->dataSize->PlantSizData(1).DeltaT = 5.0; state->dataPlnt->PlantLoop(2).Name = "CondenserWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).PlantSizNum = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/FanCoilUnits.unit.cc b/tst/EnergyPlus/unit/FanCoilUnits.unit.cc index 2d3e19b00d5..3c724369c53 100644 --- a/tst/EnergyPlus/unit/FanCoilUnits.unit.cc +++ b/tst/EnergyPlus/unit/FanCoilUnits.unit.cc @@ -358,7 +358,6 @@ TEST_F(EnergyPlusFixture, MultiStage4PipeFanCoilHeatingTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -368,7 +367,6 @@ TEST_F(EnergyPlusFixture, MultiStage4PipeFanCoilHeatingTest) state->dataWaterCoils->WaterCoil(2).WaterInletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -681,7 +679,6 @@ TEST_F(EnergyPlusFixture, MultiStage4PipeFanCoilCoolingTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -691,7 +688,6 @@ TEST_F(EnergyPlusFixture, MultiStage4PipeFanCoilCoolingTest) state->dataWaterCoils->WaterCoil(2).WaterInletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1009,7 +1005,6 @@ TEST_F(EnergyPlusFixture, ConstantFanVariableFlowFanCoilHeatingTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = @@ -1021,7 +1016,6 @@ TEST_F(EnergyPlusFixture, ConstantFanVariableFlowFanCoilHeatingTest) state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Unlocked; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1392,7 +1386,6 @@ TEST_F(EnergyPlusFixture, ElectricCoilFanCoilHeatingTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1736,7 +1729,6 @@ TEST_F(EnergyPlusFixture, ConstantFanVariableFlowFanCoilCoolingTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -1749,7 +1741,6 @@ TEST_F(EnergyPlusFixture, ConstantFanVariableFlowFanCoilCoolingTest) state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Unlocked; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -2098,7 +2089,6 @@ TEST_F(EnergyPlusFixture, FanCoil_ASHRAE90VariableFan) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -2110,7 +2100,6 @@ TEST_F(EnergyPlusFixture, FanCoil_ASHRAE90VariableFan) state->dataWaterCoils->WaterCoil(2).WaterOutletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -2356,7 +2345,6 @@ TEST_F(EnergyPlusFixture, Test_TightenWaterFlowLimits) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -2368,7 +2356,6 @@ TEST_F(EnergyPlusFixture, Test_TightenWaterFlowLimits) state->dataWaterCoils->WaterCoil(2).WaterOutletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -2828,7 +2815,6 @@ TEST_F(EnergyPlusFixture, FanCoil_CyclingFanMode) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -2840,7 +2826,6 @@ TEST_F(EnergyPlusFixture, FanCoil_CyclingFanMode) state->dataWaterCoils->WaterCoil(2).WaterOutletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -3260,7 +3245,6 @@ TEST_F(EnergyPlusFixture, FanCoil_FanSystemModelCyclingFanMode) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(2)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -3270,7 +3254,6 @@ TEST_F(EnergyPlusFixture, FanCoil_FanSystemModelCyclingFanMode) // hot water plant loop auto &HWLoop(state->dataPlnt->PlantLoop(1)); HWLoop.Name = "HotWaterLoop"; - HWLoop.FluidIndex = 1; HWLoop.FluidName = "WATER"; HWLoop.glycol = Fluid::GetWater(*state); HWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = HWCoil.Name; @@ -3640,7 +3623,6 @@ TEST_F(EnergyPlusFixture, FanCoil_ElecHeatCoilMultiSpeedFanCyclingFanMode) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(1)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -4006,7 +3988,6 @@ TEST_F(EnergyPlusFixture, FanCoil_ElecHeatCoilMultiSpeedFanContFanMode) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(1)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -4372,7 +4353,6 @@ TEST_F(EnergyPlusFixture, FanCoil_CalcFanCoilElecHeatCoilPLRResidual) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(1)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; @@ -4677,7 +4657,6 @@ TEST_F(EnergyPlusFixture, FanCoil_ElectricHeatingCoilASHRAE90VariableFan) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(1)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; diff --git a/tst/EnergyPlus/unit/Furnaces.unit.cc b/tst/EnergyPlus/unit/Furnaces.unit.cc index 77839c9d016..cef0e5c022e 100644 --- a/tst/EnergyPlus/unit/Furnaces.unit.cc +++ b/tst/EnergyPlus/unit/Furnaces.unit.cc @@ -327,12 +327,10 @@ TEST_F(EnergyPlusFixture, SetVSHPAirFlowTest_VSFurnaceFlowTest) } state->dataPlnt->PlantLoop(1).Name = "Hot Water Loop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "Chilled Water Loop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = diff --git a/tst/EnergyPlus/unit/GroundHeatExchangers.unit.cc b/tst/EnergyPlus/unit/GroundHeatExchangers.unit.cc index ea0fa2fd06e..25e10fdcb79 100644 --- a/tst/EnergyPlus/unit/GroundHeatExchangers.unit.cc +++ b/tst/EnergyPlus/unit/GroundHeatExchangers.unit.cc @@ -183,7 +183,6 @@ TEST_F(EnergyPlusFixture, GroundHeatExchangerTest_Slinky_CalcHXResistance) thisGLHE.plantLoc.loopNum = 1; state->dataPlnt->PlantLoop(thisGLHE.plantLoc.loopNum).FluidName = "WATER"; - state->dataPlnt->PlantLoop(thisGLHE.plantLoc.loopNum).FluidIndex = 1; state->dataPlnt->PlantLoop(thisGLHE.plantLoc.loopNum).glycol = Fluid::GetWater(*state); thisGLHE.inletTemp = 5.0; diff --git a/tst/EnergyPlus/unit/HVACControllers.unit.cc b/tst/EnergyPlus/unit/HVACControllers.unit.cc index 21b3bab905a..7d0bbc57902 100644 --- a/tst/EnergyPlus/unit/HVACControllers.unit.cc +++ b/tst/EnergyPlus/unit/HVACControllers.unit.cc @@ -967,7 +967,6 @@ TEST_F(EnergyPlusFixture, HVACControllers_MaxFlowZero) state->dataPlnt->TotNumLoops = 1; state->dataPlnt->PlantLoop(1).Name = "CHW LOOP"; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/HVACInterfaceManager.unit.cc b/tst/EnergyPlus/unit/HVACInterfaceManager.unit.cc index a522cc64bca..9687af37db5 100644 --- a/tst/EnergyPlus/unit/HVACInterfaceManager.unit.cc +++ b/tst/EnergyPlus/unit/HVACInterfaceManager.unit.cc @@ -78,7 +78,6 @@ TEST_F(EnergyPlusFixture, ExcessiveHeatStorage_Test) // Set Up PlantLoop Variables state->dataPlnt->PlantLoop(1).Mass = 50; state->dataPlnt->PlantLoop(1).FluidName = "Water"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).NodeNumOut = 1; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).NodeNumIn = 1; diff --git a/tst/EnergyPlus/unit/HVACMultiSpeedHeatPump.unit.cc b/tst/EnergyPlus/unit/HVACMultiSpeedHeatPump.unit.cc index 62004a3d752..bf8f2af733c 100644 --- a/tst/EnergyPlus/unit/HVACMultiSpeedHeatPump.unit.cc +++ b/tst/EnergyPlus/unit/HVACMultiSpeedHeatPump.unit.cc @@ -1472,7 +1472,6 @@ TEST_F(EnergyPlusFixture, HVACMultiSpeedHeatPump_HeatRecoveryTest) state->dataPlnt->PlantLoop.allocate(1); state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataLoopNodes->Node(HeatRecInNode).MassFlowRate = 0.0; // test heat recovery result with 0 water flow rate diff --git a/tst/EnergyPlus/unit/HVACSizingSimulationManager.unit.cc b/tst/EnergyPlus/unit/HVACSizingSimulationManager.unit.cc index bfc309e6e9e..8175027d63e 100644 --- a/tst/EnergyPlus/unit/HVACSizingSimulationManager.unit.cc +++ b/tst/EnergyPlus/unit/HVACSizingSimulationManager.unit.cc @@ -109,7 +109,6 @@ class HVACSizingSimulationManagerTest : public EnergyPlusFixture state->dataPlnt->PlantLoop(1).MaxMassFlowRate = 2.0; state->dataPlnt->PlantLoop(1).VolumeWasAutoSized = true; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(LoopSideLocation::Supply).NodeNumIn = 1; diff --git a/tst/EnergyPlus/unit/HVACVariableRefrigerantFlow.unit.cc b/tst/EnergyPlus/unit/HVACVariableRefrigerantFlow.unit.cc index d0098bf97cf..c12f306b395 100644 --- a/tst/EnergyPlus/unit/HVACVariableRefrigerantFlow.unit.cc +++ b/tst/EnergyPlus/unit/HVACVariableRefrigerantFlow.unit.cc @@ -332,12 +332,10 @@ class AirLoopFixture : public EnergyPlusFixture } state->dataPlnt->PlantLoop(1).Name = "Hot Water Loop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "Chilled Water Loop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).PlantLoopName = "Hot Water Loop"; @@ -8446,7 +8444,6 @@ TEST_F(EnergyPlusFixture, VRFTU_CalcVRFSupplementalHeatingCoilWater) state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = @@ -8568,7 +8565,6 @@ TEST_F(EnergyPlusFixture, VRFTU_CalcVRFSupplementalHeatingCoilSteam) state->dataPlnt->PlantLoop(1).Name = "SteamLoop"; state->dataPlnt->PlantLoop(1).FluidName = "STEAM"; - state->dataPlnt->PlantLoop(1).FluidIndex = Fluid::RefrigNum_Steam; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).steam = Fluid::GetSteam(*state); diff --git a/tst/EnergyPlus/unit/HWBaseboardRadiator.unit.cc b/tst/EnergyPlus/unit/HWBaseboardRadiator.unit.cc index 4515173c40b..ffc376d79fd 100644 --- a/tst/EnergyPlus/unit/HWBaseboardRadiator.unit.cc +++ b/tst/EnergyPlus/unit/HWBaseboardRadiator.unit.cc @@ -107,7 +107,6 @@ TEST_F(EnergyPlusFixture, HWBaseboardRadiator_CalcHWBaseboard) HWBaseboard(1).UA = 370; HWBaseboard(1).QBBRadSource = 0.0; state->dataPlnt->PlantLoop(1).FluidName = "Water"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidType = DataLoopNode::NodeFluidType::Water; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -164,7 +163,6 @@ TEST_F(EnergyPlusFixture, HWBaseboardRadiator_HWBaseboardWaterFlowResetTest) HWBaseboard(1).UA = 400.0; HWBaseboard(1).QBBRadSource = 0.0; state->dataPlnt->PlantLoop(1).FluidName = "Water"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidType = DataLoopNode::NodeFluidType::Water; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); @@ -184,7 +182,6 @@ TEST_F(EnergyPlusFixture, HWBaseboardRadiator_HWBaseboardWaterFlowResetTest) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = HWBaseboard(1).Name; diff --git a/tst/EnergyPlus/unit/LowTempRadiantSystem.unit.cc b/tst/EnergyPlus/unit/LowTempRadiantSystem.unit.cc index b1f3a46d0d5..131f063d330 100644 --- a/tst/EnergyPlus/unit/LowTempRadiantSystem.unit.cc +++ b/tst/EnergyPlus/unit/LowTempRadiantSystem.unit.cc @@ -148,12 +148,10 @@ class LowTempRadiantSystemTest : public EnergyPlusFixture } state->dataPlnt->PlantLoop(1).Name = "Hot Water Loop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "Chilled Water Loop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).PlantLoopName = "Hot Water Loop"; diff --git a/tst/EnergyPlus/unit/OutdoorAirUnit.unit.cc b/tst/EnergyPlus/unit/OutdoorAirUnit.unit.cc index 05f1030fa0e..34aa6d57189 100644 --- a/tst/EnergyPlus/unit/OutdoorAirUnit.unit.cc +++ b/tst/EnergyPlus/unit/OutdoorAirUnit.unit.cc @@ -610,7 +610,6 @@ TEST_F(EnergyPlusFixture, OutdoorAirUnit_WaterCoolingCoilAutoSizeTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -922,7 +921,6 @@ TEST_F(EnergyPlusFixture, OutdoorAirUnit_SteamHeatingCoilAutoSizeTest) state->dataSteamCoils->SteamCoil(1).plantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "SteamLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "STEAM"; state->dataPlnt->PlantLoop(1).steam = Fluid::GetSteam(*state); state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/OutsideEnergySources.unit.cc b/tst/EnergyPlus/unit/OutsideEnergySources.unit.cc index e44e59c2773..17289ded203 100644 --- a/tst/EnergyPlus/unit/OutsideEnergySources.unit.cc +++ b/tst/EnergyPlus/unit/OutsideEnergySources.unit.cc @@ -120,7 +120,6 @@ TEST_F(EnergyPlusFixture, DistrictCoolingandHeating) PlantLocation locHotWater(1, DataPlant::LoopSideLocation::Supply, 1, 1); thisHotWaterLoop.Name = "HotWaterLoop"; thisHotWaterLoop.FluidName = "WATER"; - thisHotWaterLoop.FluidIndex = 1; thisHotWaterLoop.glycol = Fluid::GetWater(*state); thisHotWaterLoop.MinTemp = 1.0; thisHotWaterLoop.MaxTemp = 99.0; @@ -152,7 +151,6 @@ TEST_F(EnergyPlusFixture, DistrictCoolingandHeating) PlantLocation locChilledWater(2, DataPlant::LoopSideLocation::Supply, 1, 1); thisChilledWaterLoop.Name = "ChilledWaterLoop"; thisChilledWaterLoop.FluidName = "WATER"; - thisChilledWaterLoop.FluidIndex = 1; thisChilledWaterLoop.glycol = Fluid::GetWater(*state); thisChilledWaterLoop.MinTemp = 1.0; @@ -186,7 +184,6 @@ TEST_F(EnergyPlusFixture, DistrictCoolingandHeating) PlantLocation locSteam(3, DataPlant::LoopSideLocation::Supply, 1, 1); thisSteamLoop.Name = "SteamLoop"; thisSteamLoop.FluidName = "STEAM"; - thisSteamLoop.FluidIndex = 1; thisSteamLoop.steam = Fluid::GetSteam(*state); thisSteamLoop.glycol = Fluid::GetWater(*state); thisSteamLoop.MinMassFlowRate = 0.00001; diff --git a/tst/EnergyPlus/unit/PackagedTerminalHeatPump.unit.cc b/tst/EnergyPlus/unit/PackagedTerminalHeatPump.unit.cc index 64e7d34ee06..199a4c00884 100644 --- a/tst/EnergyPlus/unit/PackagedTerminalHeatPump.unit.cc +++ b/tst/EnergyPlus/unit/PackagedTerminalHeatPump.unit.cc @@ -497,8 +497,6 @@ TEST_F(EnergyPlusFixture, DISABLED_PackagedTerminalHP_VSCoils_Sizing) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidName = "ChilledWater"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataVariableSpeedCoils->VarSpeedCoil(1).Name; @@ -510,8 +508,6 @@ TEST_F(EnergyPlusFixture, DISABLED_PackagedTerminalHP_VSCoils_Sizing) state->dataVariableSpeedCoils->VarSpeedCoil(1).WaterOutletNodeNum; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidName = "HotWater"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataVariableSpeedCoils->VarSpeedCoil(2).Name; diff --git a/tst/EnergyPlus/unit/Pipes.unit.cc b/tst/EnergyPlus/unit/Pipes.unit.cc index 0d62960c89d..e3dfbf118b6 100644 --- a/tst/EnergyPlus/unit/Pipes.unit.cc +++ b/tst/EnergyPlus/unit/Pipes.unit.cc @@ -96,7 +96,6 @@ TEST_F(EnergyPlusFixture, CalcPipeHeatTransCoef) state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = DataPlant::PlantEquipmentType::PipeInterior; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).TotalBranches = 0; // just skip the supply side search state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPipeHT->nsvNumOfPipeHT = 1; diff --git a/tst/EnergyPlus/unit/PlantCentralGSHP.unit.cc b/tst/EnergyPlus/unit/PlantCentralGSHP.unit.cc index ea0f060fe21..72688dd2348 100644 --- a/tst/EnergyPlus/unit/PlantCentralGSHP.unit.cc +++ b/tst/EnergyPlus/unit/PlantCentralGSHP.unit.cc @@ -119,7 +119,6 @@ TEST_F(EnergyPlusFixture, ChillerHeater_Autosize) // Chilled Water Loop int PltSizNum = 1; state->dataPlnt->PlantLoop(PltSizNum).PlantSizNum = 1; - state->dataPlnt->PlantLoop(PltSizNum).FluidIndex = 1; state->dataPlnt->PlantLoop(PltSizNum).FluidName = "WATER"; state->dataPlnt->PlantLoop(PltSizNum).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(PltSizNum).DesVolFlowRate = 1.0; @@ -131,7 +130,6 @@ TEST_F(EnergyPlusFixture, ChillerHeater_Autosize) // Condenser Loop int PltSizCondNum = 2; state->dataPlnt->PlantLoop(PltSizCondNum).PlantSizNum = PltSizCondNum; - state->dataPlnt->PlantLoop(PltSizCondNum).FluidIndex = 1; state->dataPlnt->PlantLoop(PltSizCondNum).FluidName = "WATER"; state->dataPlnt->PlantLoop(PltSizCondNum).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(PltSizCondNum).DeltaT = 5.6; @@ -368,7 +366,6 @@ TEST_F(EnergyPlusFixture, Test_CentralHeatPumpSystem_adjustChillerHeaterCondFlow auto &thisCH = thisWrap.ChillerHeater(1); state->dataPlnt->PlantLoop.allocate(1); state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = Fluid::GetGlycolNum(*state, state->dataPlnt->PlantLoop(1).FluidName); state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); thisWrap.HWPlantLoc.loopNum = 1; @@ -453,7 +450,6 @@ TEST_F(EnergyPlusFixture, Test_CentralHeatPumpSystem_adjustChillerHeaterEvapFlow auto &thisCH = thisWrap.ChillerHeater(1); state->dataPlnt->PlantLoop.allocate(1); state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = Fluid::GetGlycolNum(*state, state->dataPlnt->PlantLoop(1).FluidName); state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); thisWrap.HWPlantLoc.loopNum = 1; diff --git a/tst/EnergyPlus/unit/PlantChillers.unit.cc b/tst/EnergyPlus/unit/PlantChillers.unit.cc index 12bf72904dc..522465cef7d 100644 --- a/tst/EnergyPlus/unit/PlantChillers.unit.cc +++ b/tst/EnergyPlus/unit/PlantChillers.unit.cc @@ -82,7 +82,6 @@ TEST_F(EnergyPlusFixture, GTChiller_HeatRecoveryAutosizeTest) state->dataPlnt->PlantLoop.allocate(2); state->dataSize->PlantSizData.allocate(1); state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).DesVolFlowRate = 1.0; @@ -120,7 +119,6 @@ TEST_F(EnergyPlusFixture, EngineDrivenChiller_HeatRecoveryAutosizeTest) state->dataPlnt->PlantLoop.allocate(2); state->dataSize->PlantSizData.allocate(1); state->dataPlnt->PlantLoop(1).PlantSizNum = 1; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).DesVolFlowRate = 1.0; diff --git a/tst/EnergyPlus/unit/PlantHeatExchangerFluidToFluid.unit.cc b/tst/EnergyPlus/unit/PlantHeatExchangerFluidToFluid.unit.cc index 1ee0b3b5922..5da6bd3821f 100644 --- a/tst/EnergyPlus/unit/PlantHeatExchangerFluidToFluid.unit.cc +++ b/tst/EnergyPlus/unit/PlantHeatExchangerFluidToFluid.unit.cc @@ -2323,7 +2323,6 @@ TEST_F(EnergyPlusFixture, PlantHXControlWithFirstHVACIteration) } state->dataPlnt->PlantLoop(1).Name = "HX supply side loop "; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataPlantHXFluidToFluid->FluidHX(1).Name; @@ -2337,7 +2336,6 @@ TEST_F(EnergyPlusFixture, PlantHXControlWithFirstHVACIteration) state->dataPlantHXFluidToFluid->FluidHX(1).SupplySideLoop.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "HX demand side loop "; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataPlantHXFluidToFluid->FluidHX(1).Name; @@ -2442,7 +2440,6 @@ TEST_F(EnergyPlusFixture, PlantHXControl_CoolingSetpointOnOffWithComponentOverri state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Supply).Branch(1).Comp.allocate(1); state->dataPlnt->PlantLoop(1).Name = "HX supply side loop "; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).Branch(1).Comp(1).Name = state->dataPlantHXFluidToFluid->FluidHX(1).Name; @@ -2452,7 +2449,6 @@ TEST_F(EnergyPlusFixture, PlantHXControl_CoolingSetpointOnOffWithComponentOverri state->dataPlantHXFluidToFluid->FluidHX(1).SupplySideLoop.inletNodeNum; state->dataPlnt->PlantLoop(2).Name = "HX demand side loop "; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataPlantHXFluidToFluid->FluidHX(1).Name; diff --git a/tst/EnergyPlus/unit/PlantLoadProfile.unit.cc b/tst/EnergyPlus/unit/PlantLoadProfile.unit.cc index c79e3f0f24b..1eda638ba78 100644 --- a/tst/EnergyPlus/unit/PlantLoadProfile.unit.cc +++ b/tst/EnergyPlus/unit/PlantLoadProfile.unit.cc @@ -130,7 +130,6 @@ TEST_F(EnergyPlusFixture, LoadProfile_initandsimulate_Waterloop) // Test setup for a load profile in a water loop auto &thisWaterLoop(state->dataPlnt->PlantLoop(1)); thisWaterLoop.FluidName = "WATER"; - thisWaterLoop.FluidIndex = 1; thisWaterLoop.glycol = Fluid::GetWater(*state); thisWaterLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch.allocate(1); thisWaterLoop.LoopSide(DataPlant::LoopSideLocation::Demand).TotalBranches = 1; @@ -199,7 +198,6 @@ TEST_F(EnergyPlusFixture, LoadProfile_initandsimulate_Steamloop) // Test setup for a load profile in a steam loop auto &thisSteamLoop(state->dataPlnt->PlantLoop(1)); thisSteamLoop.FluidName = "STEAM"; - thisSteamLoop.FluidIndex = 1; thisSteamLoop.steam = Fluid::GetSteam(*state); thisSteamLoop.glycol = Fluid::GetWater(*state); thisSteamLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch.allocate(1); diff --git a/tst/EnergyPlus/unit/PlantManager.unit.cc b/tst/EnergyPlus/unit/PlantManager.unit.cc index 60e28a65c6f..4ce2283ad96 100644 --- a/tst/EnergyPlus/unit/PlantManager.unit.cc +++ b/tst/EnergyPlus/unit/PlantManager.unit.cc @@ -81,7 +81,6 @@ namespace PlantManager { state->dataPlnt->PlantLoop(1).MaxVolFlowRate = 5; state->dataPlnt->PlantLoop(1).CirculationTime = 2; state->dataPlnt->PlantLoop(1).FluidType = DataLoopNode::NodeFluidType::Water; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); SizePlantLoop(*state, 1, true); int TestVolume = 600; diff --git a/tst/EnergyPlus/unit/ReportCoilSelection.unit.cc b/tst/EnergyPlus/unit/ReportCoilSelection.unit.cc index fd28c273687..fcb834ece6c 100644 --- a/tst/EnergyPlus/unit/ReportCoilSelection.unit.cc +++ b/tst/EnergyPlus/unit/ReportCoilSelection.unit.cc @@ -80,7 +80,6 @@ TEST_F(EnergyPlusFixture, ReportCoilSelection_ChWCoil) state->dataPlnt->PlantLoop.allocate(1); state->dataPlnt->PlantLoop(1).Name = "Chilled Water Loop"; state->dataPlnt->PlantLoop(1).FluidName = "Water"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).MaxMassFlowRate = 0.1; @@ -236,7 +235,6 @@ TEST_F(EnergyPlusFixture, ReportCoilSelection_SteamCoil) state->dataPlnt->PlantLoop.allocate(1); state->dataPlnt->PlantLoop(1).Name = "Steam Loop"; state->dataPlnt->PlantLoop(1).FluidName = "Steam"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).steam = Fluid::GetSteam(*state); state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/SZVAVModel.unit.cc b/tst/EnergyPlus/unit/SZVAVModel.unit.cc index 34b97d7a74d..ba6d66321ab 100644 --- a/tst/EnergyPlus/unit/SZVAVModel.unit.cc +++ b/tst/EnergyPlus/unit/SZVAVModel.unit.cc @@ -718,7 +718,6 @@ TEST_F(EnergyPlusFixture, SZVAV_FanCoilUnit_Testing) // chilled water plant loop auto &CWLoop(state->dataPlnt->PlantLoop(1)); CWLoop.Name = "ChilledWaterLoop"; - CWLoop.FluidIndex = 1; CWLoop.FluidName = "WATER"; CWLoop.glycol = Fluid::GetWater(*state); CWLoop.LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = CWCoil.Name; diff --git a/tst/EnergyPlus/unit/SetPointManager.unit.cc b/tst/EnergyPlus/unit/SetPointManager.unit.cc index 0a689a4b506..b4fa7e6e12d 100644 --- a/tst/EnergyPlus/unit/SetPointManager.unit.cc +++ b/tst/EnergyPlus/unit/SetPointManager.unit.cc @@ -87,11 +87,12 @@ using namespace EnergyPlus; TEST_F(EnergyPlusFixture, SetPointManager_DefineReturnWaterChWSetPointManager) { - + state->dataFluid->init_state(*state); + // Set up the required plant loop data state->dataPlnt->TotNumLoops = 1; state->dataPlnt->PlantLoop.allocate(1); - state->dataPlnt->PlantLoop(1).FluidIndex = 1; + state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumIn = 1; // Supply inlet, return state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumOut = 2; // Supply outlet, supply @@ -197,7 +198,7 @@ TEST_F(EnergyPlusFixture, SetPointManager_DefineReturnWaterChWSetPointManager_Fl // Set up the required plant loop data state->dataPlnt->TotNumLoops = 1; state->dataPlnt->PlantLoop.allocate(1); - state->dataPlnt->PlantLoop(1).FluidIndex = 2; + state->dataPlnt->PlantLoop(1).glycol = Fluid::GetGlycol(*state, "ETHYLENEGLYCOL40PERCENT"); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumIn = 1; // Supply inlet, return state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumOut = 2; // Supply outlet, supply @@ -253,10 +254,11 @@ TEST_F(EnergyPlusFixture, SetPointManager_DefineReturnWaterChWSetPointManager_Fl TEST_F(EnergyPlusFixture, SetPointManager_DefineReturnWaterHWSetPointManager) { + state->dataFluid->init_state(*state); // Set up the required plant loop data state->dataPlnt->TotNumLoops = 1; state->dataPlnt->PlantLoop.allocate(1); - state->dataPlnt->PlantLoop(1).FluidIndex = 1; + state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumIn = 1; // Supply inlet, return state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Supply).NodeNumOut = 2; // Supply outlet, supply diff --git a/tst/EnergyPlus/unit/SizeWaterHeatingCoil.unit.cc b/tst/EnergyPlus/unit/SizeWaterHeatingCoil.unit.cc index bf0a7df5c45..992659e1c88 100644 --- a/tst/EnergyPlus/unit/SizeWaterHeatingCoil.unit.cc +++ b/tst/EnergyPlus/unit/SizeWaterHeatingCoil.unit.cc @@ -258,7 +258,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils1) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -511,7 +510,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils2) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -763,7 +761,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils3) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1015,7 +1012,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils4) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1225,7 +1221,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils5) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -1443,7 +1438,6 @@ TEST_F(EnergyPlusFixture, TestSizingRoutineForHotWaterCoils6) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.branchNum = 1; state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; diff --git a/tst/EnergyPlus/unit/StandardRatings.unit.cc b/tst/EnergyPlus/unit/StandardRatings.unit.cc index 0ebfafbb2e2..7631c6bbdbc 100644 --- a/tst/EnergyPlus/unit/StandardRatings.unit.cc +++ b/tst/EnergyPlus/unit/StandardRatings.unit.cc @@ -1283,7 +1283,6 @@ TEST_F(EnergyPlusFixture, ChillerIPLVTestWaterCooledReform) loopsidebranch.TotalComponents = 1; loopsidebranch.Comp.allocate(1); state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).PlantSizNum = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); diff --git a/tst/EnergyPlus/unit/UnitHeater.unit.cc b/tst/EnergyPlus/unit/UnitHeater.unit.cc index 4bca4b885db..d190ba3a92e 100644 --- a/tst/EnergyPlus/unit/UnitHeater.unit.cc +++ b/tst/EnergyPlus/unit/UnitHeater.unit.cc @@ -1328,7 +1328,6 @@ TEST_F(EnergyPlusFixture, UnitHeater_SimUnitHeaterTest) } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; diff --git a/tst/EnergyPlus/unit/UnitarySystem.unit.cc b/tst/EnergyPlus/unit/UnitarySystem.unit.cc index e94ba1757c0..ae3ca33dbb7 100644 --- a/tst/EnergyPlus/unit/UnitarySystem.unit.cc +++ b/tst/EnergyPlus/unit/UnitarySystem.unit.cc @@ -215,12 +215,10 @@ class ZoneUnitarySysTest : public EnergyPlusFixture state->dataPlnt->PlantLoop(1).Name = "Hot Water Loop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "Chilled Water Loop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataSize->PlantSizData(1).PlantLoopName = "Hot Water Loop"; @@ -330,12 +328,10 @@ TEST_F(AirloopUnitarySysTest, MultipleWaterCoolingCoilSizing) } state->dataPlnt->PlantLoop(1).Name = "ColdWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); // set up sizing data @@ -4349,7 +4345,6 @@ SetpointManager:Scheduled, EXPECT_EQ(thisSys->m_MaxNoCoolHeatAirVolFlow, 0.8); state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "WATER COOLING COIL"; state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = @@ -4358,7 +4353,6 @@ SetpointManager:Scheduled, state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).NodeNumOut = 11; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "WATER HEATING COIL"; state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Type = @@ -4743,7 +4737,6 @@ SetpointManager:Scheduled, auto coolingCoilWaterOutletNodeIndex = Util::FindItemInList("CHWOUTLETNODE", state->dataLoopNodes->NodeID); // was Node 10 state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "WATER COOLING COIL"; @@ -5612,7 +5605,6 @@ TEST_F(EnergyPlusFixture, UnitarySystemModel_CalcUnitaryHeatingSystem) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -5767,7 +5759,6 @@ TEST_F(EnergyPlusFixture, UnitarySystemModel_CalcUnitaryCoolingSystem) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -9721,7 +9712,6 @@ Curve:QuadLinear, loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "SYS 1 HEAT PUMP COOLING MODE"; @@ -9730,7 +9720,6 @@ Curve:QuadLinear, state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).NodeNumIn = 6; state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "SYS 1 HEAT PUMP HEATING MODE"; @@ -10063,7 +10052,6 @@ Schedule:Compact, loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "WATER COOLING COIL"; @@ -10073,7 +10061,6 @@ Schedule:Compact, state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).NodeNumOut = 10; state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = "WATER HEATING COIL"; @@ -19574,7 +19561,6 @@ TEST_F(EnergyPlusFixture, CoilSystemCoolingWater_ControlStatusTest) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -19826,7 +19812,6 @@ TEST_F(EnergyPlusFixture, CoilSystemCoolingWater_CalcTest) loopsidebranch.Comp.allocate(1); } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -20097,7 +20082,6 @@ TEST_F(EnergyPlusFixture, CoilSystemCoolingWater_HeatRecoveryLoop) loopsidebranch.Comp.allocate(loopsidebranch.TotalComponents); } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; @@ -20231,11 +20215,9 @@ TEST_F(AirloopUnitarySysTest, WSHPVariableSpeedCoilSizing) } state->dataPlnt->PlantLoop(1).Name = "ColdWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); // set up sizing data diff --git a/tst/EnergyPlus/unit/WaterCoils.unit.cc b/tst/EnergyPlus/unit/WaterCoils.unit.cc index 8173d872885..95c3ab34984 100644 --- a/tst/EnergyPlus/unit/WaterCoils.unit.cc +++ b/tst/EnergyPlus/unit/WaterCoils.unit.cc @@ -189,7 +189,6 @@ TEST_F(WaterCoilsTest, WaterCoolingCoilSizing) } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -424,7 +423,6 @@ TEST_F(WaterCoilsTest, CoilHeatingWaterUASizing) } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -577,7 +575,6 @@ TEST_F(WaterCoilsTest, CoilHeatingWaterLowAirFlowUASizing) } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -733,7 +730,6 @@ TEST_F(WaterCoilsTest, CoilHeatingWaterUASizingLowHwaterInletTemp) } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -846,7 +842,6 @@ TEST_F(WaterCoilsTest, CoilCoolingWaterSimpleSizing) } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -946,7 +941,6 @@ TEST_F(WaterCoilsTest, CoilCoolingWaterDetailedSizing) } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -1056,7 +1050,6 @@ TEST_F(WaterCoilsTest, CoilCoolingWaterDetailed_WarningMath) } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -1238,7 +1231,6 @@ TEST_F(WaterCoilsTest, CoilHeatingWaterSimpleSizing) } state->dataPlnt->PlantLoop(1).Name = "WaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -1333,7 +1325,6 @@ TEST_F(WaterCoilsTest, HotWaterHeatingCoilAutoSizeTempTest) } state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); // set up sizing data @@ -1685,7 +1676,6 @@ TEST_F(WaterCoilsTest, FanCoilCoolingWaterFlowTest) state->dataWaterCoils->WaterCoil(1).WaterPlantLoc.compNum = 1; state->dataPlnt->PlantLoop(2).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(2).Name; @@ -1698,7 +1688,6 @@ TEST_F(WaterCoilsTest, FanCoilCoolingWaterFlowTest) state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).FlowLock = DataPlant::FlowLock::Unlocked; state->dataPlnt->PlantLoop(1).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = state->dataWaterCoils->WaterCoil(1).Name; diff --git a/tst/EnergyPlus/unit/WaterThermalTanks.unit.cc b/tst/EnergyPlus/unit/WaterThermalTanks.unit.cc index 66ac9e11119..21bcfa7fb58 100644 --- a/tst/EnergyPlus/unit/WaterThermalTanks.unit.cc +++ b/tst/EnergyPlus/unit/WaterThermalTanks.unit.cc @@ -2686,7 +2686,6 @@ TEST_F(EnergyPlusFixture, StratifiedTank_GSHP_DesuperheaterSourceHeat) // Plant loop must be initialized state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum = 1; state->dataPlnt->PlantLoop.allocate(LoopNum); - state->dataPlnt->PlantLoop(state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum).FluidIndex = 1; state->dataPlnt->PlantLoop(state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum).FluidName = "WATER"; state->dataPlnt->PlantLoop(state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum).glycol = Fluid::GetWater(*state); auto &SupplySideloop(state->dataPlnt->PlantLoop(LoopNum).LoopSide(EnergyPlus::DataPlant::LoopSideLocation::Supply)); diff --git a/tst/EnergyPlus/unit/WaterToAirHeatPump.unit.cc b/tst/EnergyPlus/unit/WaterToAirHeatPump.unit.cc index 4c447db6cd8..9f88a063a04 100644 --- a/tst/EnergyPlus/unit/WaterToAirHeatPump.unit.cc +++ b/tst/EnergyPlus/unit/WaterToAirHeatPump.unit.cc @@ -229,7 +229,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpTest_SimWaterToAir) } state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = @@ -265,7 +264,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpTest_SimWaterToAir) HPNum = 2; state->dataWaterToAirHeatPump->WatertoAirHP(HPNum).plantLoc.loopNum = 2; state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = diff --git a/tst/EnergyPlus/unit/WaterToAirHeatPumpSimple.unit.cc b/tst/EnergyPlus/unit/WaterToAirHeatPumpSimple.unit.cc index 92864dd4bd0..3cb00b08066 100644 --- a/tst/EnergyPlus/unit/WaterToAirHeatPumpSimple.unit.cc +++ b/tst/EnergyPlus/unit/WaterToAirHeatPumpSimple.unit.cc @@ -400,7 +400,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpSimple_TestAirFlow) } state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = @@ -484,8 +483,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpSimple_TestAirFlow) state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum = 2; state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidName = "HotWater"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = @@ -755,8 +752,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpSimple_TestWaterFlowControl) } state->dataPlnt->PlantLoop(1).Name = "ChilledWaterLoop"; - state->dataPlnt->PlantLoop(1).FluidName = "ChilledWater"; - state->dataPlnt->PlantLoop(1).FluidIndex = 1; state->dataPlnt->PlantLoop(1).FluidName = "WATER"; state->dataPlnt->PlantLoop(1).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(1).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name = @@ -829,8 +824,6 @@ TEST_F(EnergyPlusFixture, WaterToAirHeatPumpSimple_TestWaterFlowControl) HPNum = 2; state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).plantLoc.loopNum = 2; state->dataPlnt->PlantLoop(2).Name = "HotWaterLoop"; - state->dataPlnt->PlantLoop(2).FluidName = "HotWater"; - state->dataPlnt->PlantLoop(2).FluidIndex = 1; state->dataPlnt->PlantLoop(2).FluidName = "WATER"; state->dataPlnt->PlantLoop(2).glycol = Fluid::GetWater(*state); state->dataPlnt->PlantLoop(2).LoopSide(DataPlant::LoopSideLocation::Demand).Branch(1).Comp(1).Name =