src/model/AirTerminalSingleDuctConstantVolumeCooledBeam.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_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_HPP | ||
| 7 | #define MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | //#include "ThermalZone.hpp" | ||
| 12 | #include "ModelObject.hpp" | ||
| 13 | #include "Connection.hpp" | ||
| 14 | //#include "Model.hpp" | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | |||
| 18 | namespace model { | ||
| 19 | |||
| 20 | class Schedule; | ||
| 21 | class HVACComponent; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | class AirTerminalSingleDuctConstantVolumeCooledBeam_Impl; | ||
| 26 | |||
| 27 | } // namespace detail | ||
| 28 | |||
| 29 | /** AirTerminalSingleDuctConstantVolumeCooledBeam is a ZoneHAVC that wraps the OpenStudio IDD object 'OS:AirTerminal:SingleDuct:ConstantVolume:CooledBeam'. */ | ||
| 30 | class MODEL_API AirTerminalSingleDuctConstantVolumeCooledBeam : public StraightComponent | ||
| 31 | { | ||
| 32 | public: | ||
| 33 | /** @name Constructors and Destructors */ | ||
| 34 | //@{ | ||
| 35 | |||
| 36 | explicit AirTerminalSingleDuctConstantVolumeCooledBeam(const Model& model, Schedule& availabilitySchedule, HVACComponent& coilCoolingCooledBeam); | ||
| 37 | |||
| 38 | 17 | virtual ~AirTerminalSingleDuctConstantVolumeCooledBeam() override = default; | |
| 39 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 40 | ✗ | AirTerminalSingleDuctConstantVolumeCooledBeam(const AirTerminalSingleDuctConstantVolumeCooledBeam& other) = default; | |
| 41 | 1 | AirTerminalSingleDuctConstantVolumeCooledBeam(AirTerminalSingleDuctConstantVolumeCooledBeam&& other) = default; | |
| 42 | ✗ | AirTerminalSingleDuctConstantVolumeCooledBeam& operator=(const AirTerminalSingleDuctConstantVolumeCooledBeam&) = default; | |
| 43 | ✗ | AirTerminalSingleDuctConstantVolumeCooledBeam& operator=(AirTerminalSingleDuctConstantVolumeCooledBeam&&) = default; | |
| 44 | |||
| 45 | //@} | ||
| 46 | |||
| 47 | static IddObjectType iddObjectType(); | ||
| 48 | |||
| 49 | /** @name Getters */ | ||
| 50 | //@{ | ||
| 51 | |||
| 52 | Schedule availabilitySchedule() const; | ||
| 53 | |||
| 54 | HVACComponent coilCoolingCooledBeam() const; | ||
| 55 | |||
| 56 | static std::vector<std::string> cooledBeamTypeValues(); | ||
| 57 | |||
| 58 | std::string cooledBeamType() const; | ||
| 59 | |||
| 60 | boost::optional<double> supplyAirVolumetricFlowRate() const; | ||
| 61 | |||
| 62 | bool isSupplyAirVolumetricFlowRateDefaulted() const; | ||
| 63 | |||
| 64 | bool isSupplyAirVolumetricFlowRateAutosized() const; | ||
| 65 | |||
| 66 | boost::optional<double> maximumTotalChilledWaterVolumetricFlowRate() const; | ||
| 67 | |||
| 68 | bool isMaximumTotalChilledWaterVolumetricFlowRateDefaulted() const; | ||
| 69 | |||
| 70 | bool isMaximumTotalChilledWaterVolumetricFlowRateAutosized() const; | ||
| 71 | |||
| 72 | boost::optional<int> numberofBeams() const; | ||
| 73 | |||
| 74 | bool isNumberofBeamsDefaulted() const; | ||
| 75 | |||
| 76 | bool isNumberofBeamsAutosized() const; | ||
| 77 | |||
| 78 | boost::optional<double> beamLength() const; | ||
| 79 | |||
| 80 | bool isBeamLengthDefaulted() const; | ||
| 81 | |||
| 82 | bool isBeamLengthAutosized() const; | ||
| 83 | |||
| 84 | double designInletWaterTemperature() const; | ||
| 85 | |||
| 86 | bool isDesignInletWaterTemperatureDefaulted() const; | ||
| 87 | |||
| 88 | double designOutletWaterTemperature() const; | ||
| 89 | |||
| 90 | bool isDesignOutletWaterTemperatureDefaulted() const; | ||
| 91 | |||
| 92 | boost::optional<double> coefficientofInductionKin() const; | ||
| 93 | |||
| 94 | bool isCoefficientofInductionKinDefaulted() const; | ||
| 95 | |||
| 96 | bool isCoefficientofInductionKinAutocalculated() const; | ||
| 97 | |||
| 98 | //@} | ||
| 99 | /** @name Setters */ | ||
| 100 | //@{ | ||
| 101 | |||
| 102 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 103 | |||
| 104 | bool setCoolingCoil(HVACComponent& coilCoolingCooledBeam); | ||
| 105 | |||
| 106 | bool setCooledBeamType(const std::string& cooledBeamType); | ||
| 107 | |||
| 108 | bool setSupplyAirVolumetricFlowRate(double supplyAirVolumetricFlowRate); | ||
| 109 | |||
| 110 | void resetSupplyAirVolumetricFlowRate(); | ||
| 111 | |||
| 112 | void autosizeSupplyAirVolumetricFlowRate(); | ||
| 113 | |||
| 114 | bool setMaximumTotalChilledWaterVolumetricFlowRate(double maximumTotalChilledWaterVolumetricFlowRate); | ||
| 115 | |||
| 116 | void resetMaximumTotalChilledWaterVolumetricFlowRate(); | ||
| 117 | |||
| 118 | void autosizeMaximumTotalChilledWaterVolumetricFlowRate(); | ||
| 119 | |||
| 120 | bool setNumberofBeams(int numberofBeams); | ||
| 121 | |||
| 122 | void resetNumberofBeams(); | ||
| 123 | |||
| 124 | void autosizeNumberofBeams(); | ||
| 125 | |||
| 126 | bool setBeamLength(double beamLength); | ||
| 127 | |||
| 128 | void resetBeamLength(); | ||
| 129 | |||
| 130 | void autosizeBeamLength(); | ||
| 131 | |||
| 132 | bool setDesignInletWaterTemperature(double designInletWaterTemperature); | ||
| 133 | |||
| 134 | void resetDesignInletWaterTemperature(); | ||
| 135 | |||
| 136 | bool setDesignOutletWaterTemperature(double designOutletWaterTemperature); | ||
| 137 | |||
| 138 | void resetDesignOutletWaterTemperature(); | ||
| 139 | |||
| 140 | bool setCoefficientofInductionKin(double coefficientofInductionKin); | ||
| 141 | |||
| 142 | void resetCoefficientofInductionKin(); | ||
| 143 | |||
| 144 | void autocalculateCoefficientofInductionKin(); | ||
| 145 | |||
| 146 | // boost::optional<ThermalZone> thermalZone(); | ||
| 147 | |||
| 148 | // bool addToThermalZone(ThermalZone & thermalZone); | ||
| 149 | |||
| 150 | // void removeFromThermalZone(); | ||
| 151 | |||
| 152 | //@} | ||
| 153 | /** @name Other */ | ||
| 154 | //@{ | ||
| 155 | |||
| 156 | boost::optional<double> autosizedSupplyAirVolumetricFlowRate() const; | ||
| 157 | |||
| 158 | boost::optional<double> autosizedMaximumTotalChilledWaterVolumetricFlowRate() const; | ||
| 159 | |||
| 160 | boost::optional<double> autosizedNumberofBeams() const; | ||
| 161 | |||
| 162 | boost::optional<double> autosizedBeamLength() const; | ||
| 163 | |||
| 164 | boost::optional<double> autosizedCoefficientofInductionKin() const; | ||
| 165 | |||
| 166 | //@} | ||
| 167 | protected: | ||
| 168 | /// @cond | ||
| 169 | using ImplType = detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl; | ||
| 170 | |||
| 171 | explicit AirTerminalSingleDuctConstantVolumeCooledBeam(std::shared_ptr<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl> impl); | ||
| 172 | |||
| 173 | friend class detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl; | ||
| 174 | friend class Model; | ||
| 175 | friend class IdfObject; | ||
| 176 | friend class openstudio::detail::IdfObject_Impl; | ||
| 177 | /// @endcond | ||
| 178 | private: | ||
| 179 | − | REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctConstantVolumeCooledBeam"); | |
| 180 | }; | ||
| 181 | |||
| 182 | /** \relates AirTerminalSingleDuctConstantVolumeCooledBeam*/ | ||
| 183 | using OptionalAirTerminalSingleDuctConstantVolumeCooledBeam = boost::optional<AirTerminalSingleDuctConstantVolumeCooledBeam>; | ||
| 184 | |||
| 185 | /** \relates AirTerminalSingleDuctConstantVolumeCooledBeam*/ | ||
| 186 | using AirTerminalSingleDuctConstantVolumeCooledBeamVector = std::vector<AirTerminalSingleDuctConstantVolumeCooledBeam>; | ||
| 187 | |||
| 188 | } // namespace model | ||
| 189 | } // namespace openstudio | ||
| 190 | |||
| 191 | #endif // MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_HPP | ||
| 192 |