src/model/FanVariableVolume_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_FANVARIABLEVOLUME_IMPL_HPP | ||
| 7 | #define MODEL_FANVARIABLEVOLUME_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class AirflowNetworkFan; | ||
| 17 | class FanSystemModel; | ||
| 18 | class Schedule; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | /** FanVariableVolume_Impl is a StraightComponent_Impl that is the implementation | ||
| 23 | * class for FanVariableVolume.*/ | ||
| 24 | class MODEL_API FanVariableVolume_Impl : public StraightComponent_Impl | ||
| 25 | { | ||
| 26 | public: | ||
| 27 | /** @name Constructors and Destructors */ | ||
| 28 | //@{ | ||
| 29 | |||
| 30 | FanVariableVolume_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | FanVariableVolume_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | FanVariableVolume_Impl(const FanVariableVolume_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | 52 | virtual ~FanVariableVolume_Impl() override = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | /** @name Virtual Methods */ | ||
| 40 | //@{ | ||
| 41 | |||
| 42 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 43 | |||
| 44 | virtual IddObjectType iddObjectType() const override; | ||
| 45 | |||
| 46 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 47 | |||
| 48 | virtual unsigned inletPort() const override; | ||
| 49 | |||
| 50 | virtual unsigned outletPort() const override; | ||
| 51 | |||
| 52 | virtual bool addToNode(Node& node) override; | ||
| 53 | |||
| 54 | virtual ComponentType componentType() const override; | ||
| 55 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 56 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 57 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 58 | |||
| 59 | //@} | ||
| 60 | /** @name Getters */ | ||
| 61 | //@{ | ||
| 62 | |||
| 63 | Schedule availabilitySchedule() const; | ||
| 64 | |||
| 65 | double fanTotalEfficiency() const; | ||
| 66 | |||
| 67 | bool isFanTotalEfficiencyDefaulted() const; | ||
| 68 | |||
| 69 | double pressureRise() const; | ||
| 70 | |||
| 71 | boost::optional<double> maximumFlowRate() const; | ||
| 72 | |||
| 73 | bool isMaximumFlowRateAutosized() const; | ||
| 74 | |||
| 75 | std::string fanPowerMinimumFlowRateInputMethod() const; | ||
| 76 | |||
| 77 | bool isFanPowerMinimumFlowRateInputMethodDefaulted() const; | ||
| 78 | |||
| 79 | double fanPowerMinimumFlowFraction() const; | ||
| 80 | |||
| 81 | bool isFanPowerMinimumFlowFractionDefaulted() const; | ||
| 82 | |||
| 83 | boost::optional<double> fanPowerMinimumAirFlowRate() const; | ||
| 84 | |||
| 85 | double motorEfficiency() const; | ||
| 86 | |||
| 87 | bool isMotorEfficiencyDefaulted() const; | ||
| 88 | |||
| 89 | double motorInAirstreamFraction() const; | ||
| 90 | |||
| 91 | bool isMotorInAirstreamFractionDefaulted() const; | ||
| 92 | |||
| 93 | boost::optional<double> fanPowerCoefficient1() const; | ||
| 94 | |||
| 95 | boost::optional<double> fanPowerCoefficient2() const; | ||
| 96 | |||
| 97 | boost::optional<double> fanPowerCoefficient3() const; | ||
| 98 | |||
| 99 | boost::optional<double> fanPowerCoefficient4() const; | ||
| 100 | |||
| 101 | boost::optional<double> fanPowerCoefficient5() const; | ||
| 102 | |||
| 103 | std::string endUseSubcategory() const; | ||
| 104 | |||
| 105 | bool isEndUseSubcategoryDefaulted() const; | ||
| 106 | |||
| 107 | boost::optional<double> autosizedMaximumFlowRate() const; | ||
| 108 | |||
| 109 | virtual void autosize() override; | ||
| 110 | |||
| 111 | virtual void applySizingValues() override; | ||
| 112 | |||
| 113 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 114 | |||
| 115 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 116 | |||
| 117 | //@} | ||
| 118 | /** @name Setters */ | ||
| 119 | //@{ | ||
| 120 | |||
| 121 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 122 | |||
| 123 | bool setFanTotalEfficiency(double fanTotalEfficiency); | ||
| 124 | |||
| 125 | void resetFanTotalEfficiency(); | ||
| 126 | |||
| 127 | bool setPressureRise(double pressureRise); | ||
| 128 | |||
| 129 | bool setMaximumFlowRate(boost::optional<double> maximumFlowRate); | ||
| 130 | |||
| 131 | void resetMaximumFlowRate(); | ||
| 132 | |||
| 133 | void autosizeMaximumFlowRate(); | ||
| 134 | |||
| 135 | bool setFanPowerMinimumFlowRateInputMethod(const std::string& fanPowerMinimumFlowRateInputMethod); | ||
| 136 | |||
| 137 | void resetFanPowerMinimumFlowRateInputMethod(); | ||
| 138 | |||
| 139 | bool setFanPowerMinimumFlowFraction(double fanPowerMinimumFlowFraction); | ||
| 140 | |||
| 141 | void resetFanPowerMinimumFlowFraction(); | ||
| 142 | |||
| 143 | bool setFanPowerMinimumAirFlowRate(boost::optional<double> fanPowerMinimumAirFlowRate); | ||
| 144 | |||
| 145 | void resetFanPowerMinimumAirFlowRate(); | ||
| 146 | |||
| 147 | bool setMotorEfficiency(double motorEfficiency); | ||
| 148 | |||
| 149 | void resetMotorEfficiency(); | ||
| 150 | |||
| 151 | bool setMotorInAirstreamFraction(double motorInAirstreamFraction); | ||
| 152 | |||
| 153 | void resetMotorInAirstreamFraction(); | ||
| 154 | |||
| 155 | bool setFanPowerCoefficient1(boost::optional<double> fanPowerCoefficient1); | ||
| 156 | |||
| 157 | void resetFanPowerCoefficient1(); | ||
| 158 | |||
| 159 | bool setFanPowerCoefficient2(boost::optional<double> fanPowerCoefficient2); | ||
| 160 | |||
| 161 | void resetFanPowerCoefficient2(); | ||
| 162 | |||
| 163 | bool setFanPowerCoefficient3(boost::optional<double> fanPowerCoefficient3); | ||
| 164 | |||
| 165 | void resetFanPowerCoefficient3(); | ||
| 166 | |||
| 167 | bool setFanPowerCoefficient4(boost::optional<double> fanPowerCoefficient4); | ||
| 168 | |||
| 169 | void resetFanPowerCoefficient4(); | ||
| 170 | |||
| 171 | bool setFanPowerCoefficient5(boost::optional<double> fanPowerCoefficient5); | ||
| 172 | |||
| 173 | void resetFanPowerCoefficient5(); | ||
| 174 | |||
| 175 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 176 | |||
| 177 | void resetEndUseSubcategory(); | ||
| 178 | |||
| 179 | //@} | ||
| 180 | /** @name Other */ | ||
| 181 | //@{ | ||
| 182 | |||
| 183 | AirflowNetworkFan getAirflowNetworkFan(); | ||
| 184 | boost::optional<AirflowNetworkFan> airflowNetworkFan() const; | ||
| 185 | |||
| 186 | FanSystemModel convertToFanSystemModel() const; | ||
| 187 | |||
| 188 | //@} | ||
| 189 | protected: | ||
| 190 | private: | ||
| 191 | − | REGISTER_LOGGER("openstudio.model.FanVariableVolume"); | |
| 192 | |||
| 193 | std::vector<std::string> fanPowerMinimumFlowRateInputMethodValues() const; | ||
| 194 | boost::optional<ModelObject> availabilityScheduleAsModelObject() const; | ||
| 195 | |||
| 196 | bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 197 | |||
| 198 | virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override; | ||
| 199 | |||
| 200 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 201 | }; | ||
| 202 | |||
| 203 | } // namespace detail | ||
| 204 | |||
| 205 | } // namespace model | ||
| 206 | } // namespace openstudio | ||
| 207 | |||
| 208 | #endif // MODEL_FANVARIABLEVOLUME_IMPL_HPP | ||
| 209 |