src/model/ZoneHVACPackagedTerminalHeatPump.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 "ZoneHVACPackagedTerminalHeatPump.hpp" | ||
| 7 | #include "ZoneHVACPackagedTerminalHeatPump_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Schedule.hpp" | ||
| 10 | #include "Schedule_Impl.hpp" | ||
| 11 | #include "Model.hpp" | ||
| 12 | #include "Model_Impl.hpp" | ||
| 13 | #include "HVACComponent.hpp" | ||
| 14 | #include "HVACComponent_Impl.hpp" | ||
| 15 | #include "WaterToAirComponent.hpp" | ||
| 16 | #include "WaterToAirComponent_Impl.hpp" | ||
| 17 | |||
| 18 | #include <utilities/idd/IddFactory.hxx> | ||
| 19 | |||
| 20 | #include <utilities/idd/OS_ZoneHVAC_PackagedTerminalHeatPump_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | |||
| 23 | #include "../utilities/core/Assert.hpp" | ||
| 24 | #include "../utilities/data/DataEnums.hpp" | ||
| 25 | |||
| 26 | namespace openstudio { | ||
| 27 | namespace model { | ||
| 28 | |||
| 29 | namespace detail { | ||
| 30 | |||
| 31 | 21 | ZoneHVACPackagedTerminalHeatPump_Impl::ZoneHVACPackagedTerminalHeatPump_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 32 | 21 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 33 |
4/6✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 7 taken 21 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 21 times.
✗ Branch 13 not taken.
|
21 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACPackagedTerminalHeatPump::iddObjectType()); |
| 34 | 21 | } | |
| 35 | |||
| 36 | 3 | ZoneHVACPackagedTerminalHeatPump_Impl::ZoneHVACPackagedTerminalHeatPump_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 37 | 3 | Model_Impl* model, bool keepHandle) | |
| 38 | 3 | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 39 |
4/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
|
3 | OS_ASSERT(other.iddObject().type() == ZoneHVACPackagedTerminalHeatPump::iddObjectType()); |
| 40 | 3 | } | |
| 41 | |||
| 42 | 6 | ZoneHVACPackagedTerminalHeatPump_Impl::ZoneHVACPackagedTerminalHeatPump_Impl(const ZoneHVACPackagedTerminalHeatPump_Impl& other, | |
| 43 | 6 | Model_Impl* model, bool keepHandle) | |
| 44 | 6 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 45 | |||
| 46 | 1 | ModelObject ZoneHVACPackagedTerminalHeatPump_Impl::clone(Model model) const { | |
| 47 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | auto pthpClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACPackagedTerminalHeatPump>(); |
| 48 | |||
| 49 | //Schedule scheduleClone = this->availabilitySchedule().clone(model).cast<Schedule>(); | ||
| 50 | |||
| 51 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto supplyFanClone = this->supplyAirFan().clone(model).cast<HVACComponent>(); |
| 52 | |||
| 53 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto t_heatingCoil = heatingCoil(); |
| 54 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | auto heatingCoilClone = t_heatingCoil.clone(model).cast<HVACComponent>(); |
| 55 | |||
| 56 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto t_coolingCoil = coolingCoil(); |
| 57 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | auto coolingCoilClone = t_coolingCoil.clone(model).cast<HVACComponent>(); |
| 58 | |||
| 59 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto supplementalHeatingCoilClone = this->supplementalHeatingCoil().clone(model).cast<HVACComponent>(); |
| 60 | |||
| 61 | //pthpClone.setAvailabilitySchedule(scheduleClone); | ||
| 62 | |||
| 63 |
1/1✓ Branch 1 taken 1 time.
|
1 | pthpClone.setSupplyAirFan(supplyFanClone); |
| 64 | |||
| 65 |
1/1✓ Branch 1 taken 1 time.
|
1 | pthpClone.setHeatingCoil(heatingCoilClone); |
| 66 | |||
| 67 |
1/1✓ Branch 1 taken 1 time.
|
1 | pthpClone.setCoolingCoil(coolingCoilClone); |
| 68 | |||
| 69 |
1/1✓ Branch 1 taken 1 time.
|
1 | pthpClone.setSupplementalHeatingCoil(supplementalHeatingCoilClone); |
| 70 | |||
| 71 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 7 not taken.
✓ Branch 8 taken 1 time.
|
1 | if (model == this->model()) { |
| 72 | ✗ | if (auto waterToAirComponent = t_coolingCoil.optionalCast<WaterToAirComponent>()) { | |
| 73 | ✗ | if (auto plant = waterToAirComponent->plantLoop()) { | |
| 74 | ✗ | plant->addDemandBranchForComponent(coolingCoilClone); | |
| 75 | ✗ | } | |
| 76 | ✗ | } | |
| 77 | ✗ | if (auto waterToAirComponent = t_heatingCoil.optionalCast<WaterToAirComponent>()) { | |
| 78 | ✗ | if (auto plant = waterToAirComponent->plantLoop()) { | |
| 79 | ✗ | plant->addDemandBranchForComponent(heatingCoilClone); | |
| 80 | ✗ | } | |
| 81 | ✗ | } | |
| 82 | } | ||
| 83 | |||
| 84 | 2 | return std::move(pthpClone); | |
| 85 | 1 | } | |
| 86 | |||
| 87 | ✗ | const std::vector<std::string>& ZoneHVACPackagedTerminalHeatPump_Impl::outputVariableNames() const { | |
| 88 | static const std::vector<std::string> result{ | ||
| 89 | "Zone Packaged Terminal Heat Pump Total Heating Rate", "Zone Packaged Terminal Heat Pump Total Heating Energy", | ||
| 90 | "Zone Packaged Terminal Heat Pump Total Cooling Rate", "Zone Packaged Terminal Heat Pump Total Cooling Energy", | ||
| 91 | "Zone Packaged Terminal Heat Pump Sensible Heating Rate", "Zone Packaged Terminal Heat Pump Sensible Heating Energy", | ||
| 92 | "Zone Packaged Terminal Heat Pump Sensible Cooling Rate", "Zone Packaged Terminal Heat Pump Sensible Cooling Energy", | ||
| 93 | "Zone Packaged Terminal Heat Pump Latent Heating Rate", "Zone Packaged Terminal Heat Pump Latent Heating Energy", | ||
| 94 | "Zone Packaged Terminal Heat Pump Latent Cooling Rate", "Zone Packaged Terminal Heat Pump Latent Cooling Energy", | ||
| 95 | "Zone Packaged Terminal Heat Pump Electricity Rate", "Zone Packaged Terminal Heat Pump Electricity Energy", | ||
| 96 | "Zone Packaged Terminal Heat Pump Fan Part Load Ratio", "Zone Packaged Terminal Heat Pump Compressor Part Load Ratio", | ||
| 97 | ✗ | "Zone Packaged Terminal Heat Pump Fan Availability Status"}; | |
| 98 | ✗ | return result; | |
| 99 | ✗ | } | |
| 100 | |||
| 101 | 16 | IddObjectType ZoneHVACPackagedTerminalHeatPump_Impl::iddObjectType() const { | |
| 102 | 16 | return ZoneHVACPackagedTerminalHeatPump::iddObjectType(); | |
| 103 | } | ||
| 104 | |||
| 105 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACPackagedTerminalHeatPump_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 106 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 107 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 108 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 109 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 110 | ✗ | if (std::find(b, e, OS_ZoneHVAC_PackagedTerminalHeatPumpFields::AvailabilityScheduleName) != e) { | |
| 111 | ✗ | result.emplace_back("ZoneHVACPackagedTerminalHeatPump", "Availability"); | |
| 112 | } | ||
| 113 | ✗ | if (std::find(b, e, OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFanOperatingModeScheduleName) != e) { | |
| 114 | ✗ | result.emplace_back("ZoneHVACPackagedTerminalHeatPump", "Supply Air Fan Operating Mode"); | |
| 115 | } | ||
| 116 | ✗ | return result; | |
| 117 | ✗ | } | |
| 118 | |||
| 119 | 6 | std::vector<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::children() const { | |
| 120 | 6 | std::vector<ModelObject> result; | |
| 121 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalSupplyAirFan()) { |
| 122 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 123 | 6 | } | |
| 124 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalHeatingCoil()) { |
| 125 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 126 | 6 | } | |
| 127 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalCoolingCoil()) { |
| 128 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 129 | 6 | } | |
| 130 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (OptionalHVACComponent intermediate = optionalSupplementalHeatingCoil()) { |
| 131 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(*intermediate); |
| 132 | 6 | } | |
| 133 | 6 | return result; | |
| 134 | ✗ | } | |
| 135 | |||
| 136 | 42 | unsigned ZoneHVACPackagedTerminalHeatPump_Impl::inletPort() const { | |
| 137 | 42 | return OS_ZoneHVAC_PackagedTerminalHeatPumpFields::AirInletNodeName; | |
| 138 | } | ||
| 139 | |||
| 140 | 18 | unsigned ZoneHVACPackagedTerminalHeatPump_Impl::outletPort() const { | |
| 141 | 18 | return OS_ZoneHVAC_PackagedTerminalHeatPumpFields::AirOutletNodeName; | |
| 142 | } | ||
| 143 | |||
| 144 | 5 | Schedule ZoneHVACPackagedTerminalHeatPump_Impl::availabilitySchedule() const { | |
| 145 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 146 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
|
5 | if (!value) { |
| 147 | // it is an error if we get here, however we don't want to crash | ||
| 148 | // so we hook up to global always on schedule | ||
| 149 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 150 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 151 | ✗ | OS_ASSERT(value); | |
| 152 | ✗ | const_cast<ZoneHVACPackagedTerminalHeatPump_Impl*>(this)->setAvailabilitySchedule(*value); // NOLINT | |
| 153 | ✗ | value = optionalAvailabilitySchedule(); | |
| 154 | } | ||
| 155 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 156 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 157 | 5 | } | |
| 158 | |||
| 159 | 4 | std::string ZoneHVACPackagedTerminalHeatPump_Impl::outdoorAirMixerObjectType() const { | |
| 160 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirMixerObjectType, true); |
| 161 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 162 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 163 | 4 | } | |
| 164 | |||
| 165 | ✗ | std::string ZoneHVACPackagedTerminalHeatPump_Impl::outdoorAirMixerName() const { | |
| 166 | ✗ | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirMixerName, true); | |
| 167 | ✗ | OS_ASSERT(value); | |
| 168 | ✗ | return value.get(); | |
| 169 | ✗ | } | |
| 170 | |||
| 171 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFlowRateDuringCoolingOperation() const { | |
| 172 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringCoolingOperation, true); | |
| 173 | } | ||
| 174 | |||
| 175 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 176 | 4 | bool result = false; | |
| 177 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringCoolingOperation, true); |
| 178 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 179 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 180 | } | ||
| 181 | 4 | return result; | |
| 182 | 4 | } | |
| 183 | |||
| 184 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFlowRateDuringHeatingOperation() const { | |
| 185 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringHeatingOperation, true); | |
| 186 | } | ||
| 187 | |||
| 188 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 189 | 4 | bool result = false; | |
| 190 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringHeatingOperation, true); |
| 191 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 192 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 193 | } | ||
| 194 | 4 | return result; | |
| 195 | 4 | } | |
| 196 | |||
| 197 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 198 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true); | |
| 199 | } | ||
| 200 | |||
| 201 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 202 | 4 | bool result = false; | |
| 203 | boost::optional<std::string> value = | ||
| 204 |
1/1✓ Branch 1 taken 4 times.
|
4 | getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true); |
| 205 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 206 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 207 | } | ||
| 208 | 4 | return result; | |
| 209 | 4 | } | |
| 210 | |||
| 211 | 6 | bool ZoneHVACPackagedTerminalHeatPump_Impl::noLoadSupplyAirFlowRateControlSetToLowSpeed() const { | |
| 212 | 6 | return getBooleanFieldValue(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::NoLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 213 | } | ||
| 214 | |||
| 215 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 216 | 8 | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringCoolingOperation, true); | |
| 217 | } | ||
| 218 | |||
| 219 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 220 | 4 | bool result = false; | |
| 221 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringCoolingOperation, true); |
| 222 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 223 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 224 | } | ||
| 225 | 4 | return result; | |
| 226 | 4 | } | |
| 227 | |||
| 228 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 229 | 8 | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringHeatingOperation, true); | |
| 230 | } | ||
| 231 | |||
| 232 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 233 | 4 | bool result = false; | |
| 234 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringHeatingOperation, true); |
| 235 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 236 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 237 | } | ||
| 238 | 4 | return result; | |
| 239 | 4 | } | |
| 240 | |||
| 241 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 242 | 8 | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); | |
| 243 | } | ||
| 244 | |||
| 245 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 246 | 4 | bool result = false; | |
| 247 | boost::optional<std::string> value = | ||
| 248 |
1/1✓ Branch 1 taken 4 times.
|
4 | getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); |
| 249 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 250 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 251 | } | ||
| 252 | 4 | return result; | |
| 253 | 4 | } | |
| 254 | |||
| 255 | 8 | HVACComponent ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFan() const { | |
| 256 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<HVACComponent> result = optionalSupplyAirFan(); |
| 257 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
✗ Branch 4 not taken.
|
8 | OS_ASSERT(result); |
| 258 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return result.get(); |
| 259 | 8 | } | |
| 260 | |||
| 261 | 14 | HVACComponent ZoneHVACPackagedTerminalHeatPump_Impl::heatingCoil() const { | |
| 262 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<HVACComponent> result = optionalHeatingCoil(); |
| 263 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(result); |
| 264 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return result.get(); |
| 265 | 14 | } | |
| 266 | |||
| 267 | 4 | double ZoneHVACPackagedTerminalHeatPump_Impl::heatingConvergenceTolerance() const { | |
| 268 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingConvergenceTolerance, true); |
| 269 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 270 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 271 | } | ||
| 272 | |||
| 273 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::isHeatingConvergenceToleranceDefaulted() const { | |
| 274 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingConvergenceTolerance); | |
| 275 | } | ||
| 276 | |||
| 277 | ✗ | double ZoneHVACPackagedTerminalHeatPump_Impl::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 278 | boost::optional<double> value = | ||
| 279 | ✗ | getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, true); | |
| 280 | ✗ | OS_ASSERT(value); | |
| 281 | ✗ | return value.get(); | |
| 282 | } | ||
| 283 | |||
| 284 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::isMinimumOutdoorDryBulbTemperatureforCompressorOperationDefaulted() const { | |
| 285 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation); | |
| 286 | } | ||
| 287 | |||
| 288 | 17 | HVACComponent ZoneHVACPackagedTerminalHeatPump_Impl::coolingCoil() const { | |
| 289 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<HVACComponent> result = optionalCoolingCoil(); |
| 290 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
✗ Branch 4 not taken.
|
17 | OS_ASSERT(result); |
| 291 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return result.get(); |
| 292 | 17 | } | |
| 293 | |||
| 294 | 4 | double ZoneHVACPackagedTerminalHeatPump_Impl::coolingConvergenceTolerance() const { | |
| 295 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingConvergenceTolerance, true); |
| 296 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 297 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 298 | } | ||
| 299 | |||
| 300 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::isCoolingConvergenceToleranceDefaulted() const { | |
| 301 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingConvergenceTolerance); | |
| 302 | } | ||
| 303 | |||
| 304 | 16 | HVACComponent ZoneHVACPackagedTerminalHeatPump_Impl::supplementalHeatingCoil() const { | |
| 305 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<HVACComponent> result = optionalSupplementalHeatingCoil(); |
| 306 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(result); |
| 307 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | return result.get(); |
| 308 | 16 | } | |
| 309 | |||
| 310 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::maximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 311 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumSupplyAirTemperaturefromSupplementalHeater, true); | |
| 312 | } | ||
| 313 | |||
| 314 | 4 | bool ZoneHVACPackagedTerminalHeatPump_Impl::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const { | |
| 315 | 4 | bool result = false; | |
| 316 | boost::optional<std::string> value = | ||
| 317 |
1/1✓ Branch 1 taken 4 times.
|
4 | getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumSupplyAirTemperaturefromSupplementalHeater, true); |
| 318 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 319 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 320 | } | ||
| 321 | 4 | return result; | |
| 322 | 4 | } | |
| 323 | |||
| 324 | 4 | double ZoneHVACPackagedTerminalHeatPump_Impl::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const { | |
| 325 | boost::optional<double> value = | ||
| 326 |
1/1✓ Branch 1 taken 4 times.
|
4 | getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, true); |
| 327 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 328 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 329 | } | ||
| 330 | |||
| 331 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::isMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperationDefaulted() const { | |
| 332 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | |
| 333 | } | ||
| 334 | |||
| 335 | 16 | std::string ZoneHVACPackagedTerminalHeatPump_Impl::fanPlacement() const { | |
| 336 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::FanPlacement, true); |
| 337 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 338 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | return value.get(); |
| 339 | 16 | } | |
| 340 | |||
| 341 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::isFanPlacementDefaulted() const { | |
| 342 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::FanPlacement); | |
| 343 | } | ||
| 344 | |||
| 345 | 7 | Schedule ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFanOperatingModeSchedule() const { | |
| 346 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Schedule> value = optionalSupplyAirFanOperatingModeSchedule(); |
| 347 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 348 | // it is an error if we get here, however we don't want to crash | ||
| 349 | // so we hook up to global always on schedule | ||
| 350 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always Off' schedule"); | |
| 351 | ✗ | value = this->model().alwaysOffDiscreteSchedule(); | |
| 352 | ✗ | OS_ASSERT(value); | |
| 353 | ✗ | const_cast<ZoneHVACPackagedTerminalHeatPump_Impl*>(this)->setSupplyAirFanOperatingModeSchedule(*value); // NOLINT | |
| 354 | ✗ | value = optionalSupplyAirFanOperatingModeSchedule(); | |
| 355 | } | ||
| 356 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 357 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 358 | 7 | } | |
| 359 | |||
| 360 | 4 | double ZoneHVACPackagedTerminalHeatPump_Impl::dXHeatingCoilSizingRatio() const { | |
| 361 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::DXHeatingCoilSizingRatio, true); |
| 362 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 363 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 364 | } | ||
| 365 | |||
| 366 | 18 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 367 |
3/3✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 18 times.
|
72 | bool result = setSchedule(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::AvailabilityScheduleName, "ZoneHVACPackagedTerminalHeatPump", |
| 368 | "Availability", schedule); | ||
| 369 | 18 | return result; | |
| 370 | } | ||
| 371 | |||
| 372 | 18 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) { | |
| 373 | 18 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirMixerObjectType, outdoorAirMixerObjectType); | |
| 374 | 18 | return result; | |
| 375 | } | ||
| 376 | |||
| 377 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) { | |
| 378 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirMixerName, outdoorAirMixerName); | |
| 379 | ✗ | OS_ASSERT(result); | |
| 380 | ✗ | return result; | |
| 381 | } | ||
| 382 | |||
| 383 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFlowRateDuringCoolingOperation( | |
| 384 | boost::optional<double> supplyAirFlowRateDuringCoolingOperation) { | ||
| 385 | ✗ | bool result = false; | |
| 386 | ✗ | if (supplyAirFlowRateDuringCoolingOperation) { | |
| 387 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringCoolingOperation, | |
| 388 | ✗ | supplyAirFlowRateDuringCoolingOperation.get()); | |
| 389 | } else { | ||
| 390 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringCoolingOperation, ""); | |
| 391 | } | ||
| 392 | ✗ | return result; | |
| 393 | } | ||
| 394 | |||
| 395 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 396 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringCoolingOperation, "Autosize"); |
| 397 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 398 | 18 | } | |
| 399 | |||
| 400 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFlowRateDuringHeatingOperation( | |
| 401 | boost::optional<double> supplyAirFlowRateDuringHeatingOperation) { | ||
| 402 | ✗ | bool result = false; | |
| 403 | ✗ | if (supplyAirFlowRateDuringHeatingOperation) { | |
| 404 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringHeatingOperation, | |
| 405 | ✗ | supplyAirFlowRateDuringHeatingOperation.get()); | |
| 406 | } else { | ||
| 407 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringHeatingOperation, ""); | |
| 408 | } | ||
| 409 | ✗ | return result; | |
| 410 | } | ||
| 411 | |||
| 412 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 413 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateDuringHeatingOperation, "Autosize"); |
| 414 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 415 | 18 | } | |
| 416 | |||
| 417 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 418 | boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 419 | ✗ | bool result = false; | |
| 420 | ✗ | if (supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 421 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, | |
| 422 | ✗ | supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.get()); | |
| 423 | } else { | ||
| 424 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 425 | } | ||
| 426 | ✗ | return result; | |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 430 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 431 | ✗ | OS_ASSERT(result); | |
| 432 | ✗ | } | |
| 433 | |||
| 434 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 435 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, "Autosize"); |
| 436 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 437 | 18 | } | |
| 438 | |||
| 439 | 19 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setNoLoadSupplyAirFlowRateControlSetToLowSpeed(bool noLoadSupplyAirFlowRateControlSetToLowSpeed) { | |
| 440 | 19 | return setBooleanFieldValue(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::NoLoadSupplyAirFlowRateControlSetToLowSpeed, | |
| 441 | 19 | noLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 442 | } | ||
| 443 | |||
| 444 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setOutdoorAirFlowRateDuringCoolingOperation( | |
| 445 | boost::optional<double> outdoorAirFlowRateDuringCoolingOperation) { | ||
| 446 | ✗ | bool result = false; | |
| 447 | ✗ | if (outdoorAirFlowRateDuringCoolingOperation) { | |
| 448 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringCoolingOperation, | |
| 449 | ✗ | outdoorAirFlowRateDuringCoolingOperation.get()); | |
| 450 | } else { | ||
| 451 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringCoolingOperation, ""); | |
| 452 | } | ||
| 453 | ✗ | return result; | |
| 454 | } | ||
| 455 | |||
| 456 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 457 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringCoolingOperation, "Autosize"); |
| 458 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 459 | 18 | } | |
| 460 | |||
| 461 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setOutdoorAirFlowRateDuringHeatingOperation( | |
| 462 | boost::optional<double> outdoorAirFlowRateDuringHeatingOperation) { | ||
| 463 | ✗ | bool result = false; | |
| 464 | ✗ | if (outdoorAirFlowRateDuringHeatingOperation) { | |
| 465 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringHeatingOperation, | |
| 466 | ✗ | outdoorAirFlowRateDuringHeatingOperation.get()); | |
| 467 | } else { | ||
| 468 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringHeatingOperation, ""); | |
| 469 | } | ||
| 470 | ✗ | return result; | |
| 471 | } | ||
| 472 | |||
| 473 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 474 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateDuringHeatingOperation, "Autosize"); |
| 475 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 476 | 18 | } | |
| 477 | |||
| 478 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 479 | boost::optional<double> outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 480 | ✗ | bool result = false; | |
| 481 | ✗ | if (outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 482 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, | |
| 483 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded.get()); | |
| 484 | } else { | ||
| 485 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 486 | } | ||
| 487 | ✗ | return result; | |
| 488 | } | ||
| 489 | |||
| 490 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 491 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 492 | ✗ | OS_ASSERT(result); | |
| 493 | ✗ | } | |
| 494 | |||
| 495 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 496 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, "Autosize"); |
| 497 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 498 | 18 | } | |
| 499 | |||
| 500 | 19 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFan(HVACComponent& fan) { | |
| 501 |
6/6✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 8 taken 5 times.
✓ Branch 11 taken 5 times.
✓ Branch 14 taken 3 times.
✓ Branch 15 taken 2 times.
|
24 | if ((fan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) || (fan.iddObjectType() == IddObjectType::OS_Fan_OnOff) |
| 502 |
6/8✓ Branch 0 taken 5 times.
✓ Branch 1 taken 14 times.
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 19 times.
✗ Branch 12 not taken.
|
24 | || (fan.iddObjectType() == IddObjectType::OS_Fan_SystemModel)) { |
| 503 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return setPointer(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFanName, fan.handle()); |
| 504 | } else { | ||
| 505 | ✗ | LOG(Warn, "Invalid Fan Type (expected FanConstantVolume, FanOnOff or FanSystemModel, not '" << fan.iddObjectType().valueName() << "') for " | |
| 506 | << briefDescription()); | ||
| 507 | ✗ | return false; | |
| 508 | } | ||
| 509 | } | ||
| 510 | |||
| 511 | 19 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setHeatingCoil(HVACComponent& hvacComponent) { | |
| 512 | 19 | bool isAllowedType = false; | |
| 513 | |||
| 514 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | if ((hvacComponent.iddObjectType() == IddObjectType::OS_Coil_Heating_DX_SingleSpeed) |
| 515 |
8/8✓ Branch 0 taken 10 times.
✓ Branch 1 taken 9 times.
✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
✓ Branch 9 taken 9 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 18 times.
✓ Branch 12 taken 1 time.
|
19 | || (hvacComponent.iddObjectType() == IddObjectType::OS_Coil_Heating_DX_VariableSpeed)) { |
| 516 | 18 | isAllowedType = true; | |
| 517 | } | ||
| 518 | |||
| 519 |
2/2✓ Branch 0 taken 18 times.
✓ Branch 1 taken 1 time.
|
19 | if (isAllowedType) { |
| 520 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return setPointer(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingCoilName, hvacComponent.handle()); |
| 521 | } else { | ||
| 522 |
11/11✓ 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.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, "Invalid Heating Coil Type (expected CoilHeatingDXSingleSpeed or CoilHeatingDXVariableSpeed, not '" |
| 523 | << hvacComponent.iddObjectType().valueName() << "') for " << briefDescription()); | ||
| 524 | 1 | return false; | |
| 525 | } | ||
| 526 | } | ||
| 527 | |||
| 528 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setHeatingConvergenceTolerance(double heatingConvergenceTolerance) { | |
| 529 | ✗ | bool result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingConvergenceTolerance, heatingConvergenceTolerance); | |
| 530 | ✗ | return result; | |
| 531 | } | ||
| 532 | |||
| 533 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetHeatingConvergenceTolerance() { | |
| 534 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingConvergenceTolerance, ""); | |
| 535 | ✗ | OS_ASSERT(result); | |
| 536 | ✗ | } | |
| 537 | |||
| 538 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 539 | double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | ||
| 540 | ✗ | bool result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, | |
| 541 | minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 542 | ✗ | return result; | |
| 543 | } | ||
| 544 | |||
| 545 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetMinimumOutdoorDryBulbTemperatureforCompressorOperation() { | |
| 546 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, ""); | |
| 547 | ✗ | OS_ASSERT(result); | |
| 548 | ✗ | } | |
| 549 | |||
| 550 | 20 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setCoolingCoil(HVACComponent& hvacComponent) { | |
| 551 | 20 | bool isAllowedType = false; | |
| 552 | |||
| 553 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | if ((hvacComponent.iddObjectType() == IddObjectType::OS_Coil_Cooling_DX_SingleSpeed) |
| 554 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 5 times.
✓ Branch 8 taken 7 times.
|
12 | || (hvacComponent.iddObjectType() == IddObjectType::OS_Coil_Cooling_DX_VariableSpeed) |
| 555 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 3 times.
|
5 | || (hvacComponent.iddObjectType() == IddObjectType::OS_CoilSystem_Cooling_DX_HeatExchangerAssisted) |
| 556 |
6/8✓ Branch 0 taken 12 times.
✓ Branch 1 taken 8 times.
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
✓ Branch 9 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 20 times.
✗ Branch 12 not taken.
|
32 | || (hvacComponent.iddObjectType() == IddObjectType::OS_Coil_Cooling_DX)) { |
| 557 | 20 | isAllowedType = true; | |
| 558 | } | ||
| 559 | |||
| 560 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | if (isAllowedType) { |
| 561 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | return setPointer(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingCoilName, hvacComponent.handle()); |
| 562 | } else { | ||
| 563 | ✗ | LOG(Warn, "Invalid Cooling Coil Type (expected CoilCoolingDXSingleSpeed or CoilSystemCoolingDXHeatExchangerAssisted or " | |
| 564 | "CoilCoolingDXVariableSpeed or CoilCoolingDX, not '" | ||
| 565 | << hvacComponent.iddObjectType().valueName() << "') for " << briefDescription()); | ||
| 566 | ✗ | return false; | |
| 567 | } | ||
| 568 | } | ||
| 569 | |||
| 570 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setCoolingConvergenceTolerance(double coolingConvergenceTolerance) { | |
| 571 | ✗ | bool result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingConvergenceTolerance, coolingConvergenceTolerance); | |
| 572 | ✗ | return result; | |
| 573 | } | ||
| 574 | |||
| 575 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetCoolingConvergenceTolerance() { | |
| 576 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingConvergenceTolerance, ""); | |
| 577 | ✗ | OS_ASSERT(result); | |
| 578 | ✗ | } | |
| 579 | |||
| 580 | 19 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplementalHeatingCoil(HVACComponent& hvacComponent) { | |
| 581 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return setPointer(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplementalHeatingCoilName, hvacComponent.handle()); |
| 582 | ; | ||
| 583 | } | ||
| 584 | |||
| 585 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setMaximumSupplyAirTemperaturefromSupplementalHeater( | |
| 586 | boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater) { | ||
| 587 | ✗ | bool result = false; | |
| 588 | ✗ | if (maximumSupplyAirTemperaturefromSupplementalHeater) { | |
| 589 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumSupplyAirTemperaturefromSupplementalHeater, | |
| 590 | ✗ | maximumSupplyAirTemperaturefromSupplementalHeater.get()); | |
| 591 | } else { | ||
| 592 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumSupplyAirTemperaturefromSupplementalHeater, ""); | |
| 593 | } | ||
| 594 | ✗ | OS_ASSERT(result); | |
| 595 | ✗ | return result; | |
| 596 | } | ||
| 597 | |||
| 598 | 18 | void ZoneHVACPackagedTerminalHeatPump_Impl::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() { | |
| 599 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumSupplyAirTemperaturefromSupplementalHeater, "Autosize"); |
| 600 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | OS_ASSERT(result); |
| 601 | 18 | } | |
| 602 | |||
| 603 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( | |
| 604 | double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) { | ||
| 605 | ✗ | bool result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, | |
| 606 | maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | ||
| 607 | ✗ | return result; | |
| 608 | } | ||
| 609 | |||
| 610 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() { | |
| 611 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, ""); | |
| 612 | ✗ | OS_ASSERT(result); | |
| 613 | ✗ | } | |
| 614 | |||
| 615 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setFanPlacement(const std::string& fanPlacement) { | |
| 616 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::FanPlacement, fanPlacement); | |
| 617 | ✗ | return result; | |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::resetFanPlacement() { | |
| 621 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::FanPlacement, ""); | |
| 622 | ✗ | OS_ASSERT(result); | |
| 623 | ✗ | } | |
| 624 | |||
| 625 | 18 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 626 |
3/3✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 18 times.
|
72 | bool result = setSchedule(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFanOperatingModeScheduleName, "ZoneHVACPackagedTerminalHeatPump", |
| 627 | "Supply Air Fan Operating Mode", schedule); | ||
| 628 | 18 | return result; | |
| 629 | } | ||
| 630 | |||
| 631 | 18 | bool ZoneHVACPackagedTerminalHeatPump_Impl::setDXHeatingCoilSizingRatio(double dxHeatingCoilSizingRatio) { | |
| 632 | 18 | bool result = setDouble(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::DXHeatingCoilSizingRatio, dxHeatingCoilSizingRatio); | |
| 633 | 18 | return result; | |
| 634 | } | ||
| 635 | |||
| 636 | 5 | boost::optional<Schedule> ZoneHVACPackagedTerminalHeatPump_Impl::optionalAvailabilitySchedule() const { | |
| 637 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::AvailabilityScheduleName); |
| 638 | } | ||
| 639 | 14 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalHeatPump_Impl::optionalSupplyAirFan() const { | |
| 640 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFanName); |
| 641 | } | ||
| 642 | 20 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalHeatPump_Impl::optionalHeatingCoil() const { | |
| 643 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::HeatingCoilName); |
| 644 | } | ||
| 645 | 23 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalHeatPump_Impl::optionalCoolingCoil() const { | |
| 646 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::CoolingCoilName); |
| 647 | } | ||
| 648 | 22 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalHeatPump_Impl::optionalSupplementalHeatingCoil() const { | |
| 649 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplementalHeatingCoilName); |
| 650 | } | ||
| 651 | |||
| 652 | 7 | boost::optional<Schedule> ZoneHVACPackagedTerminalHeatPump_Impl::optionalSupplyAirFanOperatingModeSchedule() const { | |
| 653 |
1/1✓ Branch 1 taken 7 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 654 |
1/1✓ Branch 1 taken 7 times.
|
14 | OS_ZoneHVAC_PackagedTerminalHeatPumpFields::SupplyAirFanOperatingModeScheduleName); |
| 655 | } | ||
| 656 | |||
| 657 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::availabilityScheduleAsModelObject() const { | |
| 658 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 659 | ✗ | return result; | |
| 660 | } | ||
| 661 | |||
| 662 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFanAsModelObject() const { | |
| 663 | ✗ | OptionalModelObject result = supplyAirFan(); | |
| 664 | ✗ | return result; | |
| 665 | } | ||
| 666 | |||
| 667 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::heatingCoilAsModelObject() const { | |
| 668 | ✗ | OptionalModelObject result = heatingCoil(); | |
| 669 | ✗ | return result; | |
| 670 | } | ||
| 671 | |||
| 672 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::coolingCoilAsModelObject() const { | |
| 673 | ✗ | OptionalModelObject result = coolingCoil(); | |
| 674 | ✗ | return result; | |
| 675 | } | ||
| 676 | |||
| 677 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::supplementalHeatingCoilAsModelObject() const { | |
| 678 | ✗ | OptionalModelObject result = supplementalHeatingCoil(); | |
| 679 | ✗ | return result; | |
| 680 | } | ||
| 681 | |||
| 682 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalHeatPump_Impl::supplyAirFanOperatingModeScheduleAsModelObject() const { | |
| 683 | ✗ | OptionalModelObject result; | |
| 684 | ✗ | OptionalSchedule intermediate = supplyAirFanOperatingModeSchedule(); | |
| 685 | ✗ | if (intermediate) { | |
| 686 | ✗ | result = *intermediate; | |
| 687 | } | ||
| 688 | ✗ | return result; | |
| 689 | ✗ | } | |
| 690 | |||
| 691 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 692 | ✗ | if (modelObject) { | |
| 693 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 694 | ✗ | if (intermediate) { | |
| 695 | ✗ | Schedule schedule(*intermediate); | |
| 696 | ✗ | return setAvailabilitySchedule(schedule); | |
| 697 | ✗ | } | |
| 698 | ✗ | } | |
| 699 | ✗ | return false; | |
| 700 | } | ||
| 701 | |||
| 702 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFanAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 703 | ✗ | if (modelObject) { | |
| 704 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 705 | ✗ | if (intermediate) { | |
| 706 | ✗ | setSupplyAirFan(*intermediate); | |
| 707 | ✗ | return true; | |
| 708 | } | ||
| 709 | ✗ | } | |
| 710 | ✗ | return false; | |
| 711 | } | ||
| 712 | |||
| 713 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setHeatingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 714 | ✗ | if (modelObject) { | |
| 715 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 716 | ✗ | if (intermediate) { | |
| 717 | ✗ | setHeatingCoil(*intermediate); | |
| 718 | ✗ | return true; | |
| 719 | } | ||
| 720 | ✗ | } | |
| 721 | ✗ | return false; | |
| 722 | } | ||
| 723 | |||
| 724 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setCoolingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 725 | ✗ | if (modelObject) { | |
| 726 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 727 | ✗ | if (intermediate) { | |
| 728 | ✗ | setCoolingCoil(*intermediate); | |
| 729 | ✗ | return true; | |
| 730 | } | ||
| 731 | ✗ | } | |
| 732 | ✗ | return false; | |
| 733 | } | ||
| 734 | |||
| 735 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplementalHeatingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 736 | ✗ | if (modelObject) { | |
| 737 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 738 | ✗ | if (intermediate) { | |
| 739 | ✗ | setSupplementalHeatingCoil(*intermediate); | |
| 740 | ✗ | return true; | |
| 741 | } | ||
| 742 | ✗ | } | |
| 743 | ✗ | return false; | |
| 744 | } | ||
| 745 | |||
| 746 | ✗ | bool ZoneHVACPackagedTerminalHeatPump_Impl::setSupplyAirFanOperatingModeScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 747 | ✗ | if (modelObject) { | |
| 748 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 749 | ✗ | if (intermediate) { | |
| 750 | ✗ | Schedule schedule(*intermediate); | |
| 751 | ✗ | return setSupplyAirFanOperatingModeSchedule(schedule); | |
| 752 | ✗ | } | |
| 753 | ✗ | } | |
| 754 | ✗ | return false; | |
| 755 | } | ||
| 756 | |||
| 757 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 758 | ✗ | return getAutosizedValue("Design Size Cooling Supply Air Flow Rate", "m3/s"); | |
| 759 | } | ||
| 760 | |||
| 761 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 762 | ✗ | return getAutosizedValue("Design Size Heating Supply Air Flow Rate", "m3/s"); | |
| 763 | } | ||
| 764 | |||
| 765 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 766 | ✗ | return getAutosizedValue("Design Size No Load Supply Air Flow Rate", "m3/s"); | |
| 767 | } | ||
| 768 | |||
| 769 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 770 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Cooling Operation", "m3/s"); | |
| 771 | } | ||
| 772 | |||
| 773 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 774 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Heating Operation", "m3/s"); | |
| 775 | } | ||
| 776 | |||
| 777 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 778 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate When No Cooling or Heating is Needed", "m3/s"); | |
| 779 | } | ||
| 780 | |||
| 781 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump_Impl::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 782 | ✗ | return getAutosizedValue("Design Size Maximum Supply Air Temperature from Supplemental Heater", "C"); | |
| 783 | } | ||
| 784 | |||
| 785 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::autosize() { | |
| 786 | ✗ | autosizeSupplyAirFlowRateDuringCoolingOperation(); | |
| 787 | ✗ | autosizeSupplyAirFlowRateDuringHeatingOperation(); | |
| 788 | ✗ | autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 789 | ✗ | autosizeOutdoorAirFlowRateDuringCoolingOperation(); | |
| 790 | ✗ | autosizeOutdoorAirFlowRateDuringHeatingOperation(); | |
| 791 | ✗ | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 792 | ✗ | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 793 | ✗ | } | |
| 794 | |||
| 795 | ✗ | void ZoneHVACPackagedTerminalHeatPump_Impl::applySizingValues() { | |
| 796 | ✗ | boost::optional<double> val; | |
| 797 | ✗ | val = autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 798 | ✗ | if (val) { | |
| 799 | ✗ | setSupplyAirFlowRateDuringCoolingOperation(val.get()); | |
| 800 | } | ||
| 801 | |||
| 802 | ✗ | val = autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 803 | ✗ | if (val) { | |
| 804 | ✗ | setSupplyAirFlowRateDuringHeatingOperation(val.get()); | |
| 805 | } | ||
| 806 | |||
| 807 | ✗ | val = autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 808 | ✗ | if (val) { | |
| 809 | ✗ | setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get()); | |
| 810 | } | ||
| 811 | |||
| 812 | ✗ | val = autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 813 | ✗ | if (val) { | |
| 814 | ✗ | setOutdoorAirFlowRateDuringCoolingOperation(val.get()); | |
| 815 | } | ||
| 816 | |||
| 817 | ✗ | val = autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 818 | ✗ | if (val) { | |
| 819 | ✗ | setOutdoorAirFlowRateDuringHeatingOperation(val.get()); | |
| 820 | } | ||
| 821 | |||
| 822 | ✗ | val = autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 823 | ✗ | if (val) { | |
| 824 | ✗ | setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get()); | |
| 825 | } | ||
| 826 | |||
| 827 | ✗ | val = autosizedMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 828 | ✗ | if (val) { | |
| 829 | ✗ | setMaximumSupplyAirTemperaturefromSupplementalHeater(val.get()); | |
| 830 | } | ||
| 831 | ✗ | } | |
| 832 | |||
| 833 | 4 | ComponentType ZoneHVACPackagedTerminalHeatPump_Impl::componentType() const { | |
| 834 |
1/1✓ Branch 1 taken 4 times.
|
4 | return ComponentType::Both; |
| 835 | } | ||
| 836 | |||
| 837 | 4 | std::vector<FuelType> ZoneHVACPackagedTerminalHeatPump_Impl::coolingFuelTypes() const { | |
| 838 | 4 | std::set<FuelType> result; | |
| 839 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
|
8 | for (auto ft : coolingCoil().coolingFuelTypes()) { |
| 840 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 841 | 4 | } | |
| 842 |
1/1✓ Branch 3 taken 4 times.
|
12 | return {result.begin(), result.end()}; |
| 843 | 4 | } | |
| 844 | |||
| 845 | 4 | std::vector<FuelType> ZoneHVACPackagedTerminalHeatPump_Impl::heatingFuelTypes() const { | |
| 846 | 4 | std::set<FuelType> result; | |
| 847 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
|
8 | for (auto ft : heatingCoil().heatingFuelTypes()) { |
| 848 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 849 | 4 | } | |
| 850 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
|
8 | for (auto ft : supplementalHeatingCoil().heatingFuelTypes()) { |
| 851 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 852 | 4 | } | |
| 853 |
1/1✓ Branch 3 taken 4 times.
|
12 | return {result.begin(), result.end()}; |
| 854 | 4 | } | |
| 855 | |||
| 856 | 4 | std::vector<AppGFuelType> ZoneHVACPackagedTerminalHeatPump_Impl::appGHeatingFuelTypes() const { | |
| 857 | 4 | std::set<AppGFuelType> result; | |
| 858 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
|
8 | for (auto ft : heatingCoil().appGHeatingFuelTypes()) { |
| 859 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 860 | 4 | } | |
| 861 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
|
8 | for (auto ft : supplementalHeatingCoil().appGHeatingFuelTypes()) { |
| 862 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 863 | 4 | } | |
| 864 |
1/1✓ Branch 3 taken 4 times.
|
12 | return {result.begin(), result.end()}; |
| 865 | 4 | } | |
| 866 | |||
| 867 | } // namespace detail | ||
| 868 | |||
| 869 | 18 | ZoneHVACPackagedTerminalHeatPump::ZoneHVACPackagedTerminalHeatPump(const Model& model, Schedule& availabilitySchedule, HVACComponent& supplyAirFan, | |
| 870 | HVACComponent& heatingCoil, HVACComponent& coolingCoil, | ||
| 871 | 18 | HVACComponent& supplementalHeatingCoil) | |
| 872 | 18 | : ZoneHVACComponent(ZoneHVACPackagedTerminalHeatPump::iddObjectType(), model) { | |
| 873 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 18 times.
✗ Branch 5 not taken.
|
18 | OS_ASSERT(getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()); |
| 874 | |||
| 875 |
1/1✓ Branch 1 taken 18 times.
|
18 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 876 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | if (!ok) { |
| 877 | ✗ | remove(); | |
| 878 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 879 | } | ||
| 880 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | setOutdoorAirMixerObjectType("OutdoorAir:Mixer"); |
| 881 |
1/1✓ Branch 1 taken 18 times.
|
18 | setSupplyAirFan(supplyAirFan); |
| 882 |
1/1✓ Branch 1 taken 18 times.
|
18 | setHeatingCoil(heatingCoil); |
| 883 |
1/1✓ Branch 1 taken 18 times.
|
18 | setCoolingCoil(coolingCoil); |
| 884 |
1/1✓ Branch 1 taken 18 times.
|
18 | setSupplementalHeatingCoil(supplementalHeatingCoil); |
| 885 | // When Blank, E+ defaults to 0 (cycling). If it's a FanConstantVolume though, you must provide an always On or E+ will Fatal. | ||
| 886 |
4/4✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 13 times.
✓ Branch 8 taken 5 times.
|
18 | if (supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) { |
| 887 |
1/1✓ Branch 1 taken 13 times.
|
13 | auto alwaysOn = model.alwaysOnDiscreteSchedule(); |
| 888 |
1/1✓ Branch 1 taken 13 times.
|
13 | ok = setSupplyAirFanOperatingModeSchedule(alwaysOn); |
| 889 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
✗ Branch 3 not taken.
|
13 | OS_ASSERT(ok); |
| 890 | 13 | } else { | |
| 891 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto alwaysOff = model.alwaysOffDiscreteSchedule(); |
| 892 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSupplyAirFanOperatingModeSchedule(alwaysOff); |
| 893 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 894 | 5 | } | |
| 895 | |||
| 896 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 897 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 898 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 899 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 900 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 901 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 902 |
1/1✓ Branch 1 taken 18 times.
|
18 | setNoLoadSupplyAirFlowRateControlSetToLowSpeed(true); |
| 903 |
1/1✓ Branch 1 taken 18 times.
|
18 | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 904 |
1/1✓ Branch 1 taken 18 times.
|
18 | setDXHeatingCoilSizingRatio(1.0); |
| 905 | 18 | } | |
| 906 | |||
| 907 | 7990 | IddObjectType ZoneHVACPackagedTerminalHeatPump::iddObjectType() { | |
| 908 |
1/1✓ Branch 1 taken 7990 times.
|
7990 | IddObjectType result(IddObjectType::OS_ZoneHVAC_PackagedTerminalHeatPump); |
| 909 | 7990 | return result; | |
| 910 | } | ||
| 911 | |||
| 912 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalHeatPump::outdoorAirMixerObjectTypeValues() { | |
| 913 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 914 | ✗ | OS_ZoneHVAC_PackagedTerminalHeatPumpFields::OutdoorAirMixerObjectType); | |
| 915 | } | ||
| 916 | |||
| 917 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalHeatPump::validOutdoorAirMixerObjectTypeValues() { | |
| 918 | ✗ | return ZoneHVACPackagedTerminalHeatPump::outdoorAirMixerObjectTypeValues(); | |
| 919 | } | ||
| 920 | |||
| 921 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalHeatPump::fanPlacementValues() { | |
| 922 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_PackagedTerminalHeatPumpFields::FanPlacement); | |
| 923 | } | ||
| 924 | |||
| 925 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalHeatPump::validFanPlacementValues() { | |
| 926 | ✗ | return ZoneHVACPackagedTerminalHeatPump::fanPlacementValues(); | |
| 927 | } | ||
| 928 | |||
| 929 | 4 | std::string ZoneHVACPackagedTerminalHeatPump::outdoorAirMixerObjectType() const { | |
| 930 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->outdoorAirMixerObjectType(); |
| 931 | } | ||
| 932 | |||
| 933 | ✗ | std::string ZoneHVACPackagedTerminalHeatPump::outdoorAirMixerName() const { | |
| 934 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->outdoorAirMixerName(); | |
| 935 | } | ||
| 936 | |||
| 937 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::supplyAirFlowRateDuringCoolingOperation() const { | |
| 938 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplyAirFlowRateDuringCoolingOperation(); | |
| 939 | } | ||
| 940 | |||
| 941 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 942 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isSupplyAirFlowRateDuringCoolingOperationAutosized(); |
| 943 | } | ||
| 944 | |||
| 945 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::supplyAirFlowRateDuringHeatingOperation() const { | |
| 946 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplyAirFlowRateDuringHeatingOperation(); | |
| 947 | } | ||
| 948 | |||
| 949 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 950 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isSupplyAirFlowRateDuringHeatingOperationAutosized(); |
| 951 | } | ||
| 952 | |||
| 953 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 954 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 955 | } | ||
| 956 | |||
| 957 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 958 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized(); |
| 959 | } | ||
| 960 | |||
| 961 | 6 | bool ZoneHVACPackagedTerminalHeatPump::noLoadSupplyAirFlowRateControlSetToLowSpeed() const { | |
| 962 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->noLoadSupplyAirFlowRateControlSetToLowSpeed(); |
| 963 | } | ||
| 964 | |||
| 965 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 966 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->outdoorAirFlowRateDuringCoolingOperation(); |
| 967 | } | ||
| 968 | |||
| 969 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 970 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isOutdoorAirFlowRateDuringCoolingOperationAutosized(); |
| 971 | } | ||
| 972 | |||
| 973 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 974 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->outdoorAirFlowRateDuringHeatingOperation(); |
| 975 | } | ||
| 976 | |||
| 977 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 978 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isOutdoorAirFlowRateDuringHeatingOperationAutosized(); |
| 979 | } | ||
| 980 | |||
| 981 | 8 | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 982 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 983 | } | ||
| 984 | |||
| 985 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 986 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized(); |
| 987 | } | ||
| 988 | |||
| 989 | 4 | double ZoneHVACPackagedTerminalHeatPump::heatingConvergenceTolerance() const { | |
| 990 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->heatingConvergenceTolerance(); |
| 991 | } | ||
| 992 | |||
| 993 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::isHeatingConvergenceToleranceDefaulted() const { | |
| 994 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isHeatingConvergenceToleranceDefaulted(); | |
| 995 | } | ||
| 996 | |||
| 997 | ✗ | double ZoneHVACPackagedTerminalHeatPump::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 998 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->minimumOutdoorDryBulbTemperatureforCompressorOperation(); | |
| 999 | } | ||
| 1000 | |||
| 1001 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::isMinimumOutdoorDryBulbTemperatureforCompressorOperationDefaulted() const { | |
| 1002 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isMinimumOutdoorDryBulbTemperatureforCompressorOperationDefaulted(); | |
| 1003 | } | ||
| 1004 | |||
| 1005 | 4 | double ZoneHVACPackagedTerminalHeatPump::coolingConvergenceTolerance() const { | |
| 1006 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->coolingConvergenceTolerance(); |
| 1007 | } | ||
| 1008 | |||
| 1009 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::isCoolingConvergenceToleranceDefaulted() const { | |
| 1010 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isCoolingConvergenceToleranceDefaulted(); | |
| 1011 | } | ||
| 1012 | |||
| 1013 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::maximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 1014 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->maximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 1015 | } | ||
| 1016 | |||
| 1017 | 4 | bool ZoneHVACPackagedTerminalHeatPump::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const { | |
| 1018 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized(); |
| 1019 | } | ||
| 1020 | |||
| 1021 | 4 | double ZoneHVACPackagedTerminalHeatPump::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const { | |
| 1022 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(); |
| 1023 | } | ||
| 1024 | |||
| 1025 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::isMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperationDefaulted() const { | |
| 1026 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperationDefaulted(); | |
| 1027 | } | ||
| 1028 | |||
| 1029 | 16 | std::string ZoneHVACPackagedTerminalHeatPump::fanPlacement() const { | |
| 1030 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->fanPlacement(); |
| 1031 | } | ||
| 1032 | |||
| 1033 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::isFanPlacementDefaulted() const { | |
| 1034 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->isFanPlacementDefaulted(); | |
| 1035 | } | ||
| 1036 | |||
| 1037 | 18 | bool ZoneHVACPackagedTerminalHeatPump::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) { | |
| 1038 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setOutdoorAirMixerObjectType(outdoorAirMixerObjectType); |
| 1039 | } | ||
| 1040 | |||
| 1041 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) { | |
| 1042 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setOutdoorAirMixerName(outdoorAirMixerName); | |
| 1043 | } | ||
| 1044 | |||
| 1045 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setSupplyAirFlowRateDuringCoolingOperation(double supplyAirFlowRateDuringCoolingOperation) { | |
| 1046 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplyAirFlowRateDuringCoolingOperation( | |
| 1047 | ✗ | supplyAirFlowRateDuringCoolingOperation); | |
| 1048 | } | ||
| 1049 | |||
| 1050 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 1051 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 1052 | 18 | } | |
| 1053 | |||
| 1054 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setSupplyAirFlowRateDuringHeatingOperation(double supplyAirFlowRateDuringHeatingOperation) { | |
| 1055 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplyAirFlowRateDuringHeatingOperation( | |
| 1056 | ✗ | supplyAirFlowRateDuringHeatingOperation); | |
| 1057 | } | ||
| 1058 | |||
| 1059 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 1060 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 1061 | 18 | } | |
| 1062 | |||
| 1063 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(double supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 1064 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 1065 | ✗ | supplyAirFlowRateWhenNoCoolingorHeatingisNeeded); | |
| 1066 | } | ||
| 1067 | |||
| 1068 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 1069 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 1070 | ✗ | } | |
| 1071 | |||
| 1072 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 1073 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1074 | 18 | } | |
| 1075 | |||
| 1076 | 19 | bool ZoneHVACPackagedTerminalHeatPump::setNoLoadSupplyAirFlowRateControlSetToLowSpeed(bool noLoadSupplyAirFlowRateControlSetToLowSpeed) { | |
| 1077 |
1/1✓ Branch 3 taken 19 times.
|
38 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setNoLoadSupplyAirFlowRateControlSetToLowSpeed( |
| 1078 | 38 | noLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 1079 | } | ||
| 1080 | |||
| 1081 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setOutdoorAirFlowRateDuringCoolingOperation(double outdoorAirFlowRateDuringCoolingOperation) { | |
| 1082 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setOutdoorAirFlowRateDuringCoolingOperation( | |
| 1083 | ✗ | outdoorAirFlowRateDuringCoolingOperation); | |
| 1084 | } | ||
| 1085 | |||
| 1086 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 1087 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 1088 | 18 | } | |
| 1089 | |||
| 1090 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setOutdoorAirFlowRateDuringHeatingOperation(double outdoorAirFlowRateDuringHeatingOperation) { | |
| 1091 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setOutdoorAirFlowRateDuringHeatingOperation( | |
| 1092 | ✗ | outdoorAirFlowRateDuringHeatingOperation); | |
| 1093 | } | ||
| 1094 | |||
| 1095 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 1096 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 1097 | 18 | } | |
| 1098 | |||
| 1099 | bool | ||
| 1100 | ✗ | ZoneHVACPackagedTerminalHeatPump::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(double outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 1101 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 1102 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded); | |
| 1103 | } | ||
| 1104 | |||
| 1105 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 1106 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 1107 | ✗ | } | |
| 1108 | |||
| 1109 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 1110 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1111 | 18 | } | |
| 1112 | |||
| 1113 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setHeatingConvergenceTolerance(double heatingConvergenceTolerance) { | |
| 1114 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setHeatingConvergenceTolerance(heatingConvergenceTolerance); | |
| 1115 | } | ||
| 1116 | |||
| 1117 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetHeatingConvergenceTolerance() { | |
| 1118 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetHeatingConvergenceTolerance(); | |
| 1119 | ✗ | } | |
| 1120 | |||
| 1121 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 1122 | double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | ||
| 1123 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 1124 | ✗ | minimumOutdoorDryBulbTemperatureforCompressorOperation); | |
| 1125 | } | ||
| 1126 | |||
| 1127 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetMinimumOutdoorDryBulbTemperatureforCompressorOperation() { | |
| 1128 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetMinimumOutdoorDryBulbTemperatureforCompressorOperation(); | |
| 1129 | ✗ | } | |
| 1130 | |||
| 1131 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setCoolingConvergenceTolerance(double coolingConvergenceTolerance) { | |
| 1132 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setCoolingConvergenceTolerance(coolingConvergenceTolerance); | |
| 1133 | } | ||
| 1134 | |||
| 1135 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetCoolingConvergenceTolerance() { | |
| 1136 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetCoolingConvergenceTolerance(); | |
| 1137 | ✗ | } | |
| 1138 | |||
| 1139 | bool | ||
| 1140 | ✗ | ZoneHVACPackagedTerminalHeatPump::setMaximumSupplyAirTemperaturefromSupplementalHeater(double maximumSupplyAirTemperaturefromSupplementalHeater) { | |
| 1141 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setMaximumSupplyAirTemperaturefromSupplementalHeater( | |
| 1142 | ✗ | maximumSupplyAirTemperaturefromSupplementalHeater); | |
| 1143 | } | ||
| 1144 | |||
| 1145 | 18 | void ZoneHVACPackagedTerminalHeatPump::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() { | |
| 1146 |
1/1✓ Branch 3 taken 18 times.
|
18 | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 1147 | 18 | } | |
| 1148 | |||
| 1149 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( | |
| 1150 | double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) { | ||
| 1151 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( | |
| 1152 | ✗ | maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | |
| 1153 | } | ||
| 1154 | |||
| 1155 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() { | |
| 1156 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(); | |
| 1157 | ✗ | } | |
| 1158 | |||
| 1159 | ✗ | bool ZoneHVACPackagedTerminalHeatPump::setFanPlacement(const std::string& fanPlacement) { | |
| 1160 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setFanPlacement(fanPlacement); | |
| 1161 | } | ||
| 1162 | |||
| 1163 | ✗ | void ZoneHVACPackagedTerminalHeatPump::resetFanPlacement() { | |
| 1164 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->resetFanPlacement(); | |
| 1165 | ✗ | } | |
| 1166 | |||
| 1167 | 18 | bool ZoneHVACPackagedTerminalHeatPump::setAvailabilitySchedule(Schedule& schedule) { | |
| 1168 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setAvailabilitySchedule(schedule); |
| 1169 | } | ||
| 1170 | |||
| 1171 | 18 | bool ZoneHVACPackagedTerminalHeatPump::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 1172 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplyAirFanOperatingModeSchedule(schedule); |
| 1173 | } | ||
| 1174 | |||
| 1175 | 18 | bool ZoneHVACPackagedTerminalHeatPump::setDXHeatingCoilSizingRatio(double dxHeatingCoilSizingRatio) { | |
| 1176 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setDXHeatingCoilSizingRatio(dxHeatingCoilSizingRatio); |
| 1177 | } | ||
| 1178 | |||
| 1179 | 19 | bool ZoneHVACPackagedTerminalHeatPump::setSupplyAirFan(HVACComponent& hvacComponent) { | |
| 1180 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplyAirFan(hvacComponent); |
| 1181 | } | ||
| 1182 | |||
| 1183 | 19 | bool ZoneHVACPackagedTerminalHeatPump::setHeatingCoil(HVACComponent& hvacComponent) { | |
| 1184 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setHeatingCoil(hvacComponent); |
| 1185 | } | ||
| 1186 | |||
| 1187 | 19 | bool ZoneHVACPackagedTerminalHeatPump::setSupplementalHeatingCoil(HVACComponent& hvacComponent) { | |
| 1188 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setSupplementalHeatingCoil(hvacComponent); |
| 1189 | } | ||
| 1190 | |||
| 1191 | 20 | bool ZoneHVACPackagedTerminalHeatPump::setCoolingCoil(HVACComponent& hvacComponent) { | |
| 1192 |
1/1✓ Branch 3 taken 20 times.
|
20 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->setCoolingCoil(hvacComponent); |
| 1193 | } | ||
| 1194 | |||
| 1195 | 5 | Schedule ZoneHVACPackagedTerminalHeatPump::availabilitySchedule() const { | |
| 1196 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->availabilitySchedule(); |
| 1197 | } | ||
| 1198 | |||
| 1199 | 7 | Schedule ZoneHVACPackagedTerminalHeatPump::supplyAirFanOperatingModeSchedule() const { | |
| 1200 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplyAirFanOperatingModeSchedule(); |
| 1201 | } | ||
| 1202 | |||
| 1203 | 4 | double ZoneHVACPackagedTerminalHeatPump::dXHeatingCoilSizingRatio() const { | |
| 1204 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->dXHeatingCoilSizingRatio(); |
| 1205 | } | ||
| 1206 | |||
| 1207 | 7 | HVACComponent ZoneHVACPackagedTerminalHeatPump::supplyAirFan() const { | |
| 1208 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplyAirFan(); |
| 1209 | } | ||
| 1210 | |||
| 1211 | 5 | HVACComponent ZoneHVACPackagedTerminalHeatPump::heatingCoil() const { | |
| 1212 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->heatingCoil(); |
| 1213 | } | ||
| 1214 | |||
| 1215 | 7 | HVACComponent ZoneHVACPackagedTerminalHeatPump::supplementalHeatingCoil() const { | |
| 1216 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->supplementalHeatingCoil(); |
| 1217 | } | ||
| 1218 | |||
| 1219 | 12 | HVACComponent ZoneHVACPackagedTerminalHeatPump::coolingCoil() const { | |
| 1220 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->coolingCoil(); |
| 1221 | } | ||
| 1222 | |||
| 1223 | /// @cond | ||
| 1224 | 15 | ZoneHVACPackagedTerminalHeatPump::ZoneHVACPackagedTerminalHeatPump(std::shared_ptr<detail::ZoneHVACPackagedTerminalHeatPump_Impl> impl) | |
| 1225 |
1/1✓ Branch 3 taken 15 times.
|
15 | : ZoneHVACComponent(std::move(impl)) {} |
| 1226 | /// @endcond | ||
| 1227 | |||
| 1228 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 1229 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 1230 | } | ||
| 1231 | |||
| 1232 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 1233 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 1234 | } | ||
| 1235 | |||
| 1236 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 1237 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 1238 | } | ||
| 1239 | |||
| 1240 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 1241 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 1242 | } | ||
| 1243 | |||
| 1244 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 1245 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 1246 | } | ||
| 1247 | |||
| 1248 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 1249 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 1250 | } | ||
| 1251 | |||
| 1252 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalHeatPump::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 1253 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalHeatPump_Impl>()->autosizedMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 1254 | } | ||
| 1255 | |||
| 1256 | } // namespace model | ||
| 1257 | } // namespace openstudio | ||
| 1258 |