src/model/AirTerminalSingleDuctSeriesPIUReheat.cpp
| 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 | #include "AirTerminalSingleDuctSeriesPIUReheat.hpp" | ||
| 7 | #include "AirTerminalSingleDuctSeriesPIUReheat_Impl.hpp" | ||
| 8 | #include "AirLoopHVACReturnPlenum.hpp" | ||
| 9 | #include "AirLoopHVACReturnPlenum_Impl.hpp" | ||
| 10 | #include "FanVariableVolume.hpp" | ||
| 11 | #include "FanVariableVolume_Impl.hpp" | ||
| 12 | #include "FanConstantVolume.hpp" | ||
| 13 | #include "FanConstantVolume_Impl.hpp" | ||
| 14 | #include "FanOnOff.hpp" | ||
| 15 | #include "FanOnOff_Impl.hpp" | ||
| 16 | #include "FanSystemModel.hpp" | ||
| 17 | #include "FanSystemModel_Impl.hpp" | ||
| 18 | #include "Model.hpp" | ||
| 19 | #include "Model_Impl.hpp" | ||
| 20 | #include "PortList.hpp" | ||
| 21 | #include "PortList_Impl.hpp" | ||
| 22 | #include "Mixer.hpp" | ||
| 23 | #include "Mixer_Impl.hpp" | ||
| 24 | #include "Splitter.hpp" | ||
| 25 | #include "Splitter_Impl.hpp" | ||
| 26 | #include "ThermalZone.hpp" | ||
| 27 | #include "ThermalZone_Impl.hpp" | ||
| 28 | #include "Schedule.hpp" | ||
| 29 | #include "Schedule_Impl.hpp" | ||
| 30 | #include "HVACComponent.hpp" | ||
| 31 | #include "HVACComponent_Impl.hpp" | ||
| 32 | #include "Node.hpp" | ||
| 33 | #include "Node_Impl.hpp" | ||
| 34 | #include "ScheduleTypeLimits.hpp" | ||
| 35 | #include "ScheduleTypeRegistry.hpp" | ||
| 36 | #include <utilities/idd/OS_AirTerminal_SingleDuct_SeriesPIU_Reheat_FieldEnums.hxx> | ||
| 37 | #include <utilities/idd/IddEnums.hxx> | ||
| 38 | #include <utilities/idd/IddFactory.hxx> | ||
| 39 | |||
| 40 | #include "../utilities/core/Assert.hpp" | ||
| 41 | #include "../utilities/data/DataEnums.hpp" | ||
| 42 | |||
| 43 | namespace openstudio { | ||
| 44 | namespace model { | ||
| 45 | |||
| 46 | namespace detail { | ||
| 47 | |||
| 48 | 16 | AirTerminalSingleDuctSeriesPIUReheat_Impl::AirTerminalSingleDuctSeriesPIUReheat_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 49 | 16 | bool keepHandle) | |
| 50 | 16 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 51 |
4/6✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 16 times.
✗ Branch 13 not taken.
|
16 | OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctSeriesPIUReheat::iddObjectType()); |
| 52 | 16 | } | |
| 53 | |||
| 54 | 1 | AirTerminalSingleDuctSeriesPIUReheat_Impl::AirTerminalSingleDuctSeriesPIUReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 55 | 1 | Model_Impl* model, bool keepHandle) | |
| 56 | 1 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 57 |
4/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
|
1 | OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctSeriesPIUReheat::iddObjectType()); |
| 58 | 1 | } | |
| 59 | |||
| 60 | 11 | AirTerminalSingleDuctSeriesPIUReheat_Impl::AirTerminalSingleDuctSeriesPIUReheat_Impl(const AirTerminalSingleDuctSeriesPIUReheat_Impl& other, | |
| 61 | 11 | Model_Impl* model, bool keepHandle) | |
| 62 | 11 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 63 | |||
| 64 | ✗ | const std::vector<std::string>& AirTerminalSingleDuctSeriesPIUReheat_Impl::outputVariableNames() const { | |
| 65 | static const std::vector<std::string> result{ | ||
| 66 | // These apply to all AirTerminals | ||
| 67 | "Zone Air Terminal Sensible Heating Energy", | ||
| 68 | "Zone Air Terminal Sensible Heating Rate", | ||
| 69 | "Zone Air Terminal Sensible Cooling Energy", | ||
| 70 | "Zone Air Terminal Sensible Cooling Rate", | ||
| 71 | |||
| 72 | // Specific output for this one | ||
| 73 | "Zone Air Terminal Current Operation Control Stage", | ||
| 74 | "Zone Air Terminal Heating Energy", | ||
| 75 | "Zone Air Terminal Heating Rate", | ||
| 76 | "Zone Air Terminal Outdoor Air Volume Flow Rate", | ||
| 77 | "Zone Air Terminal Outlet Discharge Air Temperature", | ||
| 78 | "Zone Air Terminal Primary Air Mass Flow Rate", | ||
| 79 | "Zone Air Terminal Primary Damper Position", | ||
| 80 | "Zone Air Terminal Secondary Air Mass Flow Rate", | ||
| 81 | "Zone Air Terminal Sensible Cooling Energy", | ||
| 82 | "Zone Air Terminal Sensible Cooling Rate", | ||
| 83 | "Zone Air Terminal Total Air Mass Flow Rate", | ||
| 84 | ✗ | }; | |
| 85 | ✗ | return result; | |
| 86 | ✗ | } | |
| 87 | |||
| 88 | 40 | IddObjectType AirTerminalSingleDuctSeriesPIUReheat_Impl::iddObjectType() const { | |
| 89 | 40 | return AirTerminalSingleDuctSeriesPIUReheat::iddObjectType(); | |
| 90 | } | ||
| 91 | |||
| 92 | ✗ | std::vector<ScheduleTypeKey> AirTerminalSingleDuctSeriesPIUReheat_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 93 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 94 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 95 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 96 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 97 | ✗ | if (std::find(b, e, OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::AvailabilityScheduleName) != e) { | |
| 98 | ✗ | result.push_back(ScheduleTypeKey("AirTerminalSingleDuctSeriesPIUReheat", "Availability")); | |
| 99 | } | ||
| 100 | ✗ | return result; | |
| 101 | ✗ | } | |
| 102 | |||
| 103 | 5 | boost::optional<Schedule> AirTerminalSingleDuctSeriesPIUReheat_Impl::availabilitySchedule() const { | |
| 104 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::AvailabilityScheduleName); |
| 105 | } | ||
| 106 | |||
| 107 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::maximumAirFlowRate() const { | |
| 108 | 1 | return getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, true); | |
| 109 | } | ||
| 110 | |||
| 111 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::isMaximumAirFlowRateAutosized() const { | |
| 112 | 5 | bool result = false; | |
| 113 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, true); |
| 114 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 115 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 116 | } | ||
| 117 | 5 | return result; | |
| 118 | 5 | } | |
| 119 | |||
| 120 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::maximumPrimaryAirFlowRate() const { | |
| 121 | 1 | return getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, true); | |
| 122 | } | ||
| 123 | |||
| 124 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::isMaximumPrimaryAirFlowRateAutosized() const { | |
| 125 | 5 | bool result = false; | |
| 126 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, true); |
| 127 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 128 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 129 | } | ||
| 130 | 5 | return result; | |
| 131 | 5 | } | |
| 132 | |||
| 133 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::minimumPrimaryAirFlowFraction() const { | |
| 134 | 1 | return getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, true); | |
| 135 | } | ||
| 136 | |||
| 137 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::isMinimumPrimaryAirFlowFractionAutosized() const { | |
| 138 | 5 | bool result = false; | |
| 139 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, true); |
| 140 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 141 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 142 | } | ||
| 143 | 5 | return result; | |
| 144 | 5 | } | |
| 145 | |||
| 146 | 63 | HVACComponent AirTerminalSingleDuctSeriesPIUReheat_Impl::fan() const { | |
| 147 |
1/1✓ Branch 1 taken 63 times.
|
63 | boost::optional<HVACComponent> value = optionalFan(); |
| 148 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 63 times.
|
63 | if (!value) { |
| 149 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Fan attached."); | |
| 150 | } | ||
| 151 |
2/2✓ Branch 1 taken 63 times.
✓ Branch 4 taken 63 times.
|
126 | return value.get(); |
| 152 | 63 | } | |
| 153 | |||
| 154 | 20 | HVACComponent AirTerminalSingleDuctSeriesPIUReheat_Impl::reheatCoil() const { | |
| 155 |
1/1✓ Branch 1 taken 20 times.
|
20 | boost::optional<HVACComponent> value = optionalReheatCoil(); |
| 156 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
|
20 | if (!value) { |
| 157 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Reheat Coil attached."); | |
| 158 | } | ||
| 159 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
40 | return value.get(); |
| 160 | 20 | } | |
| 161 | |||
| 162 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::maximumHotWaterorSteamFlowRate() const { | |
| 163 | 1 | return getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, true); | |
| 164 | } | ||
| 165 | |||
| 166 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::isMaximumHotWaterorSteamFlowRateAutosized() const { | |
| 167 | 5 | bool result = false; | |
| 168 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, true); |
| 169 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 170 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 171 | } | ||
| 172 | 5 | return result; | |
| 173 | 5 | } | |
| 174 | |||
| 175 | 5 | double AirTerminalSingleDuctSeriesPIUReheat_Impl::minimumHotWaterorSteamFlowRate() const { | |
| 176 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumHotWaterorSteamFlowRate, true); |
| 177 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 178 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 179 | } | ||
| 180 | |||
| 181 | 5 | double AirTerminalSingleDuctSeriesPIUReheat_Impl::convergenceTolerance() const { | |
| 182 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ConvergenceTolerance, true); |
| 183 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 184 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 185 | } | ||
| 186 | |||
| 187 | 10 | std::string AirTerminalSingleDuctSeriesPIUReheat_Impl::fanControlType() const { | |
| 188 |
1/1✓ Branch 1 taken 10 times.
|
10 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanControlType, true); |
| 189 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
✗ Branch 4 not taken.
|
10 | OS_ASSERT(value); |
| 190 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | return value.get(); |
| 191 | 10 | } | |
| 192 | |||
| 193 | 7 | double AirTerminalSingleDuctSeriesPIUReheat_Impl::minimumFanTurnDownRatio() const { | |
| 194 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumFanTurnDownRatio, true); |
| 195 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 196 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 197 | } | ||
| 198 | |||
| 199 | 7 | std::string AirTerminalSingleDuctSeriesPIUReheat_Impl::heatingControlType() const { | |
| 200 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HeatingControlType, true); |
| 201 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 202 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 203 | 7 | } | |
| 204 | |||
| 205 | 7 | double AirTerminalSingleDuctSeriesPIUReheat_Impl::designHeatingDischargeAirTemperature() const { | |
| 206 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::DesignHeatingDischargeAirTemperature, true); |
| 207 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 208 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 209 | } | ||
| 210 | |||
| 211 | 7 | double AirTerminalSingleDuctSeriesPIUReheat_Impl::highLimitHeatingDischargeAirTemperature() const { | |
| 212 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HighLimitHeatingDischargeAirTemperature, true); |
| 213 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 214 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 215 | } | ||
| 216 | |||
| 217 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 218 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::AvailabilityScheduleName, "AirTerminalSingleDuctSeriesPIUReheat", |
| 219 | "Availability", schedule); | ||
| 220 | 1 | return result; | |
| 221 | } | ||
| 222 | |||
| 223 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat_Impl::resetAvailabilitySchedule() { | |
| 224 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::AvailabilityScheduleName, ""); | |
| 225 | ✗ | OS_ASSERT(result); | |
| 226 | ✗ | } | |
| 227 | |||
| 228 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate) { | |
| 229 | 1 | bool result(false); | |
| 230 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (maximumAirFlowRate) { |
| 231 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, maximumAirFlowRate.get()); | |
| 232 | } | ||
| 233 | 1 | return result; | |
| 234 | } | ||
| 235 | |||
| 236 | 15 | void AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizeMaximumAirFlowRate() { | |
| 237 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, "autosize"); |
| 238 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 239 | 15 | } | |
| 240 | |||
| 241 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMaximumPrimaryAirFlowRate(boost::optional<double> maximumPrimaryAirFlowRate) { | |
| 242 | 1 | bool result(false); | |
| 243 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (maximumPrimaryAirFlowRate) { |
| 244 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, maximumPrimaryAirFlowRate.get()); | |
| 245 | } | ||
| 246 | 1 | return result; | |
| 247 | } | ||
| 248 | |||
| 249 | 15 | void AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizeMaximumPrimaryAirFlowRate() { | |
| 250 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, "autosize"); |
| 251 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 252 | 15 | } | |
| 253 | |||
| 254 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMinimumPrimaryAirFlowFraction(boost::optional<double> minimumPrimaryAirFlowFraction) { | |
| 255 | 1 | bool result(false); | |
| 256 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (minimumPrimaryAirFlowFraction) { |
| 257 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, minimumPrimaryAirFlowFraction.get()); | |
| 258 | } | ||
| 259 | 1 | return result; | |
| 260 | } | ||
| 261 | |||
| 262 | 15 | void AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizeMinimumPrimaryAirFlowFraction() { | |
| 263 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, "autosize"); |
| 264 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 265 | 15 | } | |
| 266 | |||
| 267 | 20 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setFan(const HVACComponent& fan) { | |
| 268 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | bool result = setPointer(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanName, fan.handle()); |
| 269 | |||
| 270 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | if (result) { |
| 271 |
4/4✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 17 times.
✓ Branch 8 taken 3 times.
|
20 | if (fan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) { |
| 272 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | setFanControlType("ConstantSpeed"); |
| 273 | } | ||
| 274 | } | ||
| 275 | |||
| 276 | 20 | return result; | |
| 277 | } | ||
| 278 | |||
| 279 | 18 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setReheatCoil(const HVACComponent& coil) { | |
| 280 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ReheatCoilName, coil.handle()); |
| 281 | 18 | return result; | |
| 282 | } | ||
| 283 | |||
| 284 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMaximumHotWaterorSteamFlowRate(boost::optional<double> maximumHotWaterorSteamFlowRate) { | |
| 285 | 1 | bool result(false); | |
| 286 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (maximumHotWaterorSteamFlowRate) { |
| 287 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, maximumHotWaterorSteamFlowRate.get()); | |
| 288 | } else { | ||
| 289 | ✗ | resetMaximumHotWaterorSteamFlowRate(); | |
| 290 | ✗ | result = true; | |
| 291 | } | ||
| 292 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 293 | 1 | return result; | |
| 294 | } | ||
| 295 | |||
| 296 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat_Impl::resetMaximumHotWaterorSteamFlowRate() { | |
| 297 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, ""); | |
| 298 | ✗ | OS_ASSERT(result); | |
| 299 | ✗ | } | |
| 300 | |||
| 301 | 15 | void AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizeMaximumHotWaterorSteamFlowRate() { | |
| 302 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, "autosize"); |
| 303 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 304 | 15 | } | |
| 305 | |||
| 306 | 16 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMinimumHotWaterorSteamFlowRate(double minimumHotWaterorSteamFlowRate) { | |
| 307 | 16 | bool result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumHotWaterorSteamFlowRate, minimumHotWaterorSteamFlowRate); | |
| 308 | 16 | return result; | |
| 309 | } | ||
| 310 | |||
| 311 | 16 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setConvergenceTolerance(double convergenceTolerance) { | |
| 312 | 16 | bool result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ConvergenceTolerance, convergenceTolerance); | |
| 313 | 16 | return result; | |
| 314 | } | ||
| 315 | |||
| 316 | 35 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setFanControlType(const std::string& fanControlType) { | |
| 317 |
1/1✓ Branch 1 taken 35 times.
|
35 | auto hvacComponent = fan(); |
| 318 |
4/4✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
✓ Branch 7 taken 31 times.
✓ Branch 8 taken 4 times.
|
35 | if (hvacComponent.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) { |
| 319 |
4/4✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 30 times.
|
62 | if (istringEqual(fanControlType, "VariableSpeed")) { |
| 320 | 1 | return false; | |
| 321 | } | ||
| 322 | } | ||
| 323 | |||
| 324 |
1/1✓ Branch 1 taken 34 times.
|
34 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanControlType, fanControlType); |
| 325 | 34 | return result; | |
| 326 | 35 | } | |
| 327 | |||
| 328 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setMinimumFanTurnDownRatio(double minimumFanTurnDownRatio) { | |
| 329 | 17 | bool result = setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumFanTurnDownRatio, minimumFanTurnDownRatio); | |
| 330 | 17 | return result; | |
| 331 | } | ||
| 332 | |||
| 333 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setHeatingControlType(const std::string& heatingControlType) { | |
| 334 | 17 | bool result = setString(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HeatingControlType, heatingControlType); | |
| 335 | 17 | return result; | |
| 336 | } | ||
| 337 | |||
| 338 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setDesignHeatingDischargeAirTemperature(double designHeatingDischargeAirTemperature) { | |
| 339 | bool result = | ||
| 340 | 17 | setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::DesignHeatingDischargeAirTemperature, designHeatingDischargeAirTemperature); | |
| 341 | 17 | return result; | |
| 342 | } | ||
| 343 | |||
| 344 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setHighLimitHeatingDischargeAirTemperature(double highLimitHeatingDischargeAirTemperature) { | |
| 345 | bool result = | ||
| 346 | 17 | setDouble(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HighLimitHeatingDischargeAirTemperature, highLimitHeatingDischargeAirTemperature); | |
| 347 | 17 | return result; | |
| 348 | } | ||
| 349 | |||
| 350 | 69 | boost::optional<HVACComponent> AirTerminalSingleDuctSeriesPIUReheat_Impl::optionalFan() const { | |
| 351 |
2/2✓ Branch 1 taken 69 times.
✓ Branch 4 taken 69 times.
|
69 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanName); |
| 352 | } | ||
| 353 | |||
| 354 | 26 | boost::optional<HVACComponent> AirTerminalSingleDuctSeriesPIUReheat_Impl::optionalReheatCoil() const { | |
| 355 |
2/2✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
|
26 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ReheatCoilName); |
| 356 | } | ||
| 357 | |||
| 358 | 24 | unsigned AirTerminalSingleDuctSeriesPIUReheat_Impl::inletPort() const { | |
| 359 | 24 | return OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::SupplyAirInletNode; | |
| 360 | } | ||
| 361 | |||
| 362 | 109 | unsigned AirTerminalSingleDuctSeriesPIUReheat_Impl::outletPort() const { | |
| 363 | 109 | return OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::OutletNode; | |
| 364 | } | ||
| 365 | |||
| 366 | 30 | unsigned AirTerminalSingleDuctSeriesPIUReheat_Impl::secondaryAirInletPort() const { | |
| 367 | 30 | return OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::SecondaryAirInletNode; | |
| 368 | } | ||
| 369 | |||
| 370 | 15 | boost::optional<Node> AirTerminalSingleDuctSeriesPIUReheat_Impl::secondaryAirInletNode() const { | |
| 371 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
15 | boost::optional<ModelObject> mo = connectedObject(secondaryAirInletPort()); |
| 372 | |||
| 373 |
2/2✓ Branch 0 taken 13 times.
✓ Branch 1 taken 2 times.
|
15 | if (mo) { |
| 374 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 13 times.
✗ Branch 7 not taken.
|
26 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 375 | 13 | return node; | |
| 376 | 13 | } | |
| 377 | } | ||
| 378 | |||
| 379 | 2 | return boost::none; | |
| 380 | 15 | } | |
| 381 | |||
| 382 | 13 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::addToNode(Node& node) { | |
| 383 |
1/1✓ Branch 1 taken 13 times.
|
13 | Model _model = node.model(); |
| 384 | |||
| 385 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
26 | if (boost::optional<ModelObject> outlet = node.outletModelObject()) { |
| 386 | 13 | boost::optional<ThermalZone> thermalZone; | |
| 387 | |||
| 388 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 11 times.
✓ Branch 7 taken 2 times.
|
26 | if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) { |
| 389 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
|
11 | thermalZone = portList->thermalZone(); |
| 390 | 13 | } | |
| 391 | |||
| 392 |
12/19✓ Branch 1 taken 2 times.
✓ Branch 2 taken 11 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 2 times.
✓ Branch 19 taken 11 times.
✓ Branch 21 taken 2 times.
✓ Branch 22 taken 11 times.
✓ Branch 24 taken 13 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
|
30 | if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) { |
| 393 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
26 | if (boost::optional<ModelObject> inlet = node.inletModelObject()) { |
| 394 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 13 times.
✗ Branch 7 not taken.
|
26 | if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) { |
| 395 |
1/1✓ Branch 1 taken 13 times.
|
13 | boost::optional<ModelObject> sourceModelObject = inlet; |
| 396 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort()); |
| 397 | |||
| 398 |
3/6✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13 times.
✗ Branch 5 not taken.
|
26 | if (sourcePort && sourceModelObject) { |
| 399 |
1/1✓ Branch 1 taken 13 times.
|
13 | Node inletNode(_model); |
| 400 | |||
| 401 |
1/1✓ Branch 1 taken 13 times.
|
13 | auto thisObject = getObject<ModelObject>(); |
| 402 | |||
| 403 |
6/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 13 taken 13 times.
✓ Branch 16 taken 13 times.
|
13 | _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort()); |
| 404 | |||
| 405 |
5/5✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 13 taken 13 times.
|
13 | _model.connect(inletNode, inletNode.outletPort(), thisObject, inletPort()); |
| 406 | |||
| 407 |
5/5✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 13 taken 13 times.
|
13 | _model.connect(thisObject, outletPort(), node, node.inletPort()); |
| 408 | |||
| 409 |
2/2✓ Branch 0 taken 11 times.
✓ Branch 1 taken 2 times.
|
13 | if (thermalZone) { |
| 410 |
1/1✓ Branch 1 taken 11 times.
|
11 | Node secondaryInletNode(_model); |
| 411 | |||
| 412 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | PortList exhaustPortList = thermalZone->exhaustPortList(); |
| 413 | |||
| 414 |
5/5✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✓ Branch 10 taken 11 times.
✓ Branch 13 taken 11 times.
|
11 | _model.connect(exhaustPortList, exhaustPortList.nextPort(), secondaryInletNode, secondaryInletNode.inletPort()); |
| 415 | |||
| 416 |
5/5✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✓ Branch 10 taken 11 times.
✓ Branch 13 taken 11 times.
|
11 | _model.connect(secondaryInletNode, secondaryInletNode.outletPort(), thisObject, secondaryAirInletPort()); |
| 417 | |||
| 418 |
1/1✓ Branch 1 taken 11 times.
|
11 | auto mo = this->getObject<ModelObject>(); |
| 419 | |||
| 420 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | thermalZone->addEquipment(mo); |
| 421 | 11 | } | |
| 422 | |||
| 423 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
26 | if (auto airLoopHVAC = node.airLoopHVAC()) { |
| 424 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | auto schedule = airLoopHVAC->availabilitySchedule(); |
| 425 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanAvailabilitySchedule(schedule); |
| 426 | 26 | } | |
| 427 | |||
| 428 | 13 | return true; | |
| 429 | 13 | } | |
| 430 | 26 | } | |
| 431 | 13 | } | |
| 432 | } | ||
| 433 | 26 | } | |
| 434 | |||
| 435 | ✗ | return false; | |
| 436 | 13 | } | |
| 437 | |||
| 438 | 6 | std::vector<ModelObject> AirTerminalSingleDuctSeriesPIUReheat_Impl::children() const { | |
| 439 | 6 | std::vector<ModelObject> result; | |
| 440 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalReheatCoil()) { |
| 441 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 442 | 6 | } | |
| 443 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalFan()) { |
| 444 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 445 | 6 | } | |
| 446 | 6 | return result; | |
| 447 | ✗ | } | |
| 448 | |||
| 449 | 3 | ModelObject AirTerminalSingleDuctSeriesPIUReheat_Impl::clone(Model model) const { | |
| 450 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto modelObjectClone = StraightComponent_Impl::clone(model).cast<AirTerminalSingleDuctSeriesPIUReheat>(); |
| 451 | |||
| 452 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | modelObjectClone.setString(modelObjectClone.secondaryAirInletPort(), ""); |
| 453 | |||
| 454 | // clone coil | ||
| 455 | |||
| 456 |
1/1✓ Branch 1 taken 3 times.
|
3 | HVACComponent coil = this->reheatCoil(); |
| 457 | |||
| 458 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto coilClone = coil.clone(model).cast<HVACComponent>(); |
| 459 | |||
| 460 |
1/1✓ Branch 1 taken 3 times.
|
3 | modelObjectClone.setReheatCoil(coilClone); |
| 461 | |||
| 462 | // clone fan | ||
| 463 | |||
| 464 |
1/1✓ Branch 1 taken 3 times.
|
3 | HVACComponent fan = this->fan(); |
| 465 | |||
| 466 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto fanClone = fan.clone(model).cast<HVACComponent>(); |
| 467 | |||
| 468 |
1/1✓ Branch 1 taken 3 times.
|
3 | modelObjectClone.setFan(fanClone); |
| 469 | |||
| 470 | 6 | return std::move(modelObjectClone); | |
| 471 | 3 | } | |
| 472 | |||
| 473 | ✗ | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setInducedAirPlenumZone(ThermalZone& plenumZone) { | |
| 474 | ✗ | bool result = true; | |
| 475 | |||
| 476 | ✗ | if (!plenumZone.isPlenum()) { | |
| 477 | ✗ | result = false; | |
| 478 | } | ||
| 479 | |||
| 480 | ✗ | boost::optional<Node> t_secondaryAirInletNode; | |
| 481 | ✗ | if (result) { | |
| 482 | ✗ | t_secondaryAirInletNode = secondaryAirInletNode(); | |
| 483 | ✗ | if (!t_secondaryAirInletNode) { | |
| 484 | ✗ | result = false; | |
| 485 | } | ||
| 486 | } | ||
| 487 | |||
| 488 | ✗ | boost::optional<AirLoopHVACReturnPlenum> plenum; | |
| 489 | ✗ | if (result) { | |
| 490 | ✗ | plenum = plenumZone.getImpl<detail::ThermalZone_Impl>()->airLoopHVACReturnPlenum(); | |
| 491 | ✗ | if (!plenum) { | |
| 492 | ✗ | result = false; | |
| 493 | } | ||
| 494 | } | ||
| 495 | |||
| 496 | ✗ | if (result) { | |
| 497 | ✗ | Model t_model = model(); | |
| 498 | ✗ | PortList pl = plenum->getImpl<detail::AirLoopHVACReturnPlenum_Impl>()->inducedAirOutletPortList(); | |
| 499 | ✗ | t_model.connect(pl, pl.nextPort(), t_secondaryAirInletNode.get(), t_secondaryAirInletNode->inletPort()); | |
| 500 | ✗ | } | |
| 501 | |||
| 502 | ✗ | return result; | |
| 503 | ✗ | } | |
| 504 | |||
| 505 | 14 | bool AirTerminalSingleDuctSeriesPIUReheat_Impl::setFanAvailabilitySchedule(Schedule& schedule) { | |
| 506 |
1/1✓ Branch 1 taken 14 times.
|
14 | auto component = fan(); |
| 507 | // TODO: from E+ 9.2.0 IDD: \note Fan type must be Fan:SystemModel or Fan:ConstantVolume | ||
| 508 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 13 times.
✓ Branch 4 taken 1 time.
|
28 | if (auto constantFan = component.optionalCast<FanConstantVolume>()) { |
| 509 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | return constantFan->setAvailabilitySchedule(schedule); |
| 510 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if (auto systemModelFan = component.optionalCast<FanSystemModel>()) { |
| 511 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return systemModelFan->setAvailabilitySchedule(schedule); |
| 512 | ✗ | } else if (auto onOffFan = component.optionalCast<FanOnOff>()) { | |
| 513 | ✗ | return onOffFan->setAvailabilitySchedule(schedule); | |
| 514 | ✗ | } else if (auto variableFan = component.optionalCast<FanVariableVolume>()) { | |
| 515 | ✗ | return variableFan->setAvailabilitySchedule(schedule); | |
| 516 | } else { | ||
| 517 | // Should never get here! | ||
| 518 | ✗ | LOG(Error, "Unknown assigned Fan Type ('" << component.iddObjectType().valueName() << "') for " << briefDescription()); | |
| 519 | ✗ | return false; | |
| 520 | 15 | } | |
| 521 | 14 | } | |
| 522 | |||
| 523 | 1 | std::vector<IdfObject> AirTerminalSingleDuctSeriesPIUReheat_Impl::remove() { | |
| 524 |
1/1✓ Branch 1 taken 1 time.
|
1 | Model _model = this->model(); |
| 525 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto thisObject = this->getObject<ModelObject>(); |
| 526 | |||
| 527 |
1/1✓ Branch 1 taken 1 time.
|
1 | HVACComponent _reheatCoil = reheatCoil(); |
| 528 | |||
| 529 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObject> sourceModelObject = this->inletModelObject(); |
| 530 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort()); |
| 531 | |||
| 532 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObject> targetModelObject = this->outletModelObject(); |
| 533 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort()); |
| 534 | |||
| 535 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>(); |
| 536 |
1/2✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
|
1 | for (auto& thermalZone : thermalZones) { |
| 537 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<ModelObject> equipment = thermalZone.equipment(); |
| 538 | |||
| 539 |
2/3✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
1 | if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) { |
| 540 |
1/1✓ Branch 1 taken 1 time.
|
1 | thermalZone.removeEquipment(thisObject); |
| 541 | |||
| 542 | 1 | break; | |
| 543 | } | ||
| 544 | 1 | } | |
| 545 | |||
| 546 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<Node> secondaryAirInletNode = this->secondaryAirInletNode()) { |
| 547 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | secondaryAirInletNode->disconnect(); |
| 548 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | secondaryAirInletNode->remove(); |
| 549 | 1 | } | |
| 550 | |||
| 551 |
5/10✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
4 | if (sourcePort && sourceModelObject && targetPort && targetModelObject) { |
| 552 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> inletNode = sourceModelObject->optionalCast<Node>()) { |
| 553 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<ModelObject> source2ModelObject = inletNode->inletModelObject()) { |
| 554 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
|
2 | if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) { |
| 555 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
1 | _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get()); |
| 556 | |||
| 557 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | inletNode->disconnect(); |
| 558 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | inletNode->remove(); |
| 559 | |||
| 560 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (boost::optional<PlantLoop> loop = _reheatCoil.plantLoop()) { |
| 561 | ✗ | loop->removeDemandBranchWithComponent(_reheatCoil); | |
| 562 | 1 | } | |
| 563 | |||
| 564 |
1/1✓ Branch 1 taken 1 time.
|
2 | return StraightComponent_Impl::remove(); |
| 565 | } | ||
| 566 | 1 | } | |
| 567 | 1 | } | |
| 568 | } | ||
| 569 | |||
| 570 | ✗ | model().disconnect(getObject<ModelObject>(), inletPort()); | |
| 571 | ✗ | model().disconnect(getObject<ModelObject>(), outletPort()); | |
| 572 | |||
| 573 | ✗ | if (boost::optional<PlantLoop> loop = _reheatCoil.plantLoop()) { | |
| 574 | ✗ | loop->removeDemandBranchWithComponent(_reheatCoil); | |
| 575 | ✗ | } | |
| 576 | |||
| 577 | ✗ | return StraightComponent_Impl::remove(); | |
| 578 | 1 | } | |
| 579 | |||
| 580 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizedMaximumAirFlowRate() const { | |
| 581 | ✗ | return getAutosizedValue("Design Size Maximum Air Flow Rate", "m3/s"); | |
| 582 | } | ||
| 583 | |||
| 584 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizedMaximumPrimaryAirFlowRate() const { | |
| 585 | ✗ | return getAutosizedValue("Design Size Maximum Primary Air Flow Rate", "m3/s"); | |
| 586 | } | ||
| 587 | |||
| 588 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizedMinimumPrimaryAirFlowFraction() const { | |
| 589 | ✗ | return getAutosizedValue("Design Size Minimum Primary Air Flow Fraction", ""); | |
| 590 | } | ||
| 591 | |||
| 592 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat_Impl::autosizedMaximumHotWaterorSteamFlowRate() const { | |
| 593 | ✗ | return getAutosizedValue("Design Size Maximum Reheat Water Flow Rate", "m3/s"); | |
| 594 | } | ||
| 595 | |||
| 596 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat_Impl::autosize() { | |
| 597 | ✗ | autosizeMaximumAirFlowRate(); | |
| 598 | ✗ | autosizeMaximumPrimaryAirFlowRate(); | |
| 599 | ✗ | autosizeMinimumPrimaryAirFlowFraction(); | |
| 600 | ✗ | autosizeMaximumHotWaterorSteamFlowRate(); | |
| 601 | ✗ | } | |
| 602 | |||
| 603 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat_Impl::applySizingValues() { | |
| 604 | ✗ | boost::optional<double> val; | |
| 605 | ✗ | val = autosizedMaximumAirFlowRate(); | |
| 606 | ✗ | if (val) { | |
| 607 | ✗ | setMaximumAirFlowRate(val.get()); | |
| 608 | } | ||
| 609 | |||
| 610 | ✗ | val = autosizedMaximumPrimaryAirFlowRate(); | |
| 611 | ✗ | if (val) { | |
| 612 | ✗ | setMaximumPrimaryAirFlowRate(val.get()); | |
| 613 | } | ||
| 614 | |||
| 615 | ✗ | val = autosizedMinimumPrimaryAirFlowFraction(); | |
| 616 | ✗ | if (val) { | |
| 617 | ✗ | setMinimumPrimaryAirFlowFraction(val.get()); | |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | val = autosizedMaximumHotWaterorSteamFlowRate(); | |
| 621 | ✗ | if (val) { | |
| 622 | ✗ | setMaximumHotWaterorSteamFlowRate(val.get()); | |
| 623 | } | ||
| 624 | ✗ | } | |
| 625 | |||
| 626 | ✗ | ComponentType AirTerminalSingleDuctSeriesPIUReheat_Impl::componentType() const { | |
| 627 | ✗ | ComponentType loopType = ComponentType::None; | |
| 628 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 629 | ✗ | loopType = a_->componentType(); | |
| 630 | ✗ | } | |
| 631 | ✗ | if ((loopType == ComponentType::Both) or (loopType == ComponentType::Cooling)) { | |
| 632 | ✗ | return ComponentType::Both; | |
| 633 | } | ||
| 634 | |||
| 635 | ✗ | return ComponentType::Heating; | |
| 636 | } | ||
| 637 | |||
| 638 | ✗ | std::vector<FuelType> AirTerminalSingleDuctSeriesPIUReheat_Impl::coolingFuelTypes() const { | |
| 639 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 640 | ✗ | return a_->coolingFuelTypes(); | |
| 641 | ✗ | } | |
| 642 | ✗ | return {}; | |
| 643 | } | ||
| 644 | |||
| 645 | ✗ | std::vector<FuelType> AirTerminalSingleDuctSeriesPIUReheat_Impl::heatingFuelTypes() const { | |
| 646 | ✗ | std::set<FuelType> result; | |
| 647 | ✗ | for (auto ft : reheatCoil().heatingFuelTypes()) { | |
| 648 | ✗ | result.insert(ft); | |
| 649 | ✗ | } | |
| 650 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 651 | ✗ | for (auto ft : a_->heatingFuelTypes()) { | |
| 652 | ✗ | result.insert(ft); | |
| 653 | ✗ | } | |
| 654 | ✗ | } | |
| 655 | ✗ | return {result.begin(), result.end()}; | |
| 656 | ✗ | } | |
| 657 | |||
| 658 | ✗ | std::vector<AppGFuelType> AirTerminalSingleDuctSeriesPIUReheat_Impl::appGHeatingFuelTypes() const { | |
| 659 | ✗ | std::set<AppGFuelType> result; | |
| 660 | ✗ | for (auto ft : reheatCoil().appGHeatingFuelTypes()) { | |
| 661 | ✗ | result.insert(ft); | |
| 662 | ✗ | } | |
| 663 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 664 | ✗ | for (auto ft : a_->appGHeatingFuelTypes()) { | |
| 665 | ✗ | result.insert(ft); | |
| 666 | ✗ | } | |
| 667 | ✗ | } | |
| 668 | ✗ | return {result.begin(), result.end()}; | |
| 669 | ✗ | } | |
| 670 | |||
| 671 | } // namespace detail | ||
| 672 | |||
| 673 | 15 | AirTerminalSingleDuctSeriesPIUReheat::AirTerminalSingleDuctSeriesPIUReheat(const Model& model, HVACComponent& fan, HVACComponent& reheatCoil) | |
| 674 | 15 | : StraightComponent(AirTerminalSingleDuctSeriesPIUReheat::iddObjectType(), model) { | |
| 675 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 5 not taken.
|
15 | OS_ASSERT(getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()); |
| 676 | |||
| 677 |
1/1✓ Branch 1 taken 15 times.
|
15 | bool ok = setFan(fan); |
| 678 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (!ok) { |
| 679 | ✗ | remove(); | |
| 680 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Fan to " << fan.briefDescription() << "."); | |
| 681 | } | ||
| 682 |
1/1✓ Branch 1 taken 15 times.
|
15 | setReheatCoil(reheatCoil); |
| 683 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (!ok) { |
| 684 | ✗ | remove(); | |
| 685 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Reheat Coil to " << reheatCoil.briefDescription() << "."); | |
| 686 | } | ||
| 687 | |||
| 688 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeMaximumAirFlowRate(); |
| 689 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeMaximumPrimaryAirFlowRate(); |
| 690 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeMinimumPrimaryAirFlowFraction(); |
| 691 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeMaximumHotWaterorSteamFlowRate(); |
| 692 |
1/1✓ Branch 1 taken 15 times.
|
15 | setMinimumHotWaterorSteamFlowRate(0.0); |
| 693 |
1/1✓ Branch 1 taken 15 times.
|
15 | setConvergenceTolerance(0.001); |
| 694 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
15 | setFanControlType("ConstantSpeed"); |
| 695 |
1/1✓ Branch 1 taken 15 times.
|
15 | setMinimumFanTurnDownRatio(0.3); |
| 696 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
15 | setHeatingControlType("Staged"); |
| 697 |
1/1✓ Branch 1 taken 15 times.
|
15 | setDesignHeatingDischargeAirTemperature(32.1); |
| 698 |
1/1✓ Branch 1 taken 15 times.
|
15 | setHighLimitHeatingDischargeAirTemperature(37.7); |
| 699 | 15 | } | |
| 700 | |||
| 701 | 8539 | IddObjectType AirTerminalSingleDuctSeriesPIUReheat::iddObjectType() { | |
| 702 |
1/1✓ Branch 1 taken 8539 times.
|
8539 | return {IddObjectType::OS_AirTerminal_SingleDuct_SeriesPIU_Reheat}; |
| 703 | } | ||
| 704 | |||
| 705 | ✗ | std::vector<std::string> AirTerminalSingleDuctSeriesPIUReheat::fanControlTypeValues() { | |
| 706 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanControlType); | |
| 707 | } | ||
| 708 | |||
| 709 | ✗ | std::vector<std::string> AirTerminalSingleDuctSeriesPIUReheat::heatingControlTypeValues() { | |
| 710 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 711 | ✗ | OS_AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HeatingControlType); | |
| 712 | } | ||
| 713 | |||
| 714 | 5 | boost::optional<Schedule> AirTerminalSingleDuctSeriesPIUReheat::availabilitySchedule() const { | |
| 715 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->availabilitySchedule(); |
| 716 | } | ||
| 717 | |||
| 718 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::maximumAirFlowRate() const { | |
| 719 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->maximumAirFlowRate(); |
| 720 | } | ||
| 721 | |||
| 722 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat::isMaximumAirFlowRateAutosized() const { | |
| 723 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->isMaximumAirFlowRateAutosized(); |
| 724 | } | ||
| 725 | |||
| 726 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::maximumPrimaryAirFlowRate() const { | |
| 727 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->maximumPrimaryAirFlowRate(); |
| 728 | } | ||
| 729 | |||
| 730 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat::isMaximumPrimaryAirFlowRateAutosized() const { | |
| 731 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->isMaximumPrimaryAirFlowRateAutosized(); |
| 732 | } | ||
| 733 | |||
| 734 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::minimumPrimaryAirFlowFraction() const { | |
| 735 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->minimumPrimaryAirFlowFraction(); |
| 736 | } | ||
| 737 | |||
| 738 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat::isMinimumPrimaryAirFlowFractionAutosized() const { | |
| 739 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->isMinimumPrimaryAirFlowFractionAutosized(); |
| 740 | } | ||
| 741 | |||
| 742 | 11 | HVACComponent AirTerminalSingleDuctSeriesPIUReheat::fan() const { | |
| 743 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->fan(); |
| 744 | } | ||
| 745 | |||
| 746 | 16 | HVACComponent AirTerminalSingleDuctSeriesPIUReheat::reheatCoil() const { | |
| 747 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->reheatCoil(); |
| 748 | } | ||
| 749 | |||
| 750 | 1 | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::maximumHotWaterorSteamFlowRate() const { | |
| 751 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->maximumHotWaterorSteamFlowRate(); |
| 752 | } | ||
| 753 | |||
| 754 | 5 | bool AirTerminalSingleDuctSeriesPIUReheat::isMaximumHotWaterorSteamFlowRateAutosized() const { | |
| 755 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->isMaximumHotWaterorSteamFlowRateAutosized(); |
| 756 | } | ||
| 757 | |||
| 758 | 5 | double AirTerminalSingleDuctSeriesPIUReheat::minimumHotWaterorSteamFlowRate() const { | |
| 759 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->minimumHotWaterorSteamFlowRate(); |
| 760 | } | ||
| 761 | |||
| 762 | 5 | double AirTerminalSingleDuctSeriesPIUReheat::convergenceTolerance() const { | |
| 763 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->convergenceTolerance(); |
| 764 | } | ||
| 765 | |||
| 766 | 10 | std::string AirTerminalSingleDuctSeriesPIUReheat::fanControlType() const { | |
| 767 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->fanControlType(); |
| 768 | } | ||
| 769 | |||
| 770 | 7 | double AirTerminalSingleDuctSeriesPIUReheat::minimumFanTurnDownRatio() const { | |
| 771 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->minimumFanTurnDownRatio(); |
| 772 | } | ||
| 773 | |||
| 774 | 7 | std::string AirTerminalSingleDuctSeriesPIUReheat::heatingControlType() const { | |
| 775 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->heatingControlType(); |
| 776 | } | ||
| 777 | |||
| 778 | 7 | double AirTerminalSingleDuctSeriesPIUReheat::designHeatingDischargeAirTemperature() const { | |
| 779 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->designHeatingDischargeAirTemperature(); |
| 780 | } | ||
| 781 | |||
| 782 | 7 | double AirTerminalSingleDuctSeriesPIUReheat::highLimitHeatingDischargeAirTemperature() const { | |
| 783 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->highLimitHeatingDischargeAirTemperature(); |
| 784 | } | ||
| 785 | |||
| 786 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat::setAvailabilitySchedule(Schedule& schedule) { | |
| 787 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setAvailabilitySchedule(schedule); |
| 788 | } | ||
| 789 | |||
| 790 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat::resetAvailabilitySchedule() { | |
| 791 | ✗ | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->resetAvailabilitySchedule(); | |
| 792 | ✗ | } | |
| 793 | |||
| 794 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat::setMaximumAirFlowRate(double maximumAirFlowRate) { | |
| 795 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMaximumAirFlowRate(maximumAirFlowRate); |
| 796 | } | ||
| 797 | |||
| 798 | 15 | void AirTerminalSingleDuctSeriesPIUReheat::autosizeMaximumAirFlowRate() { | |
| 799 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizeMaximumAirFlowRate(); |
| 800 | 15 | } | |
| 801 | |||
| 802 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat::setMaximumPrimaryAirFlowRate(double maximumPrimaryAirFlowRate) { | |
| 803 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMaximumPrimaryAirFlowRate(maximumPrimaryAirFlowRate); |
| 804 | } | ||
| 805 | |||
| 806 | 15 | void AirTerminalSingleDuctSeriesPIUReheat::autosizeMaximumPrimaryAirFlowRate() { | |
| 807 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizeMaximumPrimaryAirFlowRate(); |
| 808 | 15 | } | |
| 809 | |||
| 810 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat::setMinimumPrimaryAirFlowFraction(double minimumPrimaryAirFlowFraction) { | |
| 811 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMinimumPrimaryAirFlowFraction(minimumPrimaryAirFlowFraction); |
| 812 | } | ||
| 813 | |||
| 814 | 15 | void AirTerminalSingleDuctSeriesPIUReheat::autosizeMinimumPrimaryAirFlowFraction() { | |
| 815 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizeMinimumPrimaryAirFlowFraction(); |
| 816 | 15 | } | |
| 817 | |||
| 818 | 20 | bool AirTerminalSingleDuctSeriesPIUReheat::setFan(const HVACComponent& fan) { | |
| 819 |
1/1✓ Branch 3 taken 20 times.
|
20 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setFan(fan); |
| 820 | } | ||
| 821 | |||
| 822 | 18 | bool AirTerminalSingleDuctSeriesPIUReheat::setReheatCoil(const HVACComponent& coil) { | |
| 823 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setReheatCoil(coil); |
| 824 | } | ||
| 825 | |||
| 826 | 1 | bool AirTerminalSingleDuctSeriesPIUReheat::setMaximumHotWaterorSteamFlowRate(double maximumHotWaterorSteamFlowRate) { | |
| 827 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMaximumHotWaterorSteamFlowRate(maximumHotWaterorSteamFlowRate); |
| 828 | } | ||
| 829 | |||
| 830 | ✗ | void AirTerminalSingleDuctSeriesPIUReheat::resetMaximumHotWaterorSteamFlowRate() { | |
| 831 | ✗ | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->resetMaximumHotWaterorSteamFlowRate(); | |
| 832 | ✗ | } | |
| 833 | |||
| 834 | 15 | void AirTerminalSingleDuctSeriesPIUReheat::autosizeMaximumHotWaterorSteamFlowRate() { | |
| 835 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizeMaximumHotWaterorSteamFlowRate(); |
| 836 | 15 | } | |
| 837 | |||
| 838 | 16 | bool AirTerminalSingleDuctSeriesPIUReheat::setMinimumHotWaterorSteamFlowRate(double minimumHotWaterorSteamFlowRate) { | |
| 839 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMinimumHotWaterorSteamFlowRate(minimumHotWaterorSteamFlowRate); |
| 840 | } | ||
| 841 | |||
| 842 | 16 | bool AirTerminalSingleDuctSeriesPIUReheat::setConvergenceTolerance(double convergenceTolerance) { | |
| 843 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setConvergenceTolerance(convergenceTolerance); |
| 844 | } | ||
| 845 | |||
| 846 | 18 | bool AirTerminalSingleDuctSeriesPIUReheat::setFanControlType(const std::string& fanControlType) { | |
| 847 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setFanControlType(fanControlType); |
| 848 | } | ||
| 849 | |||
| 850 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat::setMinimumFanTurnDownRatio(double minimumFanTurnDownRatio) { | |
| 851 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setMinimumFanTurnDownRatio(minimumFanTurnDownRatio); |
| 852 | } | ||
| 853 | |||
| 854 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat::setHeatingControlType(const std::string& heatingControlType) { | |
| 855 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setHeatingControlType(heatingControlType); |
| 856 | } | ||
| 857 | |||
| 858 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat::setDesignHeatingDischargeAirTemperature(double designHeatingDischargeAirTemperature) { | |
| 859 |
1/1✓ Branch 3 taken 17 times.
|
34 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setDesignHeatingDischargeAirTemperature( |
| 860 | 34 | designHeatingDischargeAirTemperature); | |
| 861 | } | ||
| 862 | |||
| 863 | 17 | bool AirTerminalSingleDuctSeriesPIUReheat::setHighLimitHeatingDischargeAirTemperature(double highLimitHeatingDischargeAirTemperature) { | |
| 864 |
1/1✓ Branch 3 taken 17 times.
|
34 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->setHighLimitHeatingDischargeAirTemperature( |
| 865 | 34 | highLimitHeatingDischargeAirTemperature); | |
| 866 | } | ||
| 867 | |||
| 868 | 4 | unsigned AirTerminalSingleDuctSeriesPIUReheat::secondaryAirInletPort() const { | |
| 869 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->secondaryAirInletPort(); |
| 870 | } | ||
| 871 | |||
| 872 | 14 | boost::optional<Node> AirTerminalSingleDuctSeriesPIUReheat::secondaryAirInletNode() const { | |
| 873 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->secondaryAirInletNode(); |
| 874 | } | ||
| 875 | |||
| 876 | /// @cond | ||
| 877 | 22 | AirTerminalSingleDuctSeriesPIUReheat::AirTerminalSingleDuctSeriesPIUReheat(std::shared_ptr<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl> impl) | |
| 878 |
1/1✓ Branch 3 taken 22 times.
|
22 | : StraightComponent(std::move(impl)) {} |
| 879 | /// @endcond | ||
| 880 | |||
| 881 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::autosizedMaximumAirFlowRate() const { | |
| 882 | ✗ | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizedMaximumAirFlowRate(); | |
| 883 | } | ||
| 884 | |||
| 885 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::autosizedMaximumPrimaryAirFlowRate() const { | |
| 886 | ✗ | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizedMaximumPrimaryAirFlowRate(); | |
| 887 | } | ||
| 888 | |||
| 889 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::autosizedMinimumPrimaryAirFlowFraction() const { | |
| 890 | ✗ | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizedMinimumPrimaryAirFlowFraction(); | |
| 891 | } | ||
| 892 | |||
| 893 | ✗ | boost::optional<double> AirTerminalSingleDuctSeriesPIUReheat::autosizedMaximumHotWaterorSteamFlowRate() const { | |
| 894 | ✗ | return getImpl<detail::AirTerminalSingleDuctSeriesPIUReheat_Impl>()->autosizedMaximumHotWaterorSteamFlowRate(); | |
| 895 | } | ||
| 896 | |||
| 897 | } // namespace model | ||
| 898 | } // namespace openstudio | ||
| 899 |