src/model/ZoneHVACTerminalUnitVariableRefrigerantFlow.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 "Model.hpp" | ||
| 7 | #include "Model_Impl.hpp" | ||
| 8 | #include "FanOnOff.hpp" | ||
| 9 | #include "FanOnOff_Impl.hpp" | ||
| 10 | #include "FanSystemModel.hpp" | ||
| 11 | #include "FanVariableVolume.hpp" | ||
| 12 | #include "FanVariableVolume_Impl.hpp" | ||
| 13 | #include "CurveCubic.hpp" | ||
| 14 | #include "CurveCubic_Impl.hpp" | ||
| 15 | #include "ZoneHVACTerminalUnitVariableRefrigerantFlow.hpp" | ||
| 16 | #include "ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl.hpp" | ||
| 17 | #include "Schedule.hpp" | ||
| 18 | #include "Schedule_Impl.hpp" | ||
| 19 | #include "CoilHeatingDXVariableRefrigerantFlow.hpp" | ||
| 20 | #include "CoilHeatingDXVariableRefrigerantFlow_Impl.hpp" | ||
| 21 | #include "CoilCoolingDXVariableRefrigerantFlow.hpp" | ||
| 22 | #include "CoilCoolingDXVariableRefrigerantFlow_Impl.hpp" | ||
| 23 | #include "CoilHeatingDXVariableRefrigerantFlowFluidTemperatureControl.hpp" | ||
| 24 | #include "CoilHeatingDXVariableRefrigerantFlowFluidTemperatureControl_Impl.hpp" | ||
| 25 | #include "CoilCoolingDXVariableRefrigerantFlowFluidTemperatureControl.hpp" | ||
| 26 | #include "CoilCoolingDXVariableRefrigerantFlowFluidTemperatureControl_Impl.hpp" | ||
| 27 | #include "ScheduleTypeLimits.hpp" | ||
| 28 | #include "ScheduleTypeRegistry.hpp" | ||
| 29 | #include "ThermalZone.hpp" | ||
| 30 | #include "ThermalZone_Impl.hpp" | ||
| 31 | #include "Node.hpp" | ||
| 32 | #include "Node_Impl.hpp" | ||
| 33 | #include "AirLoopHVAC.hpp" | ||
| 34 | #include "AirLoopHVACOutdoorAirSystem.hpp" | ||
| 35 | #include "HVACComponent.hpp" | ||
| 36 | #include "HVACComponent_Impl.hpp" | ||
| 37 | #include "AirConditionerVariableRefrigerantFlow.hpp" | ||
| 38 | #include "AirConditionerVariableRefrigerantFlow_Impl.hpp" | ||
| 39 | #include "AirConditionerVariableRefrigerantFlowFluidTemperatureControl.hpp" | ||
| 40 | #include "AirConditionerVariableRefrigerantFlowFluidTemperatureControl_Impl.hpp" | ||
| 41 | #include "AirConditionerVariableRefrigerantFlowFluidTemperatureControlHR.hpp" | ||
| 42 | #include "AirConditionerVariableRefrigerantFlowFluidTemperatureControlHR_Impl.hpp" | ||
| 43 | |||
| 44 | #include <utilities/idd/IddFactory.hxx> | ||
| 45 | |||
| 46 | #include <utilities/idd/OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlow_FieldEnums.hxx> | ||
| 47 | #include <utilities/idd/IddEnums.hxx> | ||
| 48 | #include "../utilities/core/Assert.hpp" | ||
| 49 | #include "../utilities/data/DataEnums.hpp" | ||
| 50 | |||
| 51 | #include "../utilities/core/DeprecatedHelpers.hpp" | ||
| 52 | |||
| 53 | namespace openstudio { | ||
| 54 | |||
| 55 | namespace model { | ||
| 56 | |||
| 57 | namespace detail { | ||
| 58 | |||
| 59 | 76 | ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 60 | 76 | bool keepHandle) | |
| 61 | 76 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 62 |
4/6✓ Branch 1 taken 76 times.
✓ Branch 4 taken 76 times.
✓ Branch 7 taken 76 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 76 times.
✗ Branch 13 not taken.
|
76 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType()); |
| 63 | 76 | } | |
| 64 | |||
| 65 | 4 | ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl( | |
| 66 | 4 | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 67 | 4 | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 68 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(other.iddObject().type() == ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType()); |
| 69 | 4 | } | |
| 70 | |||
| 71 | 30 | ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl( | |
| 72 | 30 | const ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl& other, Model_Impl* model, bool keepHandle) | |
| 73 | 30 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 74 | |||
| 75 | ✗ | const std::vector<std::string>& ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::outputVariableNames() const { | |
| 76 | static const std::vector<std::string> result{ | ||
| 77 | "Zone VRF Air Terminal Total Cooling Rate", "Zone VRF Air Terminal Total Cooling Energy", | ||
| 78 | "Zone VRF Air Terminal Sensible Cooling Rate", "Zone VRF Air Terminal Sensible Cooling Energy", | ||
| 79 | "Zone VRF Air Terminal Latent Cooling Rate", "Zone VRF Air Terminal Latent Cooling Energy", | ||
| 80 | "Zone VRF Air Terminal Total Heating Rate", "Zone VRF Air Terminal Total Heating Energy", | ||
| 81 | "Zone VRF Air Terminal Sensible Heating Rate", "Zone VRF Air Terminal Sensible Heating Energy", | ||
| 82 | "Zone VRF Air Terminal Latent Heating Rate", "Zone VRF Air Terminal Latent Heating Energy", | ||
| 83 | "Zone VRF Air Terminal Cooling Electricity Rate", "Zone VRF Air Terminal Cooling Electricity Energy", | ||
| 84 | "Zone VRF Air Terminal Heating Electricity Rate", "Zone VRF Air Terminal Heating Electricity Energy", | ||
| 85 | ✗ | "Zone VRF Air Terminal Fan Availability Status"}; | |
| 86 | ✗ | return result; | |
| 87 | ✗ | } | |
| 88 | |||
| 89 | 56 | IddObjectType ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::iddObjectType() const { | |
| 90 | 56 | return ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType(); | |
| 91 | } | ||
| 92 | |||
| 93 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 94 | // TODO: Check schedule display names. | ||
| 95 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 96 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 97 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 98 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 99 | ✗ | if (std::find(b, e, OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAvailabilityschedule) != e) { | |
| 100 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACTerminalUnitVariableRefrigerantFlow", "Terminal Unit Availability schedule")); | |
| 101 | } | ||
| 102 | ✗ | if (std::find(b, e, OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanOperatingModeSchedule) != e) { | |
| 103 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACTerminalUnitVariableRefrigerantFlow", "Supply Air Fan Operating Mode Schedule")); | |
| 104 | } | ||
| 105 | ✗ | return result; | |
| 106 | ✗ | } | |
| 107 | |||
| 108 | 28 | Schedule ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::terminalUnitAvailabilityschedule() const { | |
| 109 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<Schedule> value = optionalTerminalUnitAvailabilityschedule(); |
| 110 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
|
28 | if (!value) { |
| 111 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Terminal Unit Availabilityschedule attached."); | |
| 112 | } | ||
| 113 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
56 | return value.get(); |
| 114 | 28 | } | |
| 115 | |||
| 116 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFlowRateDuringCoolingOperation() const { | |
| 117 | ✗ | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringCoolingOperation, true); | |
| 118 | } | ||
| 119 | |||
| 120 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 121 | 28 | bool result = false; | |
| 122 | boost::optional<std::string> value = | ||
| 123 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringCoolingOperation, true); |
| 124 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 125 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 126 | } | ||
| 127 | 28 | return result; | |
| 128 | 28 | } | |
| 129 | |||
| 130 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFlowRateWhenNoCoolingisNeeded() const { | |
| 131 | ✗ | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoCoolingisNeeded, true); | |
| 132 | } | ||
| 133 | |||
| 134 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isSupplyAirFlowRateWhenNoCoolingisNeededAutosized() const { | |
| 135 | 28 | bool result = false; | |
| 136 | boost::optional<std::string> value = | ||
| 137 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoCoolingisNeeded, true); |
| 138 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 139 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 140 | } | ||
| 141 | 28 | return result; | |
| 142 | 28 | } | |
| 143 | |||
| 144 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFlowRateDuringHeatingOperation() const { | |
| 145 | ✗ | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringHeatingOperation, true); | |
| 146 | } | ||
| 147 | |||
| 148 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 149 | 28 | bool result = false; | |
| 150 | boost::optional<std::string> value = | ||
| 151 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringHeatingOperation, true); |
| 152 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 153 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 154 | } | ||
| 155 | 28 | return result; | |
| 156 | 28 | } | |
| 157 | |||
| 158 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFlowRateWhenNoHeatingisNeeded() const { | |
| 159 | ✗ | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoHeatingisNeeded, true); | |
| 160 | } | ||
| 161 | |||
| 162 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isSupplyAirFlowRateWhenNoHeatingisNeededAutosized() const { | |
| 163 | 28 | bool result = false; | |
| 164 | boost::optional<std::string> value = | ||
| 165 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoHeatingisNeeded, true); |
| 166 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 167 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 168 | } | ||
| 169 | 28 | return result; | |
| 170 | 28 | } | |
| 171 | |||
| 172 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 173 | 21 | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringCoolingOperation, true); | |
| 174 | } | ||
| 175 | |||
| 176 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 177 | 28 | bool result = false; | |
| 178 | boost::optional<std::string> value = | ||
| 179 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringCoolingOperation, true); |
| 180 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 181 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 182 | } | ||
| 183 | 28 | return result; | |
| 184 | 28 | } | |
| 185 | |||
| 186 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 187 | 21 | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringHeatingOperation, true); | |
| 188 | } | ||
| 189 | |||
| 190 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 191 | 28 | bool result = false; | |
| 192 | boost::optional<std::string> value = | ||
| 193 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringHeatingOperation, true); |
| 194 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 195 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 196 | } | ||
| 197 | 28 | return result; | |
| 198 | 28 | } | |
| 199 | |||
| 200 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 201 | 21 | return getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); | |
| 202 | } | ||
| 203 | |||
| 204 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 205 | 28 | bool result = false; | |
| 206 | boost::optional<std::string> value = | ||
| 207 |
1/1✓ Branch 1 taken 28 times.
|
28 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, true); |
| 208 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | if (value) { |
| 209 |
3/3✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
|
56 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 210 | } | ||
| 211 | 28 | return result; | |
| 212 | 28 | } | |
| 213 | |||
| 214 | 28 | Schedule ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFanOperatingModeSchedule() const { | |
| 215 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<Schedule> value = optionalSupplyAirFanOperatingModeSchedule(); |
| 216 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
|
28 | if (!value) { |
| 217 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Supply Air Fan Operating Mode Schedule attached."); | |
| 218 | } | ||
| 219 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
56 | return value.get(); |
| 220 | 28 | } | |
| 221 | |||
| 222 | 74 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFan() const { | |
| 223 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
74 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFan); |
| 224 | } | ||
| 225 | |||
| 226 | 171 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::coolingCoil() const { | |
| 227 |
2/2✓ Branch 1 taken 171 times.
✓ Branch 4 taken 171 times.
|
171 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::CoolingCoil); |
| 228 | } | ||
| 229 | |||
| 230 | 332 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::heatingCoil() const { | |
| 231 |
2/2✓ Branch 1 taken 332 times.
✓ Branch 4 taken 332 times.
|
332 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::HeatingCoil); |
| 232 | } | ||
| 233 | |||
| 234 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::zoneTerminalUnitOnParasiticElectricEnergyUse() const { | |
| 235 | boost::optional<double> value = | ||
| 236 |
1/1✓ Branch 1 taken 28 times.
|
28 | getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ZoneTerminalUnitOnParasiticElectricEnergyUse, true); |
| 237 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 238 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 239 | } | ||
| 240 | |||
| 241 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::zoneTerminalUnitOffParasiticElectricEnergyUse() const { | |
| 242 | boost::optional<double> value = | ||
| 243 |
1/1✓ Branch 1 taken 28 times.
|
28 | getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ZoneTerminalUnitOffParasiticElectricEnergyUse, true); |
| 244 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 245 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 246 | } | ||
| 247 | |||
| 248 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::ratedTotalHeatingCapacitySizingRatio() const { | |
| 249 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::RatedTotalHeatingCapacitySizingRatio, true); |
| 250 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 251 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 252 | } | ||
| 253 | |||
| 254 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setTerminalUnitAvailabilityschedule(Schedule& schedule) { | |
| 255 |
3/3✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
✓ Branch 7 taken 72 times.
|
288 | bool result = setSchedule(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAvailabilityschedule, |
| 256 | "ZoneHVACTerminalUnitVariableRefrigerantFlow", "Terminal Unit Availability schedule", schedule); | ||
| 257 | 72 | return result; | |
| 258 | } | ||
| 259 | |||
| 260 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFlowRateDuringCoolingOperation( | |
| 261 | boost::optional<double> supplyAirFlowRateDuringCoolingOperation) { | ||
| 262 | ✗ | bool result(false); | |
| 263 | ✗ | if (supplyAirFlowRateDuringCoolingOperation) { | |
| 264 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringCoolingOperation, | |
| 265 | ✗ | supplyAirFlowRateDuringCoolingOperation.get()); | |
| 266 | } | ||
| 267 | ✗ | return result; | |
| 268 | } | ||
| 269 | |||
| 270 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 271 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringCoolingOperation, "autosize"); |
| 272 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 273 | 72 | } | |
| 274 | |||
| 275 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFlowRateWhenNoCoolingisNeeded( | |
| 276 | boost::optional<double> supplyAirFlowRateWhenNoCoolingisNeeded) { | ||
| 277 | ✗ | bool result(false); | |
| 278 | ✗ | if (supplyAirFlowRateWhenNoCoolingisNeeded) { | |
| 279 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoCoolingisNeeded, | |
| 280 | ✗ | supplyAirFlowRateWhenNoCoolingisNeeded.get()); | |
| 281 | } | ||
| 282 | ✗ | return result; | |
| 283 | } | ||
| 284 | |||
| 285 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeSupplyAirFlowRateWhenNoCoolingisNeeded() { | |
| 286 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoCoolingisNeeded, "autosize"); |
| 287 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 288 | 72 | } | |
| 289 | |||
| 290 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFlowRateDuringHeatingOperation( | |
| 291 | boost::optional<double> supplyAirFlowRateDuringHeatingOperation) { | ||
| 292 | ✗ | bool result(false); | |
| 293 | ✗ | if (supplyAirFlowRateDuringHeatingOperation) { | |
| 294 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringHeatingOperation, | |
| 295 | ✗ | supplyAirFlowRateDuringHeatingOperation.get()); | |
| 296 | } | ||
| 297 | ✗ | return result; | |
| 298 | } | ||
| 299 | |||
| 300 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 301 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateDuringHeatingOperation, "autosize"); |
| 302 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 303 | 72 | } | |
| 304 | |||
| 305 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFlowRateWhenNoHeatingisNeeded( | |
| 306 | boost::optional<double> supplyAirFlowRateWhenNoHeatingisNeeded) { | ||
| 307 | ✗ | bool result(false); | |
| 308 | ✗ | if (supplyAirFlowRateWhenNoHeatingisNeeded) { | |
| 309 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoHeatingisNeeded, | |
| 310 | ✗ | supplyAirFlowRateWhenNoHeatingisNeeded.get()); | |
| 311 | } | ||
| 312 | ✗ | return result; | |
| 313 | } | ||
| 314 | |||
| 315 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeSupplyAirFlowRateWhenNoHeatingisNeeded() { | |
| 316 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFlowRateWhenNoHeatingisNeeded, "autosize"); |
| 317 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 318 | 72 | } | |
| 319 | |||
| 320 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setOutdoorAirFlowRateDuringCoolingOperation( | |
| 321 | boost::optional<double> outdoorAirFlowRateDuringCoolingOperation) { | ||
| 322 | ✗ | bool result(false); | |
| 323 | ✗ | if (outdoorAirFlowRateDuringCoolingOperation) { | |
| 324 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringCoolingOperation, | |
| 325 | ✗ | outdoorAirFlowRateDuringCoolingOperation.get()); | |
| 326 | } | ||
| 327 | ✗ | return result; | |
| 328 | } | ||
| 329 | |||
| 330 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 331 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringCoolingOperation, "autosize"); |
| 332 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 333 | 72 | } | |
| 334 | |||
| 335 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setOutdoorAirFlowRateDuringHeatingOperation( | |
| 336 | boost::optional<double> outdoorAirFlowRateDuringHeatingOperation) { | ||
| 337 | ✗ | bool result(false); | |
| 338 | ✗ | if (outdoorAirFlowRateDuringHeatingOperation) { | |
| 339 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringHeatingOperation, | |
| 340 | ✗ | outdoorAirFlowRateDuringHeatingOperation.get()); | |
| 341 | } | ||
| 342 | ✗ | return result; | |
| 343 | } | ||
| 344 | |||
| 345 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 346 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateDuringHeatingOperation, "autosize"); |
| 347 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 348 | 72 | } | |
| 349 | |||
| 350 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 351 | boost::optional<double> outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 352 | ✗ | bool result(false); | |
| 353 | ✗ | if (outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | |
| 354 | ✗ | result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, | |
| 355 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded.get()); | |
| 356 | } | ||
| 357 | ✗ | return result; | |
| 358 | } | ||
| 359 | |||
| 360 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 361 |
2/2✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
|
144 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded, "autosize"); |
| 362 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 72 times.
|
72 | OS_ASSERT(result); |
| 363 | 72 | } | |
| 364 | |||
| 365 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 366 |
3/3✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
✓ Branch 7 taken 72 times.
|
288 | bool result = setSchedule(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanOperatingModeSchedule, |
| 367 | "ZoneHVACTerminalUnitVariableRefrigerantFlow", "Supply Air Fan Operating Mode Schedule", schedule); | ||
| 368 | 72 | return result; | |
| 369 | } | ||
| 370 | |||
| 371 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setZoneTerminalUnitOnParasiticElectricEnergyUse( | |
| 372 | double zoneTerminalUnitOnParasiticElectricEnergyUse) { | ||
| 373 | 72 | bool result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ZoneTerminalUnitOnParasiticElectricEnergyUse, | |
| 374 | zoneTerminalUnitOnParasiticElectricEnergyUse); | ||
| 375 | 72 | return result; | |
| 376 | } | ||
| 377 | |||
| 378 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setZoneTerminalUnitOffParasiticElectricEnergyUse( | |
| 379 | double zoneTerminalUnitOffParasiticElectricEnergyUse) { | ||
| 380 | 72 | bool result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ZoneTerminalUnitOffParasiticElectricEnergyUse, | |
| 381 | zoneTerminalUnitOffParasiticElectricEnergyUse); | ||
| 382 | 72 | return result; | |
| 383 | } | ||
| 384 | |||
| 385 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setRatedTotalHeatingCapacitySizingRatio(double ratedTotalHeatingCapacitySizingRatio) { | |
| 386 | bool result = | ||
| 387 | 72 | setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::RatedTotalHeatingCapacitySizingRatio, ratedTotalHeatingCapacitySizingRatio); | |
| 388 | 72 | return result; | |
| 389 | } | ||
| 390 | |||
| 391 | 28 | boost::optional<Schedule> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::optionalTerminalUnitAvailabilityschedule() const { | |
| 392 |
1/1✓ Branch 1 taken 28 times.
|
56 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 393 |
1/1✓ Branch 1 taken 28 times.
|
56 | OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAvailabilityschedule); |
| 394 | } | ||
| 395 | |||
| 396 | 28 | boost::optional<Schedule> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::optionalSupplyAirFanOperatingModeSchedule() const { | |
| 397 |
1/1✓ Branch 1 taken 28 times.
|
56 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 398 |
1/1✓ Branch 1 taken 28 times.
|
56 | OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanOperatingModeSchedule); |
| 399 | } | ||
| 400 | |||
| 401 | 301 | unsigned ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::inletPort() const { | |
| 402 | 301 | return OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirInletNode; | |
| 403 | } | ||
| 404 | |||
| 405 | 174 | unsigned ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::outletPort() const { | |
| 406 | 174 | return OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirOutletNode; | |
| 407 | } | ||
| 408 | |||
| 409 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFan(const HVACComponent& component) { | |
| 410 |
1/1✓ Branch 1 taken 72 times.
|
72 | auto fanType = component.iddObjectType(); |
| 411 |
3/3✓ Branch 1 taken 72 times.
✓ Branch 3 taken 25 times.
✓ Branch 4 taken 47 times.
|
72 | if (isFluidTemperatureControl()) { |
| 412 |
8/8✓ Branch 1 taken 25 times.
✓ Branch 4 taken 10 times.
✓ Branch 5 taken 15 times.
✓ Branch 7 taken 10 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 8 times.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 23 times.
|
25 | if ((fanType != IddObjectType::OS_Fan_SystemModel) && (fanType != IddObjectType::OS_Fan_VariableVolume)) { |
| 413 |
10/10✓ 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 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 24 taken 2 times.
✓ Branch 27 taken 2 times.
✓ Branch 30 taken 2 times.
|
2 | LOG(Warn, "For " << briefDescription() |
| 414 | << ", since it is a FluidTemperatureControl unit, fan type must be FanSystemModel or FanVariableVolume, not " | ||
| 415 | << component.briefDescription()); | ||
| 416 | 2 | return false; | |
| 417 | } | ||
| 418 | } else { | ||
| 419 |
4/4✓ Branch 1 taken 47 times.
✓ Branch 5 taken 43 times.
✓ Branch 8 taken 2 times.
✓ Branch 9 taken 41 times.
|
90 | if ((fanType != IddObjectType::OS_Fan_SystemModel) && (fanType != IddObjectType::OS_Fan_OnOff) |
| 420 |
7/7✓ Branch 0 taken 43 times.
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 9 taken 46 times.
|
90 | && (fanType != IddObjectType::OS_Fan_ConstantVolume)) { |
| 421 |
10/10✓ 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 24 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
|
1 | LOG(Warn, |
| 422 | "For " << briefDescription() | ||
| 423 | << ", since it is a non-FluidTemperatureControl unit, fan type must be FanSystemModel, FanOnOff, or FanConstantVolume, not " | ||
| 424 | << component.briefDescription()); | ||
| 425 | 1 | return false; | |
| 426 | } | ||
| 427 | } | ||
| 428 | |||
| 429 |
3/3✓ Branch 1 taken 69 times.
✓ Branch 4 taken 8 times.
✓ Branch 5 taken 61 times.
|
69 | if ((fanType == IddObjectType::OS_Fan_VariableVolume)) { |
| 430 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | FanSystemModel fanSys = component.cast<FanVariableVolume>().convertToFanSystemModel(); |
| 431 | |||
| 432 |
5/5✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
✓ Branch 13 taken 8 times.
|
32 | DEPRECATED_AT_MSG( |
| 433 | 3, 9, 0, | ||
| 434 | "Setting a FanVariableVolume is deprecated. The fan has been converted to FanSystemModel, but in the future use FanSystemModel instead."); | ||
| 435 | |||
| 436 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | return setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFan, fanSys.handle()); |
| 437 | 8 | } | |
| 438 | |||
| 439 |
2/2✓ Branch 1 taken 61 times.
✓ Branch 4 taken 61 times.
|
61 | return setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFan, component.handle()); |
| 440 | } | ||
| 441 | |||
| 442 | ✗ | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::resetSupplyAirFan() { | |
| 443 | ✗ | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFan, ""); | |
| 444 | ✗ | OS_ASSERT(result); | |
| 445 | ✗ | } | |
| 446 | |||
| 447 | 76 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setCoolingCoil(const HVACComponent& component) { | |
| 448 |
3/3✓ Branch 1 taken 76 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 72 times.
|
152 | if (auto hc_ = heatingCoil()) { |
| 449 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 2 times.
|
4 | if (hc_->iddObjectType() == IddObjectType::OS_Coil_Heating_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 450 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | if (component.iddObjectType() != IddObjectType::OS_Coil_Cooling_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 451 |
8/8✓ 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 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
|
1 | LOG(Warn, "For " << briefDescription() << ", cannot add a Non FluidTemperatureControl coil since existing heating coil does not match."); |
| 452 | 1 | return false; | |
| 453 | } | ||
| 454 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | } else if (component.iddObjectType() == IddObjectType::OS_Coil_Cooling_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 455 |
8/8✓ 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 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
|
1 | LOG(Warn, "For " << briefDescription() << ", cannot add a FluidTemperatureControl coil since existing heating coil does not match."); |
| 456 | 1 | return false; | |
| 457 | } | ||
| 458 | 76 | } | |
| 459 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
74 | return setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::CoolingCoil, component.handle()); |
| 460 | } | ||
| 461 | |||
| 462 | 76 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setHeatingCoil(const HVACComponent& component) { | |
| 463 |
2/3✓ Branch 1 taken 76 times.
✓ Branch 3 taken 76 times.
✗ Branch 4 not taken.
|
152 | if (auto cc_ = coolingCoil()) { |
| 464 |
5/5✓ Branch 1 taken 76 times.
✓ Branch 4 taken 76 times.
✓ Branch 7 taken 76 times.
✓ Branch 10 taken 27 times.
✓ Branch 11 taken 49 times.
|
76 | if (cc_->iddObjectType() == IddObjectType::OS_Coil_Cooling_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 465 |
4/4✓ Branch 1 taken 27 times.
✓ Branch 4 taken 27 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 26 times.
|
27 | if (component.iddObjectType() != IddObjectType::OS_Coil_Heating_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 466 |
8/8✓ 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 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
|
1 | LOG(Warn, "For " << briefDescription() << ", cannot add a Non FluidTemperatureControl coil since existing cooling coil does not match."); |
| 467 | 1 | return false; | |
| 468 | } | ||
| 469 |
4/4✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 48 times.
|
49 | } else if (component.iddObjectType() == IddObjectType::OS_Coil_Heating_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 470 |
8/8✓ 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 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
|
1 | LOG(Warn, "For " << briefDescription() << ", cannot add a FluidTemperatureControl coil since existing cooling coil does not match."); |
| 471 | 1 | return false; | |
| 472 | } | ||
| 473 | 76 | } | |
| 474 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
74 | return setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::HeatingCoil, component.handle()); |
| 475 | } | ||
| 476 | |||
| 477 | 176 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isFluidTemperatureControl() const { | |
| 478 | 176 | bool isFluidCtrl = false; | |
| 479 | // We enforce matching types in setCoolingCoil / setHeatingCoil, so no need to check both (if we have an issue, it's because the user used | ||
| 480 | // setString/setPointer manually and it's is fault, let's aim for efficiency here) | ||
| 481 |
2/3✓ Branch 1 taken 176 times.
✓ Branch 3 taken 176 times.
✗ Branch 4 not taken.
|
352 | if (auto hc_ = heatingCoil()) { |
| 482 |
5/5✓ Branch 1 taken 176 times.
✓ Branch 4 taken 176 times.
✓ Branch 7 taken 176 times.
✓ Branch 10 taken 82 times.
✓ Branch 11 taken 94 times.
|
176 | if (hc_->iddObjectType() == IddObjectType::OS_Coil_Heating_DX_VariableRefrigerantFlow_FluidTemperatureControl) { |
| 483 | 82 | isFluidCtrl = true; | |
| 484 | } | ||
| 485 | ✗ | } else if (auto cc_ = coolingCoil()) { | |
| 486 | ✗ | if (cc_->iddObjectType() == IddObjectType::OS_Coil_Cooling_DX_VariableRefrigerantFlow_FluidTemperatureControl) { | |
| 487 | ✗ | isFluidCtrl = true; | |
| 488 | } | ||
| 489 | 176 | } | |
| 490 | 176 | return isFluidCtrl; | |
| 491 | } | ||
| 492 | |||
| 493 | 78 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplementalHeatingCoil() const { | |
| 494 |
1/1✓ Branch 1 taken 78 times.
|
156 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>( |
| 495 |
1/1✓ Branch 1 taken 78 times.
|
156 | OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplementalHeatingCoilName); |
| 496 | } | ||
| 497 | |||
| 498 | ✗ | boost::optional<ModelObject> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplementalHeatingCoilAsModelObject() const { | |
| 499 | ✗ | OptionalModelObject result; | |
| 500 | ✗ | if (boost::optional<HVACComponent> _coil = supplementalHeatingCoil()) { | |
| 501 | ✗ | result = _coil.get(); | |
| 502 | ✗ | } | |
| 503 | ✗ | return result; | |
| 504 | ✗ | } | |
| 505 | |||
| 506 | 5 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplementalHeatingCoil(const HVACComponent& coil) { | |
| 507 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | bool result = setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplementalHeatingCoilName, coil.handle()); |
| 508 | 5 | return result; | |
| 509 | } | ||
| 510 | |||
| 511 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplementalHeatingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 512 | ✗ | if (modelObject) { | |
| 513 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 514 | ✗ | if (intermediate) { | |
| 515 | ✗ | HVACComponent heatingCoilName(*intermediate); | |
| 516 | ✗ | setSupplementalHeatingCoil(heatingCoilName); | |
| 517 | ✗ | return true; | |
| 518 | ✗ | } | |
| 519 | ✗ | } | |
| 520 | ✗ | return false; | |
| 521 | } | ||
| 522 | |||
| 523 | 1 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::resetSupplementalHeatingCoil() { | |
| 524 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplementalHeatingCoilName, ""); |
| 525 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 526 | 1 | } | |
| 527 | |||
| 528 | 5 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::maximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 529 | boost::optional<double> value = | ||
| 530 |
1/1✓ Branch 1 taken 5 times.
|
5 | getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumSupplyAirTemperaturefromSupplementalHeater, false); |
| 531 | 5 | return value; | |
| 532 | } | ||
| 533 | |||
| 534 | 2 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setMaximumSupplyAirTemperaturefromSupplementalHeater( | |
| 535 | double maximumSupplyAirTemperaturefromSupplementalHeater) { | ||
| 536 | 2 | bool result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumSupplyAirTemperaturefromSupplementalHeater, | |
| 537 | maximumSupplyAirTemperaturefromSupplementalHeater); | ||
| 538 | // OS_ASSERT(result); | ||
| 539 | 2 | return result; | |
| 540 | } | ||
| 541 | |||
| 542 | 31 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const { | |
| 543 | 31 | bool result = false; | |
| 544 | boost::optional<std::string> value = | ||
| 545 |
1/1✓ Branch 1 taken 31 times.
|
31 | getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumSupplyAirTemperaturefromSupplementalHeater, true); |
| 546 |
1/2✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
|
31 | if (value) { |
| 547 |
3/3✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
✓ Branch 7 taken 31 times.
|
62 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 548 | } | ||
| 549 | 31 | return result; | |
| 550 | 31 | } | |
| 551 | |||
| 552 | 74 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() { | |
| 553 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
148 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumSupplyAirTemperaturefromSupplementalHeater, "Autosize"); |
| 554 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 74 times.
|
74 | OS_ASSERT(result); |
| 555 | 74 | } | |
| 556 | |||
| 557 | 31 | double ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const { | |
| 558 | boost::optional<double> value = | ||
| 559 |
1/1✓ Branch 1 taken 31 times.
|
31 | getDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, true); |
| 560 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 31 times.
✗ Branch 4 not taken.
|
31 | OS_ASSERT(value); |
| 561 |
1/1✓ Branch 1 taken 31 times.
|
62 | return value.get(); |
| 562 | } | ||
| 563 | |||
| 564 | 76 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( | |
| 565 | double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) { | ||
| 566 | 76 | bool result = setDouble(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, | |
| 567 | maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | ||
| 568 | // OS_ASSERT(result); | ||
| 569 | 76 | return result; | |
| 570 | } | ||
| 571 | |||
| 572 | 34 | std::string ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::supplyAirFanPlacement() const { | |
| 573 |
1/1✓ Branch 1 taken 34 times.
|
34 | boost::optional<std::string> value = getString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanPlacement, true); |
| 574 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 34 times.
✗ Branch 4 not taken.
|
34 | OS_ASSERT(value); |
| 575 |
2/2✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
|
68 | return value.get(); |
| 576 | 34 | } | |
| 577 | |||
| 578 | 77 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement) { | |
| 579 | 77 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanPlacement, supplyAirFanPlacement); | |
| 580 | // OS_ASSERT(result); | ||
| 581 | 77 | return result; | |
| 582 | } | ||
| 583 | |||
| 584 | 32 | boost::optional<ThermalZone> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::controllingZoneorThermostatLocation() const { | |
| 585 |
1/1✓ Branch 1 taken 32 times.
|
64 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>( |
| 586 |
1/1✓ Branch 1 taken 32 times.
|
64 | OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ControllingZoneorThermostatLocation); |
| 587 | } | ||
| 588 | |||
| 589 | 2 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::setControllingZoneorThermostatLocation(const ThermalZone& thermalZone) { | |
| 590 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | bool result = setPointer(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ControllingZoneorThermostatLocation, thermalZone.handle()); |
| 591 | 2 | return result; | |
| 592 | } | ||
| 593 | |||
| 594 | 1 | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::resetControllingZoneorThermostatLocation() { | |
| 595 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::ControllingZoneorThermostatLocation, ""); |
| 596 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 597 | 1 | } | |
| 598 | |||
| 599 | ✗ | ModelObject ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::clone(Model model) const { | |
| 600 | ✗ | ModelObject terminalClone = ZoneHVACComponent_Impl::clone(model); | |
| 601 | |||
| 602 | ✗ | if (auto fan = supplyAirFan()) { | |
| 603 | ✗ | auto fanClone = fan->clone(model).cast<HVACComponent>(); | |
| 604 | ✗ | terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fanClone); | |
| 605 | ✗ | } | |
| 606 | |||
| 607 | ✗ | if (auto coil = coolingCoil()) { | |
| 608 | ✗ | auto coilClone = coil->clone(model).cast<HVACComponent>(); | |
| 609 | ✗ | terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coilClone); | |
| 610 | ✗ | } | |
| 611 | |||
| 612 | ✗ | if (auto coil = heatingCoil()) { | |
| 613 | ✗ | auto coilClone = coil->clone(model).cast<HVACComponent>(); | |
| 614 | ✗ | terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(coilClone); | |
| 615 | ✗ | } | |
| 616 | |||
| 617 | ✗ | if (auto coil = supplementalHeatingCoil()) { | |
| 618 | ✗ | auto coilClone = coil->clone(model).cast<HVACComponent>(); | |
| 619 | ✗ | terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplementalHeatingCoil(coilClone); | |
| 620 | ✗ | } | |
| 621 | |||
| 622 | // TODO Move this into base clase | ||
| 623 | ✗ | terminalClone.setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirInletNode, ""); | |
| 624 | ✗ | terminalClone.setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirOutletNode, ""); | |
| 625 | |||
| 626 | ✗ | return terminalClone; | |
| 627 | ✗ | } | |
| 628 | |||
| 629 | 40 | std::vector<ModelObject> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::children() const { | |
| 630 | 40 | std::vector<ModelObject> result; | |
| 631 | |||
| 632 |
3/3✓ Branch 1 taken 40 times.
✓ Branch 3 taken 37 times.
✓ Branch 4 taken 3 times.
|
80 | if (auto fan = supplyAirFan()) { |
| 633 |
2/2✓ Branch 1 taken 37 times.
✓ Branch 4 taken 37 times.
|
37 | result.push_back(fan.get()); |
| 634 | 40 | } | |
| 635 | |||
| 636 |
2/3✓ Branch 1 taken 40 times.
✓ Branch 3 taken 40 times.
✗ Branch 4 not taken.
|
80 | if (auto coil = coolingCoil()) { |
| 637 |
2/2✓ Branch 1 taken 40 times.
✓ Branch 4 taken 40 times.
|
40 | result.push_back(coil.get()); |
| 638 | 40 | } | |
| 639 | |||
| 640 |
2/3✓ Branch 1 taken 40 times.
✓ Branch 3 taken 40 times.
✗ Branch 4 not taken.
|
80 | if (auto coil = heatingCoil()) { |
| 641 |
2/2✓ Branch 1 taken 40 times.
✓ Branch 4 taken 40 times.
|
40 | result.push_back(coil.get()); |
| 642 | 40 | } | |
| 643 | |||
| 644 |
3/3✓ Branch 1 taken 40 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 36 times.
|
80 | if (auto coil = supplementalHeatingCoil()) { |
| 645 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | result.push_back(coil.get()); |
| 646 | 40 | } | |
| 647 | |||
| 648 | 40 | return result; | |
| 649 | ✗ | } | |
| 650 | |||
| 651 | 15 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::addToNode(Node& node) { | |
| 652 | // Try connecting as a (classic) ZoneHVACComponent | ||
| 653 | 15 | bool result = ZoneHVACComponent_Impl::addToNode(node); | |
| 654 | |||
| 655 | // If that fails, check if it's the supply side of an AirLoopHVAC or on an AirLoopHVACOutdoorAirSystem | ||
| 656 |
2/2✓ Branch 0 taken 14 times.
✓ Branch 1 taken 1 time.
|
15 | if (!result) { |
| 657 |
1/1✓ Branch 1 taken 14 times.
|
14 | auto _model = node.model(); |
| 658 |
1/1✓ Branch 1 taken 14 times.
|
14 | auto thisModelObject = getObject<ModelObject>(); |
| 659 |
1/1✓ Branch 1 taken 14 times.
|
14 | auto t_airLoop = node.airLoopHVAC(); |
| 660 |
1/1✓ Branch 1 taken 14 times.
|
14 | auto t_oaSystem = node.airLoopHVACOutdoorAirSystem(); |
| 661 | |||
| 662 | 14 | boost::optional<unsigned> componentInletPort; | |
| 663 | 14 | boost::optional<unsigned> componentOutletPort; | |
| 664 | |||
| 665 | 14 | boost::optional<HVACComponent> systemStartComponent; | |
| 666 | 14 | boost::optional<HVACComponent> systemEndComponent; | |
| 667 | |||
| 668 |
3/3✓ Branch 3 taken 14 times.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 13 times.
|
14 | if (node.getImpl<Node_Impl>()->isConnected(thisModelObject)) { |
| 669 | 1 | return false; | |
| 670 | } | ||
| 671 | |||
| 672 |
6/6✓ Branch 0 taken 9 times.
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 5 times.
✓ Branch 4 taken 4 times.
✓ Branch 5 taken 5 times.
✓ Branch 6 taken 8 times.
|
13 | if (t_airLoop && !t_oaSystem) { |
| 673 |
5/5✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 4 times.
|
10 | if (t_airLoop->demandComponent(node.handle())) { |
| 674 | 1 | return false; | |
| 675 | } | ||
| 676 | |||
| 677 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | systemStartComponent = t_airLoop->supplyInletNode(); |
| 678 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | auto nodes = t_airLoop->supplyOutletNodes(); |
| 679 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(!nodes.empty()); |
| 680 |
5/22✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 14 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✓ Branch 20 taken 4 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 4 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 4 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 4 times.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
|
4 | if ((nodes.size() == 2u) && (!t_airLoop->supplyComponents(node, nodes[1]).empty())) { |
| 681 | ✗ | systemEndComponent = nodes[1]; | |
| 682 | } else { | ||
| 683 |
1/1✓ Branch 2 taken 4 times.
|
4 | systemEndComponent = nodes[0]; |
| 684 | } | ||
| 685 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(systemEndComponent); |
| 686 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | componentInletPort = inletPort(); |
| 687 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | componentOutletPort = outletPort(); |
| 688 | |||
| 689 |
1/1✓ Branch 1 taken 4 times.
|
4 | removeFromAirLoopHVAC(); |
| 690 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 4 times.
|
12 | } else if (t_oaSystem) { |
| 691 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 2 times.
|
8 | if (t_oaSystem->oaComponent(node.handle())) { |
| 692 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | systemStartComponent = t_oaSystem->outboardOANode(); |
| 693 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | systemEndComponent = t_oaSystem.get(); |
| 694 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | componentInletPort = inletPort(); |
| 695 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | componentOutletPort = outletPort(); |
| 696 |
4/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
|
4 | } else if (t_oaSystem->reliefComponent(node.handle())) { |
| 697 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | systemStartComponent = t_oaSystem.get(); |
| 698 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | systemEndComponent = t_oaSystem->outboardReliefNode(); |
| 699 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | componentInletPort = inletPort(); |
| 700 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | componentOutletPort = outletPort(); |
| 701 | } | ||
| 702 |
1/1✓ Branch 1 taken 4 times.
|
4 | removeFromAirLoopHVAC(); |
| 703 | } | ||
| 704 | |||
| 705 |
7/10✓ Branch 0 taken 8 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 8 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 8 times.
✓ Branch 9 taken 4 times.
|
36 | if (systemStartComponent && systemEndComponent && componentOutletPort && componentInletPort) { |
| 706 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | result = HVACComponent_Impl::addToNode(node, systemStartComponent.get(), systemEndComponent.get(), componentInletPort.get(), |
| 707 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | componentOutletPort.get()); |
| 708 | } | ||
| 709 | 24 | } | |
| 710 | |||
| 711 | 13 | return result; | |
| 712 | } | ||
| 713 | |||
| 714 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 715 | ✗ | return getAutosizedValue("Design Size Cooling Supply Air Flow Rate", "m3/s"); | |
| 716 | } | ||
| 717 | |||
| 718 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedSupplyAirFlowRateWhenNoCoolingisNeeded() const { | |
| 719 | ✗ | return getAutosizedValue("Design Size No Cooling Supply Air Flow Rate", "m3/s"); | |
| 720 | } | ||
| 721 | |||
| 722 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 723 | ✗ | return getAutosizedValue("Design Size Heating Supply Air Flow Rate", "m3/s"); | |
| 724 | } | ||
| 725 | |||
| 726 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedSupplyAirFlowRateWhenNoHeatingisNeeded() const { | |
| 727 | ✗ | return getAutosizedValue("Design Size No Heating Supply Air Flow Rate", "m3/s"); | |
| 728 | } | ||
| 729 | |||
| 730 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 731 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Cooling Operation", "m3/s"); | |
| 732 | } | ||
| 733 | |||
| 734 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 735 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate During Heating Operation", "m3/s"); | |
| 736 | } | ||
| 737 | |||
| 738 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 739 | ✗ | return getAutosizedValue("Design Size Outdoor Air Flow Rate When No Cooling or Heating is Needed", "m3/s"); | |
| 740 | } | ||
| 741 | |||
| 742 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 743 | ✗ | return getAutosizedValue("Design Size Maximum Supply Air Temperature from Supplemental Heater", "C"); | |
| 744 | } | ||
| 745 | |||
| 746 | ✗ | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::autosize() { | |
| 747 | ✗ | autosizeSupplyAirFlowRateDuringCoolingOperation(); | |
| 748 | ✗ | autosizeSupplyAirFlowRateWhenNoCoolingisNeeded(); | |
| 749 | ✗ | autosizeSupplyAirFlowRateDuringHeatingOperation(); | |
| 750 | ✗ | autosizeSupplyAirFlowRateWhenNoHeatingisNeeded(); | |
| 751 | ✗ | autosizeOutdoorAirFlowRateDuringCoolingOperation(); | |
| 752 | ✗ | autosizeOutdoorAirFlowRateDuringHeatingOperation(); | |
| 753 | ✗ | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 754 | ✗ | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 755 | ✗ | } | |
| 756 | |||
| 757 | ✗ | void ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::applySizingValues() { | |
| 758 | ✗ | boost::optional<double> val; | |
| 759 | ✗ | val = autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 760 | ✗ | if (val) { | |
| 761 | ✗ | setSupplyAirFlowRateDuringCoolingOperation(val.get()); | |
| 762 | } | ||
| 763 | |||
| 764 | ✗ | val = autosizedSupplyAirFlowRateWhenNoCoolingisNeeded(); | |
| 765 | ✗ | if (val) { | |
| 766 | ✗ | setSupplyAirFlowRateWhenNoCoolingisNeeded(val.get()); | |
| 767 | } | ||
| 768 | |||
| 769 | ✗ | val = autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 770 | ✗ | if (val) { | |
| 771 | ✗ | setSupplyAirFlowRateDuringHeatingOperation(val.get()); | |
| 772 | } | ||
| 773 | |||
| 774 | ✗ | val = autosizedSupplyAirFlowRateWhenNoHeatingisNeeded(); | |
| 775 | ✗ | if (val) { | |
| 776 | ✗ | setSupplyAirFlowRateWhenNoHeatingisNeeded(val.get()); | |
| 777 | } | ||
| 778 | |||
| 779 | ✗ | val = autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 780 | ✗ | if (val) { | |
| 781 | ✗ | setOutdoorAirFlowRateDuringCoolingOperation(val.get()); | |
| 782 | } | ||
| 783 | |||
| 784 | ✗ | val = autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 785 | ✗ | if (val) { | |
| 786 | ✗ | setOutdoorAirFlowRateDuringHeatingOperation(val.get()); | |
| 787 | } | ||
| 788 | |||
| 789 | ✗ | val = autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 790 | ✗ | if (val) { | |
| 791 | ✗ | setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get()); | |
| 792 | } | ||
| 793 | |||
| 794 | ✗ | val = autosizedMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 795 | ✗ | if (val) { | |
| 796 | ✗ | setMaximumSupplyAirTemperaturefromSupplementalHeater(val.get()); | |
| 797 | } | ||
| 798 | ✗ | } | |
| 799 | |||
| 800 | ✗ | std::vector<EMSActuatorNames> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::emsActuatorNames() const { | |
| 801 | ✗ | std::vector<EMSActuatorNames> actuators{{"Variable Refrigerant Flow Terminal Unit", "Part Load Ratio"}}; | |
| 802 | ✗ | return actuators; | |
| 803 | ✗ | } | |
| 804 | |||
| 805 | ✗ | std::vector<std::string> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::emsInternalVariableNames() const { | |
| 806 | ✗ | std::vector<std::string> types; | |
| 807 | ✗ | return types; | |
| 808 | } | ||
| 809 | |||
| 810 | 55 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::vrfSystem() const { | |
| 811 | |||
| 812 |
2/2✓ Branch 1 taken 34 times.
✓ Branch 2 taken 21 times.
|
55 | if (isFluidTemperatureControl()) { |
| 813 | |||
| 814 |
4/4✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
✓ Branch 12 taken 17 times.
✓ Branch 13 taken 24 times.
|
41 | for (const auto& vrfSys : this->model().getConcreteModelObjects<AirConditionerVariableRefrigerantFlowFluidTemperatureControl>()) { |
| 815 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 8 taken 20 times.
✓ Branch 9 taken 7 times.
|
27 | for (const auto& term : vrfSys.terminals()) { |
| 816 |
5/5✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
✓ Branch 9 taken 10 times.
✓ Branch 10 taken 10 times.
|
20 | if (term.handle() == this->handle()) { |
| 817 |
1/1✓ Branch 1 taken 10 times.
|
10 | return vrfSys; |
| 818 | } | ||
| 819 | 17 | } | |
| 820 | 34 | } | |
| 821 | |||
| 822 |
4/4✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 12 taken 17 times.
✓ Branch 13 taken 14 times.
|
31 | for (const auto& vrfSys : this->model().getConcreteModelObjects<AirConditionerVariableRefrigerantFlowFluidTemperatureControlHR>()) { |
| 823 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 8 taken 20 times.
✓ Branch 9 taken 7 times.
|
27 | for (const auto& term : vrfSys.terminals()) { |
| 824 |
5/5✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
✓ Branch 9 taken 10 times.
✓ Branch 10 taken 10 times.
|
20 | if (term.handle() == this->handle()) { |
| 825 |
1/1✓ Branch 1 taken 10 times.
|
10 | return vrfSys; |
| 826 | } | ||
| 827 | 17 | } | |
| 828 | 24 | } | |
| 829 | |||
| 830 | } else { | ||
| 831 |
4/4✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 12 taken 21 times.
✓ Branch 13 taken 5 times.
|
26 | for (const auto& vrfSys : this->model().getConcreteModelObjects<AirConditionerVariableRefrigerantFlow>()) { |
| 832 |
3/3✓ Branch 1 taken 21 times.
✓ Branch 8 taken 46 times.
✓ Branch 9 taken 5 times.
|
51 | for (const auto& term : vrfSys.terminals()) { |
| 833 |
5/5✓ Branch 1 taken 46 times.
✓ Branch 4 taken 46 times.
✓ Branch 7 taken 46 times.
✓ Branch 9 taken 16 times.
✓ Branch 10 taken 30 times.
|
46 | if (term.handle() == this->handle()) { |
| 834 |
1/1✓ Branch 1 taken 16 times.
|
16 | return vrfSys; |
| 835 | } | ||
| 836 | 21 | } | |
| 837 | 21 | } | |
| 838 | } | ||
| 839 | |||
| 840 | 19 | return boost::none; | |
| 841 | } | ||
| 842 | |||
| 843 | 2 | ComponentType ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::componentType() const { | |
| 844 |
1/1✓ Branch 1 taken 2 times.
|
2 | const bool has_cooling = coolingCoil().is_initialized(); |
| 845 |
1/1✓ Branch 1 taken 2 times.
|
2 | const bool has_heating = heatingCoil().is_initialized(); |
| 846 | |||
| 847 |
2/4✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
|
2 | if (has_cooling && has_heating) { |
| 848 |
1/1✓ Branch 1 taken 2 times.
|
2 | return ComponentType::Both; |
| 849 | ✗ | } else if (has_cooling) { | |
| 850 | ✗ | return ComponentType::Cooling; | |
| 851 | ✗ | } else if (has_heating) { | |
| 852 | ✗ | return ComponentType::Heating; | |
| 853 | } | ||
| 854 | ✗ | return ComponentType::None; | |
| 855 | } | ||
| 856 | |||
| 857 | 2 | std::vector<FuelType> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::coolingFuelTypes() const { | |
| 858 | 2 | std::set<FuelType> result; | |
| 859 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto cc_ = coolingCoil()) { |
| 860 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
|
4 | for (auto ft : cc_->coolingFuelTypes()) { |
| 861 |
1/1✓ Branch 1 taken 2 times.
|
2 | result.insert(ft); |
| 862 | 2 | } | |
| 863 | 2 | } | |
| 864 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto vrfSys_ = vrfSystem()) { |
| 865 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 4 times.
✓ Branch 12 taken 2 times.
|
6 | for (auto ft : vrfSys_->coolingFuelTypes()) { |
| 866 |
1/1✓ Branch 1 taken 4 times.
|
4 | result.insert(ft); |
| 867 | 2 | } | |
| 868 | 2 | } | |
| 869 | |||
| 870 |
1/1✓ Branch 3 taken 2 times.
|
6 | return {result.begin(), result.end()}; |
| 871 | 2 | } | |
| 872 | |||
| 873 | 2 | std::vector<FuelType> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::heatingFuelTypes() const { | |
| 874 | 2 | std::set<FuelType> result; | |
| 875 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto hc_ = heatingCoil()) { |
| 876 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
|
4 | for (auto ft : hc_->heatingFuelTypes()) { |
| 877 |
1/1✓ Branch 1 taken 2 times.
|
2 | result.insert(ft); |
| 878 | 2 | } | |
| 879 | 2 | } | |
| 880 |
2/3✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
|
4 | if (auto supHC_ = supplementalHeatingCoil()) { |
| 881 | ✗ | for (auto ft : supHC_->heatingFuelTypes()) { | |
| 882 | ✗ | result.insert(ft); | |
| 883 | ✗ | } | |
| 884 | 2 | } | |
| 885 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto vrfSys_ = vrfSystem()) { |
| 886 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
|
4 | for (auto ft : vrfSys_->heatingFuelTypes()) { |
| 887 |
1/1✓ Branch 1 taken 2 times.
|
2 | result.insert(ft); |
| 888 | 2 | } | |
| 889 | 2 | } | |
| 890 | |||
| 891 |
1/1✓ Branch 3 taken 2 times.
|
6 | return {result.begin(), result.end()}; |
| 892 | 2 | } | |
| 893 | |||
| 894 | 2 | std::vector<AppGFuelType> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::appGHeatingFuelTypes() const { | |
| 895 | 2 | std::set<AppGFuelType> result; | |
| 896 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto hc_ = heatingCoil()) { |
| 897 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
|
4 | for (auto ft : hc_->appGHeatingFuelTypes()) { |
| 898 |
1/1✓ Branch 1 taken 2 times.
|
2 | result.insert(ft); |
| 899 | 2 | } | |
| 900 | 2 | } | |
| 901 |
2/3✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
|
4 | if (auto supHC_ = supplementalHeatingCoil()) { |
| 902 | ✗ | for (auto ft : supHC_->appGHeatingFuelTypes()) { | |
| 903 | ✗ | result.insert(ft); | |
| 904 | ✗ | } | |
| 905 | 2 | } | |
| 906 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto vrfSys_ = vrfSystem()) { |
| 907 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
|
4 | for (auto ft : vrfSys_->appGHeatingFuelTypes()) { |
| 908 |
1/1✓ Branch 1 taken 2 times.
|
2 | result.insert(ft); |
| 909 | 2 | } | |
| 910 | 2 | } | |
| 911 | |||
| 912 |
1/1✓ Branch 3 taken 2 times.
|
6 | return {result.begin(), result.end()}; |
| 913 | 2 | } | |
| 914 | |||
| 915 | } // namespace detail | ||
| 916 | |||
| 917 | 40 | ZoneHVACTerminalUnitVariableRefrigerantFlow::ZoneHVACTerminalUnitVariableRefrigerantFlow(const Model& model, bool isFluidTemperatureControl) | |
| 918 | 40 | : ZoneHVACComponent(ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType(), model) { | |
| 919 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 40 times.
✗ Branch 5 not taken.
|
40 | OS_ASSERT(getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()); |
| 920 | |||
| 921 |
1/1✓ Branch 1 taken 40 times.
|
40 | Schedule alwaysOnSchedule = model.alwaysOnDiscreteSchedule(); |
| 922 |
1/1✓ Branch 1 taken 40 times.
|
40 | setTerminalUnitAvailabilityschedule(alwaysOnSchedule); |
| 923 | |||
| 924 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 925 | |||
| 926 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeSupplyAirFlowRateWhenNoCoolingisNeeded(); |
| 927 | |||
| 928 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 929 | |||
| 930 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeSupplyAirFlowRateWhenNoHeatingisNeeded(); |
| 931 | |||
| 932 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 933 | |||
| 934 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 935 | |||
| 936 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 937 | |||
| 938 |
1/1✓ Branch 1 taken 40 times.
|
40 | setSupplyAirFanOperatingModeSchedule(alwaysOnSchedule); |
| 939 | |||
| 940 |
1/1✓ Branch 1 taken 40 times.
|
40 | setZoneTerminalUnitOnParasiticElectricEnergyUse(30); |
| 941 | |||
| 942 |
1/1✓ Branch 1 taken 40 times.
|
40 | setZoneTerminalUnitOffParasiticElectricEnergyUse(20); |
| 943 | |||
| 944 |
1/1✓ Branch 1 taken 40 times.
|
40 | setRatedTotalHeatingCapacitySizingRatio(1.0); |
| 945 | |||
| 946 |
1/1✓ Branch 1 taken 40 times.
|
40 | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 947 |
1/1✓ Branch 1 taken 40 times.
|
40 | setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(21.0); |
| 948 | |||
| 949 |
2/2✓ Branch 1 taken 40 times.
✓ Branch 4 taken 40 times.
|
40 | setSupplyAirFanPlacement("DrawThrough"); |
| 950 | |||
| 951 |
2/2✓ Branch 0 taken 8 times.
✓ Branch 1 taken 32 times.
|
40 | if (isFluidTemperatureControl) { |
| 952 |
1/1✓ Branch 1 taken 8 times.
|
8 | CoilCoolingDXVariableRefrigerantFlowFluidTemperatureControl coolingCoil(model); |
| 953 |
4/4✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
|
8 | coolingCoil.setName(name().get() + " Cooling Coil"); |
| 954 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coolingCoil); |
| 955 | |||
| 956 |
1/1✓ Branch 1 taken 8 times.
|
8 | CoilHeatingDXVariableRefrigerantFlowFluidTemperatureControl heatingCoil(model); |
| 957 |
4/4✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
|
8 | heatingCoil.setName(name().get() + " Heating Coil"); |
| 958 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(heatingCoil); |
| 959 | |||
| 960 |
1/1✓ Branch 1 taken 8 times.
|
8 | FanSystemModel fan(model); |
| 961 |
4/4✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
|
8 | fan.setName(name().get() + " Fan"); |
| 962 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fan); |
| 963 | 8 | } else { | |
| 964 |
1/1✓ Branch 1 taken 32 times.
|
32 | CoilCoolingDXVariableRefrigerantFlow coolingCoil(model); |
| 965 |
4/4✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
✓ Branch 7 taken 32 times.
✓ Branch 10 taken 32 times.
|
32 | coolingCoil.setName(name().get() + " Cooling Coil"); |
| 966 |
1/1✓ Branch 3 taken 32 times.
|
32 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coolingCoil); |
| 967 | |||
| 968 |
1/1✓ Branch 1 taken 32 times.
|
32 | CoilHeatingDXVariableRefrigerantFlow heatingCoil(model); |
| 969 |
4/4✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
✓ Branch 7 taken 32 times.
✓ Branch 10 taken 32 times.
|
32 | heatingCoil.setName(name().get() + " Heating Coil"); |
| 970 |
1/1✓ Branch 3 taken 32 times.
|
32 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(heatingCoil); |
| 971 | |||
| 972 |
1/1✓ Branch 1 taken 32 times.
|
32 | FanOnOff fan(model, alwaysOnSchedule); |
| 973 |
4/4✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
✓ Branch 7 taken 32 times.
✓ Branch 10 taken 32 times.
|
32 | fan.setName(name().get() + " Fan"); |
| 974 |
1/1✓ Branch 3 taken 32 times.
|
32 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fan); |
| 975 | 32 | } | |
| 976 | 40 | } | |
| 977 | |||
| 978 | 15 | ZoneHVACTerminalUnitVariableRefrigerantFlow::ZoneHVACTerminalUnitVariableRefrigerantFlow(const Model& model, | |
| 979 | const CoilCoolingDXVariableRefrigerantFlow& coolingCoil, | ||
| 980 | const CoilHeatingDXVariableRefrigerantFlow& heatingCoil, | ||
| 981 | 15 | const HVACComponent& fan) | |
| 982 | 15 | : ZoneHVACComponent(ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType(), model) { | |
| 983 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 5 not taken.
|
15 | OS_ASSERT(getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()); |
| 984 | |||
| 985 |
1/1✓ Branch 1 taken 15 times.
|
15 | Schedule alwaysOnSchedule = model.alwaysOnDiscreteSchedule(); |
| 986 |
1/1✓ Branch 1 taken 15 times.
|
15 | setTerminalUnitAvailabilityschedule(alwaysOnSchedule); |
| 987 | |||
| 988 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 989 | |||
| 990 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeSupplyAirFlowRateWhenNoCoolingisNeeded(); |
| 991 | |||
| 992 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 993 | |||
| 994 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeSupplyAirFlowRateWhenNoHeatingisNeeded(); |
| 995 | |||
| 996 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 997 | |||
| 998 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 999 | |||
| 1000 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1001 | |||
| 1002 |
1/1✓ Branch 1 taken 15 times.
|
15 | setSupplyAirFanOperatingModeSchedule(alwaysOnSchedule); |
| 1003 | |||
| 1004 |
1/1✓ Branch 1 taken 15 times.
|
15 | setZoneTerminalUnitOnParasiticElectricEnergyUse(30); |
| 1005 | |||
| 1006 |
1/1✓ Branch 1 taken 15 times.
|
15 | setZoneTerminalUnitOffParasiticElectricEnergyUse(20); |
| 1007 | |||
| 1008 |
1/1✓ Branch 1 taken 15 times.
|
15 | setRatedTotalHeatingCapacitySizingRatio(1.0); |
| 1009 | |||
| 1010 |
1/1✓ Branch 1 taken 15 times.
|
15 | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 1011 |
1/1✓ Branch 1 taken 15 times.
|
15 | setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(21.0); |
| 1012 | |||
| 1013 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
15 | setSupplyAirFanPlacement("DrawThrough"); |
| 1014 | |||
| 1015 |
1/1✓ Branch 1 taken 15 times.
|
15 | bool ok = setCoolingCoil(coolingCoil); |
| 1016 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (!ok) { |
| 1017 | ✗ | remove(); | |
| 1018 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Cooling Coil to " << coolingCoil.briefDescription() << "."); | |
| 1019 | } | ||
| 1020 | |||
| 1021 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setHeatingCoil(heatingCoil); |
| 1022 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (!ok) { |
| 1023 | ✗ | remove(); | |
| 1024 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Heating Coil to " << fan.briefDescription() << "."); | |
| 1025 | } | ||
| 1026 | |||
| 1027 |
1/1✓ Branch 3 taken 15 times.
|
15 | ok = getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fan); |
| 1028 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 14 times.
|
15 | if (!ok) { |
| 1029 |
1/1✓ Branch 1 taken 1 time.
|
1 | remove(); |
| 1030 |
25/25✓ 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.
✓ Branch 39 taken 1 time.
✓ Branch 42 taken 1 time.
✓ Branch 45 taken 1 time.
✓ Branch 48 taken 1 time.
✓ Branch 51 taken 1 time.
✓ Branch 54 taken 1 time.
✓ Branch 57 taken 1 time.
✓ Branch 60 taken 1 time.
✓ Branch 63 taken 1 time.
✓ Branch 66 taken 1 time.
✓ Branch 69 taken 1 time.
✓ Branch 72 taken 1 time.
✓ Branch 78 taken 1 time.
✓ Branch 81 taken 1 time.
|
1 | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Supply Air Fan to " << fan.briefDescription() << "."); |
| 1031 | } | ||
| 1032 | 16 | } | |
| 1033 | |||
| 1034 | 17 | ZoneHVACTerminalUnitVariableRefrigerantFlow::ZoneHVACTerminalUnitVariableRefrigerantFlow( | |
| 1035 | const Model& model, const CoilCoolingDXVariableRefrigerantFlowFluidTemperatureControl& coolingCoil, | ||
| 1036 | 17 | const CoilHeatingDXVariableRefrigerantFlowFluidTemperatureControl& heatingCoil, const HVACComponent& fan) | |
| 1037 | 17 | : ZoneHVACComponent(ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType(), model) { | |
| 1038 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 17 times.
✗ Branch 5 not taken.
|
17 | OS_ASSERT(getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()); |
| 1039 | |||
| 1040 |
1/1✓ Branch 1 taken 17 times.
|
17 | Schedule alwaysOnSchedule = model.alwaysOnDiscreteSchedule(); |
| 1041 |
1/1✓ Branch 1 taken 17 times.
|
17 | setTerminalUnitAvailabilityschedule(alwaysOnSchedule); |
| 1042 | |||
| 1043 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 1044 | |||
| 1045 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeSupplyAirFlowRateWhenNoCoolingisNeeded(); |
| 1046 | |||
| 1047 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 1048 | |||
| 1049 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeSupplyAirFlowRateWhenNoHeatingisNeeded(); |
| 1050 | |||
| 1051 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 1052 | |||
| 1053 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 1054 | |||
| 1055 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1056 | |||
| 1057 |
1/1✓ Branch 1 taken 17 times.
|
17 | setSupplyAirFanOperatingModeSchedule(alwaysOnSchedule); |
| 1058 | |||
| 1059 |
1/1✓ Branch 1 taken 17 times.
|
17 | setZoneTerminalUnitOnParasiticElectricEnergyUse(30); |
| 1060 | |||
| 1061 |
1/1✓ Branch 1 taken 17 times.
|
17 | setZoneTerminalUnitOffParasiticElectricEnergyUse(20); |
| 1062 | |||
| 1063 |
1/1✓ Branch 1 taken 17 times.
|
17 | setRatedTotalHeatingCapacitySizingRatio(1.0); |
| 1064 | |||
| 1065 |
1/1✓ Branch 1 taken 17 times.
|
17 | autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 1066 |
1/1✓ Branch 1 taken 17 times.
|
17 | setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(21.0); |
| 1067 | |||
| 1068 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | setSupplyAirFanPlacement("DrawThrough"); |
| 1069 | |||
| 1070 |
1/1✓ Branch 1 taken 17 times.
|
17 | bool ok = setCoolingCoil(coolingCoil); |
| 1071 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (!ok) { |
| 1072 | ✗ | remove(); | |
| 1073 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Cooling Coil to " << coolingCoil.briefDescription() << "."); | |
| 1074 | } | ||
| 1075 |
2/4✓ Branch 1 taken 17 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 17 times.
✗ Branch 7 not taken.
|
17 | OS_ASSERT(this->coolingCoil()); |
| 1076 | |||
| 1077 |
1/1✓ Branch 1 taken 17 times.
|
17 | ok = setHeatingCoil(heatingCoil); |
| 1078 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (!ok) { |
| 1079 | ✗ | remove(); | |
| 1080 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Heating Coil to " << fan.briefDescription() << "."); | |
| 1081 | } | ||
| 1082 | |||
| 1083 |
1/1✓ Branch 3 taken 17 times.
|
17 | ok = getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fan); |
| 1084 |
2/2✓ Branch 0 taken 2 times.
✓ Branch 1 taken 15 times.
|
17 | if (!ok) { |
| 1085 |
1/1✓ Branch 1 taken 2 times.
|
2 | remove(); |
| 1086 |
25/25✓ 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 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 27 taken 2 times.
✓ Branch 30 taken 2 times.
✓ Branch 33 taken 2 times.
✓ Branch 39 taken 2 times.
✓ Branch 42 taken 2 times.
✓ Branch 45 taken 2 times.
✓ Branch 48 taken 2 times.
✓ Branch 51 taken 2 times.
✓ Branch 54 taken 2 times.
✓ Branch 57 taken 2 times.
✓ Branch 60 taken 2 times.
✓ Branch 63 taken 2 times.
✓ Branch 66 taken 2 times.
✓ Branch 69 taken 2 times.
✓ Branch 72 taken 2 times.
✓ Branch 78 taken 2 times.
✓ Branch 81 taken 2 times.
|
2 | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Supply Air Fan to " << fan.briefDescription() << "."); |
| 1087 | } | ||
| 1088 | 19 | } | |
| 1089 | |||
| 1090 | 7843 | IddObjectType ZoneHVACTerminalUnitVariableRefrigerantFlow::iddObjectType() { | |
| 1091 |
1/1✓ Branch 1 taken 7843 times.
|
7843 | return {IddObjectType::OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlow}; |
| 1092 | } | ||
| 1093 | |||
| 1094 | ✗ | std::vector<std::string> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFanPlacementValues() { | |
| 1095 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 1096 | ✗ | OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::SupplyAirFanPlacement); | |
| 1097 | } | ||
| 1098 | |||
| 1099 | 28 | Schedule ZoneHVACTerminalUnitVariableRefrigerantFlow::terminalUnitAvailabilityschedule() const { | |
| 1100 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->terminalUnitAvailabilityschedule(); |
| 1101 | } | ||
| 1102 | |||
| 1103 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFlowRateDuringCoolingOperation() const { | |
| 1104 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFlowRateDuringCoolingOperation(); | |
| 1105 | } | ||
| 1106 | |||
| 1107 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isSupplyAirFlowRateDuringCoolingOperationAutosized() const { | |
| 1108 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isSupplyAirFlowRateDuringCoolingOperationAutosized(); |
| 1109 | } | ||
| 1110 | |||
| 1111 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFlowRateWhenNoCoolingisNeeded() const { | |
| 1112 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFlowRateWhenNoCoolingisNeeded(); | |
| 1113 | } | ||
| 1114 | |||
| 1115 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isSupplyAirFlowRateWhenNoCoolingisNeededAutosized() const { | |
| 1116 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isSupplyAirFlowRateWhenNoCoolingisNeededAutosized(); |
| 1117 | } | ||
| 1118 | |||
| 1119 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFlowRateDuringHeatingOperation() const { | |
| 1120 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFlowRateDuringHeatingOperation(); | |
| 1121 | } | ||
| 1122 | |||
| 1123 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isSupplyAirFlowRateDuringHeatingOperationAutosized() const { | |
| 1124 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isSupplyAirFlowRateDuringHeatingOperationAutosized(); |
| 1125 | } | ||
| 1126 | |||
| 1127 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFlowRateWhenNoHeatingisNeeded() const { | |
| 1128 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFlowRateWhenNoHeatingisNeeded(); | |
| 1129 | } | ||
| 1130 | |||
| 1131 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isSupplyAirFlowRateWhenNoHeatingisNeededAutosized() const { | |
| 1132 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isSupplyAirFlowRateWhenNoHeatingisNeededAutosized(); |
| 1133 | } | ||
| 1134 | |||
| 1135 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::outdoorAirFlowRateDuringCoolingOperation() const { | |
| 1136 |
1/1✓ Branch 3 taken 21 times.
|
21 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->outdoorAirFlowRateDuringCoolingOperation(); |
| 1137 | } | ||
| 1138 | |||
| 1139 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isOutdoorAirFlowRateDuringCoolingOperationAutosized() const { | |
| 1140 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isOutdoorAirFlowRateDuringCoolingOperationAutosized(); |
| 1141 | } | ||
| 1142 | |||
| 1143 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::outdoorAirFlowRateDuringHeatingOperation() const { | |
| 1144 |
1/1✓ Branch 3 taken 21 times.
|
21 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->outdoorAirFlowRateDuringHeatingOperation(); |
| 1145 | } | ||
| 1146 | |||
| 1147 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isOutdoorAirFlowRateDuringHeatingOperationAutosized() const { | |
| 1148 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isOutdoorAirFlowRateDuringHeatingOperationAutosized(); |
| 1149 | } | ||
| 1150 | |||
| 1151 | 21 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 1152 |
1/1✓ Branch 3 taken 21 times.
|
21 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1153 | } | ||
| 1154 | |||
| 1155 | 28 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const { | |
| 1156 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized(); |
| 1157 | } | ||
| 1158 | |||
| 1159 | 28 | Schedule ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFanOperatingModeSchedule() const { | |
| 1160 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFanOperatingModeSchedule(); |
| 1161 | } | ||
| 1162 | |||
| 1163 | 34 | HVACComponent ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFan() const { | |
| 1164 |
1/1✓ Branch 3 taken 34 times.
|
34 | boost::optional<HVACComponent> fan_ = getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFan(); |
| 1165 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 34 times.
|
34 | if (!fan_) { |
| 1166 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Supply Air Fan attached."); | |
| 1167 | } | ||
| 1168 |
2/2✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
|
68 | return fan_.get(); |
| 1169 | 34 | } | |
| 1170 | |||
| 1171 | 51 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow::coolingCoil() const { | |
| 1172 |
1/1✓ Branch 3 taken 51 times.
|
51 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->coolingCoil(); |
| 1173 | } | ||
| 1174 | |||
| 1175 | 34 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow::heatingCoil() const { | |
| 1176 |
1/1✓ Branch 3 taken 34 times.
|
34 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->heatingCoil(); |
| 1177 | } | ||
| 1178 | |||
| 1179 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow::zoneTerminalUnitOnParasiticElectricEnergyUse() const { | |
| 1180 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->zoneTerminalUnitOnParasiticElectricEnergyUse(); |
| 1181 | } | ||
| 1182 | |||
| 1183 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow::zoneTerminalUnitOffParasiticElectricEnergyUse() const { | |
| 1184 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->zoneTerminalUnitOffParasiticElectricEnergyUse(); |
| 1185 | } | ||
| 1186 | |||
| 1187 | 28 | double ZoneHVACTerminalUnitVariableRefrigerantFlow::ratedTotalHeatingCapacitySizingRatio() const { | |
| 1188 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->ratedTotalHeatingCapacitySizingRatio(); |
| 1189 | } | ||
| 1190 | |||
| 1191 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setTerminalUnitAvailabilityschedule(Schedule& schedule) { | |
| 1192 |
1/1✓ Branch 3 taken 72 times.
|
72 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setTerminalUnitAvailabilityschedule(schedule); |
| 1193 | } | ||
| 1194 | |||
| 1195 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFlowRateDuringCoolingOperation(double supplyAirFlowRateDuringCoolingOperation) { | |
| 1196 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFlowRateDuringCoolingOperation( | |
| 1197 | ✗ | supplyAirFlowRateDuringCoolingOperation); | |
| 1198 | } | ||
| 1199 | |||
| 1200 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeSupplyAirFlowRateDuringCoolingOperation() { | |
| 1201 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeSupplyAirFlowRateDuringCoolingOperation(); |
| 1202 | 72 | } | |
| 1203 | |||
| 1204 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFlowRateWhenNoCoolingisNeeded(double supplyAirFlowRateWhenNoCoolingisNeeded) { | |
| 1205 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFlowRateWhenNoCoolingisNeeded( | |
| 1206 | ✗ | supplyAirFlowRateWhenNoCoolingisNeeded); | |
| 1207 | } | ||
| 1208 | |||
| 1209 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeSupplyAirFlowRateWhenNoCoolingisNeeded() { | |
| 1210 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeSupplyAirFlowRateWhenNoCoolingisNeeded(); |
| 1211 | 72 | } | |
| 1212 | |||
| 1213 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFlowRateDuringHeatingOperation(double supplyAirFlowRateDuringHeatingOperation) { | |
| 1214 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFlowRateDuringHeatingOperation( | |
| 1215 | ✗ | supplyAirFlowRateDuringHeatingOperation); | |
| 1216 | } | ||
| 1217 | |||
| 1218 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeSupplyAirFlowRateDuringHeatingOperation() { | |
| 1219 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeSupplyAirFlowRateDuringHeatingOperation(); |
| 1220 | 72 | } | |
| 1221 | |||
| 1222 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFlowRateWhenNoHeatingisNeeded(double supplyAirFlowRateWhenNoHeatingisNeeded) { | |
| 1223 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFlowRateWhenNoHeatingisNeeded( | |
| 1224 | ✗ | supplyAirFlowRateWhenNoHeatingisNeeded); | |
| 1225 | } | ||
| 1226 | |||
| 1227 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeSupplyAirFlowRateWhenNoHeatingisNeeded() { | |
| 1228 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeSupplyAirFlowRateWhenNoHeatingisNeeded(); |
| 1229 | 72 | } | |
| 1230 | |||
| 1231 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setOutdoorAirFlowRateDuringCoolingOperation(double outdoorAirFlowRateDuringCoolingOperation) { | |
| 1232 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setOutdoorAirFlowRateDuringCoolingOperation( | |
| 1233 | ✗ | outdoorAirFlowRateDuringCoolingOperation); | |
| 1234 | } | ||
| 1235 | |||
| 1236 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeOutdoorAirFlowRateDuringCoolingOperation() { | |
| 1237 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeOutdoorAirFlowRateDuringCoolingOperation(); |
| 1238 | 72 | } | |
| 1239 | |||
| 1240 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setOutdoorAirFlowRateDuringHeatingOperation(double outdoorAirFlowRateDuringHeatingOperation) { | |
| 1241 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setOutdoorAirFlowRateDuringHeatingOperation( | |
| 1242 | ✗ | outdoorAirFlowRateDuringHeatingOperation); | |
| 1243 | } | ||
| 1244 | |||
| 1245 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeOutdoorAirFlowRateDuringHeatingOperation() { | |
| 1246 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeOutdoorAirFlowRateDuringHeatingOperation(); |
| 1247 | 72 | } | |
| 1248 | |||
| 1249 | ✗ | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 1250 | double outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded) { | ||
| 1251 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded( | |
| 1252 | ✗ | outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded); | |
| 1253 | } | ||
| 1254 | |||
| 1255 | 72 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() { | |
| 1256 |
1/1✓ Branch 3 taken 72 times.
|
72 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); |
| 1257 | 72 | } | |
| 1258 | |||
| 1259 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) { | |
| 1260 |
1/1✓ Branch 3 taken 72 times.
|
72 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFanOperatingModeSchedule(schedule); |
| 1261 | } | ||
| 1262 | |||
| 1263 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setZoneTerminalUnitOnParasiticElectricEnergyUse( | |
| 1264 | double zoneTerminalUnitOnParasiticElectricEnergyUse) { | ||
| 1265 |
1/1✓ Branch 3 taken 72 times.
|
144 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setZoneTerminalUnitOnParasiticElectricEnergyUse( |
| 1266 | 144 | zoneTerminalUnitOnParasiticElectricEnergyUse); | |
| 1267 | } | ||
| 1268 | |||
| 1269 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setZoneTerminalUnitOffParasiticElectricEnergyUse( | |
| 1270 | double zoneTerminalUnitOffParasiticElectricEnergyUse) { | ||
| 1271 |
1/1✓ Branch 3 taken 72 times.
|
144 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setZoneTerminalUnitOffParasiticElectricEnergyUse( |
| 1272 | 144 | zoneTerminalUnitOffParasiticElectricEnergyUse); | |
| 1273 | } | ||
| 1274 | |||
| 1275 | 72 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setRatedTotalHeatingCapacitySizingRatio(double ratedTotalHeatingCapacitySizingRatio) { | |
| 1276 |
1/1✓ Branch 3 taken 72 times.
|
144 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setRatedTotalHeatingCapacitySizingRatio( |
| 1277 | 144 | ratedTotalHeatingCapacitySizingRatio); | |
| 1278 | } | ||
| 1279 | |||
| 1280 | 36 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setCoolingCoil(const HVACComponent& coil) { | |
| 1281 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coil); |
| 1282 | } | ||
| 1283 | |||
| 1284 | 36 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setHeatingCoil(const HVACComponent& coil) { | |
| 1285 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(coil); |
| 1286 | } | ||
| 1287 | |||
| 1288 | 49 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isFluidTemperatureControl() const { | |
| 1289 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isFluidTemperatureControl(); |
| 1290 | } | ||
| 1291 | |||
| 1292 | 34 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow::supplementalHeatingCoil() const { | |
| 1293 |
1/1✓ Branch 3 taken 34 times.
|
34 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplementalHeatingCoil(); |
| 1294 | } | ||
| 1295 | |||
| 1296 | 5 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplementalHeatingCoil(const HVACComponent& coil) { | |
| 1297 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplementalHeatingCoil(coil); |
| 1298 | } | ||
| 1299 | |||
| 1300 | 1 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::resetSupplementalHeatingCoil() { | |
| 1301 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->resetSupplementalHeatingCoil(); |
| 1302 | 1 | } | |
| 1303 | |||
| 1304 | 5 | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::maximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 1305 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->maximumSupplyAirTemperaturefromSupplementalHeater(); |
| 1306 | } | ||
| 1307 | |||
| 1308 | 2 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setMaximumSupplyAirTemperaturefromSupplementalHeater( | |
| 1309 | double maximumSupplyAirTemperaturefromSupplementalHeater) { | ||
| 1310 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setMaximumSupplyAirTemperaturefromSupplementalHeater( |
| 1311 | 4 | maximumSupplyAirTemperaturefromSupplementalHeater); | |
| 1312 | } | ||
| 1313 | |||
| 1314 | 31 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const { | |
| 1315 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized(); |
| 1316 | } | ||
| 1317 | |||
| 1318 | 74 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() { | |
| 1319 |
1/1✓ Branch 3 taken 74 times.
|
74 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizeMaximumSupplyAirTemperaturefromSupplementalHeater(); |
| 1320 | 74 | } | |
| 1321 | |||
| 1322 | 76 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( | |
| 1323 | double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) { | ||
| 1324 |
1/1✓ Branch 3 taken 76 times.
|
152 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation( |
| 1325 | 152 | maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation); | |
| 1326 | } | ||
| 1327 | |||
| 1328 | 31 | double ZoneHVACTerminalUnitVariableRefrigerantFlow::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const { | |
| 1329 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(); |
| 1330 | } | ||
| 1331 | |||
| 1332 | 32 | boost::optional<ThermalZone> ZoneHVACTerminalUnitVariableRefrigerantFlow::controllingZoneorThermostatLocation() const { | |
| 1333 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->controllingZoneorThermostatLocation(); |
| 1334 | } | ||
| 1335 | |||
| 1336 | 2 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setControllingZoneorThermostatLocation(const ThermalZone& thermalZone) { | |
| 1337 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setControllingZoneorThermostatLocation(thermalZone); |
| 1338 | } | ||
| 1339 | |||
| 1340 | 1 | void ZoneHVACTerminalUnitVariableRefrigerantFlow::resetControllingZoneorThermostatLocation() { | |
| 1341 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->resetControllingZoneorThermostatLocation(); |
| 1342 | 1 | } | |
| 1343 | |||
| 1344 | 34 | std::string ZoneHVACTerminalUnitVariableRefrigerantFlow::supplyAirFanPlacement() const { | |
| 1345 |
1/1✓ Branch 3 taken 34 times.
|
34 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->supplyAirFanPlacement(); |
| 1346 | } | ||
| 1347 | |||
| 1348 | 77 | bool ZoneHVACTerminalUnitVariableRefrigerantFlow::setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement) { | |
| 1349 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFanPlacement(supplyAirFanPlacement); |
| 1350 | } | ||
| 1351 | |||
| 1352 | /// @cond | ||
| 1353 | 206 | ZoneHVACTerminalUnitVariableRefrigerantFlow::ZoneHVACTerminalUnitVariableRefrigerantFlow( | |
| 1354 | 206 | std::shared_ptr<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl> impl) | |
| 1355 |
1/1✓ Branch 3 taken 206 times.
|
206 | : ZoneHVACComponent(std::move(impl)) {} |
| 1356 | /// @endcond | ||
| 1357 | |||
| 1358 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedSupplyAirFlowRateDuringCoolingOperation() const { | |
| 1359 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedSupplyAirFlowRateDuringCoolingOperation(); | |
| 1360 | } | ||
| 1361 | |||
| 1362 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedSupplyAirFlowRateWhenNoCoolingisNeeded() const { | |
| 1363 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedSupplyAirFlowRateWhenNoCoolingisNeeded(); | |
| 1364 | } | ||
| 1365 | |||
| 1366 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedSupplyAirFlowRateDuringHeatingOperation() const { | |
| 1367 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedSupplyAirFlowRateDuringHeatingOperation(); | |
| 1368 | } | ||
| 1369 | |||
| 1370 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedSupplyAirFlowRateWhenNoHeatingisNeeded() const { | |
| 1371 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedSupplyAirFlowRateWhenNoHeatingisNeeded(); | |
| 1372 | } | ||
| 1373 | |||
| 1374 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedOutdoorAirFlowRateDuringCoolingOperation() const { | |
| 1375 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedOutdoorAirFlowRateDuringCoolingOperation(); | |
| 1376 | } | ||
| 1377 | |||
| 1378 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedOutdoorAirFlowRateDuringHeatingOperation() const { | |
| 1379 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedOutdoorAirFlowRateDuringHeatingOperation(); | |
| 1380 | } | ||
| 1381 | |||
| 1382 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const { | |
| 1383 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(); | |
| 1384 | } | ||
| 1385 | |||
| 1386 | ✗ | boost::optional<double> ZoneHVACTerminalUnitVariableRefrigerantFlow::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const { | |
| 1387 | ✗ | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->autosizedMaximumSupplyAirTemperaturefromSupplementalHeater(); | |
| 1388 | } | ||
| 1389 | |||
| 1390 | 49 | boost::optional<HVACComponent> ZoneHVACTerminalUnitVariableRefrigerantFlow::vrfSystem() const { | |
| 1391 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->vrfSystem(); |
| 1392 | } | ||
| 1393 | |||
| 1394 | } // namespace model | ||
| 1395 | } // namespace openstudio | ||
| 1396 |