src/model/AirLoopHVACUnitaryHeatPumpAirToAir_Impl.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_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIR_IMPL_HPP | ||
| 7 | #define MODEL_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIR_IMPL_HPP | ||
| 8 | |||
| 9 | #include "StraightComponent_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | |||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | |||
| 17 | class HVACComponent; | ||
| 18 | |||
| 19 | class ThermalZone; | ||
| 20 | |||
| 21 | class Node; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | /** AirLoopHVACUnitaryHeatPumpAirToAir_Impl is a StraightComponent_Impl that is the implementation class for AirLoopHVACUnitaryHeatPumpAirToAir.*/ | ||
| 26 | class MODEL_API AirLoopHVACUnitaryHeatPumpAirToAir_Impl : public StraightComponent_Impl | ||
| 27 | { | ||
| 28 | |||
| 29 | public: | ||
| 30 | /** @name Constructors and Destructors */ | ||
| 31 | //@{ | ||
| 32 | |||
| 33 | AirLoopHVACUnitaryHeatPumpAirToAir_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | AirLoopHVACUnitaryHeatPumpAirToAir_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 36 | |||
| 37 | AirLoopHVACUnitaryHeatPumpAirToAir_Impl(const AirLoopHVACUnitaryHeatPumpAirToAir_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 38 | |||
| 39 | 19 | virtual ~AirLoopHVACUnitaryHeatPumpAirToAir_Impl() override = default; | |
| 40 | |||
| 41 | //@} | ||
| 42 | /** @name Virtual Methods */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | virtual ModelObject clone(Model model) const override; | ||
| 46 | |||
| 47 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 48 | |||
| 49 | virtual IddObjectType iddObjectType() const override; | ||
| 50 | |||
| 51 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 52 | |||
| 53 | virtual std::vector<ModelObject> children() const override; | ||
| 54 | |||
| 55 | virtual unsigned inletPort() const override; | ||
| 56 | |||
| 57 | virtual unsigned outletPort() const override; | ||
| 58 | |||
| 59 | virtual bool addToNode(Node& node) override; | ||
| 60 | |||
| 61 | virtual ComponentType componentType() const override; | ||
| 62 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 63 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 64 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 65 | |||
| 66 | //@} | ||
| 67 | /** @name Getters */ | ||
| 68 | //@{ | ||
| 69 | |||
| 70 | Schedule availabilitySchedule() const; | ||
| 71 | |||
| 72 | boost::optional<double> supplyAirFlowRateDuringCoolingOperation() const; | ||
| 73 | |||
| 74 | bool isSupplyAirFlowRateDuringCoolingOperationAutosized() const; | ||
| 75 | |||
| 76 | boost::optional<double> supplyAirFlowRateDuringHeatingOperation() const; | ||
| 77 | |||
| 78 | bool isSupplyAirFlowRateDuringHeatingOperationAutosized() const; | ||
| 79 | |||
| 80 | boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const; | ||
| 81 | |||
| 82 | bool isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const; | ||
| 83 | |||
| 84 | boost::optional<ThermalZone> controllingZone() const; | ||
| 85 | |||
| 86 | HVACComponent supplyAirFan() const; | ||
| 87 | |||
| 88 | HVACComponent heatingCoil() const; | ||
| 89 | |||
| 90 | HVACComponent coolingCoil() const; | ||
| 91 | |||
| 92 | HVACComponent supplementalHeatingCoil() const; | ||
| 93 | |||
| 94 | boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater() const; | ||
| 95 | |||
| 96 | bool isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const; | ||
| 97 | |||
| 98 | double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const; | ||
| 99 | |||
| 100 | bool isMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperationDefaulted() const; | ||
| 101 | |||
| 102 | std::string fanPlacement() const; | ||
| 103 | |||
| 104 | bool isFanPlacementDefaulted() const; | ||
| 105 | |||
| 106 | boost::optional<Schedule> supplyAirFanOperatingModeSchedule() const; | ||
| 107 | |||
| 108 | std::string dehumidificationControlType() const; | ||
| 109 | |||
| 110 | bool isDehumidificationControlTypeDefaulted() const; | ||
| 111 | |||
| 112 | double dXHeatingCoilSizingRatio() const; | ||
| 113 | |||
| 114 | boost::optional<double> autosizedSupplyAirFlowRateDuringCoolingOperation() const; | ||
| 115 | |||
| 116 | boost::optional<double> autosizedSupplyAirFlowRateDuringHeatingOperation() const; | ||
| 117 | |||
| 118 | boost::optional<double> autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const; | ||
| 119 | |||
| 120 | boost::optional<double> autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const; | ||
| 121 | |||
| 122 | virtual void autosize() override; | ||
| 123 | |||
| 124 | virtual void applySizingValues() override; | ||
| 125 | |||
| 126 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 127 | |||
| 128 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 129 | |||
| 130 | //@} | ||
| 131 | /** @name Setters */ | ||
| 132 | //@{ | ||
| 133 | |||
| 134 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 135 | |||
| 136 | bool setSupplyAirFlowRateDuringCoolingOperation(boost::optional<double> supplyAirFlowRateDuringCoolingOperation); | ||
| 137 | |||
| 138 | void autosizeSupplyAirFlowRateDuringCoolingOperation(); | ||
| 139 | |||
| 140 | bool setSupplyAirFlowRateDuringHeatingOperation(boost::optional<double> n2); | ||
| 141 | |||
| 142 | void autosizeSupplyAirFlowRateDuringHeatingOperation(); | ||
| 143 | |||
| 144 | bool setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded); | ||
| 145 | |||
| 146 | void resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | ||
| 147 | |||
| 148 | void autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | ||
| 149 | |||
| 150 | bool setControllingZone(ThermalZone& zone); | ||
| 151 | |||
| 152 | void resetControllingZone(); | ||
| 153 | |||
| 154 | bool setSupplyAirFan(HVACComponent& hvacComponent); | ||
| 155 | |||
| 156 | bool setHeatingCoil(HVACComponent& hvacComponent); | ||
| 157 | |||
| 158 | bool setCoolingCoil(HVACComponent& hvacComponent); | ||
| 159 | |||
| 160 | bool setSupplementalHeatingCoil(HVACComponent& hvacComponent); | ||
| 161 | |||
| 162 | bool setMaximumSupplyAirTemperaturefromSupplementalHeater(boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater); | ||
| 163 | |||
| 164 | void autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); | ||
| 165 | |||
| 166 | bool setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | ||
| 167 | |||
| 168 | void resetMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(); | ||
| 169 | |||
| 170 | bool setFanPlacement(const std::string& fanPlacement); | ||
| 171 | |||
| 172 | void resetFanPlacement(); | ||
| 173 | |||
| 174 | bool setSupplyAirFanOperatingModeSchedule(Schedule& schedule); | ||
| 175 | |||
| 176 | void resetSupplyAirFanOperatingModeSchedule(); | ||
| 177 | |||
| 178 | bool setDehumidificationControlType(const std::string& dehumidificationControlType); | ||
| 179 | |||
| 180 | void resetDehumidificationControlType(); | ||
| 181 | |||
| 182 | bool setDXHeatingCoilSizingRatio(double dXHeatingCoilSizingRatio); | ||
| 183 | |||
| 184 | //@} | ||
| 185 | /** @name Other */ | ||
| 186 | //@{ | ||
| 187 | |||
| 188 | //@} | ||
| 189 | protected: | ||
| 190 | private: | ||
| 191 | − | REGISTER_LOGGER("openstudio.model.AirLoopHVACUnitaryHeatPumpAirToAir"); | |
| 192 | |||
| 193 | boost::optional<HVACComponent> optionalSupplyAirFan() const; | ||
| 194 | boost::optional<HVACComponent> optionalHeatingCoil() const; | ||
| 195 | boost::optional<HVACComponent> optionalCoolingCoil() const; | ||
| 196 | boost::optional<HVACComponent> optionalSupplementalHeatingCoil() const; | ||
| 197 | }; | ||
| 198 | |||
| 199 | } // namespace detail | ||
| 200 | |||
| 201 | } // namespace model | ||
| 202 | } // namespace openstudio | ||
| 203 | |||
| 204 | #endif // MODEL_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIR_IMPL_HPP | ||
| 205 |