Skip to content

Commit

Permalink
Minimal changes for DistrictHeating to DistrictHeating:Water.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Aug 28, 2023
1 parent 8b7b755 commit 2313cc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/energyplus/ProposedEnergy+.idd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace energyplus {
OptionalModelObject temp;
boost::optional<double> value;

IdfObject idfObject(IddObjectType::DistrictHeating);
IdfObject idfObject(IddObjectType::DistrictHeating_Water);

m_idfObjects.push_back(idfObject);

Expand All @@ -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);
}
}
///////////////////////////////////////////////////////////////////////////
Expand All @@ -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);
}
}
///
Expand All @@ -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());
}
//
////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 2313cc0

Please sign in to comment.