src/model/ZoneHVACEvaporativeCoolerUnit_Impl.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) 2008-2023, Alliance for Energy Innovation, LLC, and other contributors. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the | ||
| 5 | * following conditions are met: | ||
| 6 | * | ||
| 7 | * (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following | ||
| 8 | * disclaimer. | ||
| 9 | * | ||
| 10 | * (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following | ||
| 11 | * disclaimer in the documentation and/or other materials provided with the distribution. | ||
| 12 | * | ||
| 13 | * (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote products | ||
| 14 | * derived from this software without specific prior written permission from the respective party. | ||
| 15 | * | ||
| 16 | * (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative works | ||
| 17 | * may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without specific prior | ||
| 18 | * written permission from Alliance for Energy Innovation, LLC. | ||
| 19 | * | ||
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
| 21 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED | ||
| 23 | * STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 25 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
| 27 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 28 | ***********************************************************************************************************************/ | ||
| 29 | |||
| 30 | #ifndef MODEL_ZONEHVACEVAPORATIVECOOLERUNIT_IMPL_HPP | ||
| 31 | #define MODEL_ZONEHVACEVAPORATIVECOOLERUNIT_IMPL_HPP | ||
| 32 | |||
| 33 | #include <model/ModelAPI.hpp> | ||
| 34 | #include "ZoneHVACComponent_Impl.hpp" | ||
| 35 | |||
| 36 | namespace openstudio { | ||
| 37 | namespace model { | ||
| 38 | |||
| 39 | class Schedule; | ||
| 40 | class HVACComponent; | ||
| 41 | |||
| 42 | namespace detail { | ||
| 43 | |||
| 44 | /** ZoneHVACEvaporativeCoolerUnit_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACEvaporativeCoolerUnit.*/ | ||
| 45 | class MODEL_API ZoneHVACEvaporativeCoolerUnit_Impl : public ZoneHVACComponent_Impl | ||
| 46 | { | ||
| 47 | public: | ||
| 48 | /** @name Constructors and Destructors */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | ZoneHVACEvaporativeCoolerUnit_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 52 | |||
| 53 | ZoneHVACEvaporativeCoolerUnit_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 54 | |||
| 55 | ZoneHVACEvaporativeCoolerUnit_Impl(const ZoneHVACEvaporativeCoolerUnit_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 56 | |||
| 57 | 23 | virtual ~ZoneHVACEvaporativeCoolerUnit_Impl() = default; | |
| 58 | |||
| 59 | //@} | ||
| 60 | /** @name Virtual Methods */ | ||
| 61 | //@{ | ||
| 62 | |||
| 63 | virtual ModelObject clone(Model model) const override; | ||
| 64 | |||
| 65 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 66 | |||
| 67 | virtual IddObjectType iddObjectType() const override; | ||
| 68 | |||
| 69 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 70 | |||
| 71 | virtual std::vector<ModelObject> children() const override; | ||
| 72 | |||
| 73 | virtual unsigned inletPort() const override; | ||
| 74 | |||
| 75 | virtual unsigned outletPort() const override; | ||
| 76 | |||
| 77 | virtual void autosize() override; | ||
| 78 | |||
| 79 | virtual void applySizingValues() override; | ||
| 80 | |||
| 81 | virtual ComponentType componentType() const override; | ||
| 82 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 83 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 84 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 85 | |||
| 86 | //@} | ||
| 87 | /** @name Getters */ | ||
| 88 | //@{ | ||
| 89 | |||
| 90 | Schedule availabilitySchedule() const; | ||
| 91 | |||
| 92 | HVACComponent supplyAirFan() const; | ||
| 93 | |||
| 94 | boost::optional<double> designSupplyAirFlowRate() const; | ||
| 95 | |||
| 96 | bool isDesignSupplyAirFlowRateAutosized() const; | ||
| 97 | |||
| 98 | std::string fanPlacement() const; | ||
| 99 | |||
| 100 | std::string coolerUnitControlMethod() const; | ||
| 101 | |||
| 102 | double throttlingRangeTemperatureDifference() const; | ||
| 103 | |||
| 104 | double coolingLoadControlThresholdHeatTransferRate() const; | ||
| 105 | |||
| 106 | HVACComponent firstEvaporativeCooler() const; | ||
| 107 | |||
| 108 | boost::optional<HVACComponent> secondEvaporativeCooler() const; | ||
| 109 | |||
| 110 | double shutOffRelativeHumidity() const; | ||
| 111 | |||
| 112 | //@} | ||
| 113 | /** @name Setters */ | ||
| 114 | //@{ | ||
| 115 | |||
| 116 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 117 | |||
| 118 | bool setSupplyAirFan(const HVACComponent& hvacComponent); | ||
| 119 | |||
| 120 | bool setDesignSupplyAirFlowRate(double designSupplyAirFlowRate); | ||
| 121 | |||
| 122 | void autosizeDesignSupplyAirFlowRate(); | ||
| 123 | |||
| 124 | bool setFanPlacement(const std::string& fanPlacement); | ||
| 125 | |||
| 126 | bool setCoolerUnitControlMethod(const std::string& coolerUnitControlMethod); | ||
| 127 | |||
| 128 | bool setThrottlingRangeTemperatureDifference(double throttlingRangeTemperatureDifference); | ||
| 129 | |||
| 130 | bool setCoolingLoadControlThresholdHeatTransferRate(double coolingLoadControlThresholdHeatTransferRate); | ||
| 131 | |||
| 132 | bool setFirstEvaporativeCooler(const HVACComponent& hvacComponent); | ||
| 133 | |||
| 134 | bool setSecondEvaporativeCooler(const HVACComponent& hvacComponent); | ||
| 135 | |||
| 136 | void resetSecondEvaporativeCooler(); | ||
| 137 | |||
| 138 | bool setShutOffRelativeHumidity(double shutOffRelativeHumidity); | ||
| 139 | |||
| 140 | //@} | ||
| 141 | /** @name Other */ | ||
| 142 | //@{ | ||
| 143 | |||
| 144 | boost::optional<double> autosizedDesignSupplyAirFlowRate(); | ||
| 145 | |||
| 146 | //@} | ||
| 147 | protected: | ||
| 148 | private: | ||
| 149 | − | REGISTER_LOGGER("openstudio.model.ZoneHVACEvaporativeCoolerUnit"); | |
| 150 | |||
| 151 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 152 | boost::optional<HVACComponent> optionalSupplyAirFan() const; | ||
| 153 | boost::optional<HVACComponent> optionalFirstEvaporativeCooler() const; | ||
| 154 | }; | ||
| 155 | |||
| 156 | } // namespace detail | ||
| 157 | |||
| 158 | } // namespace model | ||
| 159 | } // namespace openstudio | ||
| 160 | |||
| 161 | #endif // MODEL_ZONEHVACEVAPORATIVECOOLERUNIT_IMPL_HPP | ||
| 162 |