src/model/CoilSystemIntegratedHeatPumpAirSource.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 "CoilSystemIntegratedHeatPumpAirSource.hpp" | ||
| 7 | #include "CoilSystemIntegratedHeatPumpAirSource_Impl.hpp" | ||
| 8 | #include "CoilHeatingDXVariableSpeed.hpp" | ||
| 9 | #include "CoilHeatingDXVariableSpeed_Impl.hpp" | ||
| 10 | #include "CoilCoolingDXVariableSpeed.hpp" | ||
| 11 | #include "CoilCoolingDXVariableSpeed_Impl.hpp" | ||
| 12 | #include "CoilWaterHeatingAirToWaterHeatPumpVariableSpeed.hpp" | ||
| 13 | #include "CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl.hpp" | ||
| 14 | #include "HVACComponent.hpp" | ||
| 15 | #include "HVACComponent_Impl.hpp" | ||
| 16 | #include "Node.hpp" | ||
| 17 | #include "Node_Impl.hpp" | ||
| 18 | #include "Model.hpp" | ||
| 19 | #include "Model_Impl.hpp" | ||
| 20 | #include "AirLoopHVACUnitaryHeatPumpAirToAir.hpp" | ||
| 21 | #include "AirLoopHVACUnitaryHeatPumpAirToAir_Impl.hpp" | ||
| 22 | #include "WaterHeaterHeatPump.hpp" | ||
| 23 | #include "WaterHeaterHeatPump_Impl.hpp" | ||
| 24 | |||
| 25 | #include <utilities/idd/OS_CoilSystem_IntegratedHeatPump_AirSource_FieldEnums.hxx> | ||
| 26 | #include <utilities/idd/IddFactory.hxx> | ||
| 27 | |||
| 28 | #include "../utilities/core/Assert.hpp" | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 12 | CoilSystemIntegratedHeatPumpAirSource_Impl::CoilSystemIntegratedHeatPumpAirSource_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 36 | 12 | bool keepHandle) | |
| 37 | 12 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 38 |
4/6✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 12 times.
✗ Branch 13 not taken.
|
12 | OS_ASSERT(idfObject.iddObject().type() == CoilSystemIntegratedHeatPumpAirSource::iddObjectType()); |
| 39 | 12 | } | |
| 40 | |||
| 41 | ✗ | CoilSystemIntegratedHeatPumpAirSource_Impl::CoilSystemIntegratedHeatPumpAirSource_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 42 | ✗ | Model_Impl* model, bool keepHandle) | |
| 43 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 44 | ✗ | OS_ASSERT(other.iddObject().type() == CoilSystemIntegratedHeatPumpAirSource::iddObjectType()); | |
| 45 | ✗ | } | |
| 46 | |||
| 47 | 9 | CoilSystemIntegratedHeatPumpAirSource_Impl::CoilSystemIntegratedHeatPumpAirSource_Impl(const CoilSystemIntegratedHeatPumpAirSource_Impl& other, | |
| 48 | 9 | Model_Impl* model, bool keepHandle) | |
| 49 | 9 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 50 | |||
| 51 | ✗ | const std::vector<std::string>& CoilSystemIntegratedHeatPumpAirSource_Impl::outputVariableNames() const { | |
| 52 | static const std::vector<std::string> result{"Integrated Heat Pump Air Loop Mass Flow Rate", | ||
| 53 | "Integrated Heat Pump Condenser Water Mass Flow Rate", | ||
| 54 | "Integrated Heat Pump Air Total Cooling Rate", | ||
| 55 | "Integrated Heat Pump Air Heating Rate", | ||
| 56 | "Integrated Heat Pump Water Heating Rate", | ||
| 57 | "Integrated Heat Pump Electricity Rate", | ||
| 58 | "Integrated Heat Pump Air Latent Cooling Rate", | ||
| 59 | "Integrated Heat Pump Source Heat Transfer Rate", | ||
| 60 | "Integrated Heat Pump COP", | ||
| 61 | "Integrated Heat Pump Electricity Energy", | ||
| 62 | "Integrated Heat Pump Air Total Cooling Energy", | ||
| 63 | "Integrated Heat Pump Air Heating Energy", | ||
| 64 | "Integrated Heat Pump Water Heating Energy", | ||
| 65 | "Integrated Heat Pump Air Latent Cooling Energy", | ||
| 66 | ✗ | "Integrated Heat Pump Source Heat Transfer Energy"}; | |
| 67 | |||
| 68 | ✗ | return result; | |
| 69 | ✗ | } | |
| 70 | |||
| 71 | 3 | IddObjectType CoilSystemIntegratedHeatPumpAirSource_Impl::iddObjectType() const { | |
| 72 | 3 | return CoilSystemIntegratedHeatPumpAirSource::iddObjectType(); | |
| 73 | } | ||
| 74 | |||
| 75 | 4 | unsigned CoilSystemIntegratedHeatPumpAirSource_Impl::inletPort() const { | |
| 76 | 4 | return OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AirInletNodeName; | |
| 77 | } | ||
| 78 | |||
| 79 | 4 | unsigned CoilSystemIntegratedHeatPumpAirSource_Impl::outletPort() const { | |
| 80 | 4 | return OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AirOutletNodeName; | |
| 81 | } | ||
| 82 | |||
| 83 | 1 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::addToNode(Node& /*node*/) { | |
| 84 | 1 | return false; | |
| 85 | } | ||
| 86 | |||
| 87 | 2 | std::vector<ModelObject> CoilSystemIntegratedHeatPumpAirSource_Impl::children() const { | |
| 88 | 2 | std::vector<ModelObject> result; | |
| 89 | |||
| 90 | 2 | boost::optional<StraightComponent> straightComponent; | |
| 91 | 2 | boost::optional<HVACComponent> hvacComponent; | |
| 92 | |||
| 93 | // Using the optional version so that if remove() is called when an assignment fails in Ctor, then it doesn't crash | ||
| 94 |
1/1✓ Branch 1 taken 2 times.
|
2 | straightComponent = optionalSpaceCoolingCoil(); |
| 95 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (straightComponent) { |
| 96 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(straightComponent.get()); |
| 97 | } | ||
| 98 | |||
| 99 |
1/1✓ Branch 1 taken 2 times.
|
2 | straightComponent = optionalSpaceHeatingCoil(); |
| 100 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (straightComponent) { |
| 101 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(straightComponent.get()); |
| 102 | } | ||
| 103 | |||
| 104 |
1/1✓ Branch 1 taken 2 times.
|
2 | hvacComponent = optionalDedicatedWaterHeatingCoil(); |
| 105 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (hvacComponent) { |
| 106 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(hvacComponent.get()); |
| 107 | } | ||
| 108 | |||
| 109 |
1/1✓ Branch 1 taken 2 times.
|
2 | hvacComponent = optionalScwhCoil(); |
| 110 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (hvacComponent) { |
| 111 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(hvacComponent.get()); |
| 112 | } | ||
| 113 | |||
| 114 |
1/1✓ Branch 1 taken 2 times.
|
2 | straightComponent = optionalScdwhCoolingCoil(); |
| 115 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (straightComponent) { |
| 116 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(straightComponent.get()); |
| 117 | } | ||
| 118 | |||
| 119 |
1/1✓ Branch 1 taken 2 times.
|
2 | hvacComponent = optionalScdwhWaterHeatingCoil(); |
| 120 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (hvacComponent) { |
| 121 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(hvacComponent.get()); |
| 122 | } | ||
| 123 | |||
| 124 |
1/1✓ Branch 1 taken 2 times.
|
2 | straightComponent = optionalShdwhHeatingCoil(); |
| 125 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (straightComponent) { |
| 126 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(straightComponent.get()); |
| 127 | } | ||
| 128 | |||
| 129 |
1/1✓ Branch 1 taken 2 times.
|
2 | hvacComponent = optionalShdwhWaterHeatingCoil(); |
| 130 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (hvacComponent) { |
| 131 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(hvacComponent.get()); |
| 132 | } | ||
| 133 | |||
| 134 | 4 | return result; | |
| 135 | 2 | } | |
| 136 | |||
| 137 | 4 | ModelObject CoilSystemIntegratedHeatPumpAirSource_Impl::clone(Model model) const { | |
| 138 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | auto newCoilSystem = StraightComponent_Impl::clone(model).cast<CoilSystemIntegratedHeatPumpAirSource>(); |
| 139 | |||
| 140 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto spaceCoolingCoilClone = this->spaceCoolingCoil().clone(model).cast<StraightComponent>(); |
| 141 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSpaceCoolingCoil(spaceCoolingCoilClone); |
| 142 | |||
| 143 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto spaceHeatingCoilClone = this->spaceHeatingCoil().clone(model).cast<StraightComponent>(); |
| 144 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSpaceHeatingCoil(spaceHeatingCoilClone); |
| 145 | |||
| 146 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto dedicatedWaterHeatingCoilClone = this->dedicatedWaterHeatingCoil().clone(model).cast<HVACComponent>(); |
| 147 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setDedicatedWaterHeatingCoil(dedicatedWaterHeatingCoilClone); |
| 148 | |||
| 149 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto scwhCoilClone = this->scwhCoil().clone(model).cast<HVACComponent>(); |
| 150 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSCWHCoil(scwhCoilClone); |
| 151 | |||
| 152 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto scdwhCoolingCoilClone = this->scdwhCoolingCoil().clone(model).cast<StraightComponent>(); |
| 153 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSCDWHCoolingCoil(scdwhCoolingCoilClone); |
| 154 | |||
| 155 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto scdwhWaterHeatingCoilClone = this->scdwhWaterHeatingCoil().clone(model).cast<HVACComponent>(); |
| 156 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSCDWHWaterHeatingCoil(scdwhWaterHeatingCoilClone); |
| 157 | |||
| 158 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto shdwhHeatingCoilClone = this->shdwhHeatingCoil().clone(model).cast<StraightComponent>(); |
| 159 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSHDWHHeatingCoil(shdwhHeatingCoilClone); |
| 160 | |||
| 161 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto shdwhWaterHeatingCoilClone = this->shdwhWaterHeatingCoil().clone(model).cast<HVACComponent>(); |
| 162 |
1/1✓ Branch 1 taken 4 times.
|
4 | newCoilSystem.setSHDWHWaterHeatingCoil(shdwhWaterHeatingCoilClone); |
| 163 | |||
| 164 | 8 | return std::move(newCoilSystem); | |
| 165 | 4 | } | |
| 166 | |||
| 167 | 7 | boost::optional<HVACComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::containingHVACComponent() const { | |
| 168 | // AirLoopHVACUnitaryHeatPumpAirToAir | ||
| 169 | |||
| 170 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | auto airLoopHVACUnitaryHeatPumpAirToAirs = this->model().getConcreteModelObjects<AirLoopHVACUnitaryHeatPumpAirToAir>(); |
| 171 |
2/2✓ Branch 5 taken 2 times.
✓ Branch 6 taken 5 times.
|
7 | for (const auto& airLoopHVACUnitaryHeatPumpAirToAir : airLoopHVACUnitaryHeatPumpAirToAirs) { |
| 172 |
5/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
|
2 | if (airLoopHVACUnitaryHeatPumpAirToAir.coolingCoil().handle() == this->handle()) { |
| 173 |
1/1✓ Branch 1 taken 2 times.
|
4 | return airLoopHVACUnitaryHeatPumpAirToAir; |
| 174 | ✗ | } else if (airLoopHVACUnitaryHeatPumpAirToAir.heatingCoil().handle() == this->handle()) { | |
| 175 | ✗ | return airLoopHVACUnitaryHeatPumpAirToAir; | |
| 176 | } | ||
| 177 | } | ||
| 178 | |||
| 179 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | auto waterHeaterHeatPumps = this->model().getConcreteModelObjects<WaterHeaterHeatPump>(); |
| 180 |
2/2✓ Branch 5 taken 2 times.
✓ Branch 6 taken 3 times.
|
5 | for (const auto& waterHeaterHeatPump : waterHeaterHeatPumps) { |
| 181 |
5/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
|
2 | if (waterHeaterHeatPump.dXCoil().handle() == this->handle()) { |
| 182 |
1/1✓ Branch 1 taken 2 times.
|
2 | return waterHeaterHeatPump; |
| 183 | } | ||
| 184 | } | ||
| 185 | |||
| 186 | 3 | return boost::none; | |
| 187 | 7 | } | |
| 188 | |||
| 189 | 22 | StraightComponent CoilSystemIntegratedHeatPumpAirSource_Impl::spaceCoolingCoil() const { | |
| 190 |
1/1✓ Branch 1 taken 22 times.
|
22 | boost::optional<StraightComponent> value = optionalSpaceCoolingCoil(); |
| 191 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
|
22 | if (!value) { |
| 192 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a Space Cooling Coil attached."); | |
| 193 | } | ||
| 194 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | return value.get(); |
| 195 | 22 | } | |
| 196 | |||
| 197 | 24 | boost::optional<StraightComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalSpaceCoolingCoil() const { | |
| 198 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<StraightComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SpaceCoolingCoil); |
| 199 | } | ||
| 200 | |||
| 201 | 22 | StraightComponent CoilSystemIntegratedHeatPumpAirSource_Impl::spaceHeatingCoil() const { | |
| 202 |
1/1✓ Branch 1 taken 22 times.
|
22 | boost::optional<StraightComponent> value = optionalSpaceHeatingCoil(); |
| 203 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
|
22 | if (!value) { |
| 204 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a Space Heating Coil attached."); | |
| 205 | } | ||
| 206 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | return value.get(); |
| 207 | 22 | } | |
| 208 | |||
| 209 | 24 | boost::optional<StraightComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalSpaceHeatingCoil() const { | |
| 210 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<StraightComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SpaceHeatingCoil); |
| 211 | } | ||
| 212 | |||
| 213 | 28 | HVACComponent CoilSystemIntegratedHeatPumpAirSource_Impl::dedicatedWaterHeatingCoil() const { | |
| 214 |
1/1✓ Branch 1 taken 28 times.
|
28 | auto value = optionalDedicatedWaterHeatingCoil(); |
| 215 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
|
28 | if (!value) { |
| 216 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a Dedicated Water Heating Coil attached."); | |
| 217 | } | ||
| 218 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
56 | return value.get(); |
| 219 | 28 | } | |
| 220 | |||
| 221 | 30 | boost::optional<HVACComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalDedicatedWaterHeatingCoil() const { | |
| 222 |
1/1✓ Branch 1 taken 30 times.
|
60 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>( |
| 223 |
1/1✓ Branch 1 taken 30 times.
|
60 | OS_CoilSystem_IntegratedHeatPump_AirSourceFields::DedicatedWaterHeatingCoil); |
| 224 | } | ||
| 225 | |||
| 226 | 24 | HVACComponent CoilSystemIntegratedHeatPumpAirSource_Impl::scwhCoil() const { | |
| 227 |
1/1✓ Branch 1 taken 24 times.
|
24 | auto value = optionalScwhCoil(); |
| 228 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
|
24 | if (!value) { |
| 229 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a SCWH Mode Coil attached."); | |
| 230 | } | ||
| 231 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
48 | return value.get(); |
| 232 | 24 | } | |
| 233 | |||
| 234 | 26 | boost::optional<HVACComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalScwhCoil() const { | |
| 235 |
2/2✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
|
26 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCWHCoil); |
| 236 | } | ||
| 237 | |||
| 238 | 18 | StraightComponent CoilSystemIntegratedHeatPumpAirSource_Impl::scdwhCoolingCoil() const { | |
| 239 |
1/1✓ Branch 1 taken 18 times.
|
18 | auto value = optionalScdwhCoolingCoil(); |
| 240 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 18 times.
|
18 | if (!value) { |
| 241 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a SCDWH Mode Cooling Coil attached."); | |
| 242 | } | ||
| 243 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | return value.get(); |
| 244 | 18 | } | |
| 245 | |||
| 246 | 20 | boost::optional<StraightComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalScdwhCoolingCoil() const { | |
| 247 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | return getObject<ModelObject>().getModelObjectTarget<StraightComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCDWHCoolingCoil); |
| 248 | } | ||
| 249 | |||
| 250 | 19 | HVACComponent CoilSystemIntegratedHeatPumpAirSource_Impl::scdwhWaterHeatingCoil() const { | |
| 251 |
1/1✓ Branch 1 taken 19 times.
|
19 | auto value = optionalScdwhWaterHeatingCoil(); |
| 252 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
|
19 | if (!value) { |
| 253 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a SCDWH Mode Water Heating Coil attached."); | |
| 254 | } | ||
| 255 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
38 | return value.get(); |
| 256 | 19 | } | |
| 257 | |||
| 258 | 21 | boost::optional<HVACComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalScdwhWaterHeatingCoil() const { | |
| 259 |
2/2✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
21 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCDWHWaterHeatingCoil); |
| 260 | } | ||
| 261 | |||
| 262 | 18 | StraightComponent CoilSystemIntegratedHeatPumpAirSource_Impl::shdwhHeatingCoil() const { | |
| 263 |
1/1✓ Branch 1 taken 18 times.
|
18 | auto value = optionalShdwhHeatingCoil(); |
| 264 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 18 times.
|
18 | if (!value) { |
| 265 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a SHDWH Mode Heating Coil Name attached."); | |
| 266 | } | ||
| 267 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
36 | return value.get(); |
| 268 | 18 | } | |
| 269 | |||
| 270 | 20 | boost::optional<StraightComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalShdwhHeatingCoil() const { | |
| 271 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | return getObject<ModelObject>().getModelObjectTarget<StraightComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SHDWHHeatingCoil); |
| 272 | } | ||
| 273 | |||
| 274 | 16 | HVACComponent CoilSystemIntegratedHeatPumpAirSource_Impl::shdwhWaterHeatingCoil() const { | |
| 275 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto value = optionalShdwhWaterHeatingCoil(); |
| 276 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
|
16 | if (!value) { |
| 277 | ✗ | LOG_AND_THROW(briefDescription() << " does not have a SHDWH Mode Water Heating Coil attached."); | |
| 278 | } | ||
| 279 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | return value.get(); |
| 280 | 16 | } | |
| 281 | |||
| 282 | 18 | boost::optional<HVACComponent> CoilSystemIntegratedHeatPumpAirSource_Impl::optionalShdwhWaterHeatingCoil() const { | |
| 283 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SHDWHWaterHeatingCoil); |
| 284 | } | ||
| 285 | |||
| 286 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::indoorTemperatureLimitForSCWHMode() const { | |
| 287 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::IndoorTemperatureLimitForSCWHMode, true); |
| 288 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 289 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 290 | } | ||
| 291 | |||
| 292 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::ambientTemperatureLimitForSCWHMode() const { | |
| 293 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AmbientTemperatureLimitForSCWHMode, true); |
| 294 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 295 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 296 | } | ||
| 297 | |||
| 298 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::indoorTemperatureAboveWhichWHHasHigherPriority() const { | |
| 299 | boost::optional<double> value = | ||
| 300 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::IndoorTemperatureAboveWhichWHHasHigherPriority, true); |
| 301 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 302 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 303 | } | ||
| 304 | |||
| 305 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::ambientTemperatureAboveWhichWHHasHigherPriority() const { | |
| 306 | boost::optional<double> value = | ||
| 307 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AmbientTemperatureAboveWhichWHHasHigherPriority, true); |
| 308 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 309 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 310 | } | ||
| 311 | |||
| 312 | 3 | int CoilSystemIntegratedHeatPumpAirSource_Impl::flagtoIndicateLoadControlInSCWHMode() const { | |
| 313 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<int> value = getInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::FlagtoIndicateLoadControlInSCWHMode, true); |
| 314 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 315 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 316 | } | ||
| 317 | |||
| 318 | 3 | int CoilSystemIntegratedHeatPumpAirSource_Impl::minimumSpeedLevelForSCWHMode() const { | |
| 319 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<int> value = getInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSCWHMode, true); |
| 320 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 321 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 322 | } | ||
| 323 | |||
| 324 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode() const { | |
| 325 | boost::optional<double> value = | ||
| 326 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MaximumWaterFlowVolumeBeforeSwitchingFromSCDWHToSCWHMode, true); |
| 327 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 328 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 329 | } | ||
| 330 | |||
| 331 | 3 | int CoilSystemIntegratedHeatPumpAirSource_Impl::minimumSpeedLevelForSCDWHMode() const { | |
| 332 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<int> value = getInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSCDWHMode, true); |
| 333 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 334 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 335 | } | ||
| 336 | |||
| 337 | 3 | double CoilSystemIntegratedHeatPumpAirSource_Impl::maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode() const { | |
| 338 | boost::optional<double> value = | ||
| 339 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode, true); |
| 340 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 341 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 342 | } | ||
| 343 | |||
| 344 | 3 | int CoilSystemIntegratedHeatPumpAirSource_Impl::minimumSpeedLevelForSHDWHMode() const { | |
| 345 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<int> value = getInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSHDWHMode, true); |
| 346 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 347 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 348 | } | ||
| 349 | |||
| 350 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSpaceCoolingCoil(const StraightComponent& spaceCoolingCoil) { | |
| 351 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SpaceCoolingCoil, spaceCoolingCoil.handle()); |
| 352 | 17 | return result; | |
| 353 | } | ||
| 354 | |||
| 355 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSpaceHeatingCoil(const StraightComponent& spaceHeatingCoil) { | |
| 356 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SpaceHeatingCoil, spaceHeatingCoil.handle()); |
| 357 | 17 | return result; | |
| 358 | } | ||
| 359 | |||
| 360 | 18 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setDedicatedWaterHeatingCoil(const HVACComponent& dedicatedWaterHeatingCoil) { | |
| 361 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::DedicatedWaterHeatingCoil, dedicatedWaterHeatingCoil.handle()); |
| 362 | 18 | return result; | |
| 363 | } | ||
| 364 | |||
| 365 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSCWHCoil(const HVACComponent& scwhCoil) { | |
| 366 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCWHCoil, scwhCoil.handle()); |
| 367 | 17 | return result; | |
| 368 | } | ||
| 369 | |||
| 370 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSCDWHCoolingCoil(const StraightComponent& scdwhCoolingCoil) { | |
| 371 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCDWHCoolingCoil, scdwhCoolingCoil.handle()); |
| 372 | 17 | return result; | |
| 373 | } | ||
| 374 | |||
| 375 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSCDWHWaterHeatingCoil(const HVACComponent& scdwhWaterHeatingCoil) { | |
| 376 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SCDWHWaterHeatingCoil, scdwhWaterHeatingCoil.handle()); |
| 377 | 17 | return result; | |
| 378 | } | ||
| 379 | |||
| 380 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSHDWHHeatingCoil(const StraightComponent& shdwhHeatingCoil) { | |
| 381 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SHDWHHeatingCoil, shdwhHeatingCoil.handle()); |
| 382 | 17 | return result; | |
| 383 | } | ||
| 384 | |||
| 385 | 17 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setSHDWHWaterHeatingCoil(const HVACComponent& shdwhWaterHeatingCoil) { | |
| 386 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | bool result = setPointer(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::SHDWHWaterHeatingCoil, shdwhWaterHeatingCoil.handle()); |
| 387 | 17 | return result; | |
| 388 | } | ||
| 389 | |||
| 390 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setIndoorTemperatureLimitForSCWHMode(double indoorTemperatureLimitForSCWHMode) { | |
| 391 | 13 | bool result = setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::IndoorTemperatureLimitForSCWHMode, indoorTemperatureLimitForSCWHMode); | |
| 392 | 13 | return result; | |
| 393 | } | ||
| 394 | |||
| 395 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setAmbientTemperatureLimitForSCWHMode(double ambientTemperatureLimitForSCWHMode) { | |
| 396 | bool result = | ||
| 397 | 13 | setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AmbientTemperatureLimitForSCWHMode, ambientTemperatureLimitForSCWHMode); | |
| 398 | 13 | return result; | |
| 399 | } | ||
| 400 | |||
| 401 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setIndoorTemperatureAboveWhichWHHasHigherPriority( | |
| 402 | double indoorTemperatureAboveWhichWHHasHigherPriority) { | ||
| 403 | 13 | bool result = setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::IndoorTemperatureAboveWhichWHHasHigherPriority, | |
| 404 | indoorTemperatureAboveWhichWHHasHigherPriority); | ||
| 405 | 13 | return result; | |
| 406 | } | ||
| 407 | |||
| 408 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setAmbientTemperatureAboveWhichWHHasHigherPriority( | |
| 409 | double ambientTemperatureAboveWhichWHHasHigherPriority) { | ||
| 410 | 13 | bool result = setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::AmbientTemperatureAboveWhichWHHasHigherPriority, | |
| 411 | ambientTemperatureAboveWhichWHHasHigherPriority); | ||
| 412 | 13 | return result; | |
| 413 | } | ||
| 414 | |||
| 415 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setFlagtoIndicateLoadControlInSCWHMode(int flagtoIndicateLoadControlInSCWHMode) { | |
| 416 | bool result = | ||
| 417 | 13 | setInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::FlagtoIndicateLoadControlInSCWHMode, flagtoIndicateLoadControlInSCWHMode); | |
| 418 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 419 | 13 | return result; | |
| 420 | } | ||
| 421 | |||
| 422 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setMinimumSpeedLevelForSCWHMode(int minimumSpeedLevelForSCWHMode) { | |
| 423 | 13 | bool result = setInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSCWHMode, minimumSpeedLevelForSCWHMode); | |
| 424 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 425 | 13 | return result; | |
| 426 | } | ||
| 427 | |||
| 428 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode( | |
| 429 | double maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode) { | ||
| 430 | 13 | bool result = setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MaximumWaterFlowVolumeBeforeSwitchingFromSCDWHToSCWHMode, | |
| 431 | maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode); | ||
| 432 | 13 | return result; | |
| 433 | } | ||
| 434 | |||
| 435 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setMinimumSpeedLevelForSCDWHMode(int minimumSpeedLevelForSCDWHMode) { | |
| 436 | 13 | bool result = setInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSCDWHMode, minimumSpeedLevelForSCDWHMode); | |
| 437 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 438 | 13 | return result; | |
| 439 | } | ||
| 440 | |||
| 441 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode( | |
| 442 | double maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode) { | ||
| 443 | bool result = | ||
| 444 | 13 | setDouble(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode, | |
| 445 | maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode); | ||
| 446 | 13 | return result; | |
| 447 | } | ||
| 448 | |||
| 449 | 13 | bool CoilSystemIntegratedHeatPumpAirSource_Impl::setMinimumSpeedLevelForSHDWHMode(int minimumSpeedLevelForSHDWHMode) { | |
| 450 | 13 | bool result = setInt(OS_CoilSystem_IntegratedHeatPump_AirSourceFields::MinimumSpeedLevelForSHDWHMode, minimumSpeedLevelForSHDWHMode); | |
| 451 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 452 | 13 | return result; | |
| 453 | } | ||
| 454 | |||
| 455 | ✗ | ComponentType CoilSystemIntegratedHeatPumpAirSource_Impl::componentType() const { | |
| 456 | ✗ | return ComponentType::Both; | |
| 457 | } | ||
| 458 | |||
| 459 | ✗ | std::vector<FuelType> CoilSystemIntegratedHeatPumpAirSource_Impl::coolingFuelTypes() const { | |
| 460 | ✗ | std::set<FuelType> result; | |
| 461 | |||
| 462 | ✗ | for (auto ft : spaceCoolingCoil().coolingFuelTypes()) { | |
| 463 | ✗ | result.insert(ft); | |
| 464 | ✗ | } | |
| 465 | |||
| 466 | ✗ | for (auto ft : scwhCoil().coolingFuelTypes()) { | |
| 467 | ✗ | result.insert(ft); | |
| 468 | ✗ | } | |
| 469 | ✗ | for (auto ft : scdwhCoolingCoil().coolingFuelTypes()) { | |
| 470 | ✗ | result.insert(ft); | |
| 471 | ✗ | } | |
| 472 | ✗ | for (auto ft : scdwhWaterHeatingCoil().coolingFuelTypes()) { | |
| 473 | ✗ | result.insert(ft); | |
| 474 | ✗ | } | |
| 475 | |||
| 476 | ✗ | return {result.begin(), result.end()}; | |
| 477 | ✗ | } | |
| 478 | |||
| 479 | ✗ | std::vector<FuelType> CoilSystemIntegratedHeatPumpAirSource_Impl::heatingFuelTypes() const { | |
| 480 | ✗ | std::set<FuelType> result; | |
| 481 | |||
| 482 | ✗ | for (auto ft : spaceHeatingCoil().heatingFuelTypes()) { | |
| 483 | ✗ | result.insert(ft); | |
| 484 | ✗ | } | |
| 485 | // TODO: include dedicatedWaterHeatingCoil? The combined space cooling + water heating ones too? | ||
| 486 | ✗ | for (auto ft : shdwhHeatingCoil().heatingFuelTypes()) { | |
| 487 | ✗ | result.insert(ft); | |
| 488 | ✗ | } | |
| 489 | ✗ | for (auto ft : shdwhWaterHeatingCoil().heatingFuelTypes()) { | |
| 490 | ✗ | result.insert(ft); | |
| 491 | ✗ | } | |
| 492 | |||
| 493 | ✗ | return {result.begin(), result.end()}; | |
| 494 | ✗ | } | |
| 495 | |||
| 496 | ✗ | std::vector<AppGFuelType> CoilSystemIntegratedHeatPumpAirSource_Impl::appGHeatingFuelTypes() const { | |
| 497 | ✗ | std::set<AppGFuelType> result; | |
| 498 | |||
| 499 | ✗ | for (auto ft : spaceHeatingCoil().appGHeatingFuelTypes()) { | |
| 500 | ✗ | result.insert(ft); | |
| 501 | ✗ | } | |
| 502 | // TODO: include dedicatedWaterHeatingCoil? The combined space cooling + water heating ones too? | ||
| 503 | ✗ | for (auto ft : shdwhHeatingCoil().appGHeatingFuelTypes()) { | |
| 504 | ✗ | result.insert(ft); | |
| 505 | ✗ | } | |
| 506 | ✗ | for (auto ft : shdwhWaterHeatingCoil().appGHeatingFuelTypes()) { | |
| 507 | ✗ | result.insert(ft); | |
| 508 | ✗ | } | |
| 509 | |||
| 510 | ✗ | return {result.begin(), result.end()}; | |
| 511 | ✗ | } | |
| 512 | |||
| 513 | } // namespace detail | ||
| 514 | |||
| 515 | 5 | CoilSystemIntegratedHeatPumpAirSource::CoilSystemIntegratedHeatPumpAirSource(const Model& model) | |
| 516 | 5 | : StraightComponent(CoilSystemIntegratedHeatPumpAirSource::iddObjectType(), model) { | |
| 517 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 5 not taken.
|
5 | OS_ASSERT(getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()); |
| 518 | |||
| 519 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilCoolingDXVariableSpeed spaceCoolingCoil(model); |
| 520 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilHeatingDXVariableSpeed spaceHeatingCoil(model); |
| 521 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed dedicatedWaterHeatingCoil(model); |
| 522 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed scwhCoil(model); |
| 523 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilCoolingDXVariableSpeed scdwhCoolingCoil(model); |
| 524 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed scdwhWaterHeatingCoil(model); |
| 525 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilHeatingDXVariableSpeed shdwhHeatingCoil(model); |
| 526 |
1/1✓ Branch 1 taken 5 times.
|
5 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed shdwhWaterHeatingCoil(model); |
| 527 | |||
| 528 |
1/1✓ Branch 1 taken 5 times.
|
5 | bool ok = setSpaceCoolingCoil(spaceCoolingCoil); |
| 529 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 530 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSpaceHeatingCoil(spaceHeatingCoil); |
| 531 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 532 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setDedicatedWaterHeatingCoil(dedicatedWaterHeatingCoil); |
| 533 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 534 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSCWHCoil(scwhCoil); |
| 535 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 536 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSCDWHCoolingCoil(scdwhCoolingCoil); |
| 537 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 538 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSCDWHWaterHeatingCoil(scdwhWaterHeatingCoil); |
| 539 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 540 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSHDWHHeatingCoil(shdwhHeatingCoil); |
| 541 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 542 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setSHDWHWaterHeatingCoil(shdwhWaterHeatingCoil); |
| 543 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✗ Branch 3 not taken.
|
5 | OS_ASSERT(ok); |
| 544 |
1/1✓ Branch 1 taken 5 times.
|
5 | setIndoorTemperatureLimitForSCWHMode(20.0); |
| 545 |
1/1✓ Branch 1 taken 5 times.
|
5 | setAmbientTemperatureLimitForSCWHMode(27.0); |
| 546 |
1/1✓ Branch 1 taken 5 times.
|
5 | setIndoorTemperatureAboveWhichWHHasHigherPriority(20.0); |
| 547 |
1/1✓ Branch 1 taken 5 times.
|
5 | setAmbientTemperatureAboveWhichWHHasHigherPriority(20.0); |
| 548 |
1/1✓ Branch 1 taken 5 times.
|
5 | setFlagtoIndicateLoadControlInSCWHMode(0); |
| 549 |
1/1✓ Branch 1 taken 5 times.
|
5 | setMinimumSpeedLevelForSCWHMode(1); |
| 550 |
1/1✓ Branch 1 taken 5 times.
|
5 | setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode(0.0); |
| 551 |
1/1✓ Branch 1 taken 5 times.
|
5 | setMinimumSpeedLevelForSCDWHMode(1); |
| 552 |
1/1✓ Branch 1 taken 5 times.
|
5 | setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode(360.0); |
| 553 |
1/1✓ Branch 1 taken 5 times.
|
5 | setMinimumSpeedLevelForSHDWHMode(1); |
| 554 | 5 | } | |
| 555 | |||
| 556 | 7 | CoilSystemIntegratedHeatPumpAirSource::CoilSystemIntegratedHeatPumpAirSource( | |
| 557 | const Model& model, const StraightComponent& spaceCoolingCoil, const StraightComponent& spaceHeatingCoil, | ||
| 558 | const HVACComponent& dedicatedWaterHeatingCoil, const HVACComponent& scwhCoil, const StraightComponent& scdwhCoolingCoil, | ||
| 559 | 7 | const HVACComponent& scdwhWaterHeatingCoil, const StraightComponent& shdwhHeatingCoil, const HVACComponent& shdwhWaterHeatingCoil) | |
| 560 | 7 | : StraightComponent(CoilSystemIntegratedHeatPumpAirSource::iddObjectType(), model) { | |
| 561 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
|
7 | OS_ASSERT(getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()); |
| 562 | |||
| 563 |
1/1✓ Branch 1 taken 7 times.
|
7 | bool ok = setSpaceCoolingCoil(spaceCoolingCoil); |
| 564 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 565 | ✗ | remove(); | |
| 566 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Space Cooling Coil to " << spaceCoolingCoil.briefDescription() << "."); | |
| 567 | } | ||
| 568 | |||
| 569 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSpaceHeatingCoil(spaceHeatingCoil); |
| 570 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 571 | ✗ | remove(); | |
| 572 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Space Heating Coil to " << spaceHeatingCoil.briefDescription() << "."); | |
| 573 | } | ||
| 574 | |||
| 575 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setDedicatedWaterHeatingCoil(dedicatedWaterHeatingCoil); |
| 576 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 577 | ✗ | remove(); | |
| 578 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Dedicated Water Heating Coil to " << dedicatedWaterHeatingCoil.briefDescription() | |
| 579 | << "."); | ||
| 580 | } | ||
| 581 | |||
| 582 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSCWHCoil(scwhCoil); |
| 583 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 584 | ✗ | remove(); | |
| 585 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s SCWH Coil to " << scwhCoil.briefDescription() << "."); | |
| 586 | } | ||
| 587 | |||
| 588 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSCDWHCoolingCoil(scdwhCoolingCoil); |
| 589 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 590 | ✗ | remove(); | |
| 591 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s SCDWH Cooling Coil to " << scdwhCoolingCoil.briefDescription() << "."); | |
| 592 | } | ||
| 593 | |||
| 594 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSCDWHWaterHeatingCoil(scdwhWaterHeatingCoil); |
| 595 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 596 | ✗ | remove(); | |
| 597 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s SCDWH Water Heating Coil to " << scdwhWaterHeatingCoil.briefDescription() << "."); | |
| 598 | } | ||
| 599 | |||
| 600 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSHDWHHeatingCoil(shdwhHeatingCoil); |
| 601 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 602 | ✗ | remove(); | |
| 603 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s SHDWH Heating Coil to " << shdwhHeatingCoil.briefDescription() << "."); | |
| 604 | } | ||
| 605 | |||
| 606 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSHDWHWaterHeatingCoil(shdwhWaterHeatingCoil); |
| 607 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 608 | ✗ | remove(); | |
| 609 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s SHDWH Water Heating Coil to " << shdwhWaterHeatingCoil.briefDescription() << "."); | |
| 610 | } | ||
| 611 | |||
| 612 |
1/1✓ Branch 1 taken 7 times.
|
7 | setIndoorTemperatureLimitForSCWHMode(20.0); |
| 613 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAmbientTemperatureLimitForSCWHMode(27.0); |
| 614 |
1/1✓ Branch 1 taken 7 times.
|
7 | setIndoorTemperatureAboveWhichWHHasHigherPriority(20.0); |
| 615 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAmbientTemperatureAboveWhichWHHasHigherPriority(20.0); |
| 616 |
1/1✓ Branch 1 taken 7 times.
|
7 | setFlagtoIndicateLoadControlInSCWHMode(0); |
| 617 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMinimumSpeedLevelForSCWHMode(1); |
| 618 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode(0.0); |
| 619 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMinimumSpeedLevelForSCDWHMode(1); |
| 620 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode(360.0); |
| 621 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMinimumSpeedLevelForSHDWHMode(1); |
| 622 | 7 | } | |
| 623 | |||
| 624 | 7796 | IddObjectType CoilSystemIntegratedHeatPumpAirSource::iddObjectType() { | |
| 625 |
1/1✓ Branch 1 taken 7796 times.
|
7796 | return {IddObjectType::OS_CoilSystem_IntegratedHeatPump_AirSource}; |
| 626 | } | ||
| 627 | |||
| 628 | 18 | StraightComponent CoilSystemIntegratedHeatPumpAirSource::spaceCoolingCoil() const { | |
| 629 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->spaceCoolingCoil(); |
| 630 | } | ||
| 631 | |||
| 632 | 18 | StraightComponent CoilSystemIntegratedHeatPumpAirSource::spaceHeatingCoil() const { | |
| 633 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->spaceHeatingCoil(); |
| 634 | } | ||
| 635 | |||
| 636 | 24 | HVACComponent CoilSystemIntegratedHeatPumpAirSource::dedicatedWaterHeatingCoil() const { | |
| 637 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->dedicatedWaterHeatingCoil(); |
| 638 | } | ||
| 639 | |||
| 640 | 20 | HVACComponent CoilSystemIntegratedHeatPumpAirSource::scwhCoil() const { | |
| 641 |
1/1✓ Branch 3 taken 20 times.
|
20 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->scwhCoil(); |
| 642 | } | ||
| 643 | |||
| 644 | 14 | StraightComponent CoilSystemIntegratedHeatPumpAirSource::scdwhCoolingCoil() const { | |
| 645 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->scdwhCoolingCoil(); |
| 646 | } | ||
| 647 | |||
| 648 | 15 | HVACComponent CoilSystemIntegratedHeatPumpAirSource::scdwhWaterHeatingCoil() const { | |
| 649 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->scdwhWaterHeatingCoil(); |
| 650 | } | ||
| 651 | |||
| 652 | 14 | StraightComponent CoilSystemIntegratedHeatPumpAirSource::shdwhHeatingCoil() const { | |
| 653 | |||
| 654 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->shdwhHeatingCoil(); |
| 655 | } | ||
| 656 | |||
| 657 | 12 | HVACComponent CoilSystemIntegratedHeatPumpAirSource::shdwhWaterHeatingCoil() const { | |
| 658 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->shdwhWaterHeatingCoil(); |
| 659 | } | ||
| 660 | |||
| 661 | 3 | double CoilSystemIntegratedHeatPumpAirSource::indoorTemperatureLimitForSCWHMode() const { | |
| 662 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->indoorTemperatureLimitForSCWHMode(); |
| 663 | } | ||
| 664 | |||
| 665 | 3 | double CoilSystemIntegratedHeatPumpAirSource::ambientTemperatureLimitForSCWHMode() const { | |
| 666 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->ambientTemperatureLimitForSCWHMode(); |
| 667 | } | ||
| 668 | |||
| 669 | 3 | double CoilSystemIntegratedHeatPumpAirSource::indoorTemperatureAboveWhichWHHasHigherPriority() const { | |
| 670 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->indoorTemperatureAboveWhichWHHasHigherPriority(); |
| 671 | } | ||
| 672 | |||
| 673 | 3 | double CoilSystemIntegratedHeatPumpAirSource::ambientTemperatureAboveWhichWHHasHigherPriority() const { | |
| 674 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->ambientTemperatureAboveWhichWHHasHigherPriority(); |
| 675 | } | ||
| 676 | |||
| 677 | 3 | int CoilSystemIntegratedHeatPumpAirSource::flagtoIndicateLoadControlInSCWHMode() const { | |
| 678 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->flagtoIndicateLoadControlInSCWHMode(); |
| 679 | } | ||
| 680 | |||
| 681 | 3 | int CoilSystemIntegratedHeatPumpAirSource::minimumSpeedLevelForSCWHMode() const { | |
| 682 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->minimumSpeedLevelForSCWHMode(); |
| 683 | } | ||
| 684 | |||
| 685 | 3 | double CoilSystemIntegratedHeatPumpAirSource::maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode() const { | |
| 686 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode(); |
| 687 | } | ||
| 688 | |||
| 689 | 3 | int CoilSystemIntegratedHeatPumpAirSource::minimumSpeedLevelForSCDWHMode() const { | |
| 690 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->minimumSpeedLevelForSCDWHMode(); |
| 691 | } | ||
| 692 | |||
| 693 | 3 | double CoilSystemIntegratedHeatPumpAirSource::maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode() const { | |
| 694 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode(); |
| 695 | } | ||
| 696 | |||
| 697 | 3 | int CoilSystemIntegratedHeatPumpAirSource::minimumSpeedLevelForSHDWHMode() const { | |
| 698 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->minimumSpeedLevelForSHDWHMode(); |
| 699 | } | ||
| 700 | |||
| 701 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSpaceCoolingCoil(const StraightComponent& spaceCoolingCoil) { | |
| 702 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSpaceCoolingCoil(spaceCoolingCoil); |
| 703 | } | ||
| 704 | |||
| 705 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSpaceHeatingCoil(const StraightComponent& spaceHeatingCoil) { | |
| 706 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSpaceHeatingCoil(spaceHeatingCoil); |
| 707 | } | ||
| 708 | |||
| 709 | 18 | bool CoilSystemIntegratedHeatPumpAirSource::setDedicatedWaterHeatingCoil(const HVACComponent& dedicatedWaterHeatingCoil) { | |
| 710 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setDedicatedWaterHeatingCoil(dedicatedWaterHeatingCoil); |
| 711 | } | ||
| 712 | |||
| 713 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSCWHCoil(const HVACComponent& scwhCoil) { | |
| 714 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSCWHCoil(scwhCoil); |
| 715 | } | ||
| 716 | |||
| 717 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSCDWHCoolingCoil(const StraightComponent& scdwhCoolingCoil) { | |
| 718 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSCDWHCoolingCoil(scdwhCoolingCoil); |
| 719 | } | ||
| 720 | |||
| 721 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSCDWHWaterHeatingCoil(const HVACComponent& scdwhWaterHeatingCoil) { | |
| 722 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSCDWHWaterHeatingCoil(scdwhWaterHeatingCoil); |
| 723 | } | ||
| 724 | |||
| 725 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSHDWHHeatingCoil(const StraightComponent& shdwhHeatingCoil) { | |
| 726 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSHDWHHeatingCoil(shdwhHeatingCoil); |
| 727 | } | ||
| 728 | |||
| 729 | 17 | bool CoilSystemIntegratedHeatPumpAirSource::setSHDWHWaterHeatingCoil(const HVACComponent& shdwhWaterHeatingCoil) { | |
| 730 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setSHDWHWaterHeatingCoil(shdwhWaterHeatingCoil); |
| 731 | } | ||
| 732 | |||
| 733 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setIndoorTemperatureLimitForSCWHMode(double indoorTemperatureLimitForSCWHMode) { | |
| 734 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setIndoorTemperatureLimitForSCWHMode(indoorTemperatureLimitForSCWHMode); |
| 735 | } | ||
| 736 | |||
| 737 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setAmbientTemperatureLimitForSCWHMode(double ambientTemperatureLimitForSCWHMode) { | |
| 738 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setAmbientTemperatureLimitForSCWHMode(ambientTemperatureLimitForSCWHMode); |
| 739 | } | ||
| 740 | |||
| 741 | bool | ||
| 742 | 13 | CoilSystemIntegratedHeatPumpAirSource::setIndoorTemperatureAboveWhichWHHasHigherPriority(double indoorTemperatureAboveWhichWHHasHigherPriority) { | |
| 743 |
1/1✓ Branch 3 taken 13 times.
|
26 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setIndoorTemperatureAboveWhichWHHasHigherPriority( |
| 744 | 26 | indoorTemperatureAboveWhichWHHasHigherPriority); | |
| 745 | } | ||
| 746 | |||
| 747 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setAmbientTemperatureAboveWhichWHHasHigherPriority( | |
| 748 | double ambientTemperatureAboveWhichWHHasHigherPriority) { | ||
| 749 |
1/1✓ Branch 3 taken 13 times.
|
26 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setAmbientTemperatureAboveWhichWHHasHigherPriority( |
| 750 | 26 | ambientTemperatureAboveWhichWHHasHigherPriority); | |
| 751 | } | ||
| 752 | |||
| 753 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setFlagtoIndicateLoadControlInSCWHMode(int flagtoIndicateLoadControlInSCWHMode) { | |
| 754 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setFlagtoIndicateLoadControlInSCWHMode(flagtoIndicateLoadControlInSCWHMode); |
| 755 | } | ||
| 756 | |||
| 757 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setMinimumSpeedLevelForSCWHMode(int minimumSpeedLevelForSCWHMode) { | |
| 758 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setMinimumSpeedLevelForSCWHMode(minimumSpeedLevelForSCWHMode); |
| 759 | } | ||
| 760 | |||
| 761 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode( | |
| 762 | double maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode) { | ||
| 763 |
1/1✓ Branch 3 taken 13 times.
|
26 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode( |
| 764 | 26 | maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode); | |
| 765 | } | ||
| 766 | |||
| 767 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setMinimumSpeedLevelForSCDWHMode(int minimumSpeedLevelForSCDWHMode) { | |
| 768 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setMinimumSpeedLevelForSCDWHMode(minimumSpeedLevelForSCDWHMode); |
| 769 | } | ||
| 770 | |||
| 771 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode( | |
| 772 | double maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode) { | ||
| 773 |
1/1✓ Branch 3 taken 13 times.
|
26 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode( |
| 774 | 26 | maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode); | |
| 775 | } | ||
| 776 | |||
| 777 | 13 | bool CoilSystemIntegratedHeatPumpAirSource::setMinimumSpeedLevelForSHDWHMode(int minimumSpeedLevelForSHDWHMode) { | |
| 778 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilSystemIntegratedHeatPumpAirSource_Impl>()->setMinimumSpeedLevelForSHDWHMode(minimumSpeedLevelForSHDWHMode); |
| 779 | } | ||
| 780 | |||
| 781 | /// @cond | ||
| 782 | 68 | CoilSystemIntegratedHeatPumpAirSource::CoilSystemIntegratedHeatPumpAirSource( | |
| 783 | 68 | std::shared_ptr<detail::CoilSystemIntegratedHeatPumpAirSource_Impl> impl) | |
| 784 |
1/1✓ Branch 3 taken 68 times.
|
68 | : StraightComponent(std::move(impl)) {} |
| 785 | /// @endcond | ||
| 786 | |||
| 787 | } // namespace model | ||
| 788 | } // namespace openstudio | ||
| 789 |