src/model/GeneratorFuelCellExhaustGasToWaterHeatExchanger_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_GENERATORFUELCELLEXHAUSTGASTOWATERHEATEXCHANGER_IMPL_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELLEXHAUSTGASTOWATERHEATEXCHANGER_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Connection; | ||
| 17 | class Node; | ||
| 18 | class GeneratorFuelCell; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | /** GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCellExhaustGasToWaterHeatExchanger.*/ | ||
| 23 | class MODEL_API GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl : public StraightComponent_Impl | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(const GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl& other, Model_Impl* model, | ||
| 34 | bool keepHandle); | ||
| 35 | |||
| 36 | 16 | virtual ~GeneratorFuelCellExhaustGasToWaterHeatExchanger_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<EMSActuatorNames> emsActuatorNames() const override; | ||
| 47 | |||
| 48 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 49 | |||
| 50 | virtual unsigned inletPort() const override; | ||
| 51 | |||
| 52 | virtual unsigned outletPort() const override; | ||
| 53 | |||
| 54 | virtual bool addToNode(Node& node) override; | ||
| 55 | |||
| 56 | /** For OS App-related reasons, so we can drag this object from library onto a plantLoop | ||
| 57 | * This will clone the parent fuelCell (which clones all of his children) and return a reference | ||
| 58 | * to that clone's HX */ | ||
| 59 | virtual ModelObject clone(Model model) const override; | ||
| 60 | |||
| 61 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 62 | |||
| 63 | virtual std::vector<ModelObject> children() const override; | ||
| 64 | |||
| 65 | virtual ComponentType componentType() const override; | ||
| 66 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 67 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 68 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 69 | |||
| 70 | //@} | ||
| 71 | /** @name Getters */ | ||
| 72 | //@{ | ||
| 73 | |||
| 74 | double heatRecoveryWaterMaximumFlowRate() const; | ||
| 75 | |||
| 76 | boost::optional<Node> exhaustOutletAirNode() const; | ||
| 77 | |||
| 78 | std::string heatExchangerCalculationMethod() const; | ||
| 79 | |||
| 80 | boost::optional<double> method1HeatExchangerEffectiveness() const; | ||
| 81 | |||
| 82 | boost::optional<double> method2Parameterhxs0() const; | ||
| 83 | |||
| 84 | boost::optional<double> method2Parameterhxs1() const; | ||
| 85 | |||
| 86 | boost::optional<double> method2Parameterhxs2() const; | ||
| 87 | |||
| 88 | boost::optional<double> method2Parameterhxs3() const; | ||
| 89 | |||
| 90 | boost::optional<double> method2Parameterhxs4() const; | ||
| 91 | |||
| 92 | boost::optional<double> method3h0GasCoefficient() const; | ||
| 93 | |||
| 94 | boost::optional<double> method3NdotGasRefCoefficient() const; | ||
| 95 | |||
| 96 | boost::optional<double> method3nCoefficient() const; | ||
| 97 | |||
| 98 | boost::optional<double> method3GasArea() const; | ||
| 99 | |||
| 100 | boost::optional<double> method3h0WaterCoefficient() const; | ||
| 101 | |||
| 102 | boost::optional<double> method3NdotWaterrefCoefficient() const; | ||
| 103 | |||
| 104 | boost::optional<double> method3mCoefficient() const; | ||
| 105 | |||
| 106 | boost::optional<double> method3WaterArea() const; | ||
| 107 | |||
| 108 | boost::optional<double> method3FAdjustmentFactor() const; | ||
| 109 | |||
| 110 | boost::optional<double> method4hxl1Coefficient() const; | ||
| 111 | |||
| 112 | boost::optional<double> method4hxl2Coefficient() const; | ||
| 113 | |||
| 114 | boost::optional<double> method4CondensationThreshold() const; | ||
| 115 | |||
| 116 | // Return optional parent generator | ||
| 117 | boost::optional<GeneratorFuelCell> fuelCell() const; | ||
| 118 | |||
| 119 | //@} | ||
| 120 | /** @name Setters */ | ||
| 121 | //@{ | ||
| 122 | |||
| 123 | bool setHeatRecoveryWaterMaximumFlowRate(double heatRecoveryWaterMaximumFlowRate); | ||
| 124 | |||
| 125 | void resetHeatRecoveryWaterMaximumFlowRate(); | ||
| 126 | |||
| 127 | bool setExhaustOutletAirNode(const Node& node); | ||
| 128 | |||
| 129 | void resetExhaustOutletAirNode(); | ||
| 130 | |||
| 131 | bool setHeatExchangerCalculationMethod(const std::string& heatExchangerCalculationMethod); | ||
| 132 | |||
| 133 | void resetHeatExchangerCalculationMethod(); | ||
| 134 | |||
| 135 | bool setMethod1HeatExchangerEffectiveness(double method1HeatExchangerEffectiveness); | ||
| 136 | |||
| 137 | void resetMethod1HeatExchangerEffectiveness(); | ||
| 138 | |||
| 139 | bool setMethod2Parameterhxs0(double method2Parameterhxs0); | ||
| 140 | |||
| 141 | void resetMethod2Parameterhxs0(); | ||
| 142 | |||
| 143 | bool setMethod2Parameterhxs1(double method2Parameterhxs1); | ||
| 144 | |||
| 145 | void resetMethod2Parameterhxs1(); | ||
| 146 | |||
| 147 | bool setMethod2Parameterhxs2(double method2Parameterhxs2); | ||
| 148 | |||
| 149 | void resetMethod2Parameterhxs2(); | ||
| 150 | |||
| 151 | bool setMethod2Parameterhxs3(double method2Parameterhxs3); | ||
| 152 | |||
| 153 | void resetMethod2Parameterhxs3(); | ||
| 154 | |||
| 155 | bool setMethod2Parameterhxs4(double method2Parameterhxs4); | ||
| 156 | |||
| 157 | void resetMethod2Parameterhxs4(); | ||
| 158 | |||
| 159 | bool setMethod3h0GasCoefficient(double method3h0GasCoefficient); | ||
| 160 | |||
| 161 | void resetMethod3h0GasCoefficient(); | ||
| 162 | |||
| 163 | bool setMethod3NdotGasRefCoefficient(double method3NdotGasRefCoefficient); | ||
| 164 | |||
| 165 | void resetMethod3NdotGasRefCoefficient(); | ||
| 166 | |||
| 167 | bool setMethod3nCoefficient(double method3nCoefficient); | ||
| 168 | |||
| 169 | void resetMethod3nCoefficient(); | ||
| 170 | |||
| 171 | bool setMethod3GasArea(double method3GasArea); | ||
| 172 | |||
| 173 | void resetMethod3GasArea(); | ||
| 174 | |||
| 175 | bool setMethod3h0WaterCoefficient(double method3h0WaterCoefficient); | ||
| 176 | |||
| 177 | void resetMethod3h0WaterCoefficient(); | ||
| 178 | |||
| 179 | bool setMethod3NdotWaterrefCoefficient(double method3NdotWaterrefCoefficient); | ||
| 180 | |||
| 181 | void resetMethod3NdotWaterrefCoefficient(); | ||
| 182 | |||
| 183 | bool setMethod3mCoefficient(double method3mCoefficient); | ||
| 184 | |||
| 185 | void resetMethod3mCoefficient(); | ||
| 186 | |||
| 187 | bool setMethod3WaterArea(double method3WaterArea); | ||
| 188 | |||
| 189 | void resetMethod3WaterArea(); | ||
| 190 | |||
| 191 | bool setMethod3FAdjustmentFactor(double method3FAdjustmentFactor); | ||
| 192 | |||
| 193 | void resetMethod3FAdjustmentFactor(); | ||
| 194 | |||
| 195 | bool setMethod4hxl1Coefficient(double method4hxl1Coefficient); | ||
| 196 | |||
| 197 | void resetMethod4hxl1Coefficient(); | ||
| 198 | |||
| 199 | bool setMethod4hxl2Coefficient(double method4hxl2Coefficient); | ||
| 200 | |||
| 201 | void resetMethod4hxl2Coefficient(); | ||
| 202 | |||
| 203 | bool setMethod4CondensationThreshold(double method4CondensationThreshold); | ||
| 204 | |||
| 205 | void resetMethod4CondensationThreshold(); | ||
| 206 | |||
| 207 | //@} | ||
| 208 | /** @name Other */ | ||
| 209 | //@{ | ||
| 210 | |||
| 211 | //@} | ||
| 212 | protected: | ||
| 213 | private: | ||
| 214 | − | REGISTER_LOGGER("openstudio.model.GeneratorFuelCellExhaustGasToWaterHeatExchanger"); | |
| 215 | |||
| 216 | boost::optional<Connection> optionalInletNode() const; | ||
| 217 | boost::optional<Connection> optionalOutletNode() const; | ||
| 218 | }; | ||
| 219 | |||
| 220 | } // namespace detail | ||
| 221 | |||
| 222 | } // namespace model | ||
| 223 | } // namespace openstudio | ||
| 224 | |||
| 225 | #endif // MODEL_GENERATORFUELCELLEXHAUSTGASTOWATERHEATEXCHANGER_IMPL_HPP | ||
| 226 |