src/model/CoilHeatingDXVariableSpeed_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_COILHEATINGDXVARIABLESPEED_IMPL_HPP | ||
| 7 | #define MODEL_COILHEATINGDXVARIABLESPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class CoilHeatingDXVariableSpeedSpeedData; | ||
| 16 | class Curve; | ||
| 17 | class ModelObjectList; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoilHeatingDXVariableSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoilHeatingDXVariableSpeed.*/ | ||
| 22 | class MODEL_API CoilHeatingDXVariableSpeed_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | CoilHeatingDXVariableSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilHeatingDXVariableSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | CoilHeatingDXVariableSpeed_Impl(const CoilHeatingDXVariableSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 73 | virtual ~CoilHeatingDXVariableSpeed_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 45 | |||
| 46 | virtual unsigned inletPort() const override; | ||
| 47 | |||
| 48 | virtual unsigned outletPort() const override; | ||
| 49 | |||
| 50 | virtual ModelObject clone(Model model) const override; | ||
| 51 | |||
| 52 | virtual std::vector<ModelObject> children() const override; | ||
| 53 | |||
| 54 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 55 | |||
| 56 | virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override; | ||
| 57 | |||
| 58 | virtual bool addToNode(Node& node) override; | ||
| 59 | |||
| 60 | virtual ComponentType componentType() const override; | ||
| 61 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 62 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 63 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 64 | |||
| 65 | //@} | ||
| 66 | /** @name Getters */ | ||
| 67 | //@{ | ||
| 68 | |||
| 69 | Schedule availabilitySchedule() const; | ||
| 70 | |||
| 71 | int nominalSpeedLevel() const; | ||
| 72 | |||
| 73 | boost::optional<double> ratedHeatingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 74 | |||
| 75 | bool isRatedHeatingCapacityAtSelectedNominalSpeedLevelAutosized() const; | ||
| 76 | |||
| 77 | boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 78 | |||
| 79 | bool isRatedAirFlowRateAtSelectedNominalSpeedLevelAutosized() const; | ||
| 80 | |||
| 81 | Curve energyPartLoadFractionCurve() const; | ||
| 82 | |||
| 83 | boost::optional<Curve> defrostEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 84 | |||
| 85 | double minimumOutdoorDryBulbTemperatureforCompressorOperation() const; | ||
| 86 | |||
| 87 | boost::optional<double> outdoorDryBulbTemperaturetoTurnOnCompressor() const; | ||
| 88 | |||
| 89 | double maximumOutdoorDryBulbTemperatureforDefrostOperation() const; | ||
| 90 | |||
| 91 | double crankcaseHeaterCapacity() const; | ||
| 92 | |||
| 93 | boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const; | ||
| 94 | |||
| 95 | double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation() const; | ||
| 96 | |||
| 97 | std::string defrostStrategy() const; | ||
| 98 | |||
| 99 | std::string defrostControl() const; | ||
| 100 | |||
| 101 | double defrostTimePeriodFraction() const; | ||
| 102 | |||
| 103 | boost::optional<double> resistiveDefrostHeaterCapacity() const; | ||
| 104 | |||
| 105 | bool isResistiveDefrostHeaterCapacityAutosized() const; | ||
| 106 | |||
| 107 | boost::optional<double> autosizedRatedHeatingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 108 | |||
| 109 | boost::optional<double> autosizedRatedAirFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 110 | |||
| 111 | boost::optional<double> autosizedResistiveDefrostHeaterCapacity() const; | ||
| 112 | |||
| 113 | virtual void autosize() override; | ||
| 114 | |||
| 115 | virtual void applySizingValues() override; | ||
| 116 | |||
| 117 | //@} | ||
| 118 | /** @name Setters */ | ||
| 119 | //@{ | ||
| 120 | |||
| 121 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 122 | |||
| 123 | bool setNominalSpeedLevel(int nominalSpeedLevel); | ||
| 124 | |||
| 125 | bool setRatedHeatingCapacityAtSelectedNominalSpeedLevel(boost::optional<double> ratedHeatingCapacityAtSelectedNominalSpeedLevel); | ||
| 126 | |||
| 127 | void autosizeRatedHeatingCapacityAtSelectedNominalSpeedLevel(); | ||
| 128 | |||
| 129 | bool setRatedAirFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel); | ||
| 130 | |||
| 131 | void autosizeRatedAirFlowRateAtSelectedNominalSpeedLevel(); | ||
| 132 | |||
| 133 | bool setEnergyPartLoadFractionCurve(const Curve& curve); | ||
| 134 | |||
| 135 | bool setDefrostEnergyInputRatioFunctionofTemperatureCurve(const boost::optional<Curve>& curve); | ||
| 136 | |||
| 137 | void resetDefrostEnergyInputRatioFunctionofTemperatureCurve(); | ||
| 138 | |||
| 139 | bool setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 140 | |||
| 141 | bool setOutdoorDryBulbTemperaturetoTurnOnCompressor(boost::optional<double> outdoorDryBulbTemperaturetoTurnOnCompressor); | ||
| 142 | |||
| 143 | void resetOutdoorDryBulbTemperaturetoTurnOnCompressor(); | ||
| 144 | |||
| 145 | bool setMaximumOutdoorDryBulbTemperatureforDefrostOperation(double maximumOutdoorDryBulbTemperatureforDefrostOperation); | ||
| 146 | |||
| 147 | bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity); | ||
| 148 | |||
| 149 | bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 150 | void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | ||
| 151 | |||
| 152 | bool setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation); | ||
| 153 | |||
| 154 | bool setDefrostStrategy(const std::string& defrostStrategy); | ||
| 155 | |||
| 156 | bool setDefrostControl(const std::string& defrostControl); | ||
| 157 | |||
| 158 | bool setDefrostTimePeriodFraction(double defrostTimePeriodFraction); | ||
| 159 | |||
| 160 | bool setResistiveDefrostHeaterCapacity(boost::optional<double> resistiveDefrostHeaterCapacity); | ||
| 161 | |||
| 162 | void autosizeResistiveDefrostHeaterCapacity(); | ||
| 163 | |||
| 164 | //@} | ||
| 165 | /** @name Other */ | ||
| 166 | //@{ | ||
| 167 | |||
| 168 | bool setSpeedDataList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 169 | |||
| 170 | void resetSpeedDataList(); | ||
| 171 | |||
| 172 | boost::optional<ModelObjectList> speedDataList() const; | ||
| 173 | |||
| 174 | std::vector<CoilHeatingDXVariableSpeedSpeedData> speeds() const; | ||
| 175 | |||
| 176 | bool addSpeed(const CoilHeatingDXVariableSpeedSpeedData& speed); | ||
| 177 | |||
| 178 | void removeSpeed(const CoilHeatingDXVariableSpeedSpeedData& speed); | ||
| 179 | |||
| 180 | void removeAllSpeeds(); | ||
| 181 | |||
| 182 | std::vector<IdfObject> remove() override; | ||
| 183 | |||
| 184 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 185 | |||
| 186 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 187 | |||
| 188 | //@} | ||
| 189 | protected: | ||
| 190 | private: | ||
| 191 | − | REGISTER_LOGGER("openstudio.model.CoilHeatingDXVariableSpeed"); | |
| 192 | |||
| 193 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 194 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 195 | // objects should be returned as boost::optionals | ||
| 196 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 197 | boost::optional<Curve> optionalEnergyPartLoadFractionCurve() const; | ||
| 198 | }; | ||
| 199 | |||
| 200 | } // namespace detail | ||
| 201 | |||
| 202 | } // namespace model | ||
| 203 | } // namespace openstudio | ||
| 204 | |||
| 205 | #endif // MODEL_COILHEATINGDXVARIABLESPEED_IMPL_HPP | ||
| 206 |