|
98 | 98 | #include "../../model/SetpointManagerScheduledDualSetpoint.hpp" |
99 | 99 | #include "../../model/SetpointManagerScheduledDualSetpoint_Impl.hpp" |
100 | 100 | #include "../../model/LifeCycleCost.hpp" |
| 101 | + |
101 | 102 | #include "../../utilities/idf/IdfExtensibleGroup.hpp" |
| 103 | +#include "../../utilities/data/DataEnums.hpp" |
| 104 | + |
102 | 105 | #include <utilities/idd/IddEnums.hxx> |
103 | 106 | #include <utilities/idd/IddFactory.hxx> |
104 | 107 | #include <utilities/idd/PlantLoop_FieldEnums.hxx> |
@@ -582,6 +585,24 @@ namespace energyplus { |
582 | 585 | idfObject.setString(PlantLoopFields::CommonPipeSimulation, s.get()); |
583 | 586 | } |
584 | 587 |
|
| 588 | + // Water Loop Type |
| 589 | + // TODO JM 2025-11-13: This field should never have been added to 25.2.0, so it is purposefully NOT wrapped in the model namespace |
| 590 | + // MJW is looking into removing it today, will assess later |
| 591 | + ComponentType waterLoopType = plantLoop.componentType(); |
| 592 | + if (waterLoopType == ComponentType::Heating) { |
| 593 | + idfObject.setString(PlantLoopFields::WaterLoopType, "HotWater"); |
| 594 | + } else if (waterLoopType == ComponentType::Cooling) { |
| 595 | + idfObject.setString(PlantLoopFields::WaterLoopType, "ChilledWater"); |
| 596 | + } else if (waterLoopType == ComponentType::None) { |
| 597 | + idfObject.setString(PlantLoopFields::WaterLoopType, "None"); |
| 598 | + } else if (waterLoopType == ComponentType::Both) { |
| 599 | + if (!plantLoop.supplyComponents(IddObjectType::OS_HeatPump_AirToWater_Cooling).empty()) { |
| 600 | + idfObject.setString(PlantLoopFields::WaterLoopType, "HotWater"); |
| 601 | + } else if (!plantLoop.supplyComponents(IddObjectType::OS_HeatPump_AirToWater_Heating).empty()) { |
| 602 | + idfObject.setString(PlantLoopFields::WaterLoopType, "ChilledWater"); |
| 603 | + } |
| 604 | + } |
| 605 | + |
585 | 606 | // Inlet/Outlet Nodes |
586 | 607 | idfObject.setString(PlantLoopFields::PlantSideInletNodeName, plantLoop.supplyInletNode().name().get()); |
587 | 608 | idfObject.setString(PlantLoopFields::PlantSideOutletNodeName, plantLoop.supplyOutletNode().name().get()); |
|
0 commit comments