src/model/ZoneHVACPackagedTerminalAirConditioner.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 "ZoneHVACPackagedTerminalAirConditioner.hpp" | ||
| 7 | #include "ZoneHVACPackagedTerminalAirConditioner_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Schedule.hpp" | ||
| 10 | #include "Schedule_Impl.hpp" | ||
| 11 | #include "HVACComponent.hpp" | ||
| 12 | #include "HVACComponent_Impl.hpp" | ||
| 13 | #include "WaterToAirComponent.hpp" | ||
| 14 | #include "WaterToAirComponent_Impl.hpp" | ||
| 15 | #include "CoilHeatingWater.hpp" | ||
| 16 | #include "CoilHeatingWater_Impl.hpp" | ||
| 17 | #include "Model.hpp" | ||
| 18 | #include "Model_Impl.hpp" | ||
| 19 | #include <utilities/idd/IddFactory.hxx> | ||
| 20 | |||
| 21 | #include <utilities/idd/OS_ZoneHVAC_PackagedTerminalAirConditioner_FieldEnums.hxx> | ||
| 22 | #include <utilities/idd/IddEnums.hxx> | ||
| 23 | |||
| 24 | #include "../utilities/core/Assert.hpp" | ||
| 25 | #include "../utilities/data/DataEnums.hpp" | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | namespace model { | ||
| 29 | |||
| 30 | namespace detail { | ||
| 31 | |||
| 32 | 24 | ZoneHVACPackagedTerminalAirConditioner_Impl::ZoneHVACPackagedTerminalAirConditioner_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 33 | 24 | bool keepHandle) | |
| 34 | 24 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 35 |
4/6✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 24 times.
✗ Branch 13 not taken.
|
24 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACPackagedTerminalAirConditioner::iddObjectType()); |
| 36 | 24 | } | |
| 37 | |||
| 38 | 2 | ZoneHVACPackagedTerminalAirConditioner_Impl::ZoneHVACPackagedTerminalAirConditioner_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 39 | 2 | Model_Impl* model, bool keepHandle) | |
| 40 | 2 | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 41 |
4/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
|
2 | OS_ASSERT(other.iddObject().type() == ZoneHVACPackagedTerminalAirConditioner::iddObjectType()); |
| 42 | 2 | } | |
| 43 | |||
| 44 | 13 | ZoneHVACPackagedTerminalAirConditioner_Impl::ZoneHVACPackagedTerminalAirConditioner_Impl(const ZoneHVACPackagedTerminalAirConditioner_Impl& other, | |
| 45 | 13 | Model_Impl* model, bool keepHandle) | |
| 46 | 13 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 47 | |||
| 48 | 2 | ModelObject ZoneHVACPackagedTerminalAirConditioner_Impl::clone(Model model) const { | |
| 49 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto ptacClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACPackagedTerminalAirConditioner>(); |
| 50 | |||
| 51 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto supplyFanClone = this->supplyAirFan().clone(model).cast<HVACComponent>(); |
| 52 | |||
| 53 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto t_heatingCoil = heatingCoil(); |
| 54 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto heatingCoilClone = t_heatingCoil.clone(model).cast<HVACComponent>(); |
| 55 | |||
| 56 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto t_coolingCoil = coolingCoil(); |
| 57 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto coolingCoilClone = t_coolingCoil.clone(model).cast<HVACComponent>(); |
| 58 | |||
| 59 |
1/1✓ Branch 1 taken 2 times.
|
2 | ptacClone.setSupplyAirFan(supplyFanClone); |
| 60 | |||
| 61 |
1/1✓ Branch 1 taken 2 times.
|
2 | ptacClone.setHeatingCoil(heatingCoilClone); |
| 62 | |||
| 63 |
1/1✓ Branch 1 taken 2 times.
|
2 | ptacClone.setCoolingCoil(coolingCoilClone); |
| 64 | |||
| 65 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | if (model == this->model()) { |
| 66 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (auto waterToAirComponent = t_coolingCoil.optionalCast<WaterToAirComponent>()) { |
| 67 | ✗ | if (auto plant = waterToAirComponent->plantLoop()) { | |
| 68 | ✗ | plant->addDemandBranchForComponent(coolingCoilClone); | |
| 69 | ✗ | } | |
| 70 | 1 | } | |
| 71 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto waterToAirComponent = t_heatingCoil.optionalCast<WaterToAirComponent>()) { |
| 72 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (auto plant = waterToAirComponent->plantLoop()) { |
| 73 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plant->addDemandBranchForComponent(heatingCoilClone); |
| 74 | 1 | } | |
| 75 | 1 | } | |
| 76 | } | ||
| 77 | |||
| 78 | 4 | return std::move(ptacClone); | |
| 79 | 2 | } | |
| 80 | |||
| 81 | ✗ | std::vector<IdfObject> ZoneHVACPackagedTerminalAirConditioner_Impl::remove() { | |
| 82 | ✗ | if (boost::optional<CoilHeatingWater> waterHeatingCoil = heatingCoil().optionalCast<CoilHeatingWater>()) { | |
| 83 | ✗ | if (boost::optional<PlantLoop> plantLoop = waterHeatingCoil->plantLoop()) { | |
| 84 | ✗ | plantLoop->removeDemandBranchWithComponent(waterHeatingCoil.get()); | |
| 85 | ✗ | } | |
| 86 | ✗ | } | |
| 87 | |||
| 88 | ✗ | return ZoneHVACComponent_Impl::remove(); | |
| 89 | } | ||
| 90 | |||
| 91 | ✗ | const std::vector<std::string>& ZoneHVACPackagedTerminalAirConditioner_Impl::outputVariableNames() const { | |
| 92 | static const std::vector<std::string> result{ | ||
| 93 | "Zone Packaged Terminal Air Conditioner Total Heating Rate", "Zone Packaged Terminal Air Conditioner Total Heating Energy", | ||
| 94 | "Zone Packaged Terminal Air Conditioner Total Cooling Rate", "Zone Packaged Terminal Air Conditioner Total Cooling Energy", | ||
| 95 | "Zone Packaged Terminal Air Conditioner Sensible Heating Rate", "Zone Packaged Terminal Air Conditioner Sensible Heating Energy", | ||
| 96 | "Zone Packaged Terminal Air Conditioner Sensible Cooling Rate", "Zone Packaged Terminal Air Conditioner Sensible Cooling Energy", | ||
| 97 | "Zone Packaged Terminal Air Conditioner Latent Heating Rate", "Zone Packaged Terminal Air Conditioner Latent Heating Energy", | ||
| 98 | "Zone Packaged Terminal Air Conditioner Latent Cooling Rate", "Zone Packaged Terminal Air Conditioner Latent Cooling Energy", | ||
| 99 | "Zone Packaged Terminal Air Conditioner Electricity Rate", "Zone Packaged Terminal Air Conditioner Electricity Energy", | ||
| 100 | "Zone Packaged Terminal Air Conditioner Fan Part Load Ratio", "Zone Packaged Terminal Air Conditioner Compressor Part Load Ratio", | ||
| 101 | ✗ | "Zone Packaged Terminal Air Conditioner Fan Availability Status"}; | |
| 102 | ✗ | return result; | |
| 103 | ✗ | } | |
| 104 | |||
| 105 | 36 | IddObjectType ZoneHVACPackagedTerminalAirConditioner_Impl::iddObjectType() const { | |
| 106 | 36 | return ZoneHVACPackagedTerminalAirConditioner::iddObjectType(); | |
| 107 | } | ||
| 108 | |||
| 109 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACPackagedTerminalAirConditioner_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 110 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 111 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 112 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 113 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 114 | ✗ | if (std::find(b, e, OS_ZoneHVAC_PackagedTerminalAirConditionerFields::AvailabilityScheduleName) != e) { | |
| 115 | ✗ | result.emplace_back("ZoneHVACPackagedTerminalAirConditioner", "Availability"); | |
| 116 | } | ||
| 117 | ✗ | if (std::find(b, e, OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFanOperatingModeScheduleName) != e) { | |
| 118 | ✗ | result.emplace_back("ZoneHVACPackagedTerminalAirConditioner", "Supply Air Fan Operating Mode"); | |
| 119 | } | ||
| 120 | ✗ | return result; | |
| 121 | ✗ | } | |
| 122 | |||
| 123 | 9 | std::vector<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::children() const { | |
| 124 | 9 | std::vector<ModelObject> result; | |
| 125 |
2/3✓ Branch 1 taken 9 times.
✓ Branch 3 taken 9 times.
✗ Branch 4 not taken.
|
18 | if (OptionalHVACComponent intermediate = optionalHeatingCoil()) { |
| 126 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | result.push_back(*intermediate); |
| 127 | 9 | } | |
| 128 |
2/3✓ Branch 1 taken 9 times.
✓ Branch 3 taken 9 times.
✗ Branch 4 not taken.
|
18 | if (OptionalHVACComponent intermediate = optionalSupplyAirFan()) { |
| 129 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | result.push_back(*intermediate); |
| 130 | 9 | } | |
| 131 |
2/3✓ Branch 1 taken 9 times.
✓ Branch 3 taken 9 times.
✗ Branch 4 not taken.
|
18 | if (OptionalHVACComponent intermediate = optionalCoolingCoil()) { |
| 132 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | result.push_back(*intermediate); |
| 133 | 9 | } | |
| 134 | 9 | return result; | |
| 135 | ✗ | } | |
| 136 | |||
| 137 | 70 | unsigned ZoneHVACPackagedTerminalAirConditioner_Impl::inletPort() const { | |
| 138 | 70 | return OS_ZoneHVAC_PackagedTerminalAirConditionerFields::AirInletNodeName; | |
| 139 | } | ||
| 140 | |||
| 141 | 33 | unsigned ZoneHVACPackagedTerminalAirConditioner_Impl::outletPort() const { | |
| 142 | 33 | return OS_ZoneHVAC_PackagedTerminalAirConditionerFields::AirOutletNodeName; | |
| 143 | } | ||
| 144 | |||
| 145 | 11 | Schedule ZoneHVACPackagedTerminalAirConditioner_Impl::availabilitySchedule() const { | |
| 146 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 147 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
|
11 | if (!value) { |
| 148 | // it is an error if we get here, however we don't want to crash | ||
| 149 | // so we hook up to global always on schedule | ||
| 150 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 151 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 152 | ✗ | OS_ASSERT(value); | |
| 153 | ✗ | const_cast<ZoneHVACPackagedTerminalAirConditioner_Impl*>(this)->setAvailabilitySchedule(*value); // NOLINT | |
| 154 | ✗ | value = optionalAvailabilitySchedule(); | |
| 155 | } | ||
| 156 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 157 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
22 | return value.get(); |
| 158 | 11 | } | |
| 159 | |||
| 160 | 9 | std::string ZoneHVACPackagedTerminalAirConditioner_Impl::outdoorAirMixerObjectType() const { | |
| 161 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirMixerObjectType, true); |
| 162 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 163 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | return value.get(); |
| 164 | 9 | } | |
| 165 | |||
| 166 | ✗ | std::string ZoneHVACPackagedTerminalAirConditioner_Impl::outdoorAirMixerName() const { | |
| 167 | ✗ | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirMixerName, true); | |
| 168 | ✗ | OS_ASSERT(value); | |
| 169 | ✗ | return value.get(); | |
| 170 | ✗ | } | |
| 171 | |||
| 172 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFlowRateDuringCoolingOperation() const { | |
| 173 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringCoolingOperation, true); | |
| 174 | } | ||
| 175 | |||
| 176 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 177 | 9 | bool result = false; | |
| 178 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringCoolingOperation, true); |
| 179 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 180 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 181 | } | ||
| 182 | 9 | return result; | |
| 183 | 9 | } | |
| 184 | |||
| 185 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFlowRateDuringHeatingOperation() const { | |
| 186 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringHeatingOperation, true); | |
| 187 | } | ||
| 188 | |||
| 189 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 190 | 9 | bool result = false; | |
| 191 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringHeatingOperation, true); |
| 192 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 193 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 194 | } | ||
| 195 | 9 | return result; | |
| 196 | 9 | } | |
| 197 | |||
| 198 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 199 | ✗ | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true); | |
| 200 | } | ||
| 201 | |||
| 202 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 203 | 9 | bool result = false; | |
| 204 | boost::optional<std::string> value = | ||
| 205 |
1/1✓ Branch 1 taken 9 times.
|
9 | getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true); |
| 206 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 207 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 208 | } | ||
| 209 | 9 | return result; | |
| 210 | 9 | } | |
| 211 | |||
| 212 | 11 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::noLoadSupplyAirFlowRateControlSetToLowSpeed() const { | |
| 213 | 11 | return getBooleanFieldValue(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::NoLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 214 | } | ||
| 215 | |||
| 216 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 217 | 18 | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringCoolingOperation, true); | |
| 218 | } | ||
| 219 | |||
| 220 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 221 | 9 | bool result = false; | |
| 222 | boost::optional<std::string> value = | ||
| 223 |
1/1✓ Branch 1 taken 9 times.
|
9 | getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringCoolingOperation, true); |
| 224 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 225 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 226 | } | ||
| 227 | 9 | return result; | |
| 228 | 9 | } | |
| 229 | |||
| 230 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 231 | 18 | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringHeatingOperation, true); | |
| 232 | } | ||
| 233 | |||
| 234 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 235 | 9 | bool result = false; | |
| 236 | boost::optional<std::string> value = | ||
| 237 |
1/1✓ Branch 1 taken 9 times.
|
9 | getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringHeatingOperation, true); |
| 238 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 239 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 240 | } | ||
| 241 | 9 | return result; | |
| 242 | 9 | } | |
| 243 | |||
| 244 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 245 | 18 | return getDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); | |
| 246 | } | ||
| 247 | |||
| 248 | 9 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 249 | 9 | bool result = false; | |
| 250 | boost::optional<std::string> value = | ||
| 251 |
1/1✓ Branch 1 taken 9 times.
|
9 | getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); |
| 252 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (value) { |
| 253 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
18 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 254 | } | ||
| 255 | 9 | return result; | |
| 256 | 9 | } | |
| 257 | |||
| 258 | 15 | HVACComponent ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFan() const { | |
| 259 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<HVACComponent> fan = optionalSupplyAirFan(); |
| 260 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
✗ Branch 4 not taken.
|
15 | OS_ASSERT(fan); |
| 261 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return fan.get(); |
| 262 | 15 | } | |
| 263 | |||
| 264 | 25 | HVACComponent ZoneHVACPackagedTerminalAirConditioner_Impl::heatingCoil() const { | |
| 265 |
1/1✓ Branch 1 taken 25 times.
|
25 | boost::optional<HVACComponent> coil = optionalHeatingCoil(); |
| 266 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 25 times.
✗ Branch 4 not taken.
|
25 | OS_ASSERT(coil); |
| 267 |
2/2✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
|
50 | return coil.get(); |
| 268 | 25 | } | |
| 269 | |||
| 270 | 27 | HVACComponent ZoneHVACPackagedTerminalAirConditioner_Impl::coolingCoil() const { | |
| 271 |
1/1✓ Branch 1 taken 27 times.
|
27 | boost::optional<HVACComponent> coil = optionalCoolingCoil(); |
| 272 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 27 times.
✗ Branch 4 not taken.
|
27 | OS_ASSERT(coil); |
| 273 |
2/2✓ Branch 1 taken 27 times.
✓ Branch 4 taken 27 times.
|
54 | return coil.get(); |
| 274 | 27 | } | |
| 275 | |||
| 276 | 36 | std::string ZoneHVACPackagedTerminalAirConditioner_Impl::fanPlacement() const { | |
| 277 |
1/1✓ Branch 1 taken 36 times.
|
36 | boost::optional<std::string> value = getString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::FanPlacement, true); |
| 278 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 36 times.
✗ Branch 4 not taken.
|
36 | OS_ASSERT(value); |
| 279 |
2/2✓ Branch 1 taken 36 times.
✓ Branch 4 taken 36 times.
|
72 | return value.get(); |
| 280 | 36 | } | |
| 281 | |||
| 282 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::isFanPlacementDefaulted() const { | |
| 283 | ✗ | return isEmpty(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::FanPlacement); | |
| 284 | } | ||
| 285 | |||
| 286 | 12 | Schedule ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFanOperatingModeSchedule() const { | |
| 287 |
1/1✓ Branch 1 taken 12 times.
|
12 | boost::optional<Schedule> value = optionalSupplyAirFanOperatingModeSchedule(); |
| 288 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
|
12 | if (!value) { |
| 289 | // it is an error if we get here, however we don't want to crash | ||
| 290 | // so we hook up to global always on schedule | ||
| 291 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always Off' schedule"); | |
| 292 | ✗ | value = this->model().alwaysOffDiscreteSchedule(); | |
| 293 | ✗ | OS_ASSERT(value); | |
| 294 | ✗ | const_cast<ZoneHVACPackagedTerminalAirConditioner_Impl*>(this)->setSupplyAirFanOperatingModeSchedule(*value); // NOLINT | |
| 295 | ✗ | value = optionalSupplyAirFanOperatingModeSchedule(); | |
| 296 | } | ||
| 297 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
|
12 | OS_ASSERT(value); |
| 298 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
24 | return value.get(); |
| 299 | 12 | } | |
| 300 | |||
| 301 | 22 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 302 |
3/3✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 22 times.
|
88 | bool result = setSchedule(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::AvailabilityScheduleName, "ZoneHVACPackagedTerminalAirConditioner", |
| 303 | "Availability", schedule); | ||
| 304 | 22 | return result; | |
| 305 | } | ||
| 306 | |||
| 307 | 22 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) { | |
| 308 | 22 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirMixerObjectType, outdoorAirMixerObjectType); | |
| 309 | 22 | return result; | |
| 310 | } | ||
| 311 | |||
| 312 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) { | |
| 313 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirMixerName, outdoorAirMixerName); | |
| 314 | ✗ | OS_ASSERT(result); | |
| 315 | ✗ | return result; | |
| 316 | } | ||
| 317 | |||
| 318 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFlowRateDuringCoolingOperation( | |
| 319 | boost::optional<double> supplyAirFlowRateDuringCoolingOperation) { | ||
| 320 | ✗ | bool result = false; | |
| 321 | ✗ | if (supplyAirFlowRateDuringCoolingOperation) { | |
| 322 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringCoolingOperation, | |
| 323 | ✗ | supplyAirFlowRateDuringCoolingOperation.get()); | |
| 324 | } else { | ||
| 325 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringCoolingOperation, ""); | |
| 326 | } | ||
| 327 | ✗ | return result; | |
| 328 | } | ||
| 329 | |||
| 330 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 331 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringCoolingOperation, "Autosize"); |
| 332 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 333 | 22 | } | |
| 334 | |||
| 335 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFlowRateDuringHeatingOperation( | |
| 336 | boost::optional<double> supplyAirFlowRateDuringHeatingOperation) { | ||
| 337 | ✗ | bool result = false; | |
| 338 | ✗ | if (supplyAirFlowRateDuringHeatingOperation) { | |
| 339 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringHeatingOperation, | |
| 340 | ✗ | supplyAirFlowRateDuringHeatingOperation.get()); | |
| 341 | } else { | ||
| 342 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringHeatingOperation, ""); | |
| 343 | } | ||
| 344 | ✗ | return result; | |
| 345 | } | ||
| 346 | |||
| 347 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 348 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateDuringHeatingOperation, "Autosize"); |
| 349 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 350 | 22 | } | |
| 351 | |||
| 352 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 353 | boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 354 | ✗ | bool result = false; | |
| 355 | ✗ | if (supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 356 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, | |
| 357 | ✗ | supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.get()); | |
| 358 | } else { | ||
| 359 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 360 | } | ||
| 361 | ✗ | return result; | |
| 362 | } | ||
| 363 | |||
| 364 | ✗ | void ZoneHVACPackagedTerminalAirConditioner_Impl::resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 365 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 366 | ✗ | OS_ASSERT(result); | |
| 367 | ✗ | } | |
| 368 | |||
| 369 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 370 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, "Autosize"); |
| 371 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 372 | 22 | } | |
| 373 | |||
| 374 | bool | ||
| 375 | 23 | ZoneHVACPackagedTerminalAirConditioner_Impl::setNoLoadSupplyAirFlowRateControlSetToLowSpeed(bool noLoadSupplyAirFlowRateControlSetToLowSpeed) { | |
| 376 | 23 | return setBooleanFieldValue(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::NoLoadSupplyAirFlowRateControlSetToLowSpeed, | |
| 377 | 23 | noLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 378 | } | ||
| 379 | |||
| 380 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setOutdoorAirFlowRateDuringCoolingOperation( | |
| 381 | boost::optional<double> outdoorAirFlowRateDuringCoolingOperation) { | ||
| 382 | ✗ | bool result = false; | |
| 383 | ✗ | if (outdoorAirFlowRateDuringCoolingOperation) { | |
| 384 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringCoolingOperation, | |
| 385 | ✗ | outdoorAirFlowRateDuringCoolingOperation.get()); | |
| 386 | } else { | ||
| 387 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringCoolingOperation, ""); | |
| 388 | } | ||
| 389 | ✗ | return result; | |
| 390 | } | ||
| 391 | |||
| 392 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 393 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringCoolingOperation, "Autosize"); |
| 394 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 395 | 22 | } | |
| 396 | |||
| 397 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setOutdoorAirFlowRateDuringHeatingOperation( | |
| 398 | boost::optional<double> outdoorAirFlowRateDuringHeatingOperation) { | ||
| 399 | ✗ | bool result = false; | |
| 400 | ✗ | if (outdoorAirFlowRateDuringHeatingOperation) { | |
| 401 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringHeatingOperation, | |
| 402 | ✗ | outdoorAirFlowRateDuringHeatingOperation.get()); | |
| 403 | } else { | ||
| 404 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringHeatingOperation, ""); | |
| 405 | } | ||
| 406 | ✗ | return result; | |
| 407 | } | ||
| 408 | |||
| 409 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 410 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateDuringHeatingOperation, "Autosize"); |
| 411 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 412 | 22 | } | |
| 413 | |||
| 414 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 415 | boost::optional<double> outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 416 | ✗ | bool result = false; | |
| 417 | ✗ | if (outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 418 | ✗ | result = setDouble(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, | |
| 419 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded.get()); | |
| 420 | } else { | ||
| 421 | ✗ | result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 422 | } | ||
| 423 | ✗ | return result; | |
| 424 | } | ||
| 425 | |||
| 426 | ✗ | void ZoneHVACPackagedTerminalAirConditioner_Impl::resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 427 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, ""); | |
| 428 | ✗ | OS_ASSERT(result); | |
| 429 | ✗ | } | |
| 430 | |||
| 431 | 22 | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 432 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, "Autosize"); |
| 433 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 434 | 22 | } | |
| 435 | |||
| 436 | 24 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFan(HVACComponent& fan) { | |
| 437 |
6/6✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 8 taken 4 times.
✓ Branch 11 taken 4 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 2 times.
|
28 | if ((fan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) || (fan.iddObjectType() == IddObjectType::OS_Fan_OnOff) |
| 438 |
6/8✓ Branch 0 taken 4 times.
✓ Branch 1 taken 20 times.
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
✓ Branch 9 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 24 times.
✗ Branch 12 not taken.
|
28 | || (fan.iddObjectType() == IddObjectType::OS_Fan_SystemModel)) { |
| 439 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return setPointer(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFanName, fan.handle()); |
| 440 | } else { | ||
| 441 | ✗ | LOG(Warn, "Invalid Fan Type (expected FanConstantVolume, FanOnOff or FanSystemModel, not '" << fan.iddObjectType().valueName() << "') for " | |
| 442 | << briefDescription()); | ||
| 443 | ✗ | return false; | |
| 444 | } | ||
| 445 | } | ||
| 446 | |||
| 447 | 24 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setHeatingCoil(HVACComponent& heatingCoil) { | |
| 448 | 24 | bool isAllowedType = false; | |
| 449 | |||
| 450 |
1/1✓ Branch 1 taken 24 times.
|
24 | auto iddObjectType = heatingCoil.iddObjectType(); |
| 451 |
4/4✓ Branch 1 taken 24 times.
✓ Branch 5 taken 24 times.
✓ Branch 8 taken 19 times.
✓ Branch 9 taken 5 times.
|
48 | if ((iddObjectType == IddObjectType::OS_Coil_Heating_Gas) || (iddObjectType == IddObjectType::OS_Coil_Heating_Electric) |
| 452 |
6/7✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 19 times.
✓ Branch 6 taken 18 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 23 times.
✓ Branch 9 taken 1 time.
|
48 | || (iddObjectType == IddObjectType::OS_Coil_Heating_Water)) { |
| 453 | 23 | isAllowedType = true; | |
| 454 | } | ||
| 455 | |||
| 456 |
2/2✓ Branch 0 taken 23 times.
✓ Branch 1 taken 1 time.
|
24 | if (isAllowedType) { |
| 457 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return setPointer(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::HeatingCoilName, heatingCoil.handle()); |
| 458 | } else { | ||
| 459 |
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 CoilHeatingGas, CoilHeatingElectric, or CoilHeatingWater, not '" |
| 460 | << heatingCoil.iddObjectType().valueName() << "') for " << briefDescription()); | ||
| 461 | 1 | return false; | |
| 462 | } | ||
| 463 | } | ||
| 464 | |||
| 465 | 24 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setCoolingCoil(HVACComponent& coolingCoil) { | |
| 466 | 24 | bool isAllowedType = false; | |
| 467 | |||
| 468 |
1/1✓ Branch 1 taken 24 times.
|
24 | auto iddObjectType = coolingCoil.iddObjectType(); |
| 469 |
4/4✓ Branch 1 taken 24 times.
✓ Branch 5 taken 10 times.
✓ Branch 8 taken 7 times.
✓ Branch 9 taken 3 times.
|
34 | if ((iddObjectType == IddObjectType::OS_Coil_Cooling_DX_SingleSpeed) || (iddObjectType == IddObjectType::OS_Coil_Cooling_DX_VariableSpeed) |
| 470 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 5 times.
|
7 | || (iddObjectType == IddObjectType::OS_CoilSystem_Cooling_DX_HeatExchangerAssisted) |
| 471 |
5/7✓ Branch 0 taken 10 times.
✓ Branch 1 taken 14 times.
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 24 times.
✗ Branch 9 not taken.
|
34 | || (iddObjectType == IddObjectType::OS_Coil_Cooling_DX)) { |
| 472 | 24 | isAllowedType = true; | |
| 473 | } | ||
| 474 | |||
| 475 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (isAllowedType) { |
| 476 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return setPointer(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::CoolingCoilName, coolingCoil.handle()); |
| 477 | } else { | ||
| 478 | ✗ | LOG(Warn, "Invalid Cooling Coil Type (expected CoilCoolingDXSingleSpeed or CoilSystemCoolingDXHeatExchangerAssisted or " | |
| 479 | "CoilCoolingDXVariableSpeed or CoilCoolingDX, not '" | ||
| 480 | << coolingCoil.iddObjectType().valueName() << "') for " << briefDescription()); | ||
| 481 | ✗ | return false; | |
| 482 | } | ||
| 483 | } | ||
| 484 | |||
| 485 | 22 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setFanPlacement(const std::string& fanPlacement) { | |
| 486 | 22 | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::FanPlacement, fanPlacement); | |
| 487 | 22 | return result; | |
| 488 | } | ||
| 489 | |||
| 490 | ✗ | void ZoneHVACPackagedTerminalAirConditioner_Impl::resetFanPlacement() { | |
| 491 | ✗ | bool result = setString(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::FanPlacement, ""); | |
| 492 | ✗ | OS_ASSERT(result); | |
| 493 | ✗ | } | |
| 494 | |||
| 495 | 22 | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 496 |
3/3✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 22 times.
|
88 | bool result = setSchedule(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFanOperatingModeScheduleName, |
| 497 | "ZoneHVACPackagedTerminalAirConditioner", "Supply Air Fan Operating Mode", schedule); | ||
| 498 | 22 | return result; | |
| 499 | } | ||
| 500 | |||
| 501 | 11 | boost::optional<Schedule> ZoneHVACPackagedTerminalAirConditioner_Impl::optionalAvailabilitySchedule() const { | |
| 502 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::AvailabilityScheduleName); |
| 503 | } | ||
| 504 | 24 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalAirConditioner_Impl::optionalSupplyAirFan() const { | |
| 505 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFanName); |
| 506 | } | ||
| 507 | 34 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalAirConditioner_Impl::optionalHeatingCoil() const { | |
| 508 |
2/2✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::HeatingCoilName); |
| 509 | } | ||
| 510 | 36 | boost::optional<HVACComponent> ZoneHVACPackagedTerminalAirConditioner_Impl::optionalCoolingCoil() const { | |
| 511 |
2/2✓ Branch 1 taken 36 times.
✓ Branch 4 taken 36 times.
|
36 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_PackagedTerminalAirConditionerFields::CoolingCoilName); |
| 512 | } | ||
| 513 | |||
| 514 | 12 | boost::optional<Schedule> ZoneHVACPackagedTerminalAirConditioner_Impl::optionalSupplyAirFanOperatingModeSchedule() const { | |
| 515 |
1/1✓ Branch 1 taken 12 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 516 |
1/1✓ Branch 1 taken 12 times.
|
24 | OS_ZoneHVAC_PackagedTerminalAirConditionerFields::SupplyAirFanOperatingModeScheduleName); |
| 517 | } | ||
| 518 | |||
| 519 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::availabilityScheduleAsModelObject() const { | |
| 520 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 521 | ✗ | return result; | |
| 522 | } | ||
| 523 | |||
| 524 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFanAsModelObject() const { | |
| 525 | ✗ | OptionalModelObject result = supplyAirFan(); | |
| 526 | ✗ | return result; | |
| 527 | } | ||
| 528 | |||
| 529 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::heatingCoilAsModelObject() const { | |
| 530 | ✗ | OptionalModelObject result = heatingCoil(); | |
| 531 | ✗ | return result; | |
| 532 | } | ||
| 533 | |||
| 534 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::coolingCoilAsModelObject() const { | |
| 535 | ✗ | OptionalModelObject result = coolingCoil(); | |
| 536 | ✗ | return result; | |
| 537 | } | ||
| 538 | |||
| 539 | ✗ | boost::optional<ModelObject> ZoneHVACPackagedTerminalAirConditioner_Impl::supplyAirFanOperatingModeScheduleAsModelObject() const { | |
| 540 | ✗ | OptionalModelObject result; | |
| 541 | ✗ | OptionalSchedule intermediate = supplyAirFanOperatingModeSchedule(); | |
| 542 | ✗ | if (intermediate) { | |
| 543 | ✗ | result = *intermediate; | |
| 544 | } | ||
| 545 | ✗ | return result; | |
| 546 | ✗ | } | |
| 547 | |||
| 548 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 549 | ✗ | if (modelObject) { | |
| 550 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 551 | ✗ | if (intermediate) { | |
| 552 | ✗ | Schedule schedule(*intermediate); | |
| 553 | ✗ | return setAvailabilitySchedule(schedule); | |
| 554 | ✗ | } | |
| 555 | ✗ | } | |
| 556 | ✗ | return false; | |
| 557 | } | ||
| 558 | |||
| 559 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFanAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 560 | ✗ | if (modelObject) { | |
| 561 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 562 | ✗ | if (intermediate) { | |
| 563 | ✗ | setSupplyAirFan(*intermediate); | |
| 564 | ✗ | return true; | |
| 565 | } | ||
| 566 | ✗ | } | |
| 567 | ✗ | return false; | |
| 568 | } | ||
| 569 | |||
| 570 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setHeatingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 571 | ✗ | if (modelObject) { | |
| 572 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 573 | ✗ | if (intermediate) { | |
| 574 | ✗ | setHeatingCoil(*intermediate); | |
| 575 | ✗ | return true; | |
| 576 | } | ||
| 577 | ✗ | } | |
| 578 | ✗ | return false; | |
| 579 | } | ||
| 580 | |||
| 581 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setCoolingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 582 | ✗ | if (modelObject) { | |
| 583 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 584 | ✗ | if (intermediate) { | |
| 585 | ✗ | setCoolingCoil(*intermediate); | |
| 586 | ✗ | return true; | |
| 587 | } | ||
| 588 | ✗ | } | |
| 589 | ✗ | return false; | |
| 590 | } | ||
| 591 | |||
| 592 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner_Impl::setSupplyAirFanOperatingModeScheduleAsModelObject( | |
| 593 | const boost::optional<ModelObject>& modelObject) { | ||
| 594 | ✗ | if (modelObject) { | |
| 595 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 596 | ✗ | if (intermediate) { | |
| 597 | ✗ | Schedule schedule(*intermediate); | |
| 598 | ✗ | return setSupplyAirFanOperatingModeSchedule(schedule); | |
| 599 | ✗ | } | |
| 600 | ✗ | } | |
| 601 | ✗ | return false; | |
| 602 | } | ||
| 603 | |||
| 604 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 605 | ✗ | return getAutosizedValue("Design Size Cooling Supply Air Flow Rate", "m3/s"); | |
| 606 | } | ||
| 607 | |||
| 608 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 609 | ✗ | return getAutosizedValue("Design Size Heating Supply Air Flow Rate", "m3/s"); | |
| 610 | } | ||
| 611 | |||
| 612 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 613 | ✗ | return getAutosizedValue("Design Size No Load Supply Air Flow Rate", "m3/s"); | |
| 614 | } | ||
| 615 | |||
| 616 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 617 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Cooling Operation", "m3/s"); | |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 621 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Heating Operation", "m3/s"); | |
| 622 | } | ||
| 623 | |||
| 624 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner_Impl::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 625 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate When No Cooling or Heating is Needed", "m3/s"); | |
| 626 | } | ||
| 627 | |||
| 628 | ✗ | void ZoneHVACPackagedTerminalAirConditioner_Impl::autosize() { | |
| 629 | ✗ | autosizeSupplyAirFlowRateDuringCoolingOperation(); | |
| 630 | ✗ | autosizeSupplyAirFlowRateDuringHeatingOperation(); | |
| 631 | ✗ | autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 632 | ✗ | autosizeOutdoorAirFlowRateDuringCoolingOperation(); | |
| 633 | ✗ | autosizeOutdoorAirFlowRateDuringHeatingOperation(); | |
| 634 | ✗ | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 635 | ✗ | } | |
| 636 | |||
| 637 | ✗ | void ZoneHVACPackagedTerminalAirConditioner_Impl::applySizingValues() { | |
| 638 | ✗ | boost::optional<double> val; | |
| 639 | ✗ | val = autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 640 | ✗ | if (val) { | |
| 641 | ✗ | setSupplyAirFlowRateDuringCoolingOperation(val.get()); | |
| 642 | } | ||
| 643 | |||
| 644 | ✗ | val = autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 645 | ✗ | if (val) { | |
| 646 | ✗ | setSupplyAirFlowRateDuringHeatingOperation(val.get()); | |
| 647 | } | ||
| 648 | |||
| 649 | ✗ | val = autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 650 | ✗ | if (val) { | |
| 651 | ✗ | setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get()); | |
| 652 | } | ||
| 653 | |||
| 654 | ✗ | val = autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 655 | ✗ | if (val) { | |
| 656 | ✗ | setOutdoorAirFlowRateDuringCoolingOperation(val.get()); | |
| 657 | } | ||
| 658 | |||
| 659 | ✗ | val = autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 660 | ✗ | if (val) { | |
| 661 | ✗ | setOutdoorAirFlowRateDuringHeatingOperation(val.get()); | |
| 662 | } | ||
| 663 | |||
| 664 | ✗ | val = autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 665 | ✗ | if (val) { | |
| 666 | ✗ | setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get()); | |
| 667 | } | ||
| 668 | ✗ | } | |
| 669 | |||
| 670 | ✗ | ComponentType ZoneHVACPackagedTerminalAirConditioner_Impl::componentType() const { | |
| 671 | ✗ | return ComponentType::Both; | |
| 672 | } | ||
| 673 | |||
| 674 | ✗ | std::vector<FuelType> ZoneHVACPackagedTerminalAirConditioner_Impl::coolingFuelTypes() const { | |
| 675 | ✗ | std::set<FuelType> result; | |
| 676 | ✗ | for (auto ft : coolingCoil().coolingFuelTypes()) { | |
| 677 | ✗ | result.insert(ft); | |
| 678 | ✗ | } | |
| 679 | ✗ | return {result.begin(), result.end()}; | |
| 680 | ✗ | } | |
| 681 | |||
| 682 | ✗ | std::vector<FuelType> ZoneHVACPackagedTerminalAirConditioner_Impl::heatingFuelTypes() const { | |
| 683 | ✗ | std::set<FuelType> result; | |
| 684 | ✗ | for (auto ft : heatingCoil().heatingFuelTypes()) { | |
| 685 | ✗ | result.insert(ft); | |
| 686 | ✗ | } | |
| 687 | ✗ | return {result.begin(), result.end()}; | |
| 688 | ✗ | } | |
| 689 | |||
| 690 | ✗ | std::vector<AppGFuelType> ZoneHVACPackagedTerminalAirConditioner_Impl::appGHeatingFuelTypes() const { | |
| 691 | ✗ | std::set<AppGFuelType> result; | |
| 692 | ✗ | for (auto ft : heatingCoil().appGHeatingFuelTypes()) { | |
| 693 | ✗ | result.insert(ft); | |
| 694 | ✗ | } | |
| 695 | ✗ | return {result.begin(), result.end()}; | |
| 696 | ✗ | } | |
| 697 | |||
| 698 | } // namespace detail | ||
| 699 | |||
| 700 | 22 | ZoneHVACPackagedTerminalAirConditioner::ZoneHVACPackagedTerminalAirConditioner(const Model& model, Schedule& availabilitySchedule, | |
| 701 | HVACComponent& supplyAirFan, HVACComponent& heatingCoil, | ||
| 702 | 22 | HVACComponent& coolingCoil) | |
| 703 | 22 | : ZoneHVACComponent(ZoneHVACPackagedTerminalAirConditioner::iddObjectType(), model) { | |
| 704 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 22 times.
✗ Branch 5 not taken.
|
22 | OS_ASSERT(getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()); |
| 705 | |||
| 706 |
1/1✓ Branch 1 taken 22 times.
|
22 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 707 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | if (!ok) { |
| 708 | ✗ | remove(); | |
| 709 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 710 | } | ||
| 711 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | setOutdoorAirMixerObjectType("OutdoorAir:Mixer"); |
| 712 |
1/1✓ Branch 1 taken 22 times.
|
22 | setSupplyAirFan(supplyAirFan); |
| 713 |
1/1✓ Branch 1 taken 22 times.
|
22 | setHeatingCoil(heatingCoil); |
| 714 |
1/1✓ Branch 1 taken 22 times.
|
22 | setCoolingCoil(coolingCoil); |
| 715 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | setFanPlacement("DrawThrough"); |
| 716 | // When Blank, E+ defaults to 0 (cycling). If it's a FanConstantVolume though, you must provide an always On or E+ will Fatal. | ||
| 717 |
4/4✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 18 times.
✓ Branch 8 taken 4 times.
|
22 | if (supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) { |
| 718 |
1/1✓ Branch 1 taken 18 times.
|
18 | auto alwaysOn = model.alwaysOnDiscreteSchedule(); |
| 719 |
1/1✓ Branch 1 taken 18 times.
|
18 | ok = setSupplyAirFanOperatingModeSchedule(alwaysOn); |
| 720 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
✗ Branch 3 not taken.
|
18 | OS_ASSERT(ok); |
| 721 | 18 | } else { | |
| 722 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto alwaysOff = model.alwaysOffDiscreteSchedule(); |
| 723 |
1/1✓ Branch 1 taken 4 times.
|
4 | ok = setSupplyAirFanOperatingModeSchedule(alwaysOff); |
| 724 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
|
4 | OS_ASSERT(ok); |
| 725 | 4 | } | |
| 726 | |||
| 727 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 728 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 729 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 730 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 731 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 732 |
1/1✓ Branch 1 taken 22 times.
|
22 | setNoLoadSupplyAirFlowRateControlSetToLowSpeed(true); |
| 733 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 734 | 22 | } | |
| 735 | |||
| 736 | 8039 | IddObjectType ZoneHVACPackagedTerminalAirConditioner::iddObjectType() { | |
| 737 |
1/1✓ Branch 1 taken 8039 times.
|
8039 | return IddObjectType::OS_ZoneHVAC_PackagedTerminalAirConditioner; |
| 738 | } | ||
| 739 | |||
| 740 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalAirConditioner::outdoorAirMixerObjectTypeValues() { | |
| 741 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 742 | ✗ | OS_ZoneHVAC_PackagedTerminalAirConditionerFields::OutdoorAirMixerObjectType); | |
| 743 | } | ||
| 744 | |||
| 745 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalAirConditioner::validOutdoorAirMixerObjectTypeValues() { | |
| 746 | ✗ | return ZoneHVACPackagedTerminalAirConditioner::outdoorAirMixerObjectTypeValues(); | |
| 747 | } | ||
| 748 | |||
| 749 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalAirConditioner::fanPlacementValues() { | |
| 750 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_PackagedTerminalAirConditionerFields::FanPlacement); | |
| 751 | } | ||
| 752 | |||
| 753 | ✗ | std::vector<std::string> ZoneHVACPackagedTerminalAirConditioner::validFanPlacementValues() { | |
| 754 | ✗ | return ZoneHVACPackagedTerminalAirConditioner::fanPlacementValues(); | |
| 755 | } | ||
| 756 | |||
| 757 | 9 | std::string ZoneHVACPackagedTerminalAirConditioner::outdoorAirMixerObjectType() const { | |
| 758 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->outdoorAirMixerObjectType(); |
| 759 | } | ||
| 760 | |||
| 761 | ✗ | std::string ZoneHVACPackagedTerminalAirConditioner::outdoorAirMixerName() const { | |
| 762 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->outdoorAirMixerName(); | |
| 763 | } | ||
| 764 | |||
| 765 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::supplyAirFlowRateDuringCoolingOperation() const { | |
| 766 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->supplyAirFlowRateDuringCoolingOperation(); | |
| 767 | } | ||
| 768 | |||
| 769 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 770 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isSupplyAirFlowRateDuringCoolingOperationAutosized(); |
| 771 | } | ||
| 772 | |||
| 773 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::supplyAirFlowRateDuringHeatingOperation() const { | |
| 774 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->supplyAirFlowRateDuringHeatingOperation(); | |
| 775 | } | ||
| 776 | |||
| 777 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 778 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isSupplyAirFlowRateDuringHeatingOperationAutosized(); |
| 779 | } | ||
| 780 | |||
| 781 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 782 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->supplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 783 | } | ||
| 784 | |||
| 785 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 786 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized(); |
| 787 | } | ||
| 788 | |||
| 789 | 11 | bool ZoneHVACPackagedTerminalAirConditioner::noLoadSupplyAirFlowRateControlSetToLowSpeed() const { | |
| 790 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->noLoadSupplyAirFlowRateControlSetToLowSpeed(); |
| 791 | } | ||
| 792 | |||
| 793 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 794 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->outdoorAirFlowRateDuringCoolingOperation(); |
| 795 | } | ||
| 796 | |||
| 797 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 798 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isOutdoorAirFlowRateDuringCoolingOperationAutosized(); |
| 799 | } | ||
| 800 | |||
| 801 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 802 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->outdoorAirFlowRateDuringHeatingOperation(); |
| 803 | } | ||
| 804 | |||
| 805 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 806 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isOutdoorAirFlowRateDuringHeatingOperationAutosized(); |
| 807 | } | ||
| 808 | |||
| 809 | 18 | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 810 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 811 | } | ||
| 812 | |||
| 813 | 9 | bool ZoneHVACPackagedTerminalAirConditioner::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 814 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized(); |
| 815 | } | ||
| 816 | |||
| 817 | 36 | std::string ZoneHVACPackagedTerminalAirConditioner::fanPlacement() const { | |
| 818 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->fanPlacement(); |
| 819 | } | ||
| 820 | |||
| 821 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::isFanPlacementDefaulted() const { | |
| 822 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->isFanPlacementDefaulted(); | |
| 823 | } | ||
| 824 | |||
| 825 | 22 | bool ZoneHVACPackagedTerminalAirConditioner::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) { | |
| 826 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setOutdoorAirMixerObjectType(outdoorAirMixerObjectType); |
| 827 | } | ||
| 828 | |||
| 829 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) { | |
| 830 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setOutdoorAirMixerName(outdoorAirMixerName); | |
| 831 | } | ||
| 832 | |||
| 833 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setSupplyAirFlowRateDuringCoolingOperation(double supplyAirFlowRateDuringCoolingOperation) { | |
| 834 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setSupplyAirFlowRateDuringCoolingOperation( | |
| 835 | ✗ | supplyAirFlowRateDuringCoolingOperation); | |
| 836 | } | ||
| 837 | |||
| 838 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 839 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 840 | 22 | } | |
| 841 | |||
| 842 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setSupplyAirFlowRateDuringHeatingOperation(double supplyAirFlowRateDuringHeatingOperation) { | |
| 843 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setSupplyAirFlowRateDuringHeatingOperation( | |
| 844 | ✗ | supplyAirFlowRateDuringHeatingOperation); | |
| 845 | } | ||
| 846 | |||
| 847 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 848 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 849 | 22 | } | |
| 850 | |||
| 851 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 852 | double supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 853 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 854 | ✗ | supplyAirFlowRateWhenNoCoolingorHeatingisNeeded); | |
| 855 | } | ||
| 856 | |||
| 857 | ✗ | void ZoneHVACPackagedTerminalAirConditioner::resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 858 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->resetSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 859 | ✗ | } | |
| 860 | |||
| 861 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 862 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 863 | 22 | } | |
| 864 | |||
| 865 | 23 | bool ZoneHVACPackagedTerminalAirConditioner::setNoLoadSupplyAirFlowRateControlSetToLowSpeed(bool noLoadSupplyAirFlowRateControlSetToLowSpeed) { | |
| 866 |
1/1✓ Branch 3 taken 23 times.
|
46 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setNoLoadSupplyAirFlowRateControlSetToLowSpeed( |
| 867 | 46 | noLoadSupplyAirFlowRateControlSetToLowSpeed); | |
| 868 | } | ||
| 869 | |||
| 870 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setOutdoorAirFlowRateDuringCoolingOperation(double outdoorAirFlowRateDuringCoolingOperation) { | |
| 871 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setOutdoorAirFlowRateDuringCoolingOperation( | |
| 872 | ✗ | outdoorAirFlowRateDuringCoolingOperation); | |
| 873 | } | ||
| 874 | |||
| 875 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 876 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 877 | 22 | } | |
| 878 | |||
| 879 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setOutdoorAirFlowRateDuringHeatingOperation(double outdoorAirFlowRateDuringHeatingOperation) { | |
| 880 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setOutdoorAirFlowRateDuringHeatingOperation( | |
| 881 | ✗ | outdoorAirFlowRateDuringHeatingOperation); | |
| 882 | } | ||
| 883 | |||
| 884 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 885 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 886 | 22 | } | |
| 887 | |||
| 888 | ✗ | bool ZoneHVACPackagedTerminalAirConditioner::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 889 | double outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 890 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 891 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded); | |
| 892 | } | ||
| 893 | |||
| 894 | ✗ | void ZoneHVACPackagedTerminalAirConditioner::resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 895 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->resetOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 896 | ✗ | } | |
| 897 | |||
| 898 | 22 | void ZoneHVACPackagedTerminalAirConditioner::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 899 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 900 | 22 | } | |
| 901 | |||
| 902 | 22 | bool ZoneHVACPackagedTerminalAirConditioner::setFanPlacement(const std::string& fanPlacement) { | |
| 903 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setFanPlacement(fanPlacement); |
| 904 | } | ||
| 905 | |||
| 906 | ✗ | void ZoneHVACPackagedTerminalAirConditioner::resetFanPlacement() { | |
| 907 | ✗ | getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->resetFanPlacement(); | |
| 908 | ✗ | } | |
| 909 | |||
| 910 | 36 | ZoneHVACPackagedTerminalAirConditioner::ZoneHVACPackagedTerminalAirConditioner( | |
| 911 | 36 | std::shared_ptr<detail::ZoneHVACPackagedTerminalAirConditioner_Impl> impl) | |
| 912 |
1/1✓ Branch 3 taken 36 times.
|
36 | : ZoneHVACComponent(std::move(impl)) {} |
| 913 | |||
| 914 | 12 | Schedule ZoneHVACPackagedTerminalAirConditioner::supplyAirFanOperatingModeSchedule() const { | |
| 915 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->supplyAirFanOperatingModeSchedule(); |
| 916 | } | ||
| 917 | |||
| 918 | 22 | bool ZoneHVACPackagedTerminalAirConditioner::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 919 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setSupplyAirFanOperatingModeSchedule(schedule); |
| 920 | } | ||
| 921 | |||
| 922 | 11 | Schedule ZoneHVACPackagedTerminalAirConditioner::availabilitySchedule() const { | |
| 923 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->availabilitySchedule(); |
| 924 | } | ||
| 925 | |||
| 926 | 22 | bool ZoneHVACPackagedTerminalAirConditioner::setAvailabilitySchedule(Schedule& schedule) { | |
| 927 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setAvailabilitySchedule(schedule); |
| 928 | } | ||
| 929 | |||
| 930 | 13 | HVACComponent ZoneHVACPackagedTerminalAirConditioner::supplyAirFan() const { | |
| 931 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->supplyAirFan(); |
| 932 | } | ||
| 933 | |||
| 934 | 24 | bool ZoneHVACPackagedTerminalAirConditioner::setSupplyAirFan(HVACComponent& fan) { | |
| 935 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setSupplyAirFan(fan); |
| 936 | } | ||
| 937 | |||
| 938 | 23 | HVACComponent ZoneHVACPackagedTerminalAirConditioner::heatingCoil() const { | |
| 939 |
1/1✓ Branch 3 taken 23 times.
|
23 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->heatingCoil(); |
| 940 | } | ||
| 941 | |||
| 942 | 24 | bool ZoneHVACPackagedTerminalAirConditioner::setHeatingCoil(HVACComponent& heatingCoil) { | |
| 943 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setHeatingCoil(heatingCoil); |
| 944 | } | ||
| 945 | |||
| 946 | 25 | HVACComponent ZoneHVACPackagedTerminalAirConditioner::coolingCoil() const { | |
| 947 |
1/1✓ Branch 3 taken 25 times.
|
25 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->coolingCoil(); |
| 948 | } | ||
| 949 | |||
| 950 | 24 | bool ZoneHVACPackagedTerminalAirConditioner::setCoolingCoil(HVACComponent& coolingCoil) { | |
| 951 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->setCoolingCoil(coolingCoil); |
| 952 | } | ||
| 953 | |||
| 954 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 955 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 956 | } | ||
| 957 | |||
| 958 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 959 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 960 | } | ||
| 961 | |||
| 962 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 963 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 964 | } | ||
| 965 | |||
| 966 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 967 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 968 | } | ||
| 969 | |||
| 970 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 971 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 972 | } | ||
| 973 | |||
| 974 | ✗ | boost::optional<double> ZoneHVACPackagedTerminalAirConditioner::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 975 | ✗ | return getImpl<detail::ZoneHVACPackagedTerminalAirConditioner_Impl>()->autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 976 | } | ||
| 977 | |||
| 978 | } // namespace model | ||
| 979 | } // namespace openstudio | ||
| 980 |