src/model/HeaderedPumpsConstantSpeed_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_HEADEREDPUMPSCONSTANTSPEED_IMPL_HPP | ||
| 7 | #define MODEL_HEADEREDPUMPSCONSTANTSPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class ThermalZone; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** HeaderedPumpsConstantSpeed_Impl is a StraightComponent_Impl that is the implementation class for HeaderedPumpsConstantSpeed.*/ | ||
| 21 | class MODEL_API HeaderedPumpsConstantSpeed_Impl : public StraightComponent_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | HeaderedPumpsConstantSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | HeaderedPumpsConstantSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | HeaderedPumpsConstantSpeed_Impl(const HeaderedPumpsConstantSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 1 | virtual ~HeaderedPumpsConstantSpeed_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 44 | |||
| 45 | virtual void autosize() override; | ||
| 46 | |||
| 47 | virtual void applySizingValues() override; | ||
| 48 | |||
| 49 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 50 | |||
| 51 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 52 | |||
| 53 | virtual ComponentType componentType() const override; | ||
| 54 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 55 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 56 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 57 | |||
| 58 | //@} | ||
| 59 | /** @name Getters */ | ||
| 60 | //@{ | ||
| 61 | |||
| 62 | boost::optional<double> totalRatedFlowRate() const; | ||
| 63 | |||
| 64 | bool isTotalRatedFlowRateAutosized() const; | ||
| 65 | |||
| 66 | int numberofPumpsinBank() const; | ||
| 67 | |||
| 68 | std::string flowSequencingControlScheme() const; | ||
| 69 | |||
| 70 | double ratedPumpHead() const; | ||
| 71 | |||
| 72 | boost::optional<double> ratedPowerConsumption() const; | ||
| 73 | |||
| 74 | bool isRatedPowerConsumptionAutosized() const; | ||
| 75 | |||
| 76 | double motorEfficiency() const; | ||
| 77 | |||
| 78 | double fractionofMotorInefficienciestoFluidStream() const; | ||
| 79 | |||
| 80 | std::string pumpControlType() const; | ||
| 81 | |||
| 82 | boost::optional<Schedule> pumpFlowRateSchedule() const; | ||
| 83 | |||
| 84 | boost::optional<ThermalZone> thermalZone() const; | ||
| 85 | |||
| 86 | double skinLossRadiativeFraction() const; | ||
| 87 | |||
| 88 | std::string designPowerSizingMethod() const; | ||
| 89 | |||
| 90 | double designElectricPowerPerUnitFlowRate() const; | ||
| 91 | |||
| 92 | double designShaftPowerPerUnitFlowRatePerUnitHead() const; | ||
| 93 | |||
| 94 | std::string endUseSubcategory() const; | ||
| 95 | |||
| 96 | boost::optional<double> autosizedTotalRatedFlowRate() const; | ||
| 97 | |||
| 98 | boost::optional<double> autosizedRatedPowerConsumption() const; | ||
| 99 | |||
| 100 | //@} | ||
| 101 | /** @name Setters */ | ||
| 102 | //@{ | ||
| 103 | |||
| 104 | bool setTotalRatedFlowRate(boost::optional<double> totalRatedFlowRate); | ||
| 105 | |||
| 106 | void autosizeTotalRatedFlowRate(); | ||
| 107 | |||
| 108 | bool setNumberofPumpsinBank(int numberofPumpsinBank); | ||
| 109 | |||
| 110 | bool setFlowSequencingControlScheme(const std::string& flowSequencingControlScheme); | ||
| 111 | |||
| 112 | bool setRatedPumpHead(double ratedPumpHead); | ||
| 113 | |||
| 114 | bool setRatedPowerConsumption(boost::optional<double> ratedPowerConsumption); | ||
| 115 | |||
| 116 | void autosizeRatedPowerConsumption(); | ||
| 117 | |||
| 118 | bool setMotorEfficiency(double motorEfficiency); | ||
| 119 | |||
| 120 | bool setFractionofMotorInefficienciestoFluidStream(double fractionofMotorInefficienciestoFluidStream); | ||
| 121 | |||
| 122 | bool setPumpControlType(const std::string& pumpControlType); | ||
| 123 | |||
| 124 | bool setPumpFlowRateSchedule(Schedule& schedule); | ||
| 125 | |||
| 126 | void resetPumpFlowRateSchedule(); | ||
| 127 | |||
| 128 | bool setThermalZone(const boost::optional<ThermalZone>& thermalZone); | ||
| 129 | |||
| 130 | void resetThermalZone(); | ||
| 131 | |||
| 132 | bool setSkinLossRadiativeFraction(double skinLossRadiativeFraction); | ||
| 133 | |||
| 134 | bool setDesignPowerSizingMethod(const std::string& designPowerSizingMethod); | ||
| 135 | |||
| 136 | bool setDesignElectricPowerPerUnitFlowRate(double designElectricPowerPerUnitFlowRate); | ||
| 137 | |||
| 138 | bool setDesignShaftPowerPerUnitFlowRatePerUnitHead(double designShaftPowerPerUnitFlowRatePerUnitHead); | ||
| 139 | |||
| 140 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 141 | |||
| 142 | //@} | ||
| 143 | /** @name Other */ | ||
| 144 | //@{ | ||
| 145 | |||
| 146 | virtual unsigned inletPort() const override; | ||
| 147 | |||
| 148 | virtual unsigned outletPort() const override; | ||
| 149 | |||
| 150 | bool addToNode(Node& node) override; | ||
| 151 | |||
| 152 | //@} | ||
| 153 | protected: | ||
| 154 | private: | ||
| 155 | REGISTER_LOGGER("openstudio.model.HeaderedPumpsConstantSpeed"); | ||
| 156 | }; | ||
| 157 | |||
| 158 | } // namespace detail | ||
| 159 | |||
| 160 | } // namespace model | ||
| 161 | } // namespace openstudio | ||
| 162 | |||
| 163 | #endif // MODEL_HEADEREDPUMPSCONSTANTSPEED_IMPL_HPP | ||
| 164 |