src/model/CoilCoolingDXTwoSpeed_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_COILCOOLINGDXTWOSPEED_IMPL_HPP | ||
| 7 | #define MODEL_COILCOOLINGDXTWOSPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "StraightComponent_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | class Curve; | ||
| 15 | class Schedule; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | // derive CoilCoolingDXTwoSpeed_Impl from ModelObject_Impl to override virtual methods | ||
| 20 | class MODEL_API CoilCoolingDXTwoSpeed_Impl : public StraightComponent_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** @name Constructors and Destructors */ | ||
| 24 | //@{ | ||
| 25 | |||
| 26 | // constructor | ||
| 27 | CoilCoolingDXTwoSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | // construct from workspace | ||
| 30 | CoilCoolingDXTwoSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | // copy constructor | ||
| 33 | CoilCoolingDXTwoSpeed_Impl(const CoilCoolingDXTwoSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 35 | virtual ~CoilCoolingDXTwoSpeed_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual ModelObject clone(Model model) const override; | ||
| 42 | |||
| 43 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 44 | |||
| 45 | virtual IddObjectType iddObjectType() const override; | ||
| 46 | |||
| 47 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 48 | |||
| 49 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 50 | |||
| 51 | virtual std::vector<ModelObject> children() const override; | ||
| 52 | |||
| 53 | virtual unsigned inletPort() const override; | ||
| 54 | |||
| 55 | virtual unsigned outletPort() const override; | ||
| 56 | |||
| 57 | virtual bool addToNode(Node& node) override; | ||
| 58 | |||
| 59 | virtual void autosize() override; | ||
| 60 | |||
| 61 | virtual void applySizingValues() override; | ||
| 62 | |||
| 63 | virtual ComponentType componentType() const override; | ||
| 64 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 65 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 66 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 67 | |||
| 68 | //@} | ||
| 69 | /** @name Getters */ | ||
| 70 | //@{ | ||
| 71 | |||
| 72 | Schedule availabilitySchedule() const; | ||
| 73 | |||
| 74 | boost::optional<double> ratedHighSpeedTotalCoolingCapacity() const; | ||
| 75 | |||
| 76 | boost::optional<double> ratedHighSpeedSensibleHeatRatio() const; | ||
| 77 | |||
| 78 | double ratedHighSpeedCOP() const; | ||
| 79 | |||
| 80 | boost::optional<double> ratedHighSpeedAirFlowRate() const; | ||
| 81 | |||
| 82 | double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const; | ||
| 83 | |||
| 84 | double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const; | ||
| 85 | |||
| 86 | Curve totalCoolingCapacityFunctionOfTemperatureCurve() const; | ||
| 87 | |||
| 88 | Curve totalCoolingCapacityFunctionOfFlowFractionCurve() const; | ||
| 89 | |||
| 90 | Curve energyInputRatioFunctionOfTemperatureCurve() const; | ||
| 91 | |||
| 92 | Curve energyInputRatioFunctionOfFlowFractionCurve() const; | ||
| 93 | |||
| 94 | Curve partLoadFractionCorrelationCurve() const; | ||
| 95 | |||
| 96 | boost::optional<double> ratedLowSpeedTotalCoolingCapacity() const; | ||
| 97 | |||
| 98 | boost::optional<double> ratedLowSpeedSensibleHeatRatio() const; | ||
| 99 | |||
| 100 | double ratedLowSpeedCOP() const; | ||
| 101 | |||
| 102 | boost::optional<double> ratedLowSpeedAirFlowRate() const; | ||
| 103 | |||
| 104 | double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const; | ||
| 105 | |||
| 106 | double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const; | ||
| 107 | |||
| 108 | Curve lowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve() const; | ||
| 109 | |||
| 110 | Curve lowSpeedEnergyInputRatioFunctionOfTemperatureCurve() const; | ||
| 111 | |||
| 112 | boost::optional<std::string> condenserAirInletNodeName() const; | ||
| 113 | |||
| 114 | std::string condenserType() const; | ||
| 115 | |||
| 116 | double highSpeedEvaporativeCondenserEffectiveness() const; | ||
| 117 | |||
| 118 | boost::optional<double> highSpeedEvaporativeCondenserAirFlowRate() const; | ||
| 119 | |||
| 120 | boost::optional<double> highSpeedEvaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 121 | |||
| 122 | double lowSpeedEvaporativeCondenserEffectiveness() const; | ||
| 123 | |||
| 124 | boost::optional<double> lowSpeedEvaporativeCondenserAirFlowRate() const; | ||
| 125 | |||
| 126 | boost::optional<double> lowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 127 | |||
| 128 | double basinHeaterCapacity() const; | ||
| 129 | |||
| 130 | double basinHeaterSetpointTemperature() const; | ||
| 131 | |||
| 132 | boost::optional<Schedule> basinHeaterOperatingSchedule() const; | ||
| 133 | |||
| 134 | double minimumOutdoorDryBulbTemperatureforCompressorOperation() const; | ||
| 135 | |||
| 136 | double unitInternalStaticAirPressure() const; | ||
| 137 | |||
| 138 | //@} | ||
| 139 | /** @name Setters */ | ||
| 140 | //@{ | ||
| 141 | |||
| 142 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 143 | |||
| 144 | bool setRatedHighSpeedTotalCoolingCapacity(boost::optional<double> value); | ||
| 145 | |||
| 146 | bool setRatedHighSpeedTotalCoolingCapacity(double value); | ||
| 147 | |||
| 148 | bool setRatedHighSpeedSensibleHeatRatio(boost::optional<double> value); | ||
| 149 | |||
| 150 | bool setRatedHighSpeedSensibleHeatRatio(double value); | ||
| 151 | |||
| 152 | bool setRatedHighSpeedCOP(double value); | ||
| 153 | |||
| 154 | bool setRatedHighSpeedAirFlowRate(boost::optional<double> value); | ||
| 155 | |||
| 156 | bool setRatedHighSpeedAirFlowRate(double value); | ||
| 157 | |||
| 158 | bool setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | ||
| 159 | |||
| 160 | bool setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | ||
| 161 | |||
| 162 | bool setTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve); | ||
| 163 | |||
| 164 | bool setTotalCoolingCapacityFunctionOfFlowFractionCurve(const Curve& curve); | ||
| 165 | |||
| 166 | bool setEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve); | ||
| 167 | |||
| 168 | bool setEnergyInputRatioFunctionOfFlowFractionCurve(const Curve& curve); | ||
| 169 | |||
| 170 | bool setPartLoadFractionCorrelationCurve(const Curve& curve); | ||
| 171 | |||
| 172 | bool setRatedLowSpeedTotalCoolingCapacity(boost::optional<double> value); | ||
| 173 | |||
| 174 | bool setRatedLowSpeedTotalCoolingCapacity(double value); | ||
| 175 | |||
| 176 | bool setRatedLowSpeedSensibleHeatRatio(boost::optional<double> value); | ||
| 177 | |||
| 178 | bool setRatedLowSpeedSensibleHeatRatio(double value); | ||
| 179 | |||
| 180 | bool setRatedLowSpeedCOP(double value); | ||
| 181 | |||
| 182 | bool setRatedLowSpeedAirFlowRate(boost::optional<double> value); | ||
| 183 | |||
| 184 | bool setRatedLowSpeedAirFlowRate(double value); | ||
| 185 | |||
| 186 | bool setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | ||
| 187 | |||
| 188 | bool setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | ||
| 189 | |||
| 190 | bool setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve); | ||
| 191 | |||
| 192 | bool setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve); | ||
| 193 | |||
| 194 | bool setCondenserAirInletNodeName(const std::string& value); | ||
| 195 | |||
| 196 | bool setCondenserType(const std::string& value); | ||
| 197 | |||
| 198 | bool setHighSpeedEvaporativeCondenserEffectiveness(double value); | ||
| 199 | |||
| 200 | bool setHighSpeedEvaporativeCondenserAirFlowRate(boost::optional<double> value); | ||
| 201 | |||
| 202 | bool setHighSpeedEvaporativeCondenserAirFlowRate(double value); | ||
| 203 | |||
| 204 | bool setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::optional<double> value); | ||
| 205 | |||
| 206 | bool setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value); | ||
| 207 | |||
| 208 | bool setLowSpeedEvaporativeCondenserEffectiveness(double value); | ||
| 209 | |||
| 210 | bool setLowSpeedEvaporativeCondenserAirFlowRate(boost::optional<double> value); | ||
| 211 | |||
| 212 | bool setLowSpeedEvaporativeCondenserAirFlowRate(double value); | ||
| 213 | |||
| 214 | bool setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::optional<double> value); | ||
| 215 | |||
| 216 | bool setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value); | ||
| 217 | |||
| 218 | //TODO | ||
| 219 | // A14, \field Supply Water Storage Tank Name | ||
| 220 | // supplyWaterStorageTankName | ||
| 221 | // setSupplyWaterStorageTankName | ||
| 222 | |||
| 223 | //TODO | ||
| 224 | // A15, \field Condensate Collection Water Storage Tank Name | ||
| 225 | // getCondensateCollectionWaterStorageTankName | ||
| 226 | // setCondensateCollectionWaterStorageTankName | ||
| 227 | |||
| 228 | bool setBasinHeaterCapacity(double value); | ||
| 229 | |||
| 230 | bool setBasinHeaterSetpointTemperature(double value); | ||
| 231 | |||
| 232 | bool setBasinHeaterOperatingSchedule(Schedule& schedule); | ||
| 233 | |||
| 234 | void resetBasinHeaterOperatingSchedule(); | ||
| 235 | |||
| 236 | bool setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 237 | |||
| 238 | bool setUnitInternalStaticAirPressure(double unitInternalStaticAirPressure); | ||
| 239 | |||
| 240 | //@} | ||
| 241 | /** @name Other */ | ||
| 242 | //@{ | ||
| 243 | |||
| 244 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 245 | |||
| 246 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 247 | |||
| 248 | // Autosize methods | ||
| 249 | |||
| 250 | boost::optional<double> autosizedRatedHighSpeedTotalCoolingCapacity() const; | ||
| 251 | |||
| 252 | boost::optional<double> autosizedRatedHighSpeedSensibleHeatRatio() const; | ||
| 253 | |||
| 254 | boost::optional<double> autosizedRatedHighSpeedAirFlowRate() const; | ||
| 255 | |||
| 256 | boost::optional<double> autosizedRatedLowSpeedTotalCoolingCapacity() const; | ||
| 257 | |||
| 258 | boost::optional<double> autosizedRatedLowSpeedSensibleHeatRatio() const; | ||
| 259 | |||
| 260 | boost::optional<double> autosizedRatedLowSpeedAirFlowRate() const; | ||
| 261 | |||
| 262 | boost::optional<double> autosizedHighSpeedEvaporativeCondenserAirFlowRate() const; | ||
| 263 | |||
| 264 | boost::optional<double> autosizedHighSpeedEvaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 265 | |||
| 266 | boost::optional<double> autosizedLowSpeedEvaporativeCondenserAirFlowRate() const; | ||
| 267 | |||
| 268 | boost::optional<double> autosizedLowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 269 | |||
| 270 | //@} | ||
| 271 | |||
| 272 | private: | ||
| 273 | − | REGISTER_LOGGER("openstudio.model.CoilCoolingDXTwoSpeed"); | |
| 274 | |||
| 275 | // optional getters for children so can remove() if constructor fails | ||
| 276 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 277 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionOfTemperatureCurve() const; | ||
| 278 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionOfFlowFractionCurve() const; | ||
| 279 | boost::optional<Curve> optionalEnergyInputRatioFunctionOfTemperatureCurve() const; | ||
| 280 | boost::optional<Curve> optionalEnergyInputRatioFunctionOfFlowFractionCurve() const; | ||
| 281 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 282 | boost::optional<Curve> optionalLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve() const; | ||
| 283 | boost::optional<Curve> optionalLowSpeedEnergyInputRatioFunctionOfTemperatureCurve() const; | ||
| 284 | |||
| 285 | boost::optional<ModelObject> availabilityScheduleAsModelObject() const; | ||
| 286 | boost::optional<ModelObject> basinHeaterOperatingScheduleAsModelObject() const; | ||
| 287 | |||
| 288 | bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 289 | bool setBasinHeaterOperatingScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 290 | |||
| 291 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 292 | }; | ||
| 293 | |||
| 294 | } // namespace detail | ||
| 295 | |||
| 296 | } // namespace model | ||
| 297 | } // namespace openstudio | ||
| 298 | |||
| 299 | #endif // MODEL_COILCOOLINGDXTWOSPEED_IMPL_HPP | ||
| 300 |