src/model/CoilHeatingDXSingleSpeed_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_COILHEATINGDXSINGLESPEED_IMPL_HPP | ||
| 7 | #define MODEL_COILHEATINGDXSINGLESPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "StraightComponent_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | class Curve; | ||
| 15 | class Schedule; | ||
| 16 | class ZoneHVACComponent; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** CoilHeatingDXSingleSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoilHeatingDXSingleSpeed.*/ | ||
| 21 | class MODEL_API CoilHeatingDXSingleSpeed_Impl : public StraightComponent_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | CoilHeatingDXSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | CoilHeatingDXSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoilHeatingDXSingleSpeed_Impl(const CoilHeatingDXSingleSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 88 | virtual ~CoilHeatingDXSingleSpeed_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual ModelObject clone(Model model) const override; | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 46 | |||
| 47 | virtual std::vector<ModelObject> children() const override; | ||
| 48 | |||
| 49 | virtual unsigned inletPort() const override; | ||
| 50 | |||
| 51 | virtual unsigned outletPort() const override; | ||
| 52 | |||
| 53 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 54 | |||
| 55 | virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override; | ||
| 56 | |||
| 57 | virtual ComponentType componentType() const override; | ||
| 58 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 59 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 60 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 61 | |||
| 62 | //@} | ||
| 63 | /** @name Getters */ | ||
| 64 | //@{ | ||
| 65 | |||
| 66 | Schedule availabilitySchedule() const; | ||
| 67 | |||
| 68 | boost::optional<double> ratedTotalHeatingCapacity() const; | ||
| 69 | |||
| 70 | bool isRatedTotalHeatingCapacityAutosized() const; | ||
| 71 | |||
| 72 | double ratedCOP() const; | ||
| 73 | |||
| 74 | boost::optional<double> ratedAirFlowRate() const; | ||
| 75 | |||
| 76 | double ratedSupplyFanPowerPerVolumeFlowRate2017() const; | ||
| 77 | |||
| 78 | double ratedSupplyFanPowerPerVolumeFlowRate2023() const; | ||
| 79 | |||
| 80 | bool isRatedAirFlowRateAutosized() const; | ||
| 81 | |||
| 82 | double minimumOutdoorDryBulbTemperatureforCompressorOperation() const; | ||
| 83 | |||
| 84 | bool isMinimumOutdoorDryBulbTemperatureforCompressorOperationDefaulted() const; | ||
| 85 | |||
| 86 | double maximumOutdoorDryBulbTemperatureforDefrostOperation() const; | ||
| 87 | |||
| 88 | bool isMaximumOutdoorDryBulbTemperatureforDefrostOperationDefaulted() const; | ||
| 89 | |||
| 90 | double crankcaseHeaterCapacity() const; | ||
| 91 | |||
| 92 | bool isCrankcaseHeaterCapacityDefaulted() const; | ||
| 93 | |||
| 94 | boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const; | ||
| 95 | |||
| 96 | double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation() const; | ||
| 97 | |||
| 98 | bool isMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperationDefaulted() const; | ||
| 99 | |||
| 100 | std::string defrostStrategy() const; | ||
| 101 | |||
| 102 | bool isDefrostStrategyDefaulted() const; | ||
| 103 | |||
| 104 | std::string defrostControl() const; | ||
| 105 | |||
| 106 | bool isDefrostControlDefaulted() const; | ||
| 107 | |||
| 108 | double defrostTimePeriodFraction() const; | ||
| 109 | |||
| 110 | bool isDefrostTimePeriodFractionDefaulted() const; | ||
| 111 | |||
| 112 | boost::optional<double> resistiveDefrostHeaterCapacity() const; | ||
| 113 | |||
| 114 | bool isResistiveDefrostHeaterCapacityDefaulted() const; | ||
| 115 | |||
| 116 | bool isResistiveDefrostHeaterCapacityAutosized() const; | ||
| 117 | |||
| 118 | boost::optional<double> autosizedRatedTotalHeatingCapacity() const; | ||
| 119 | |||
| 120 | boost::optional<double> autosizedRatedAirFlowRate() const; | ||
| 121 | |||
| 122 | boost::optional<double> autosizedResistiveDefrostHeaterCapacity() const; | ||
| 123 | |||
| 124 | virtual void autosize() override; | ||
| 125 | |||
| 126 | virtual void applySizingValues() override; | ||
| 127 | |||
| 128 | //@} | ||
| 129 | /** @name Setters */ | ||
| 130 | //@{ | ||
| 131 | |||
| 132 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 133 | |||
| 134 | bool setRatedTotalHeatingCapacity(boost::optional<double> ratedTotalHeatingCapacity); | ||
| 135 | |||
| 136 | void autosizeRatedTotalHeatingCapacity(); | ||
| 137 | |||
| 138 | bool setRatedCOP(double ratedCOP); | ||
| 139 | |||
| 140 | bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate); | ||
| 141 | |||
| 142 | void autosizeRatedAirFlowRate(); | ||
| 143 | |||
| 144 | bool setRatedSupplyFanPowerPerVolumeFlowRate2017(double ratedSupplyFanPowerPerVolumeFlowRate2017); | ||
| 145 | |||
| 146 | bool setRatedSupplyFanPowerPerVolumeFlowRate2023(double ratedSupplyFanPowerPerVolumeFlowRate2023); | ||
| 147 | |||
| 148 | bool setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 149 | |||
| 150 | void resetMinimumOutdoorDryBulbTemperatureforCompressorOperation(); | ||
| 151 | |||
| 152 | bool setMaximumOutdoorDryBulbTemperatureforDefrostOperation(double maximumOutdoorDryBulbTemperatureforDefrostOperation); | ||
| 153 | |||
| 154 | void resetMaximumOutdoorDryBulbTemperatureforDefrostOperation(); | ||
| 155 | |||
| 156 | bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity); | ||
| 157 | |||
| 158 | void resetCrankcaseHeaterCapacity(); | ||
| 159 | |||
| 160 | bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 161 | void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | ||
| 162 | |||
| 163 | bool setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation); | ||
| 164 | |||
| 165 | void resetMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(); | ||
| 166 | |||
| 167 | bool setDefrostStrategy(const std::string& defrostStrategy); | ||
| 168 | |||
| 169 | void resetDefrostStrategy(); | ||
| 170 | |||
| 171 | bool setDefrostControl(const std::string& defrostControl); | ||
| 172 | |||
| 173 | void resetDefrostControl(); | ||
| 174 | |||
| 175 | bool setDefrostTimePeriodFraction(double defrostTimePeriodFraction); | ||
| 176 | |||
| 177 | void resetDefrostTimePeriodFraction(); | ||
| 178 | |||
| 179 | bool setResistiveDefrostHeaterCapacity(boost::optional<double> resistiveDefrostHeaterCapacity); | ||
| 180 | |||
| 181 | void resetResistiveDefrostHeaterCapacity(); | ||
| 182 | |||
| 183 | void autosizeResistiveDefrostHeaterCapacity(); | ||
| 184 | |||
| 185 | //@} | ||
| 186 | /** @name Curves */ | ||
| 187 | //@{ | ||
| 188 | |||
| 189 | // A5 , \field Total Heating Capacity Function of Temperature Curve Name | ||
| 190 | // \object-list BiquadraticQuadraticCubicCurves | ||
| 191 | Curve totalHeatingCapacityFunctionofTemperatureCurve() const; | ||
| 192 | bool setTotalHeatingCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 193 | |||
| 194 | // A6 , \field Total Heating Capacity Function of Flow Fraction Curve Name | ||
| 195 | // \object-list QuadraticCubicCurves | ||
| 196 | Curve totalHeatingCapacityFunctionofFlowFractionCurve() const; | ||
| 197 | bool setTotalHeatingCapacityFunctionofFlowFractionCurve(const Curve& curve); | ||
| 198 | |||
| 199 | // A7 , \field Energy Input Ratio Function of Temperature Curve Name | ||
| 200 | // \object-list BiquadraticQuadraticCubicCurves | ||
| 201 | Curve energyInputRatioFunctionofTemperatureCurve() const; | ||
| 202 | bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve); | ||
| 203 | |||
| 204 | // A8 , \field Energy Input Ratio Function of Flow Fraction Curve Name | ||
| 205 | // \object-list QuadraticCubicCurves | ||
| 206 | Curve energyInputRatioFunctionofFlowFractionCurve() const; | ||
| 207 | bool setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve); | ||
| 208 | |||
| 209 | // A9 , \field Part Load Fraction Correlation Curve Name | ||
| 210 | // \object-list QuadraticCubicCurves | ||
| 211 | Curve partLoadFractionCorrelationCurve() const; | ||
| 212 | bool setPartLoadFractionCorrelationCurve(const Curve& curve); | ||
| 213 | |||
| 214 | // A10, \field Defrost Energy Input Ratio Function of Temperature Curve Name | ||
| 215 | // \object-list BiquadraticCurves | ||
| 216 | // not a required curve so it needs a reset | ||
| 217 | boost::optional<Curve> defrostEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 218 | bool setDefrostEnergyInputRatioFunctionofTemperatureCurve(const boost::optional<Curve> curve); | ||
| 219 | |||
| 220 | bool addToNode(Node& node) override; | ||
| 221 | |||
| 222 | //@} | ||
| 223 | |||
| 224 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 225 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 226 | |||
| 227 | protected: | ||
| 228 | private: | ||
| 229 | − | REGISTER_LOGGER("openstudio.model.CoilHeatingDXSingleSpeed"); | |
| 230 | |||
| 231 | boost::optional<ModelObject> availabilityScheduleAsModelObject() const; | ||
| 232 | |||
| 233 | bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 234 | }; | ||
| 235 | |||
| 236 | } // namespace detail | ||
| 237 | |||
| 238 | } // namespace model | ||
| 239 | |||
| 240 | } // namespace openstudio | ||
| 241 | |||
| 242 | #endif // MODEL_COILHEATINGDXSINGLESPEED_IMPL_HPP | ||
| 243 |