GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/CoilCoolingFourPipeBeam.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_COILCOOLINGFOURPIPEBEAM_HPP
7 #define MODEL_COILCOOLINGFOURPIPEBEAM_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Node;
17 class Curve;
18 class AirTerminalSingleDuctConstantVolumeFourPipeBeam;
19
20 namespace detail {
21
22 class CoilCoolingFourPipeBeam_Impl;
23
24 } // namespace detail
25
26 /** CoilCoolingFourPipeBeam is a StraightComponent that wraps the OpenStudio IDD object 'OS:Coil:Cooling:FourPipeBeam'. */
27 class MODEL_API CoilCoolingFourPipeBeam : public StraightComponent
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit CoilCoolingFourPipeBeam(const Model& model);
34
35 56 virtual ~CoilCoolingFourPipeBeam() override = default;
36 // Default the copy and move operators because the virtual dtor is explicit
37 1 CoilCoolingFourPipeBeam(const CoilCoolingFourPipeBeam& other) = default;
38 23 CoilCoolingFourPipeBeam(CoilCoolingFourPipeBeam&& other) = default;
39 ✗ CoilCoolingFourPipeBeam& operator=(const CoilCoolingFourPipeBeam&) = default;
40 ✗ CoilCoolingFourPipeBeam& operator=(CoilCoolingFourPipeBeam&&) = default;
41
42 //@}
43
44 static IddObjectType iddObjectType();
45
46 /** @name Getters */
47 //@{
48
49 boost::optional<Node> chilledWaterInletNode() const;
50
51 boost::optional<Node> chilledWaterOutletNode() const;
52
53 double beamRatedCoolingCapacityperBeamLength() const;
54 bool isBeamRatedCoolingCapacityperBeamLengthDefaulted() const;
55
56 double beamRatedCoolingRoomAirChilledWaterTemperatureDifference() const;
57 bool isBeamRatedCoolingRoomAirChilledWaterTemperatureDifferenceDefaulted() const;
58
59 double beamRatedChilledWaterVolumeFlowRateperBeamLength() const;
60 bool isBeamRatedChilledWaterVolumeFlowRateperBeamLengthDefaulted() const;
61
62 Curve beamCoolingCapacityTemperatureDifferenceModificationFactorCurve() const;
63
64 Curve beamCoolingCapacityAirFlowModificationFactorCurve() const;
65
66 Curve beamCoolingCapacityChilledWaterFlowModificationFactorCurve() const;
67
68 //@}
69 /** @name Setters */
70 //@{
71
72 bool setBeamRatedCoolingCapacityperBeamLength(double beamRatedCoolingCapacityperBeamLength);
73 void resetBeamRatedCoolingCapacityperBeamLength();
74
75 bool setBeamRatedCoolingRoomAirChilledWaterTemperatureDifference(double beamRatedCoolingRoomAirChilledWaterTemperatureDifference);
76 void resetBeamRatedCoolingRoomAirChilledWaterTemperatureDifference();
77
78 bool setBeamRatedChilledWaterVolumeFlowRateperBeamLength(double beamRatedChilledWaterVolumeFlowRateperBeamLength);
79 void resetBeamRatedChilledWaterVolumeFlowRateperBeamLength();
80
81 bool setBeamCoolingCapacityTemperatureDifferenceModificationFactorCurve(const Curve& curve);
82
83 bool setBeamCoolingCapacityAirFlowModificationFactorCurve(const Curve& curve);
84
85 bool setBeamCoolingCapacityChilledWaterFlowModificationFactorCurve(const Curve& curve);
86
87 // No reset functions provided for the three curves, because all curves are required if you connect the ATU FourPipeBeam to a hot water plant loop
88 // And given that we added a subclass specifically for the heating portion of the ATU FourPipeBeam, they become required at all times
89
90 //@}
91 /** @name Other */
92 //@{
93
94 /* Convenience function to return the parent AirTerminal:SingleDuct:ConstantVolume:FourPipeBeam */
95 boost::optional<AirTerminalSingleDuctConstantVolumeFourPipeBeam> airTerminalSingleDuctConstantVolumeFourPipeBeam() const;
96
97 //@}
98 protected:
99 /// @cond
100 using ImplType = detail::CoilCoolingFourPipeBeam_Impl;
101
102 explicit CoilCoolingFourPipeBeam(std::shared_ptr<detail::CoilCoolingFourPipeBeam_Impl> impl);
103
104 friend class detail::CoilCoolingFourPipeBeam_Impl;
105 friend class Model;
106 friend class IdfObject;
107 friend class openstudio::detail::IdfObject_Impl;
108 /// @endcond
109 private:
110 REGISTER_LOGGER("openstudio.model.CoilCoolingFourPipeBeam");
111 };
112
113 /** \relates CoilCoolingFourPipeBeam*/
114 using OptionalCoilCoolingFourPipeBeam = boost::optional<CoilCoolingFourPipeBeam>;
115
116 /** \relates CoilCoolingFourPipeBeam*/
117 using CoilCoolingFourPipeBeamVector = std::vector<CoilCoolingFourPipeBeam>;
118
119 } // namespace model
120 } // namespace openstudio
121
122 #endif // MODEL_COILCOOLINGFOURPIPEBEAM_HPP
123