From 2313cc0a6e4f2eafff2a0b3b928b63d7168d2209 Mon Sep 17 00:00:00 2001 From: Joe Robertson Date: Mon, 28 Aug 2023 08:54:10 -0700 Subject: [PATCH] Minimal changes for DistrictHeating to DistrictHeating:Water. --- resources/energyplus/ProposedEnergy+.idd | 2 +- .../ForwardTranslateDistrictHeating.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/energyplus/ProposedEnergy+.idd b/resources/energyplus/ProposedEnergy+.idd index 74aa9e96904..453aea5067c 100644 --- a/resources/energyplus/ProposedEnergy+.idd +++ b/resources/energyplus/ProposedEnergy+.idd @@ -45130,7 +45130,7 @@ DistrictCooling, \type object-list \object-list ScheduleNames -DistrictHeating, +DistrictHeating:Water, \memo Centralized source of hot water, such as a district heating system. A1 , \field Name \required-field diff --git a/src/energyplus/ForwardTranslator/ForwardTranslateDistrictHeating.cpp b/src/energyplus/ForwardTranslator/ForwardTranslateDistrictHeating.cpp index de3cd1b8b2b..12baa4342c8 100644 --- a/src/energyplus/ForwardTranslator/ForwardTranslateDistrictHeating.cpp +++ b/src/energyplus/ForwardTranslator/ForwardTranslateDistrictHeating.cpp @@ -26,7 +26,7 @@ namespace energyplus { OptionalModelObject temp; boost::optional value; - IdfObject idfObject(IddObjectType::DistrictHeating); + IdfObject idfObject(IddObjectType::DistrictHeating_Water); m_idfObjects.push_back(idfObject); @@ -44,7 +44,7 @@ namespace energyplus { if (temp) { s = temp->name(); if (s) { - idfObject.setString(openstudio::DistrictHeatingFields::HotWaterInletNodeName, *s); + idfObject.setString(openstudio::DistrictHeating_WaterFields::HotWaterInletNodeName, *s); } } /////////////////////////////////////////////////////////////////////////// @@ -55,7 +55,7 @@ namespace energyplus { if (temp) { s = temp->name(); if (s) { - idfObject.setString(openstudio::DistrictHeatingFields::HotWaterOutletNodeName, *s); + idfObject.setString(openstudio::DistrictHeating_WaterFields::HotWaterOutletNodeName, *s); } } /// @@ -64,9 +64,9 @@ namespace energyplus { /////////////////////////////////////////////////////////////////////////// //Nominal Capacity /////////////////////////////////////////////////// if (modelObject.isNominalCapacityAutosized()) { - idfObject.setString(DistrictHeatingFields::NominalCapacity, "Autosize"); + idfObject.setString(DistrictHeating_WaterFields::NominalCapacity, "Autosize"); } else if ((value = modelObject.nominalCapacity())) { - idfObject.setDouble(DistrictHeatingFields::NominalCapacity, value.get()); + idfObject.setDouble(DistrictHeating_WaterFields::NominalCapacity, value.get()); } // ////////////////////////////////////////////////////////////////////////