src/model/AirTerminalSingleDuctVAVNoReheat.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_AIRTERMINALSINGLEDUCTVAVNOREHEAT_HPP | ||
| 7 | #define MODEL_AIRTERMINALSINGLEDUCTVAVNOREHEAT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class DesignSpecificationOutdoorAir; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class AirTerminalSingleDuctVAVNoReheat_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** AirTerminalSingleDuctVAVNoReheat is a StraightComponent that wraps the OpenStudio IDD object 'OS:AirTerminal:SingleDuct:VAV:NoReheat'. */ | ||
| 25 | class MODEL_API AirTerminalSingleDuctVAVNoReheat : public StraightComponent | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit AirTerminalSingleDuctVAVNoReheat(const Model& model, Schedule& schedule); | ||
| 32 | |||
| 33 | 32 | virtual ~AirTerminalSingleDuctVAVNoReheat() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | AirTerminalSingleDuctVAVNoReheat(const AirTerminalSingleDuctVAVNoReheat& other) = default; | |
| 36 | ✗ | AirTerminalSingleDuctVAVNoReheat(AirTerminalSingleDuctVAVNoReheat&& other) = default; | |
| 37 | ✗ | AirTerminalSingleDuctVAVNoReheat& operator=(const AirTerminalSingleDuctVAVNoReheat&) = default; | |
| 38 | ✗ | AirTerminalSingleDuctVAVNoReheat& operator=(AirTerminalSingleDuctVAVNoReheat&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | static std::vector<std::string> zoneMinimumAirFlowInputMethodValues(); | ||
| 45 | |||
| 46 | /** @name Getters */ | ||
| 47 | //@{ | ||
| 48 | |||
| 49 | Schedule availabilitySchedule() const; | ||
| 50 | |||
| 51 | boost::optional<double> maximumAirFlowRate() const; | ||
| 52 | |||
| 53 | bool isMaximumAirFlowRateAutosized() const; | ||
| 54 | |||
| 55 | boost::optional<std::string> zoneMinimumAirFlowInputMethod() const; | ||
| 56 | |||
| 57 | boost::optional<double> constantMinimumAirFlowFraction() const; | ||
| 58 | bool isConstantMinimumAirFlowFractionAutosized() const; | ||
| 59 | bool isConstantMinimumAirFlowFractionDefaulted() const; | ||
| 60 | |||
| 61 | boost::optional<double> fixedMinimumAirFlowRate() const; | ||
| 62 | bool isFixedMinimumAirFlowRateAutosized() const; | ||
| 63 | bool isFixedMinimumAirFlowRateDefaulted() const; | ||
| 64 | |||
| 65 | boost::optional<Schedule> minimumAirFlowFractionSchedule() const; | ||
| 66 | boost::optional<Schedule> minimumAirFlowTurndownSchedule() const; | ||
| 67 | |||
| 68 | /** If true, OpenStudio will attach the DesignSpecificationOutdoorAir object associated | ||
| 69 | * with the terminal's zone on export to EnergyPlus idf format. | ||
| 70 | * This field replaces the functionality of the EnergyPlus field: Design Specification Outdoor Air Object Name.*/ | ||
| 71 | bool controlForOutdoorAir() const; | ||
| 72 | |||
| 73 | //@} | ||
| 74 | /** @name Setters */ | ||
| 75 | //@{ | ||
| 76 | |||
| 77 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 78 | |||
| 79 | bool setMaximumAirFlowRate(double maximumAirFlowRate); | ||
| 80 | |||
| 81 | void resetMaximumAirFlowRate(); | ||
| 82 | |||
| 83 | void autosizeMaximumAirFlowRate(); | ||
| 84 | |||
| 85 | bool setZoneMinimumAirFlowInputMethod(const std::string& zoneMinimumAirFlowInputMethod); | ||
| 86 | |||
| 87 | void resetZoneMinimumAirFlowInputMethod(); | ||
| 88 | |||
| 89 | bool setConstantMinimumAirFlowFraction(double constantMinimumAirFlowFraction); | ||
| 90 | void autosizeConstantMinimumAirFlowFraction(); | ||
| 91 | void resetConstantMinimumAirFlowFraction(); | ||
| 92 | |||
| 93 | bool setFixedMinimumAirFlowRate(double fixedMinimumAirFlowRate); | ||
| 94 | void autosizeFixedMinimumAirFlowRate(); | ||
| 95 | void resetFixedMinimumAirFlowRate(); | ||
| 96 | |||
| 97 | bool setMinimumAirFlowFractionSchedule(Schedule& schedule); | ||
| 98 | |||
| 99 | void resetMinimumAirFlowFractionSchedule(); | ||
| 100 | |||
| 101 | bool setMinimumAirFlowTurndownSchedule(Schedule& schedule); | ||
| 102 | |||
| 103 | void resetMinimumAirFlowTurndownSchedule(); | ||
| 104 | |||
| 105 | bool setControlForOutdoorAir(bool controlForOutdoorAir); | ||
| 106 | |||
| 107 | //@} | ||
| 108 | /** @name Other */ | ||
| 109 | //@{ | ||
| 110 | |||
| 111 | boost::optional<double> autosizedMaximumAirFlowRate() const; | ||
| 112 | boost::optional<double> autosizedConstantMinimumAirFlowFraction() const; | ||
| 113 | boost::optional<double> autosizedFixedMinimumAirFlowRate() const; | ||
| 114 | |||
| 115 | //@} | ||
| 116 | protected: | ||
| 117 | /// @cond | ||
| 118 | using ImplType = detail::AirTerminalSingleDuctVAVNoReheat_Impl; | ||
| 119 | |||
| 120 | explicit AirTerminalSingleDuctVAVNoReheat(std::shared_ptr<detail::AirTerminalSingleDuctVAVNoReheat_Impl> impl); | ||
| 121 | |||
| 122 | friend class detail::AirTerminalSingleDuctVAVNoReheat_Impl; | ||
| 123 | friend class Model; | ||
| 124 | friend class IdfObject; | ||
| 125 | friend class openstudio::detail::IdfObject_Impl; | ||
| 126 | /// @endcond | ||
| 127 | private: | ||
| 128 | − | REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVNoReheat"); | |
| 129 | }; | ||
| 130 | |||
| 131 | /** \relates AirTerminalSingleDuctVAVNoReheat*/ | ||
| 132 | using OptionalAirTerminalSingleDuctVAVNoReheat = boost::optional<AirTerminalSingleDuctVAVNoReheat>; | ||
| 133 | |||
| 134 | /** \relates AirTerminalSingleDuctVAVNoReheat*/ | ||
| 135 | using AirTerminalSingleDuctVAVNoReheatVector = std::vector<AirTerminalSingleDuctVAVNoReheat>; | ||
| 136 | |||
| 137 | } // namespace model | ||
| 138 | } // namespace openstudio | ||
| 139 | |||
| 140 | #endif // MODEL_AIRTERMINALSINGLEDUCTVAVNOREHEAT_HPP | ||
| 141 |