src/model/SolarCollectorPerformancePhotovoltaicThermalSimple.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_SOLARCOLLECTORPERFORMANCEPHOTOVOLTAICTHERMALSIMPLE_HPP | ||
| 7 | #define MODEL_SOLARCOLLECTORPERFORMANCEPHOTOVOLTAICTHERMALSIMPLE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class SolarCollectorFlatPlatePhotovoltaicThermal; | ||
| 17 | class Schedule; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | class SolarCollectorFlatPlatePhotovoltaicThermal_Impl; | ||
| 22 | class SolarCollectorPerformancePhotovoltaicThermalSimple_Impl; | ||
| 23 | |||
| 24 | } // namespace detail | ||
| 25 | |||
| 26 | /** SolarCollectorPerformancePhotovoltaicThermalSimple is a ModelObject that wraps the OpenStudio IDD object 'OS:SolarCollectorPerformance:PhotovoltaicThermal:Simple'. */ | ||
| 27 | class MODEL_API SolarCollectorPerformancePhotovoltaicThermalSimple : public ModelObject | ||
| 28 | { | ||
| 29 | public: | ||
| 30 | /** @name Constructors and Destructors */ | ||
| 31 | //@{ | ||
| 32 | |||
| 33 | explicit SolarCollectorPerformancePhotovoltaicThermalSimple(const Model& model); | ||
| 34 | |||
| 35 | 20 | virtual ~SolarCollectorPerformancePhotovoltaicThermalSimple() override = default; | |
| 36 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 37 | ✗ | SolarCollectorPerformancePhotovoltaicThermalSimple(const SolarCollectorPerformancePhotovoltaicThermalSimple& other) = default; | |
| 38 | 2 | SolarCollectorPerformancePhotovoltaicThermalSimple(SolarCollectorPerformancePhotovoltaicThermalSimple&& other) = default; | |
| 39 | ✗ | SolarCollectorPerformancePhotovoltaicThermalSimple& operator=(const SolarCollectorPerformancePhotovoltaicThermalSimple&) = default; | |
| 40 | ✗ | SolarCollectorPerformancePhotovoltaicThermalSimple& operator=(SolarCollectorPerformancePhotovoltaicThermalSimple&&) = default; | |
| 41 | |||
| 42 | //@} | ||
| 43 | |||
| 44 | static IddObjectType iddObjectType(); | ||
| 45 | |||
| 46 | static std::vector<std::string> thermalConversionEfficiencyInputModeTypeValues(); | ||
| 47 | |||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | double fractionOfSurfaceAreaWithActiveThermalCollector() const; | ||
| 52 | |||
| 53 | std::string thermalConversionEfficiencyInputModeType() const; | ||
| 54 | |||
| 55 | boost::optional<double> thermalConversionEfficiency() const; | ||
| 56 | |||
| 57 | boost::optional<Schedule> thermalConversionEfficiencySchedule() const; | ||
| 58 | |||
| 59 | double frontSurfaceEmittance() const; | ||
| 60 | |||
| 61 | bool isFrontSurfaceEmittanceDefaulted() const; | ||
| 62 | |||
| 63 | //@} | ||
| 64 | /** @name Setters */ | ||
| 65 | //@{ | ||
| 66 | |||
| 67 | bool setFractionOfSurfaceAreaWithActiveThermalCollector(double fractionofSurfaceAreawithActiveThermalCollector); | ||
| 68 | |||
| 69 | bool setThermalConversionEfficiency(double valueforThermalConversionEfficiencyifFixed); | ||
| 70 | |||
| 71 | void resetThermalConversionEfficiency(); | ||
| 72 | |||
| 73 | bool setThermalConversionEfficiencySchedule(Schedule& schedule); | ||
| 74 | |||
| 75 | void resetThermalConversionEfficiencySchedule(); | ||
| 76 | |||
| 77 | bool setFrontSurfaceEmittance(double frontSurfaceEmittance); | ||
| 78 | |||
| 79 | void resetFrontSurfaceEmittance(); | ||
| 80 | |||
| 81 | //@} | ||
| 82 | /** @name Other */ | ||
| 83 | //@{ | ||
| 84 | |||
| 85 | //@} | ||
| 86 | protected: | ||
| 87 | /// @cond | ||
| 88 | using ImplType = detail::SolarCollectorPerformancePhotovoltaicThermalSimple_Impl; | ||
| 89 | |||
| 90 | explicit SolarCollectorPerformancePhotovoltaicThermalSimple( | ||
| 91 | std::shared_ptr<detail::SolarCollectorPerformancePhotovoltaicThermalSimple_Impl> impl); | ||
| 92 | |||
| 93 | friend class detail::SolarCollectorPerformancePhotovoltaicThermalSimple_Impl; | ||
| 94 | friend class detail::SolarCollectorFlatPlatePhotovoltaicThermal_Impl; | ||
| 95 | friend class SolarCollectorFlatPlatePhotovoltaicThermal; | ||
| 96 | friend class Model; | ||
| 97 | friend class IdfObject; | ||
| 98 | friend class openstudio::detail::IdfObject_Impl; | ||
| 99 | /// @endcond | ||
| 100 | private: | ||
| 101 | REGISTER_LOGGER("openstudio.model.SolarCollectorPerformancePhotovoltaicThermalSimple"); | ||
| 102 | }; | ||
| 103 | |||
| 104 | /** \relates SolarCollectorPerformancePhotovoltaicThermalSimple*/ | ||
| 105 | using OptionalSolarCollectorPerformancePhotovoltaicThermalSimple = boost::optional<SolarCollectorPerformancePhotovoltaicThermalSimple>; | ||
| 106 | |||
| 107 | /** \relates SolarCollectorPerformancePhotovoltaicThermalSimple*/ | ||
| 108 | using SolarCollectorPerformancePhotovoltaicThermalSimpleVector = std::vector<SolarCollectorPerformancePhotovoltaicThermalSimple>; | ||
| 109 | |||
| 110 | } // namespace model | ||
| 111 | } // namespace openstudio | ||
| 112 | |||
| 113 | #endif // MODEL_SOLARCOLLECTORPERFORMANCEPHOTOVOLTAICTHERMALSIMPLE_HPP | ||
| 114 |