src/model/RefrigerationCompressorRack_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_REFRIGERATIONCOMPRESSORRACK_IMPL_HPP | ||
| 7 | #define MODEL_REFRIGERATIONCOMPRESSORRACK_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | class Schedule; | ||
| 17 | class ThermalZone; | ||
| 18 | class ModelObjectList; | ||
| 19 | class RefrigerationAirChiller; | ||
| 20 | class RefrigerationCase; | ||
| 21 | class RefrigerationWalkIn; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | /** RefrigerationCompressorRack_Impl is a StraightComponent_Impl that is the implementation class for RefrigerationCompressorRack.*/ | ||
| 26 | class MODEL_API RefrigerationCompressorRack_Impl : public StraightComponent_Impl | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | RefrigerationCompressorRack_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | RefrigerationCompressorRack_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | RefrigerationCompressorRack_Impl(const RefrigerationCompressorRack_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 37 | |||
| 38 | 11 | virtual ~RefrigerationCompressorRack_Impl() override = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | /** @name Virtual Methods */ | ||
| 42 | //@{ | ||
| 43 | |||
| 44 | virtual unsigned inletPort() const override; | ||
| 45 | |||
| 46 | virtual unsigned outletPort() const override; | ||
| 47 | |||
| 48 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 49 | |||
| 50 | virtual IddObjectType iddObjectType() const override; | ||
| 51 | |||
| 52 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 53 | |||
| 54 | virtual bool addToNode(Node& node) override; | ||
| 55 | |||
| 56 | virtual ModelObject clone(Model model) const override; | ||
| 57 | |||
| 58 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 59 | |||
| 60 | virtual std::vector<ModelObject> children() const override; | ||
| 61 | |||
| 62 | virtual std::vector<IdfObject> remove() override; | ||
| 63 | |||
| 64 | virtual ComponentType componentType() const override; | ||
| 65 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 66 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 67 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 68 | |||
| 69 | //@} | ||
| 70 | /** @name Getters */ | ||
| 71 | //@{ | ||
| 72 | |||
| 73 | std::string heatRejectionLocation() const; | ||
| 74 | |||
| 75 | double designCompressorRackCOP() const; | ||
| 76 | |||
| 77 | Curve compressorRackCOPFunctionofTemperatureCurve() const; | ||
| 78 | |||
| 79 | double designCondenserFanPower() const; | ||
| 80 | |||
| 81 | boost::optional<Curve> condenserFanPowerFunctionofTemperatureCurve() const; | ||
| 82 | |||
| 83 | std::string condenserType() const; | ||
| 84 | |||
| 85 | std::string waterCooledLoopFlowType() const; | ||
| 86 | |||
| 87 | boost::optional<Schedule> waterCooledCondenserOutletTemperatureSchedule() const; | ||
| 88 | |||
| 89 | boost::optional<double> waterCooledCondenserDesignFlowRate() const; | ||
| 90 | |||
| 91 | boost::optional<double> waterCooledCondenserMaximumFlowRate() const; | ||
| 92 | |||
| 93 | double waterCooledCondenserMaximumWaterOutletTemperature() const; | ||
| 94 | |||
| 95 | double waterCooledCondenserMinimumWaterInletTemperature() const; | ||
| 96 | |||
| 97 | boost::optional<Schedule> evaporativeCondenserAvailabilitySchedule() const; | ||
| 98 | |||
| 99 | double evaporativeCondenserEffectiveness() const; | ||
| 100 | |||
| 101 | boost::optional<double> evaporativeCondenserAirFlowRate() const; | ||
| 102 | |||
| 103 | bool isEvaporativeCondenserAirFlowRateAutocalculated() const; | ||
| 104 | |||
| 105 | double basinHeaterCapacity() const; | ||
| 106 | |||
| 107 | double basinHeaterSetpointTemperature() const; | ||
| 108 | |||
| 109 | boost::optional<double> designEvaporativeCondenserWaterPumpPower() const; | ||
| 110 | |||
| 111 | bool isDesignEvaporativeCondenserWaterPumpPowerAutocalculated() const; | ||
| 112 | |||
| 113 | // boost::optional<HVACComponent> evaporativeWaterSupplyTank() const; | ||
| 114 | |||
| 115 | // boost::optional<std::string> condenserAirInletNodeName() const; | ||
| 116 | |||
| 117 | std::string endUseSubcategory() const; | ||
| 118 | |||
| 119 | bool isEndUseSubcategoryDefaulted() const; | ||
| 120 | |||
| 121 | std::vector<RefrigerationCase> cases() const; | ||
| 122 | |||
| 123 | std::vector<RefrigerationWalkIn> walkins() const; | ||
| 124 | |||
| 125 | std::vector<RefrigerationAirChiller> airChillers() const; | ||
| 126 | |||
| 127 | template <class T> | ||
| 128 | std::vector<T> listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const; | ||
| 129 | |||
| 130 | boost::optional<ModelObjectList> refrigeratedCaseAndWalkInList() const; | ||
| 131 | |||
| 132 | boost::optional<ThermalZone> heatRejectionZone() const; | ||
| 133 | |||
| 134 | //@} | ||
| 135 | /** @name Setters */ | ||
| 136 | //@{ | ||
| 137 | |||
| 138 | bool setHeatRejectionLocation(const std::string& heatRejectionLocation); | ||
| 139 | |||
| 140 | bool setDesignCompressorRackCOP(double designCompressorRackCOP); | ||
| 141 | |||
| 142 | bool setCompressorRackCOPFunctionofTemperatureCurve(const Curve& curve); | ||
| 143 | |||
| 144 | bool setDesignCondenserFanPower(double designCondenserFanPower); | ||
| 145 | |||
| 146 | bool setCondenserFanPowerFunctionofTemperatureCurve(const Curve& curve); | ||
| 147 | |||
| 148 | void resetCondenserFanPowerFunctionofTemperatureCurve(); | ||
| 149 | |||
| 150 | bool setCondenserType(const std::string& condenserType); | ||
| 151 | |||
| 152 | bool setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType); | ||
| 153 | |||
| 154 | bool setWaterCooledCondenserOutletTemperatureSchedule(Schedule& schedule); | ||
| 155 | |||
| 156 | void resetWaterCooledCondenserOutletTemperatureSchedule(); | ||
| 157 | |||
| 158 | bool setWaterCooledCondenserDesignFlowRate(double waterCooledCondenserDesignFlowRate); | ||
| 159 | |||
| 160 | void resetWaterCooledCondenserDesignFlowRate(); | ||
| 161 | |||
| 162 | bool setWaterCooledCondenserMaximumFlowRate(double waterCooledCondenserMaximumFlowRate); | ||
| 163 | |||
| 164 | void resetWaterCooledCondenserMaximumFlowRate(); | ||
| 165 | |||
| 166 | bool setWaterCooledCondenserMaximumWaterOutletTemperature(double waterCooledCondenserMaximumWaterOutletTemperature); | ||
| 167 | |||
| 168 | bool setWaterCooledCondenserMinimumWaterInletTemperature(double waterCooledCondenserMinimumWaterInletTemperature); | ||
| 169 | |||
| 170 | bool setEvaporativeCondenserAvailabilitySchedule(Schedule& schedule); | ||
| 171 | |||
| 172 | void resetEvaporativeCondenserAvailabilitySchedule(); | ||
| 173 | |||
| 174 | bool setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness); | ||
| 175 | |||
| 176 | bool setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate); | ||
| 177 | |||
| 178 | bool autocalculateEvaporativeCondenserAirFlowRate(); | ||
| 179 | |||
| 180 | bool setBasinHeaterCapacity(double basinHeaterCapacity); | ||
| 181 | |||
| 182 | bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature); | ||
| 183 | |||
| 184 | bool setDesignEvaporativeCondenserWaterPumpPower(double designEvaporativeCondenserWaterPumpPower); | ||
| 185 | |||
| 186 | bool autocalculateDesignEvaporativeCondenserWaterPumpPower(); | ||
| 187 | |||
| 188 | // bool setEvaporativeWaterSupplyTank(const HVACComponent& evaporativeWaterSupplyTank); | ||
| 189 | |||
| 190 | // void resetEvaporativeWaterSupplyTank(); | ||
| 191 | |||
| 192 | // bool setCondenserAirInletNodeName(const boost::optional<std::string>& condenserAirInletNodeName); | ||
| 193 | |||
| 194 | // void resetCondenserAirInletNodeName(); | ||
| 195 | |||
| 196 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 197 | |||
| 198 | void resetEndUseSubcategory(); | ||
| 199 | |||
| 200 | bool addCase(const RefrigerationCase& refrigerationCase); | ||
| 201 | |||
| 202 | void removeCase(const RefrigerationCase& refrigerationCase); | ||
| 203 | |||
| 204 | void removeAllCases(); | ||
| 205 | |||
| 206 | bool addWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 207 | |||
| 208 | void removeWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 209 | |||
| 210 | void removeAllWalkins(); | ||
| 211 | |||
| 212 | bool addAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 213 | |||
| 214 | void removeAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 215 | |||
| 216 | void removeAllAirChillers(); | ||
| 217 | |||
| 218 | template <class T> | ||
| 219 | void removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList); | ||
| 220 | |||
| 221 | template <class T> | ||
| 222 | void removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList); | ||
| 223 | |||
| 224 | template <class T> | ||
| 225 | bool addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList); | ||
| 226 | |||
| 227 | bool setRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 228 | |||
| 229 | void resetRefrigeratedCaseAndWalkInList(); | ||
| 230 | |||
| 231 | bool setHeatRejectionZone(const boost::optional<ThermalZone>& thermalZone); | ||
| 232 | |||
| 233 | void resetHeatRejectionZone(); | ||
| 234 | |||
| 235 | //@} | ||
| 236 | /** @name Other */ | ||
| 237 | //@{ | ||
| 238 | |||
| 239 | //@} | ||
| 240 | protected: | ||
| 241 | private: | ||
| 242 | − | REGISTER_LOGGER("openstudio.model.RefrigerationCompressorRack"); | |
| 243 | |||
| 244 | // optional getters for use by children so can remove() this object if the constructor fails | ||
| 245 | boost::optional<Curve> optionalCompressorRackCOPFunctionofTemperatureCurve() const; | ||
| 246 | }; | ||
| 247 | |||
| 248 | } // namespace detail | ||
| 249 | |||
| 250 | } // namespace model | ||
| 251 | } // namespace openstudio | ||
| 252 | |||
| 253 | #endif // MODEL_REFRIGERATIONCOMPRESSORRACK_IMPL_HPP | ||
| 254 |