src/model/WaterHeaterHeatPumpWrappedCondenser.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 "WaterHeaterHeatPumpWrappedCondenser.hpp" | ||
| 7 | #include "WaterHeaterHeatPumpWrappedCondenser_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Schedule.hpp" | ||
| 10 | #include "Schedule_Impl.hpp" | ||
| 11 | #include "Model.hpp" | ||
| 12 | #include "Model_Impl.hpp" | ||
| 13 | #include "HVACComponent.hpp" | ||
| 14 | #include "HVACComponent_Impl.hpp" | ||
| 15 | #include "FanOnOff.hpp" | ||
| 16 | #include "FanOnOff_Impl.hpp" | ||
| 17 | #include "Node.hpp" | ||
| 18 | // #include "FanSystemModel.hpp" | ||
| 19 | #include "WaterToWaterComponent.hpp" | ||
| 20 | #include "WaterToWaterComponent_Impl.hpp" | ||
| 21 | #include "ThermalZone.hpp" | ||
| 22 | #include "ThermalZone_Impl.hpp" | ||
| 23 | #include "WaterHeaterStratified.hpp" | ||
| 24 | #include "WaterHeaterStratified_Impl.hpp" | ||
| 25 | #include "ScheduleRuleset.hpp" | ||
| 26 | #include "ScheduleRuleset_Impl.hpp" | ||
| 27 | #include "ScheduleDay.hpp" | ||
| 28 | #include "ScheduleDay_Impl.hpp" | ||
| 29 | #include "CoilWaterHeatingAirToWaterHeatPumpWrapped.hpp" | ||
| 30 | #include "CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl.hpp" | ||
| 31 | #include "ScheduleTypeLimits.hpp" | ||
| 32 | #include "ScheduleTypeRegistry.hpp" | ||
| 33 | |||
| 34 | #include "../utilities/core/Assert.hpp" | ||
| 35 | #include "../utilities/data/DataEnums.hpp" | ||
| 36 | |||
| 37 | #include <utilities/idd/IddFactory.hxx> | ||
| 38 | #include <utilities/idd/IddEnums.hxx> | ||
| 39 | #include <utilities/idd/OS_WaterHeater_HeatPump_WrappedCondenser_FieldEnums.hxx> | ||
| 40 | |||
| 41 | namespace openstudio { | ||
| 42 | namespace model { | ||
| 43 | |||
| 44 | namespace detail { | ||
| 45 | |||
| 46 | 6 | WaterHeaterHeatPumpWrappedCondenser_Impl::WaterHeaterHeatPumpWrappedCondenser_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 47 | 6 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 48 |
4/6✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 6 times.
✗ Branch 13 not taken.
|
6 | OS_ASSERT(idfObject.iddObject().type() == WaterHeaterHeatPumpWrappedCondenser::iddObjectType()); |
| 49 | 6 | } | |
| 50 | |||
| 51 | ✗ | WaterHeaterHeatPumpWrappedCondenser_Impl::WaterHeaterHeatPumpWrappedCondenser_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 52 | ✗ | Model_Impl* model, bool keepHandle) | |
| 53 | ✗ | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 54 | ✗ | OS_ASSERT(other.iddObject().type() == WaterHeaterHeatPumpWrappedCondenser::iddObjectType()); | |
| 55 | ✗ | } | |
| 56 | |||
| 57 | 3 | WaterHeaterHeatPumpWrappedCondenser_Impl::WaterHeaterHeatPumpWrappedCondenser_Impl(const WaterHeaterHeatPumpWrappedCondenser_Impl& other, | |
| 58 | 3 | Model_Impl* model, bool keepHandle) | |
| 59 | 3 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 60 | |||
| 61 | ✗ | const std::vector<std::string>& WaterHeaterHeatPumpWrappedCondenser_Impl::outputVariableNames() const { | |
| 62 | static const std::vector<std::string> result{"Water Heater Compressor Part Load Ratio", "Water Heater On Cycle Ancillary Electricity Rate", | ||
| 63 | "Water Heater On Cycle Ancillary Electricity Energy", | ||
| 64 | "Water Heater Off Cycle Ancillary Electricity Rate", | ||
| 65 | ✗ | "Water Heater Off Cycle Ancillary Electricity Energy"}; | |
| 66 | ✗ | return result; | |
| 67 | ✗ | } | |
| 68 | |||
| 69 | 10 | IddObjectType WaterHeaterHeatPumpWrappedCondenser_Impl::iddObjectType() const { | |
| 70 | 10 | return WaterHeaterHeatPumpWrappedCondenser::iddObjectType(); | |
| 71 | } | ||
| 72 | |||
| 73 | ✗ | std::vector<ScheduleTypeKey> WaterHeaterHeatPumpWrappedCondenser_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 74 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 75 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 76 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 77 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 78 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::AvailabilityScheduleName) != e) { | |
| 79 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Availability")); | |
| 80 | } | ||
| 81 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorSetpointTemperatureScheduleName) != e) { | |
| 82 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Compressor Setpoint Temperature")); | |
| 83 | } | ||
| 84 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirTemperatureScheduleName) != e) { | |
| 85 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Inlet Air Temperature")); | |
| 86 | } | ||
| 87 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirHumidityScheduleName) != e) { | |
| 88 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Inlet Air Humidity")); | |
| 89 | } | ||
| 90 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorAmbientTemperatureScheduleName) != e) { | |
| 91 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Compressor Ambient Temperature")); | |
| 92 | } | ||
| 93 | ✗ | if (std::find(b, e, OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirMixerScheduleName) != e) { | |
| 94 | ✗ | result.push_back(ScheduleTypeKey("WaterHeaterHeatPumpWrappedCondenser", "Inlet Air Mixer")); | |
| 95 | } | ||
| 96 | ✗ | return result; | |
| 97 | ✗ | } | |
| 98 | |||
| 99 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::availabilitySchedule() const { | |
| 100 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_WaterHeater_HeatPump_WrappedCondenserFields::AvailabilityScheduleName); |
| 101 | } | ||
| 102 | |||
| 103 | 4 | Schedule WaterHeaterHeatPumpWrappedCondenser_Impl::compressorSetpointTemperatureSchedule() const { | |
| 104 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Schedule> value = optionalCompressorSetpointTemperatureSchedule(); |
| 105 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 106 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Compressor Setpoint Temperature Schedule attached."); | |
| 107 | } | ||
| 108 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 109 | 4 | } | |
| 110 | |||
| 111 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::deadBandTemperatureDifference() const { | |
| 112 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::DeadBandTemperatureDifference, true); |
| 113 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 114 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 115 | } | ||
| 116 | |||
| 117 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::condenserBottomLocation() const { | |
| 118 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::CondenserBottomLocation, true); |
| 119 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 120 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 121 | } | ||
| 122 | |||
| 123 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::condenserTopLocation() const { | |
| 124 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::CondenserTopLocation, true); |
| 125 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 126 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 127 | } | ||
| 128 | |||
| 129 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser_Impl::evaporatorAirFlowRate() const { | |
| 130 | 7 | return getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::EvaporatorAirFlowRate, true); | |
| 131 | } | ||
| 132 | |||
| 133 | 5 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::isEvaporatorAirFlowRateAutocalculated() const { | |
| 134 | 5 | bool result = false; | |
| 135 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::EvaporatorAirFlowRate, true); |
| 136 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 137 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autocalculate"); |
| 138 | } | ||
| 139 | 5 | return result; | |
| 140 | 5 | } | |
| 141 | |||
| 142 | 19 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::inletAirConfiguration() const { | |
| 143 |
1/1✓ Branch 1 taken 19 times.
|
19 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirConfiguration, true); |
| 144 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
✗ Branch 4 not taken.
|
19 | OS_ASSERT(value); |
| 145 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
38 | return value.get(); |
| 146 | 19 | } | |
| 147 | |||
| 148 | 7 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::airInletNodeName() const { | |
| 149 |
1/1✓ Branch 1 taken 7 times.
|
7 | auto inletAirConfiguration = this->inletAirConfiguration(); |
| 150 | |||
| 151 | 7 | std::string airInletNodeName; | |
| 152 | // Depending on inletAirConfiguration, what this returns will be different | ||
| 153 | // * "ZoneAirOnly" and "ZoneAndOutdoorAir" need to get nodes from the thermal zone | ||
| 154 | // * "OutdoorAirOnly" and "Schedule", it just constructs a node name. | ||
| 155 | // This is helpful if you need to control this via EMS | ||
| 156 |
16/26✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 14 taken 1 time.
✓ Branch 15 taken 3 times.
✓ Branch 16 taken 4 times.
✓ Branch 17 taken 3 times.
✓ Branch 19 taken 4 times.
✓ Branch 20 taken 3 times.
✓ Branch 21 taken 7 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 7 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 4 times.
✓ Branch 27 taken 3 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
29 | if (istringEqual(inletAirConfiguration, "ZoneAirOnly") || istringEqual(inletAirConfiguration, "ZoneAndOutdoorAir")) { |
| 157 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
|
8 | if (auto thermalZone = this->thermalZone()) { |
| 158 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto inletNode = this->inletNode(); |
| 159 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(inletNode); |
| 160 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | airInletNodeName = inletNode->nameString(); |
| 161 | 6 | } | |
| 162 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 1 time.
|
6 | } else if (istringEqual(inletAirConfiguration, "OutdoorAirOnly")) { |
| 163 | // Empty | ||
| 164 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
|
4 | } else if (istringEqual(inletAirConfiguration, "Schedule")) { |
| 165 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | airInletNodeName = this->nameString() + " Inlet"; |
| 166 | } | ||
| 167 | |||
| 168 | 14 | return airInletNodeName; | |
| 169 | 7 | } | |
| 170 | |||
| 171 | 7 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::airOutletNodeName() const { | |
| 172 |
1/1✓ Branch 1 taken 7 times.
|
7 | auto inletAirConfiguration = this->inletAirConfiguration(); |
| 173 | |||
| 174 | 7 | std::string airOutletNodeName; | |
| 175 | // Depending on inletAirConfiguration, what this returns will be different | ||
| 176 | // * "ZoneAirOnly" and "ZoneAndOutdoorAir" need to get nodes from the thermal zone | ||
| 177 | // * "OutdoorAirOnly" and "Schedule", it just constructs a node name. | ||
| 178 | // This is helpful if you need to control this via EMS | ||
| 179 |
16/26✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 14 taken 1 time.
✓ Branch 15 taken 3 times.
✓ Branch 16 taken 4 times.
✓ Branch 17 taken 3 times.
✓ Branch 19 taken 4 times.
✓ Branch 20 taken 3 times.
✓ Branch 21 taken 7 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 7 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 4 times.
✓ Branch 27 taken 3 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
29 | if (istringEqual(inletAirConfiguration, "ZoneAirOnly") || istringEqual(inletAirConfiguration, "ZoneAndOutdoorAir")) { |
| 180 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
|
8 | if (auto thermalZone = this->thermalZone()) { |
| 181 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto outletNode = this->outletNode(); |
| 182 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(outletNode); |
| 183 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | airOutletNodeName = outletNode->nameString(); |
| 184 | 6 | } | |
| 185 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 1 time.
|
6 | } else if (istringEqual(inletAirConfiguration, "OutdoorAirOnly")) { |
| 186 | // Empty | ||
| 187 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
|
4 | } else if (istringEqual(inletAirConfiguration, "Schedule")) { |
| 188 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | airOutletNodeName = this->nameString() + " Outlet"; |
| 189 | } | ||
| 190 | |||
| 191 | 14 | return airOutletNodeName; | |
| 192 | 7 | } | |
| 193 | |||
| 194 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::inletAirTemperatureSchedule() const { | |
| 195 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirTemperatureScheduleName); |
| 196 | } | ||
| 197 | |||
| 198 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::inletAirHumiditySchedule() const { | |
| 199 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirHumidityScheduleName); |
| 200 | } | ||
| 201 | |||
| 202 | 28 | HVACComponent WaterHeaterHeatPumpWrappedCondenser_Impl::tank() const { | |
| 203 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<HVACComponent> value = optionalTank(); |
| 204 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
|
28 | if (!value) { |
| 205 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Tank attached."); | |
| 206 | } | ||
| 207 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
56 | return value.get(); |
| 208 | 28 | } | |
| 209 | |||
| 210 | 7 | ModelObject WaterHeaterHeatPumpWrappedCondenser_Impl::dXCoil() const { | |
| 211 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<ModelObject> value = optionalDXCoil(); |
| 212 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 213 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an DXCoil attached."); | |
| 214 | } | ||
| 215 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 216 | 7 | } | |
| 217 | |||
| 218 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::minimumInletAirTemperatureforCompressorOperation() const { | |
| 219 | boost::optional<double> value = | ||
| 220 |
1/1✓ Branch 1 taken 5 times.
|
5 | getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::MinimumInletAirTemperatureforCompressorOperation, true); |
| 221 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 222 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 223 | } | ||
| 224 | |||
| 225 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::maximumInletAirTemperatureforCompressorOperation() const { | |
| 226 | boost::optional<double> value = | ||
| 227 |
1/1✓ Branch 1 taken 5 times.
|
5 | getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::MaximumInletAirTemperatureforCompressorOperation, true); |
| 228 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 229 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 230 | } | ||
| 231 | |||
| 232 | 8 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::compressorLocation() const { | |
| 233 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorLocation, true); |
| 234 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
✗ Branch 4 not taken.
|
8 | OS_ASSERT(value); |
| 235 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 236 | 8 | } | |
| 237 | |||
| 238 | 3 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::compressorAmbientTemperatureSchedule() const { | |
| 239 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 240 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorAmbientTemperatureScheduleName); |
| 241 | } | ||
| 242 | |||
| 243 | 8 | HVACComponent WaterHeaterHeatPumpWrappedCondenser_Impl::fan() const { | |
| 244 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<HVACComponent> value = optionalFan(); |
| 245 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | if (!value) { |
| 246 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Fan attached."); | |
| 247 | } | ||
| 248 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 249 | 8 | } | |
| 250 | |||
| 251 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::fanPlacement() const { | |
| 252 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::FanPlacement, true); |
| 253 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 254 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 255 | 5 | } | |
| 256 | |||
| 257 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::onCycleParasiticElectricLoad() const { | |
| 258 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::OnCycleParasiticElectricLoad, true); |
| 259 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 260 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 261 | } | ||
| 262 | |||
| 263 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::offCycleParasiticElectricLoad() const { | |
| 264 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::OffCycleParasiticElectricLoad, true); |
| 265 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 266 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 267 | } | ||
| 268 | |||
| 269 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::parasiticHeatRejectionLocation() const { | |
| 270 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::ParasiticHeatRejectionLocation, true); |
| 271 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 272 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 273 | 5 | } | |
| 274 | |||
| 275 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::inletAirMixerSchedule() const { | |
| 276 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirMixerScheduleName); |
| 277 | } | ||
| 278 | |||
| 279 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser_Impl::tankElementControlLogic() const { | |
| 280 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_WaterHeater_HeatPump_WrappedCondenserFields::TankElementControlLogic, true); |
| 281 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 282 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 283 | 5 | } | |
| 284 | |||
| 285 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser_Impl::controlSensor1HeightInStratifiedTank() const { | |
| 286 | 7 | return getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor1HeightInStratifiedTank, true); | |
| 287 | } | ||
| 288 | |||
| 289 | 5 | double WaterHeaterHeatPumpWrappedCondenser_Impl::controlSensor1Weight() const { | |
| 290 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor1Weight, true); |
| 291 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 292 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 293 | } | ||
| 294 | |||
| 295 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser_Impl::controlSensor2HeightInStratifiedTank() const { | |
| 296 | 7 | return getDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor2HeightInStratifiedTank, true); | |
| 297 | } | ||
| 298 | |||
| 299 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 300 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::AvailabilityScheduleName, "WaterHeaterHeatPumpWrappedCondenser", |
| 301 | "Availability", schedule); | ||
| 302 | 9 | return result; | |
| 303 | } | ||
| 304 | |||
| 305 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetAvailabilitySchedule() { | |
| 306 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::AvailabilityScheduleName, ""); | |
| 307 | ✗ | OS_ASSERT(result); | |
| 308 | ✗ | } | |
| 309 | |||
| 310 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setCompressorSetpointTemperatureSchedule(Schedule& schedule) { | |
| 311 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorSetpointTemperatureScheduleName, |
| 312 | "WaterHeaterHeatPumpWrappedCondenser", "Compressor Setpoint Temperature", schedule); | ||
| 313 | 9 | return result; | |
| 314 | } | ||
| 315 | |||
| 316 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setDeadBandTemperatureDifference(double deadBandTemperatureDifference) { | |
| 317 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::DeadBandTemperatureDifference, deadBandTemperatureDifference); | |
| 318 | 10 | return result; | |
| 319 | } | ||
| 320 | |||
| 321 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setCondenserBottomLocation(double condenserBottomLocation) { | |
| 322 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::CondenserBottomLocation, condenserBottomLocation); | |
| 323 | 10 | return result; | |
| 324 | } | ||
| 325 | |||
| 326 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setCondenserTopLocation(double condenserTopLocation) { | |
| 327 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::CondenserTopLocation, condenserTopLocation); | |
| 328 | 10 | return result; | |
| 329 | } | ||
| 330 | |||
| 331 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setEvaporatorAirFlowRate(boost::optional<double> evaporatorAirFlowRate) { | |
| 332 | 10 | bool result(false); | |
| 333 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | if (evaporatorAirFlowRate) { |
| 334 | 10 | result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::EvaporatorAirFlowRate, evaporatorAirFlowRate.get()); | |
| 335 | } | ||
| 336 | 10 | return result; | |
| 337 | } | ||
| 338 | |||
| 339 | 1 | void WaterHeaterHeatPumpWrappedCondenser_Impl::autocalculateEvaporatorAirFlowRate() { | |
| 340 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::EvaporatorAirFlowRate, "autocalculate"); |
| 341 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 342 | 1 | } | |
| 343 | |||
| 344 | 20 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setInletAirConfiguration(const std::string& inletAirConfiguration) { | |
| 345 | 20 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirConfiguration, inletAirConfiguration); | |
| 346 | 20 | return result; | |
| 347 | } | ||
| 348 | |||
| 349 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setInletAirTemperatureSchedule(Schedule& schedule) { | |
| 350 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirTemperatureScheduleName, |
| 351 | "WaterHeaterHeatPumpWrappedCondenser", "Inlet Air Temperature", schedule); | ||
| 352 | 9 | return result; | |
| 353 | } | ||
| 354 | |||
| 355 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetInletAirTemperatureSchedule() { | |
| 356 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirTemperatureScheduleName, ""); | |
| 357 | ✗ | OS_ASSERT(result); | |
| 358 | ✗ | } | |
| 359 | |||
| 360 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setInletAirHumiditySchedule(Schedule& schedule) { | |
| 361 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirHumidityScheduleName, "WaterHeaterHeatPumpWrappedCondenser", |
| 362 | "Inlet Air Humidity", schedule); | ||
| 363 | 9 | return result; | |
| 364 | } | ||
| 365 | |||
| 366 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetInletAirHumiditySchedule() { | |
| 367 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirHumidityScheduleName, ""); | |
| 368 | ✗ | OS_ASSERT(result); | |
| 369 | ✗ | } | |
| 370 | |||
| 371 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setTank(const HVACComponent& waterHeater) { | |
| 372 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | bool result = setPointer(OS_WaterHeater_HeatPump_WrappedCondenserFields::TankName, waterHeater.handle()); |
| 373 | 9 | return result; | |
| 374 | } | ||
| 375 | |||
| 376 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setDXCoil(const ModelObject& coil) { | |
| 377 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | bool result = setPointer(OS_WaterHeater_HeatPump_WrappedCondenserFields::DXCoilName, coil.handle()); |
| 378 | 10 | return result; | |
| 379 | } | ||
| 380 | |||
| 381 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setMinimumInletAirTemperatureforCompressorOperation( | |
| 382 | double minimumInletAirTemperatureforCompressorOperation) { | ||
| 383 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::MinimumInletAirTemperatureforCompressorOperation, | |
| 384 | minimumInletAirTemperatureforCompressorOperation); | ||
| 385 | 10 | return result; | |
| 386 | } | ||
| 387 | |||
| 388 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setMaximumInletAirTemperatureforCompressorOperation( | |
| 389 | double maximumInletAirTemperatureforCompressorOperation) { | ||
| 390 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::MaximumInletAirTemperatureforCompressorOperation, | |
| 391 | maximumInletAirTemperatureforCompressorOperation); | ||
| 392 | 10 | return result; | |
| 393 | } | ||
| 394 | |||
| 395 | 13 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setCompressorLocation(const std::string& compressorLocation) { | |
| 396 | 13 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorLocation, compressorLocation); | |
| 397 | 13 | return result; | |
| 398 | } | ||
| 399 | |||
| 400 | 9 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setCompressorAmbientTemperatureSchedule(Schedule& schedule) { | |
| 401 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorAmbientTemperatureScheduleName, |
| 402 | "WaterHeaterHeatPumpWrappedCondenser", "Compressor Ambient Temperature", schedule); | ||
| 403 | 9 | return result; | |
| 404 | } | ||
| 405 | |||
| 406 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetCompressorAmbientTemperatureSchedule() { | |
| 407 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorAmbientTemperatureScheduleName, ""); | |
| 408 | ✗ | OS_ASSERT(result); | |
| 409 | ✗ | } | |
| 410 | |||
| 411 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setFan(const HVACComponent& fan) { | |
| 412 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | bool result = setPointer(OS_WaterHeater_HeatPump_WrappedCondenserFields::FanName, fan.handle()); |
| 413 | 10 | return result; | |
| 414 | } | ||
| 415 | |||
| 416 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setFanPlacement(const std::string& fanPlacement) { | |
| 417 | 10 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::FanPlacement, fanPlacement); | |
| 418 | 10 | return result; | |
| 419 | } | ||
| 420 | |||
| 421 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setOnCycleParasiticElectricLoad(double onCycleParasiticElectricLoad) { | |
| 422 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::OnCycleParasiticElectricLoad, onCycleParasiticElectricLoad); | |
| 423 | 10 | return result; | |
| 424 | } | ||
| 425 | |||
| 426 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setOffCycleParasiticElectricLoad(double offCycleParasiticElectricLoad) { | |
| 427 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::OffCycleParasiticElectricLoad, offCycleParasiticElectricLoad); | |
| 428 | 10 | return result; | |
| 429 | } | ||
| 430 | |||
| 431 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setParasiticHeatRejectionLocation(const std::string& parasiticHeatRejectionLocation) { | |
| 432 | 10 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::ParasiticHeatRejectionLocation, parasiticHeatRejectionLocation); | |
| 433 | 10 | return result; | |
| 434 | } | ||
| 435 | |||
| 436 | 3 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setInletAirMixerSchedule(Schedule& schedule) { | |
| 437 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
12 | bool result = setSchedule(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirMixerScheduleName, "WaterHeaterHeatPumpWrappedCondenser", |
| 438 | "Inlet Air Mixer", schedule); | ||
| 439 | 3 | return result; | |
| 440 | } | ||
| 441 | |||
| 442 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetInletAirMixerSchedule() { | |
| 443 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirMixerScheduleName, ""); | |
| 444 | ✗ | OS_ASSERT(result); | |
| 445 | ✗ | } | |
| 446 | |||
| 447 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setTankElementControlLogic(const std::string& tankElementControlLogic) { | |
| 448 | 10 | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::TankElementControlLogic, tankElementControlLogic); | |
| 449 | 10 | return result; | |
| 450 | } | ||
| 451 | |||
| 452 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setControlSensor1HeightInStratifiedTank( | |
| 453 | boost::optional<double> controlSensor1HeightInStratifiedTank) { | ||
| 454 | 10 | bool result(false); | |
| 455 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | if (controlSensor1HeightInStratifiedTank) { |
| 456 | result = | ||
| 457 | 10 | setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor1HeightInStratifiedTank, controlSensor1HeightInStratifiedTank.get()); | |
| 458 | } else { | ||
| 459 | ✗ | resetControlSensor1HeightInStratifiedTank(); | |
| 460 | ✗ | result = true; | |
| 461 | } | ||
| 462 | 10 | return result; | |
| 463 | } | ||
| 464 | |||
| 465 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetControlSensor1HeightInStratifiedTank() { | |
| 466 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor1HeightInStratifiedTank, ""); | |
| 467 | ✗ | OS_ASSERT(result); | |
| 468 | ✗ | } | |
| 469 | |||
| 470 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setControlSensor1Weight(double controlSensor1Weight) { | |
| 471 | 10 | bool result = setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor1Weight, controlSensor1Weight); | |
| 472 | 10 | return result; | |
| 473 | } | ||
| 474 | |||
| 475 | 10 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::setControlSensor2HeightInStratifiedTank( | |
| 476 | boost::optional<double> controlSensor2HeightInStratifiedTank) { | ||
| 477 | 10 | bool result(false); | |
| 478 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | if (controlSensor2HeightInStratifiedTank) { |
| 479 | result = | ||
| 480 | 10 | setDouble(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor2HeightInStratifiedTank, controlSensor2HeightInStratifiedTank.get()); | |
| 481 | } else { | ||
| 482 | ✗ | resetControlSensor2HeightInStratifiedTank(); | |
| 483 | ✗ | result = true; | |
| 484 | } | ||
| 485 | 10 | return result; | |
| 486 | } | ||
| 487 | |||
| 488 | ✗ | void WaterHeaterHeatPumpWrappedCondenser_Impl::resetControlSensor2HeightInStratifiedTank() { | |
| 489 | ✗ | bool result = setString(OS_WaterHeater_HeatPump_WrappedCondenserFields::ControlSensor2HeightInStratifiedTank, ""); | |
| 490 | ✗ | OS_ASSERT(result); | |
| 491 | ✗ | } | |
| 492 | |||
| 493 | 4 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser_Impl::optionalCompressorSetpointTemperatureSchedule() const { | |
| 494 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 495 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorSetpointTemperatureScheduleName); |
| 496 | } | ||
| 497 | |||
| 498 | 28 | boost::optional<HVACComponent> WaterHeaterHeatPumpWrappedCondenser_Impl::optionalTank() const { | |
| 499 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
28 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_WaterHeater_HeatPump_WrappedCondenserFields::TankName); |
| 500 | } | ||
| 501 | |||
| 502 | 7 | boost::optional<ModelObject> WaterHeaterHeatPumpWrappedCondenser_Impl::optionalDXCoil() const { | |
| 503 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<ModelObject>(OS_WaterHeater_HeatPump_WrappedCondenserFields::DXCoilName); |
| 504 | } | ||
| 505 | |||
| 506 | 8 | boost::optional<HVACComponent> WaterHeaterHeatPumpWrappedCondenser_Impl::optionalFan() const { | |
| 507 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_WaterHeater_HeatPump_WrappedCondenserFields::FanName); |
| 508 | } | ||
| 509 | |||
| 510 | 15 | unsigned WaterHeaterHeatPumpWrappedCondenser_Impl::inletPort() const { | |
| 511 | 15 | return OS_WaterHeater_HeatPump_WrappedCondenserFields::AirInletNodeName; | |
| 512 | } | ||
| 513 | |||
| 514 | 10 | unsigned WaterHeaterHeatPumpWrappedCondenser_Impl::outletPort() const { | |
| 515 | 10 | return OS_WaterHeater_HeatPump_WrappedCondenserFields::AirOutletNodeName; | |
| 516 | } | ||
| 517 | |||
| 518 | ✗ | ModelObject WaterHeaterHeatPumpWrappedCondenser_Impl::clone(Model model) const { | |
| 519 | ✗ | auto newWaterHeater = ZoneHVACComponent_Impl::clone(model).cast<WaterHeaterHeatPumpWrappedCondenser>(); | |
| 520 | |||
| 521 | { | ||
| 522 | ✗ | auto mo = tank().clone(model).cast<HVACComponent>(); | |
| 523 | ✗ | newWaterHeater.setTank(mo); | |
| 524 | ✗ | } | |
| 525 | |||
| 526 | { | ||
| 527 | ✗ | auto mo = dXCoil().clone(model).cast<ModelObject>(); | |
| 528 | ✗ | newWaterHeater.setDXCoil(mo); | |
| 529 | ✗ | } | |
| 530 | |||
| 531 | { | ||
| 532 | ✗ | auto mo = fan().clone(model).cast<HVACComponent>(); | |
| 533 | ✗ | newWaterHeater.setFan(mo); | |
| 534 | ✗ | } | |
| 535 | |||
| 536 | ✗ | return std::move(newWaterHeater); | |
| 537 | ✗ | } | |
| 538 | |||
| 539 | ✗ | std::vector<IdfObject> WaterHeaterHeatPumpWrappedCondenser_Impl::remove() { | |
| 540 | ✗ | auto t_tank = tank(); | |
| 541 | ✗ | if (auto waterToWaterTank = t_tank.optionalCast<WaterToWaterComponent>()) { | |
| 542 | ✗ | waterToWaterTank->removeFromPlantLoop(); | |
| 543 | ✗ | waterToWaterTank->removeFromSecondaryPlantLoop(); | |
| 544 | } else { | ||
| 545 | // All tanks are WaterToWaterComponent at this time, but the api says they could be any HVACComponent, | ||
| 546 | // so this is a little dangerous. Consider enhanced APIs to remove HVACComponent from system. | ||
| 547 | // Something we currently don't have. | ||
| 548 | // Ideally remove would just take care of all of this, but the way ParentObject::remove works out children remove methods | ||
| 549 | // aren't being called cleanly. | ||
| 550 | ✗ | LOG_AND_THROW("Unsupported tank " << t_tank.briefDescription() << " attached to WaterHeaterHeatPump " << briefDescription()); | |
| 551 | ✗ | } | |
| 552 | |||
| 553 | ✗ | return ZoneHVACComponent_Impl::remove(); | |
| 554 | ✗ | } | |
| 555 | |||
| 556 | 3 | std::vector<ModelObject> WaterHeaterHeatPumpWrappedCondenser_Impl::children() const { | |
| 557 | 3 | std::vector<ModelObject> result; | |
| 558 | |||
| 559 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | result.push_back(tank()); |
| 560 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | result.push_back(dXCoil()); |
| 561 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | result.push_back(fan()); |
| 562 | |||
| 563 | 3 | return result; | |
| 564 | ✗ | } | |
| 565 | |||
| 566 | 3 | bool WaterHeaterHeatPumpWrappedCondenser_Impl::addToThermalZone(ThermalZone& thermalZone) { | |
| 567 | 3 | bool result = false; | |
| 568 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto thisObject = getObject<WaterHeaterHeatPumpWrappedCondenser>(); |
| 569 | |||
| 570 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | if ((result = ZoneHVACComponent_Impl::addToThermalZone(thermalZone))) { |
| 571 |
1/1✓ Branch 1 taken 3 times.
|
3 | thermalZone.setHeatingPriority(thisObject, 1); |
| 572 |
1/1✓ Branch 1 taken 3 times.
|
3 | thermalZone.setCoolingPriority(thisObject, 1); |
| 573 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | setCompressorLocation("Zone"); |
| 574 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | setInletAirConfiguration("ZoneAirOnly"); |
| 575 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto t_tank = tank(); |
| 576 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto waterHeaterStratified = t_tank.optionalCast<WaterHeaterStratified>()) { |
| 577 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | waterHeaterStratified->setAmbientTemperatureIndicator("ThermalZone"); |
| 578 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | waterHeaterStratified->setAmbientTemperatureThermalZone(thermalZone); |
| 579 | 3 | } | |
| 580 | 3 | } | |
| 581 | |||
| 582 | 3 | return result; | |
| 583 | 3 | } | |
| 584 | |||
| 585 | // NOTE: The WaterHeaterHeatPumpWrappedCondenser is listed as a ThermalZone equipment, but it's not a zone load. | ||
| 586 | // So we set everything to None/Empty here. It has a child Tank (WaterHeater:Mixed for eg), which WILL check if it's part of a HPWH | ||
| 587 | // so the PlantLoop's methods are affected accordingly though. | ||
| 588 | 2 | ComponentType WaterHeaterHeatPumpWrappedCondenser_Impl::componentType() const { | |
| 589 |
1/1✓ Branch 1 taken 2 times.
|
2 | return ComponentType::None; |
| 590 | } | ||
| 591 | |||
| 592 | 2 | std::vector<FuelType> WaterHeaterHeatPumpWrappedCondenser_Impl::coolingFuelTypes() const { | |
| 593 | 2 | return {}; | |
| 594 | } | ||
| 595 | |||
| 596 | 2 | std::vector<FuelType> WaterHeaterHeatPumpWrappedCondenser_Impl::heatingFuelTypes() const { | |
| 597 | 2 | return {}; | |
| 598 | } | ||
| 599 | |||
| 600 | 2 | std::vector<AppGFuelType> WaterHeaterHeatPumpWrappedCondenser_Impl::appGHeatingFuelTypes() const { | |
| 601 | 2 | return {}; | |
| 602 | } | ||
| 603 | |||
| 604 | } // namespace detail | ||
| 605 | |||
| 606 | 6 | WaterHeaterHeatPumpWrappedCondenser::WaterHeaterHeatPumpWrappedCondenser(const Model& model) | |
| 607 | 6 | : ZoneHVACComponent(WaterHeaterHeatPumpWrappedCondenser::iddObjectType(), model) { | |
| 608 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()); |
| 609 | |||
| 610 |
1/1✓ Branch 1 taken 6 times.
|
6 | CoilWaterHeatingAirToWaterHeatPumpWrapped coil(model); |
| 611 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDXCoil(coil); |
| 612 | |||
| 613 |
1/1✓ Branch 1 taken 6 times.
|
6 | WaterHeaterStratified waterHeater(model); |
| 614 |
1/1✓ Branch 1 taken 6 times.
|
6 | setTank(waterHeater); |
| 615 | |||
| 616 |
1/1✓ Branch 1 taken 6 times.
|
6 | FanOnOff fan(model); |
| 617 |
1/1✓ Branch 1 taken 6 times.
|
6 | setFan(fan); |
| 618 | |||
| 619 | { | ||
| 620 |
1/1✓ Branch 1 taken 6 times.
|
6 | auto schedule = model.alwaysOnDiscreteSchedule(); |
| 621 |
1/1✓ Branch 1 taken 6 times.
|
6 | setAvailabilitySchedule(schedule); |
| 622 | 6 | } | |
| 623 | |||
| 624 | { | ||
| 625 |
1/1✓ Branch 1 taken 6 times.
|
6 | ScheduleRuleset schedule(model); |
| 626 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
6 | schedule.defaultDaySchedule().addValue(Time(0, 24, 0, 0), 60.0); |
| 627 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCompressorSetpointTemperatureSchedule(schedule); |
| 628 | 6 | } | |
| 629 | |||
| 630 | { | ||
| 631 |
1/1✓ Branch 1 taken 6 times.
|
6 | ScheduleRuleset schedule(model); |
| 632 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
6 | schedule.defaultDaySchedule().addValue(Time(0, 24, 0, 0), 19.7); |
| 633 |
1/1✓ Branch 1 taken 6 times.
|
6 | setInletAirTemperatureSchedule(schedule); |
| 634 | 6 | } | |
| 635 | |||
| 636 | { | ||
| 637 |
1/1✓ Branch 1 taken 6 times.
|
6 | ScheduleRuleset schedule(model); |
| 638 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
6 | schedule.defaultDaySchedule().addValue(Time(0, 24, 0, 0), 0.5); |
| 639 |
1/1✓ Branch 1 taken 6 times.
|
6 | setInletAirHumiditySchedule(schedule); |
| 640 | 6 | } | |
| 641 | |||
| 642 | { | ||
| 643 |
1/1✓ Branch 1 taken 6 times.
|
6 | ScheduleRuleset schedule(model); |
| 644 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
6 | schedule.defaultDaySchedule().addValue(Time(0, 24, 0, 0), 21.0); |
| 645 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCompressorAmbientTemperatureSchedule(schedule); |
| 646 | 6 | } | |
| 647 | |||
| 648 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDeadBandTemperatureDifference(3.89); |
| 649 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCondenserBottomLocation(0.0664166667); |
| 650 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCondenserTopLocation(0.8634166667); |
| 651 |
1/1✓ Branch 1 taken 6 times.
|
6 | setEvaporatorAirFlowRate(0.2279); |
| 652 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setInletAirConfiguration("Schedule"); |
| 653 |
1/1✓ Branch 1 taken 6 times.
|
6 | setMinimumInletAirTemperatureforCompressorOperation(7.2); |
| 654 |
1/1✓ Branch 1 taken 6 times.
|
6 | setMaximumInletAirTemperatureforCompressorOperation(48.89); |
| 655 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | setCompressorLocation("Outdoors"); |
| 656 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setFanPlacement("DrawThrough"); |
| 657 |
1/1✓ Branch 1 taken 6 times.
|
6 | setOnCycleParasiticElectricLoad(0.0); |
| 658 |
1/1✓ Branch 1 taken 6 times.
|
6 | setOffCycleParasiticElectricLoad(0.0); |
| 659 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | setParasiticHeatRejectionLocation("Outdoors"); |
| 660 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTankElementControlLogic("MutuallyExclusive"); // TODO: The E+ default is Simultaneous! |
| 661 |
1/1✓ Branch 1 taken 6 times.
|
6 | setControlSensor1HeightInStratifiedTank(1.262); |
| 662 |
1/1✓ Branch 1 taken 6 times.
|
6 | setControlSensor1Weight(0.75); |
| 663 |
1/1✓ Branch 1 taken 6 times.
|
6 | setControlSensor2HeightInStratifiedTank(0.464); |
| 664 | 6 | } | |
| 665 | |||
| 666 | ✗ | WaterHeaterHeatPumpWrappedCondenser::WaterHeaterHeatPumpWrappedCondenser(const Model& model, const ModelObject& dxCoil, const HVACComponent& tank, | |
| 667 | const HVACComponent& fan, Schedule& compressorSetpointTemperatureSchedule, | ||
| 668 | ✗ | Schedule& inletAirMixerSchedule) | |
| 669 | ✗ | : ZoneHVACComponent(WaterHeaterHeatPumpWrappedCondenser::iddObjectType(), model) { | |
| 670 | ✗ | OS_ASSERT(getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()); | |
| 671 | |||
| 672 | ✗ | setDXCoil(dxCoil); | |
| 673 | ✗ | setTank(tank); | |
| 674 | ✗ | setFan(fan); | |
| 675 | ✗ | setCompressorSetpointTemperatureSchedule(compressorSetpointTemperatureSchedule); | |
| 676 | ✗ | setInletAirMixerSchedule(inletAirMixerSchedule); | |
| 677 | |||
| 678 | ✗ | setDeadBandTemperatureDifference(3.89); | |
| 679 | ✗ | setCondenserBottomLocation(0.0664166667); | |
| 680 | ✗ | setCondenserTopLocation(0.8634166667); | |
| 681 | ✗ | setEvaporatorAirFlowRate(0.2279); | |
| 682 | ✗ | setInletAirConfiguration("Schedule"); | |
| 683 | ✗ | setMinimumInletAirTemperatureforCompressorOperation(7.2); | |
| 684 | ✗ | setMaximumInletAirTemperatureforCompressorOperation(48.89); | |
| 685 | ✗ | setCompressorLocation("Outdoors"); | |
| 686 | ✗ | setFanPlacement("DrawThrough"); | |
| 687 | ✗ | setOnCycleParasiticElectricLoad(0.0); | |
| 688 | ✗ | setOffCycleParasiticElectricLoad(0.0); | |
| 689 | ✗ | setParasiticHeatRejectionLocation("Outdoors"); | |
| 690 | ✗ | setTankElementControlLogic("MutuallyExclusive"); // TODO: The E+ default is Simultaneous! | |
| 691 | ✗ | setControlSensor1HeightInStratifiedTank(1.262); | |
| 692 | ✗ | setControlSensor1Weight(0.75); | |
| 693 | ✗ | setControlSensor2HeightInStratifiedTank(0.464); | |
| 694 | ✗ | } | |
| 695 | |||
| 696 | 7781 | IddObjectType WaterHeaterHeatPumpWrappedCondenser::iddObjectType() { | |
| 697 |
1/1✓ Branch 1 taken 7781 times.
|
7781 | return {IddObjectType::OS_WaterHeater_HeatPump_WrappedCondenser}; |
| 698 | } | ||
| 699 | |||
| 700 | ✗ | std::vector<std::string> WaterHeaterHeatPumpWrappedCondenser::inletAirConfigurationValues() { | |
| 701 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 702 | ✗ | OS_WaterHeater_HeatPump_WrappedCondenserFields::InletAirConfiguration); | |
| 703 | } | ||
| 704 | |||
| 705 | ✗ | std::vector<std::string> WaterHeaterHeatPumpWrappedCondenser::compressorLocationValues() { | |
| 706 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 707 | ✗ | OS_WaterHeater_HeatPump_WrappedCondenserFields::CompressorLocation); | |
| 708 | } | ||
| 709 | |||
| 710 | ✗ | std::vector<std::string> WaterHeaterHeatPumpWrappedCondenser::fanPlacementValues() { | |
| 711 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_WaterHeater_HeatPump_WrappedCondenserFields::FanPlacement); | |
| 712 | } | ||
| 713 | |||
| 714 | ✗ | std::vector<std::string> WaterHeaterHeatPumpWrappedCondenser::parasiticHeatRejectionLocationValues() { | |
| 715 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 716 | ✗ | OS_WaterHeater_HeatPump_WrappedCondenserFields::ParasiticHeatRejectionLocation); | |
| 717 | } | ||
| 718 | |||
| 719 | ✗ | std::vector<std::string> WaterHeaterHeatPumpWrappedCondenser::tankElementControlLogicValues() { | |
| 720 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 721 | ✗ | OS_WaterHeater_HeatPump_WrappedCondenserFields::TankElementControlLogic); | |
| 722 | } | ||
| 723 | |||
| 724 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser::availabilitySchedule() const { | |
| 725 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->availabilitySchedule(); |
| 726 | } | ||
| 727 | |||
| 728 | 4 | Schedule WaterHeaterHeatPumpWrappedCondenser::compressorSetpointTemperatureSchedule() const { | |
| 729 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->compressorSetpointTemperatureSchedule(); |
| 730 | } | ||
| 731 | |||
| 732 | 5 | double WaterHeaterHeatPumpWrappedCondenser::deadBandTemperatureDifference() const { | |
| 733 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->deadBandTemperatureDifference(); |
| 734 | } | ||
| 735 | |||
| 736 | 5 | double WaterHeaterHeatPumpWrappedCondenser::condenserBottomLocation() const { | |
| 737 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->condenserBottomLocation(); |
| 738 | } | ||
| 739 | |||
| 740 | 5 | double WaterHeaterHeatPumpWrappedCondenser::condenserTopLocation() const { | |
| 741 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->condenserTopLocation(); |
| 742 | } | ||
| 743 | |||
| 744 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser::evaporatorAirFlowRate() const { | |
| 745 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->evaporatorAirFlowRate(); |
| 746 | } | ||
| 747 | |||
| 748 | 5 | bool WaterHeaterHeatPumpWrappedCondenser::isEvaporatorAirFlowRateAutocalculated() const { | |
| 749 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->isEvaporatorAirFlowRateAutocalculated(); |
| 750 | } | ||
| 751 | |||
| 752 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser::inletAirConfiguration() const { | |
| 753 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->inletAirConfiguration(); |
| 754 | } | ||
| 755 | |||
| 756 | 7 | std::string WaterHeaterHeatPumpWrappedCondenser::airInletNodeName() const { | |
| 757 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->airInletNodeName(); |
| 758 | } | ||
| 759 | |||
| 760 | 7 | std::string WaterHeaterHeatPumpWrappedCondenser::airOutletNodeName() const { | |
| 761 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->airOutletNodeName(); |
| 762 | } | ||
| 763 | |||
| 764 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser::inletAirTemperatureSchedule() const { | |
| 765 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->inletAirTemperatureSchedule(); |
| 766 | } | ||
| 767 | |||
| 768 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser::inletAirHumiditySchedule() const { | |
| 769 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->inletAirHumiditySchedule(); |
| 770 | } | ||
| 771 | |||
| 772 | 22 | HVACComponent WaterHeaterHeatPumpWrappedCondenser::tank() const { | |
| 773 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->tank(); |
| 774 | } | ||
| 775 | |||
| 776 | 4 | ModelObject WaterHeaterHeatPumpWrappedCondenser::dXCoil() const { | |
| 777 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->dXCoil(); |
| 778 | } | ||
| 779 | |||
| 780 | 5 | double WaterHeaterHeatPumpWrappedCondenser::minimumInletAirTemperatureforCompressorOperation() const { | |
| 781 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->minimumInletAirTemperatureforCompressorOperation(); |
| 782 | } | ||
| 783 | |||
| 784 | 5 | double WaterHeaterHeatPumpWrappedCondenser::maximumInletAirTemperatureforCompressorOperation() const { | |
| 785 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->maximumInletAirTemperatureforCompressorOperation(); |
| 786 | } | ||
| 787 | |||
| 788 | 8 | std::string WaterHeaterHeatPumpWrappedCondenser::compressorLocation() const { | |
| 789 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->compressorLocation(); |
| 790 | } | ||
| 791 | |||
| 792 | 3 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser::compressorAmbientTemperatureSchedule() const { | |
| 793 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->compressorAmbientTemperatureSchedule(); |
| 794 | } | ||
| 795 | |||
| 796 | 5 | HVACComponent WaterHeaterHeatPumpWrappedCondenser::fan() const { | |
| 797 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->fan(); |
| 798 | } | ||
| 799 | |||
| 800 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser::fanPlacement() const { | |
| 801 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->fanPlacement(); |
| 802 | } | ||
| 803 | |||
| 804 | 5 | double WaterHeaterHeatPumpWrappedCondenser::onCycleParasiticElectricLoad() const { | |
| 805 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->onCycleParasiticElectricLoad(); |
| 806 | } | ||
| 807 | |||
| 808 | 5 | double WaterHeaterHeatPumpWrappedCondenser::offCycleParasiticElectricLoad() const { | |
| 809 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->offCycleParasiticElectricLoad(); |
| 810 | } | ||
| 811 | |||
| 812 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser::parasiticHeatRejectionLocation() const { | |
| 813 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->parasiticHeatRejectionLocation(); |
| 814 | } | ||
| 815 | |||
| 816 | 5 | boost::optional<Schedule> WaterHeaterHeatPumpWrappedCondenser::inletAirMixerSchedule() const { | |
| 817 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->inletAirMixerSchedule(); |
| 818 | } | ||
| 819 | |||
| 820 | 5 | std::string WaterHeaterHeatPumpWrappedCondenser::tankElementControlLogic() const { | |
| 821 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->tankElementControlLogic(); |
| 822 | } | ||
| 823 | |||
| 824 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser::controlSensor1HeightInStratifiedTank() const { | |
| 825 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->controlSensor1HeightInStratifiedTank(); |
| 826 | } | ||
| 827 | |||
| 828 | 5 | double WaterHeaterHeatPumpWrappedCondenser::controlSensor1Weight() const { | |
| 829 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->controlSensor1Weight(); |
| 830 | } | ||
| 831 | |||
| 832 | 7 | boost::optional<double> WaterHeaterHeatPumpWrappedCondenser::controlSensor2HeightInStratifiedTank() const { | |
| 833 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->controlSensor2HeightInStratifiedTank(); |
| 834 | } | ||
| 835 | |||
| 836 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setAvailabilitySchedule(Schedule& schedule) { | |
| 837 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setAvailabilitySchedule(schedule); |
| 838 | } | ||
| 839 | |||
| 840 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetAvailabilitySchedule() { | |
| 841 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetAvailabilitySchedule(); | |
| 842 | ✗ | } | |
| 843 | |||
| 844 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setCompressorSetpointTemperatureSchedule(Schedule& schedule) { | |
| 845 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setCompressorSetpointTemperatureSchedule(schedule); |
| 846 | } | ||
| 847 | |||
| 848 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setDeadBandTemperatureDifference(double deadBandTemperatureDifference) { | |
| 849 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setDeadBandTemperatureDifference(deadBandTemperatureDifference); |
| 850 | } | ||
| 851 | |||
| 852 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setCondenserBottomLocation(double condenserBottomLocation) { | |
| 853 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setCondenserBottomLocation(condenserBottomLocation); |
| 854 | } | ||
| 855 | |||
| 856 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setCondenserTopLocation(double condenserTopLocation) { | |
| 857 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setCondenserTopLocation(condenserTopLocation); |
| 858 | } | ||
| 859 | |||
| 860 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setEvaporatorAirFlowRate(double evaporatorAirFlowRate) { | |
| 861 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setEvaporatorAirFlowRate(evaporatorAirFlowRate); |
| 862 | } | ||
| 863 | |||
| 864 | 1 | void WaterHeaterHeatPumpWrappedCondenser::autocalculateEvaporatorAirFlowRate() { | |
| 865 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->autocalculateEvaporatorAirFlowRate(); |
| 866 | 1 | } | |
| 867 | |||
| 868 | 17 | bool WaterHeaterHeatPumpWrappedCondenser::setInletAirConfiguration(const std::string& inletAirConfiguration) { | |
| 869 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setInletAirConfiguration(inletAirConfiguration); |
| 870 | } | ||
| 871 | |||
| 872 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setInletAirTemperatureSchedule(Schedule& schedule) { | |
| 873 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setInletAirTemperatureSchedule(schedule); |
| 874 | } | ||
| 875 | |||
| 876 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetInletAirTemperatureSchedule() { | |
| 877 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetInletAirTemperatureSchedule(); | |
| 878 | ✗ | } | |
| 879 | |||
| 880 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setInletAirHumiditySchedule(Schedule& schedule) { | |
| 881 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setInletAirHumiditySchedule(schedule); |
| 882 | } | ||
| 883 | |||
| 884 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetInletAirHumiditySchedule() { | |
| 885 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetInletAirHumiditySchedule(); | |
| 886 | ✗ | } | |
| 887 | |||
| 888 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setTank(const HVACComponent& tank) { | |
| 889 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setTank(tank); |
| 890 | } | ||
| 891 | |||
| 892 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setDXCoil(const ModelObject& coil) { | |
| 893 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setDXCoil(coil); |
| 894 | } | ||
| 895 | |||
| 896 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setMinimumInletAirTemperatureforCompressorOperation( | |
| 897 | double minimumInletAirTemperatureforCompressorOperation) { | ||
| 898 |
1/1✓ Branch 3 taken 10 times.
|
20 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setMinimumInletAirTemperatureforCompressorOperation( |
| 899 | 20 | minimumInletAirTemperatureforCompressorOperation); | |
| 900 | } | ||
| 901 | |||
| 902 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setMaximumInletAirTemperatureforCompressorOperation( | |
| 903 | double maximumInletAirTemperatureforCompressorOperation) { | ||
| 904 |
1/1✓ Branch 3 taken 10 times.
|
20 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setMaximumInletAirTemperatureforCompressorOperation( |
| 905 | 20 | maximumInletAirTemperatureforCompressorOperation); | |
| 906 | } | ||
| 907 | |||
| 908 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setCompressorLocation(const std::string& compressorLocation) { | |
| 909 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setCompressorLocation(compressorLocation); |
| 910 | } | ||
| 911 | |||
| 912 | 9 | bool WaterHeaterHeatPumpWrappedCondenser::setCompressorAmbientTemperatureSchedule(Schedule& schedule) { | |
| 913 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setCompressorAmbientTemperatureSchedule(schedule); |
| 914 | } | ||
| 915 | |||
| 916 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetCompressorAmbientTemperatureSchedule() { | |
| 917 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetCompressorAmbientTemperatureSchedule(); | |
| 918 | ✗ | } | |
| 919 | |||
| 920 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setFan(const HVACComponent& fan) { | |
| 921 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setFan(fan); |
| 922 | } | ||
| 923 | |||
| 924 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setFanPlacement(const std::string& fanPlacement) { | |
| 925 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setFanPlacement(fanPlacement); |
| 926 | } | ||
| 927 | |||
| 928 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setOnCycleParasiticElectricLoad(double onCycleParasiticElectricLoad) { | |
| 929 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setOnCycleParasiticElectricLoad(onCycleParasiticElectricLoad); |
| 930 | } | ||
| 931 | |||
| 932 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setOffCycleParasiticElectricLoad(double offCycleParasiticElectricLoad) { | |
| 933 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setOffCycleParasiticElectricLoad(offCycleParasiticElectricLoad); |
| 934 | } | ||
| 935 | |||
| 936 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setParasiticHeatRejectionLocation(const std::string& parasiticHeatRejectionLocation) { | |
| 937 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setParasiticHeatRejectionLocation(parasiticHeatRejectionLocation); |
| 938 | } | ||
| 939 | |||
| 940 | 3 | bool WaterHeaterHeatPumpWrappedCondenser::setInletAirMixerSchedule(Schedule& schedule) { | |
| 941 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setInletAirMixerSchedule(schedule); |
| 942 | } | ||
| 943 | |||
| 944 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetInletAirMixerSchedule() { | |
| 945 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetInletAirMixerSchedule(); | |
| 946 | ✗ | } | |
| 947 | |||
| 948 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setTankElementControlLogic(const std::string& tankElementControlLogic) { | |
| 949 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setTankElementControlLogic(tankElementControlLogic); |
| 950 | } | ||
| 951 | |||
| 952 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setControlSensor1HeightInStratifiedTank(double controlSensor1HeightInStratifiedTank) { | |
| 953 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setControlSensor1HeightInStratifiedTank(controlSensor1HeightInStratifiedTank); |
| 954 | } | ||
| 955 | |||
| 956 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetControlSensor1HeightInStratifiedTank() { | |
| 957 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetControlSensor1HeightInStratifiedTank(); | |
| 958 | ✗ | } | |
| 959 | |||
| 960 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setControlSensor1Weight(double controlSensor1Weight) { | |
| 961 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setControlSensor1Weight(controlSensor1Weight); |
| 962 | } | ||
| 963 | |||
| 964 | 10 | bool WaterHeaterHeatPumpWrappedCondenser::setControlSensor2HeightInStratifiedTank(double controlSensor2HeightInStratifiedTank) { | |
| 965 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | return getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->setControlSensor2HeightInStratifiedTank(controlSensor2HeightInStratifiedTank); |
| 966 | } | ||
| 967 | |||
| 968 | ✗ | void WaterHeaterHeatPumpWrappedCondenser::resetControlSensor2HeightInStratifiedTank() { | |
| 969 | ✗ | getImpl<detail::WaterHeaterHeatPumpWrappedCondenser_Impl>()->resetControlSensor2HeightInStratifiedTank(); | |
| 970 | ✗ | } | |
| 971 | |||
| 972 | /// @cond | ||
| 973 | 21 | WaterHeaterHeatPumpWrappedCondenser::WaterHeaterHeatPumpWrappedCondenser(std::shared_ptr<detail::WaterHeaterHeatPumpWrappedCondenser_Impl> impl) | |
| 974 |
1/1✓ Branch 3 taken 21 times.
|
21 | : ZoneHVACComponent(std::move(impl)) {} |
| 975 | /// @endcond | ||
| 976 | |||
| 977 | } // namespace model | ||
| 978 | } // namespace openstudio | ||
| 979 |