src/model/CoilSystemCoolingWater.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #ifndef MODEL_COILSYSTEMCOOLINGWATER_HPP | ||
| 7 | #define MODEL_COILSYSTEMCOOLINGWATER_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | class HVACComponent; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | class CoilSystemCoolingWater_Impl; | ||
| 22 | |||
| 23 | } // namespace detail | ||
| 24 | |||
| 25 | /** CoilSystemCoolingWater is a StraightComponent that wraps the OpenStudio IDD object 'OS:CoilSystem:Cooling:Water'. */ | ||
| 26 | class MODEL_API CoilSystemCoolingWater : public StraightComponent | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | explicit CoilSystemCoolingWater(const Model& model); | ||
| 33 | |||
| 34 | explicit CoilSystemCoolingWater(const Model& model, const HVACComponent& coolingCoil); | ||
| 35 | |||
| 36 | 141 | virtual ~CoilSystemCoolingWater() = default; | |
| 37 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 38 | ✗ | CoilSystemCoolingWater(const CoilSystemCoolingWater& other) = default; | |
| 39 | 59 | CoilSystemCoolingWater(CoilSystemCoolingWater&& other) = default; | |
| 40 | ✗ | CoilSystemCoolingWater& operator=(const CoilSystemCoolingWater&) = default; | |
| 41 | ✗ | CoilSystemCoolingWater& operator=(CoilSystemCoolingWater&&) = default; | |
| 42 | |||
| 43 | //@} | ||
| 44 | |||
| 45 | static IddObjectType iddObjectType(); | ||
| 46 | |||
| 47 | static std::vector<std::string> dehumidificationControlTypeValues(); | ||
| 48 | |||
| 49 | /** @name Getters */ | ||
| 50 | //@{ | ||
| 51 | |||
| 52 | Schedule availabilitySchedule() const; | ||
| 53 | |||
| 54 | HVACComponent coolingCoil() const; | ||
| 55 | |||
| 56 | std::string dehumidificationControlType() const; | ||
| 57 | |||
| 58 | bool runonSensibleLoad() const; | ||
| 59 | |||
| 60 | bool runonLatentLoad() const; | ||
| 61 | |||
| 62 | double minimumAirToWaterTemperatureOffset() const; | ||
| 63 | |||
| 64 | bool economizerLockout() const; | ||
| 65 | |||
| 66 | double minimumWaterLoopTemperatureForHeatRecovery() const; | ||
| 67 | |||
| 68 | boost::optional<HVACComponent> companionCoilUsedForHeatRecovery() const; | ||
| 69 | |||
| 70 | //@} | ||
| 71 | /** @name Setters */ | ||
| 72 | //@{ | ||
| 73 | |||
| 74 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 75 | |||
| 76 | // CoilCoolingWater or CoilSystemCoolingWaterHeatExchangerAssisted | ||
| 77 | bool setCoolingCoil(const HVACComponent& coolingCoil); | ||
| 78 | |||
| 79 | bool setDehumidificationControlType(const std::string& dehumidificationControlType); | ||
| 80 | |||
| 81 | bool setRunonSensibleLoad(bool runonSensibleLoad); | ||
| 82 | |||
| 83 | bool setRunonLatentLoad(bool runonLatentLoad); | ||
| 84 | |||
| 85 | bool setMinimumAirToWaterTemperatureOffset(double minimumAirToWaterTemperatureOffset); | ||
| 86 | |||
| 87 | bool setEconomizerLockout(bool economizerLockout); | ||
| 88 | |||
| 89 | bool setMinimumWaterLoopTemperatureForHeatRecovery(double minimumWaterLoopTemperatureForHeatRecovery); | ||
| 90 | |||
| 91 | // Only CoilCoolingWater is supported by E+ as a companion coil right now | ||
| 92 | bool setCompanionCoilUsedForHeatRecovery(const HVACComponent& companionCoilUsedForHeatRecovery); | ||
| 93 | |||
| 94 | void resetCompanionCoilUsedForHeatRecovery(); | ||
| 95 | |||
| 96 | //@} | ||
| 97 | /** @name Other */ | ||
| 98 | //@{ | ||
| 99 | |||
| 100 | //@} | ||
| 101 | protected: | ||
| 102 | /// @cond | ||
| 103 | using ImplType = detail::CoilSystemCoolingWater_Impl; | ||
| 104 | |||
| 105 | explicit CoilSystemCoolingWater(std::shared_ptr<detail::CoilSystemCoolingWater_Impl> impl); | ||
| 106 | |||
| 107 | friend class detail::CoilSystemCoolingWater_Impl; | ||
| 108 | friend class Model; | ||
| 109 | friend class IdfObject; | ||
| 110 | friend class openstudio::detail::IdfObject_Impl; | ||
| 111 | /// @endcond | ||
| 112 | private: | ||
| 113 | − | REGISTER_LOGGER("openstudio.model.CoilSystemCoolingWater"); | |
| 114 | |||
| 115 | void assignEnergyPlusIDDDefaults(); | ||
| 116 | }; | ||
| 117 | |||
| 118 | /** \relates CoilSystemCoolingWater*/ | ||
| 119 | using OptionalCoilSystemCoolingWater = boost::optional<CoilSystemCoolingWater>; | ||
| 120 | |||
| 121 | /** \relates CoilSystemCoolingWater*/ | ||
| 122 | using CoilSystemCoolingWaterVector = std::vector<CoilSystemCoolingWater>; | ||
| 123 | |||
| 124 | } // namespace model | ||
| 125 | } // namespace openstudio | ||
| 126 | |||
| 127 | #endif // MODEL_COILSYSTEMCOOLINGWATER_HPP | ||
| 128 |