src/model/AirflowNetworkEquivalentDuct.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_AIRFLOWNETWORKEQUIVALENTDUCT_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKEQUIVALENTDUCT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "AirflowNetworkComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class StraightComponent; | ||
| 17 | |||
| 18 | // TODO: Check the following class names against object getters and setters. | ||
| 19 | // AFNTerminalUnit; | ||
| 20 | // AFNCoilNames | ||
| 21 | // AFNHeatExchangerNames | ||
| 22 | // HeatExchanger:AirToAir:FlatPlate | ||
| 23 | |||
| 24 | namespace detail { | ||
| 25 | |||
| 26 | class HeatExchangerAirToAirSensibleAndLatent_Impl; | ||
| 27 | class HeatExchangerDesiccantBalancedFlow_Impl; | ||
| 28 | class CoilHeatingDXMultiSpeed_Impl; | ||
| 29 | class CoilHeatingWater_Impl; | ||
| 30 | class CoilHeatingWaterToAirHeatPumpEquationFit_Impl; | ||
| 31 | class CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl; | ||
| 32 | class CoilHeatingDesuperheater_Impl; | ||
| 33 | class CoilHeatingGas_Impl; | ||
| 34 | class CoilHeatingElectric_Impl; | ||
| 35 | class CoilHeatingDXSingleSpeed_Impl; | ||
| 36 | class CoilHeatingDXVariableSpeed_Impl; | ||
| 37 | class CoilCoolingWater_Impl; | ||
| 38 | class CoilCoolingWaterToAirHeatPumpEquationFit_Impl; | ||
| 39 | class CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl; | ||
| 40 | class CoilCoolingDX_Impl; | ||
| 41 | class CoilCoolingDXMultiSpeed_Impl; | ||
| 42 | class CoilCoolingDXTwoSpeed_Impl; | ||
| 43 | class CoilCoolingDXTwoStageWithHumidityControlMode_Impl; | ||
| 44 | class CoilCoolingDXSingleSpeed_Impl; | ||
| 45 | class CoilCoolingDXSingleSpeedThermalStorage_Impl; | ||
| 46 | class CoilCoolingDXVariableSpeed_Impl; | ||
| 47 | class AirTerminalSingleDuctConstantVolumeReheat_Impl; | ||
| 48 | class AirTerminalSingleDuctVAVReheat_Impl; | ||
| 49 | class AirflowNetworkEquivalentDuct_Impl; | ||
| 50 | |||
| 51 | } // namespace detail | ||
| 52 | |||
| 53 | /** AirflowNetworkEquivalentDuct is a AirflowNetworkComponent that wraps the OpenStudio IDD object 'OS:AirflowNetwork:EquivalentDuct'. */ | ||
| 54 | class MODEL_API AirflowNetworkEquivalentDuct : public AirflowNetworkComponent | ||
| 55 | { | ||
| 56 | public: | ||
| 57 | /** @name Constructors and Destructors */ | ||
| 58 | //@{ | ||
| 59 | |||
| 60 | 15 | virtual ~AirflowNetworkEquivalentDuct() override = default; | |
| 61 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 62 | 1 | AirflowNetworkEquivalentDuct(const AirflowNetworkEquivalentDuct& other) = default; | |
| 63 | 6 | AirflowNetworkEquivalentDuct(AirflowNetworkEquivalentDuct&& other) = default; | |
| 64 | ✗ | AirflowNetworkEquivalentDuct& operator=(const AirflowNetworkEquivalentDuct&) = default; | |
| 65 | 1 | AirflowNetworkEquivalentDuct& operator=(AirflowNetworkEquivalentDuct&&) = default; | |
| 66 | |||
| 67 | //@} | ||
| 68 | |||
| 69 | static IddObjectType iddObjectType(); | ||
| 70 | |||
| 71 | /** @name Getters */ | ||
| 72 | //@{ | ||
| 73 | |||
| 74 | boost::optional<StraightComponent> straightComponent() const; | ||
| 75 | boost::optional<std::string> coilObjectType() const; | ||
| 76 | boost::optional<std::string> heatExchangerObjectType() const; | ||
| 77 | boost::optional<std::string> terminalUnitObjectType() const; | ||
| 78 | |||
| 79 | double airPathLength() const; | ||
| 80 | |||
| 81 | double airPathHydraulicDiameter() const; | ||
| 82 | |||
| 83 | //@} | ||
| 84 | /** @name Setters */ | ||
| 85 | //@{ | ||
| 86 | |||
| 87 | bool setAirPathLength(double airPathLength); | ||
| 88 | |||
| 89 | bool setAirPathHydraulicDiameter(double airPathHydraulicDiameter); | ||
| 90 | |||
| 91 | //@} | ||
| 92 | /** @name Other */ | ||
| 93 | //@{ | ||
| 94 | |||
| 95 | //@} | ||
| 96 | protected: | ||
| 97 | /// @cond | ||
| 98 | using ImplType = detail::AirflowNetworkEquivalentDuct_Impl; | ||
| 99 | |||
| 100 | explicit AirflowNetworkEquivalentDuct(std::shared_ptr<detail::AirflowNetworkEquivalentDuct_Impl> impl); | ||
| 101 | |||
| 102 | AirflowNetworkEquivalentDuct(const Model& model, double length, double diameter, const Handle& handle); | ||
| 103 | |||
| 104 | void resetComponent(); | ||
| 105 | |||
| 106 | friend class detail::AirTerminalSingleDuctConstantVolumeReheat_Impl; | ||
| 107 | friend class detail::AirTerminalSingleDuctVAVReheat_Impl; | ||
| 108 | friend class detail::CoilCoolingDX_Impl; | ||
| 109 | friend class detail::CoilCoolingDXSingleSpeed_Impl; | ||
| 110 | friend class detail::CoilCoolingDXSingleSpeedThermalStorage_Impl; | ||
| 111 | friend class detail::CoilCoolingDXTwoSpeed_Impl; | ||
| 112 | friend class detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl; | ||
| 113 | friend class detail::CoilCoolingDXMultiSpeed_Impl; | ||
| 114 | friend class detail::CoilCoolingDXVariableSpeed_Impl; | ||
| 115 | friend class detail::CoilCoolingWater_Impl; | ||
| 116 | friend class detail::CoilCoolingWaterToAirHeatPumpEquationFit_Impl; | ||
| 117 | friend class detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl; | ||
| 118 | friend class detail::CoilHeatingDXSingleSpeed_Impl; | ||
| 119 | friend class detail::CoilHeatingElectric_Impl; | ||
| 120 | friend class detail::CoilHeatingGas_Impl; | ||
| 121 | friend class detail::CoilHeatingDesuperheater_Impl; | ||
| 122 | friend class detail::CoilHeatingWater_Impl; | ||
| 123 | friend class detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl; | ||
| 124 | friend class detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl; | ||
| 125 | friend class detail::CoilHeatingDXMultiSpeed_Impl; | ||
| 126 | friend class detail::CoilHeatingDXVariableSpeed_Impl; | ||
| 127 | friend class detail::HeatExchangerAirToAirSensibleAndLatent_Impl; | ||
| 128 | friend class detail::HeatExchangerDesiccantBalancedFlow_Impl; | ||
| 129 | |||
| 130 | friend class detail::AirflowNetworkEquivalentDuct_Impl; | ||
| 131 | friend class Model; | ||
| 132 | friend class IdfObject; | ||
| 133 | friend class openstudio::detail::IdfObject_Impl; | ||
| 134 | /// @endcond | ||
| 135 | private: | ||
| 136 | REGISTER_LOGGER("openstudio.model.AirflowNetworkEquivalentDuct"); | ||
| 137 | }; | ||
| 138 | |||
| 139 | /** \relates AirflowNetworkEquivalentDuct*/ | ||
| 140 | using OptionalAirflowNetworkEquivalentDuct = boost::optional<AirflowNetworkEquivalentDuct>; | ||
| 141 | |||
| 142 | /** \relates AirflowNetworkEquivalentDuct*/ | ||
| 143 | using AirflowNetworkEquivalentDuctVector = std::vector<AirflowNetworkEquivalentDuct>; | ||
| 144 | |||
| 145 | } // namespace model | ||
| 146 | } // namespace openstudio | ||
| 147 | |||
| 148 | #endif // MODEL_AIRFLOWNETWORKEQUIVALENTDUCT_HPP | ||
| 149 |