src/model/CoilWaterHeatingAirToWaterHeatPumpWrapped.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 "CoilWaterHeatingAirToWaterHeatPumpWrapped.hpp" | ||
| 7 | #include "CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl.hpp" | ||
| 8 | #include "Model.hpp" | ||
| 9 | #include "Model_Impl.hpp" | ||
| 10 | #include "Curve.hpp" | ||
| 11 | #include "Curve_Impl.hpp" | ||
| 12 | #include "CurveBiquadratic.hpp" | ||
| 13 | #include "CurveBiquadratic_Impl.hpp" | ||
| 14 | #include "CurveCubic.hpp" | ||
| 15 | #include "CurveCubic_Impl.hpp" | ||
| 16 | #include "Schedule.hpp" | ||
| 17 | #include "Schedule_Impl.hpp" | ||
| 18 | #include "ScheduleTypeRegistry.hpp" | ||
| 19 | |||
| 20 | #include <utilities/idd/IddFactory.hxx> | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | #include <utilities/idd/OS_Coil_WaterHeating_AirToWaterHeatPump_Wrapped_FieldEnums.hxx> | ||
| 23 | #include "../utilities/core/Assert.hpp" | ||
| 24 | // #include "../utilities/data/DataEnums.hpp" | ||
| 25 | |||
| 26 | namespace openstudio { | ||
| 27 | namespace model { | ||
| 28 | |||
| 29 | namespace detail { | ||
| 30 | |||
| 31 | 13 | CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 32 | 13 | bool keepHandle) | |
| 33 | 13 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 34 |
4/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 13 times.
✗ Branch 13 not taken.
|
13 | OS_ASSERT(idfObject.iddObject().type() == CoilWaterHeatingAirToWaterHeatPumpWrapped::iddObjectType()); |
| 35 | 13 | } | |
| 36 | |||
| 37 | 2 | CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl( | |
| 38 | 2 | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 39 | 2 | : ModelObject_Impl(other, model, keepHandle) { | |
| 40 |
4/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
|
2 | OS_ASSERT(other.iddObject().type() == CoilWaterHeatingAirToWaterHeatPumpWrapped::iddObjectType()); |
| 41 | 2 | } | |
| 42 | |||
| 43 | 6 | CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl( | |
| 44 | 6 | const CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl& other, Model_Impl* model, bool keepHandle) | |
| 45 | 6 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 46 | |||
| 47 | ✗ | const std::vector<std::string>& CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::outputVariableNames() const { | |
| 48 | static const std::vector<std::string> result{// TODO: make sure this is right (cooling, not heating) | ||
| 49 | // Taken directly from the I/O for E+ 8.7 | ||
| 50 | "Cooling Coil Total Cooling Rate", | ||
| 51 | "Cooling Coil Total Cooling Energy", | ||
| 52 | "Cooling Coil Sensible Cooling Rate", | ||
| 53 | "Cooling Coil Sensible Cooling Energy", | ||
| 54 | "Cooling Coil Latent Cooling Rate", | ||
| 55 | "Cooling Coil Latent Cooling Energy", | ||
| 56 | "Cooling Coil Runtime Fraction", | ||
| 57 | "DX Cooling Coil Crankcase Heater Electricity Rate", | ||
| 58 | "Cooling Coil Crankcase Heater Electricity Energy", | ||
| 59 | "Cooling Coil Total Water Heating Rate", | ||
| 60 | "Cooling Coil Total Water Heating Energy", | ||
| 61 | "Cooling Coil Water Heating Electricity Rate", | ||
| 62 | ✗ | "Cooling Coil Water Heating Electricity Energy"}; | |
| 63 | ✗ | return result; | |
| 64 | ✗ | } | |
| 65 | |||
| 66 | 3 | IddObjectType CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::iddObjectType() const { | |
| 67 | 3 | return CoilWaterHeatingAirToWaterHeatPumpWrapped::iddObjectType(); | |
| 68 | } | ||
| 69 | |||
| 70 | ✗ | std::vector<ScheduleTypeKey> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 71 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 72 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 73 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 74 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 75 | ✗ | if (std::find(b, e, OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::AvailabilityScheduleName) != e) { | |
| 76 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDX", "Availability Schedule")); | |
| 77 | } | ||
| 78 | ✗ | return result; | |
| 79 | ✗ | } | |
| 80 | |||
| 81 | 5 | boost::optional<Schedule> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalAvailabilitySchedule() const { | |
| 82 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::AvailabilityScheduleName); |
| 83 | } | ||
| 84 | |||
| 85 | 5 | Schedule CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::availabilitySchedule() const { | |
| 86 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 87 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
|
5 | if (!value) { |
| 88 | // it is an error if we get here, however we don't want to crash | ||
| 89 | // so we hook up to global always on schedule | ||
| 90 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 91 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 92 | ✗ | OS_ASSERT(value); | |
| 93 | ✗ | const_cast<CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 94 | ✗ | value = optionalAvailabilitySchedule(); | |
| 95 | } | ||
| 96 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 97 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 98 | 5 | } | |
| 99 | |||
| 100 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedHeatingCapacity() const { | |
| 101 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedHeatingCapacity, true); |
| 102 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 103 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 104 | } | ||
| 105 | |||
| 106 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedCOP() const { | |
| 107 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedCOP, true); |
| 108 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 109 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 110 | } | ||
| 111 | |||
| 112 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedSensibleHeatRatio() const { | |
| 113 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedSensibleHeatRatio, true); |
| 114 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 115 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 116 | } | ||
| 117 | |||
| 118 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedEvaporatorInletAirDryBulbTemperature() const { | |
| 119 | boost::optional<double> value = | ||
| 120 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorInletAirDryBulbTemperature, true); |
| 121 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 122 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 123 | } | ||
| 124 | |||
| 125 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedEvaporatorInletAirWetBulbTemperature() const { | |
| 126 | boost::optional<double> value = | ||
| 127 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorInletAirWetBulbTemperature, true); |
| 128 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 129 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 130 | } | ||
| 131 | |||
| 132 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedCondenserWaterTemperature() const { | |
| 133 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedCondenserWaterTemperature, true); |
| 134 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 135 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 136 | } | ||
| 137 | |||
| 138 | 3 | boost::optional<double> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::ratedEvaporatorAirFlowRate() const { | |
| 139 | 3 | return getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorAirFlowRate, true); | |
| 140 | } | ||
| 141 | |||
| 142 | 3 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::isRatedEvaporatorAirFlowRateAutocalculated() const { | |
| 143 | 3 | bool result = false; | |
| 144 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorAirFlowRate, true); |
| 145 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 146 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autocalculate"); |
| 147 | } | ||
| 148 | 3 | return result; | |
| 149 | 3 | } | |
| 150 | |||
| 151 | 3 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::evaporatorFanPowerIncludedinRatedCOP() const { | |
| 152 | boost::optional<std::string> value = | ||
| 153 |
1/1✓ Branch 1 taken 3 times.
|
3 | getString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::EvaporatorFanPowerIncludedinRatedCOP, true); |
| 154 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 155 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | return openstudio::istringEqual(value.get(), "Yes"); |
| 156 | 3 | } | |
| 157 | |||
| 158 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::crankcaseHeaterCapacity() const { | |
| 159 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::CrankcaseHeaterCapacity, true); |
| 160 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 161 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 162 | } | ||
| 163 | |||
| 164 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::maximumAmbientTemperatureforCrankcaseHeaterOperation() const { | |
| 165 | boost::optional<double> value = | ||
| 166 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::MaximumAmbientTemperatureforCrankcaseHeaterOperation, true); |
| 167 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 168 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 169 | } | ||
| 170 | |||
| 171 | 3 | std::string CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::evaporatorAirTemperatureTypeforCurveObjects() const { | |
| 172 | boost::optional<std::string> value = | ||
| 173 |
1/1✓ Branch 1 taken 3 times.
|
3 | getString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::EvaporatorAirTemperatureTypeforCurveObjects, true); |
| 174 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 175 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 176 | 3 | } | |
| 177 | |||
| 178 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::heatingCapacityFunctionofTemperatureCurve() const { | |
| 179 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Curve> value = optionalHeatingCapacityFunctionofTemperatureCurve(); |
| 180 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 181 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Temperature Curve attached."); | |
| 182 | } | ||
| 183 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 184 | 4 | } | |
| 185 | |||
| 186 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::heatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 187 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Curve> value = optionalHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 188 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 189 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Air Flow Fraction Curve attached."); | |
| 190 | } | ||
| 191 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 192 | 4 | } | |
| 193 | |||
| 194 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::heatingCOPFunctionofTemperatureCurve() const { | |
| 195 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Curve> value = optionalHeatingCOPFunctionofTemperatureCurve(); |
| 196 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 197 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating COPFunctionof Temperature Curve attached."); | |
| 198 | } | ||
| 199 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 200 | 4 | } | |
| 201 | |||
| 202 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::heatingCOPFunctionofAirFlowFractionCurve() const { | |
| 203 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Curve> value = optionalHeatingCOPFunctionofAirFlowFractionCurve(); |
| 204 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 205 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating COPFunctionof Air Flow Fraction Curve attached."); | |
| 206 | } | ||
| 207 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 208 | 4 | } | |
| 209 | |||
| 210 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::partLoadFractionCorrelationCurve() const { | |
| 211 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<Curve> value = optionalPartLoadFractionCorrelationCurve(); |
| 212 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 213 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Part Load Fraction Correlation Curve attached."); | |
| 214 | } | ||
| 215 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 216 | 4 | } | |
| 217 | |||
| 218 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 219 |
3/3✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
|
48 | bool result = setSchedule(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::AvailabilityScheduleName, |
| 220 | "CoilWaterHeatingAirToWaterHeatPumpWrapped", "Availability Schedule", schedule); | ||
| 221 | 12 | return result; | |
| 222 | } | ||
| 223 | |||
| 224 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedHeatingCapacity(double ratedHeatingCapacity) { | |
| 225 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedHeatingCapacity, ratedHeatingCapacity); | |
| 226 | 12 | return result; | |
| 227 | } | ||
| 228 | |||
| 229 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedCOP(double ratedCOP) { | |
| 230 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedCOP, ratedCOP); | |
| 231 | 12 | return result; | |
| 232 | } | ||
| 233 | |||
| 234 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedSensibleHeatRatio(double ratedSensibleHeatRatio) { | |
| 235 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedSensibleHeatRatio, ratedSensibleHeatRatio); | |
| 236 | 12 | return result; | |
| 237 | } | ||
| 238 | |||
| 239 | bool | ||
| 240 | 12 | CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedEvaporatorInletAirDryBulbTemperature(double ratedEvaporatorInletAirDryBulbTemperature) { | |
| 241 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorInletAirDryBulbTemperature, | |
| 242 | ratedEvaporatorInletAirDryBulbTemperature); | ||
| 243 | 12 | return result; | |
| 244 | } | ||
| 245 | |||
| 246 | bool | ||
| 247 | 12 | CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedEvaporatorInletAirWetBulbTemperature(double ratedEvaporatorInletAirWetBulbTemperature) { | |
| 248 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorInletAirWetBulbTemperature, | |
| 249 | ratedEvaporatorInletAirWetBulbTemperature); | ||
| 250 | 12 | return result; | |
| 251 | } | ||
| 252 | |||
| 253 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedCondenserWaterTemperature(double ratedCondenserWaterTemperature) { | |
| 254 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedCondenserWaterTemperature, ratedCondenserWaterTemperature); | |
| 255 | 12 | return result; | |
| 256 | } | ||
| 257 | |||
| 258 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setRatedEvaporatorAirFlowRate(boost::optional<double> ratedEvaporatorAirFlowRate) { | |
| 259 | 12 | bool result(false); | |
| 260 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | if (ratedEvaporatorAirFlowRate) { |
| 261 | 12 | result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorAirFlowRate, ratedEvaporatorAirFlowRate.get()); | |
| 262 | } | ||
| 263 | 12 | return result; | |
| 264 | } | ||
| 265 | |||
| 266 | ✗ | void CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::autocalculateRatedEvaporatorAirFlowRate() { | |
| 267 | ✗ | bool result = setString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::RatedEvaporatorAirFlowRate, "autocalculate"); | |
| 268 | ✗ | OS_ASSERT(result); | |
| 269 | ✗ | } | |
| 270 | |||
| 271 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setEvaporatorFanPowerIncludedinRatedCOP(bool evaporatorFanPowerIncludedinRatedCOP) { | |
| 272 | 12 | return setBooleanFieldValue(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::EvaporatorFanPowerIncludedinRatedCOP, | |
| 273 | 12 | evaporatorFanPowerIncludedinRatedCOP); | |
| 274 | ; | ||
| 275 | } | ||
| 276 | |||
| 277 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity) { | |
| 278 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::CrankcaseHeaterCapacity, crankcaseHeaterCapacity); | |
| 279 | 12 | return result; | |
| 280 | } | ||
| 281 | |||
| 282 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setMaximumAmbientTemperatureforCrankcaseHeaterOperation( | |
| 283 | double maximumAmbientTemperatureforCrankcaseHeaterOperation) { | ||
| 284 | 12 | bool result = setDouble(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::MaximumAmbientTemperatureforCrankcaseHeaterOperation, | |
| 285 | maximumAmbientTemperatureforCrankcaseHeaterOperation); | ||
| 286 | 12 | return result; | |
| 287 | } | ||
| 288 | |||
| 289 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setEvaporatorAirTemperatureTypeforCurveObjects( | |
| 290 | const std::string& evaporatorAirTemperatureTypeforCurveObjects) { | ||
| 291 | 12 | bool result = setString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::EvaporatorAirTemperatureTypeforCurveObjects, | |
| 292 | evaporatorAirTemperatureTypeforCurveObjects); | ||
| 293 | 12 | return result; | |
| 294 | } | ||
| 295 | |||
| 296 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 297 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 298 | 11 | return result; | |
| 299 | } | ||
| 300 | |||
| 301 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 302 | bool result = | ||
| 303 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCapacityFunctionofAirFlowFractionCurveName, curve.handle()); |
| 304 | 11 | return result; | |
| 305 | } | ||
| 306 | |||
| 307 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setHeatingCOPFunctionofTemperatureCurve(const Curve& curve) { | |
| 308 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCOPFunctionofTemperatureCurveName, curve.handle()); |
| 309 | 11 | return result; | |
| 310 | } | ||
| 311 | |||
| 312 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setHeatingCOPFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 313 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCOPFunctionofAirFlowFractionCurveName, curve.handle()); |
| 314 | 11 | return result; | |
| 315 | } | ||
| 316 | |||
| 317 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 318 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::PartLoadFractionCorrelationCurveName, curve.handle()); |
| 319 | 11 | return result; | |
| 320 | } | ||
| 321 | |||
| 322 | 3 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::crankcaseHeaterCapacityFunctionofTemperatureCurve() const { | |
| 323 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 324 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName); |
| 325 | } | ||
| 326 | |||
| 327 | 1 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 328 | const bool result = | ||
| 329 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setPointer(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 330 | 1 | return result; | |
| 331 | } | ||
| 332 | |||
| 333 | ✗ | void CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::resetCrankcaseHeaterCapacityFunctionofTemperatureCurve() { | |
| 334 | ✗ | const bool result = setString(OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName, ""); | |
| 335 | ✗ | OS_ASSERT(result); | |
| 336 | ✗ | } | |
| 337 | |||
| 338 | 4 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalHeatingCapacityFunctionofTemperatureCurve() const { | |
| 339 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 340 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCapacityFunctionofTemperatureCurveName); |
| 341 | } | ||
| 342 | |||
| 343 | 4 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 344 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 345 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCapacityFunctionofAirFlowFractionCurveName); |
| 346 | } | ||
| 347 | |||
| 348 | 4 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalHeatingCOPFunctionofTemperatureCurve() const { | |
| 349 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 350 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCOPFunctionofTemperatureCurveName); |
| 351 | } | ||
| 352 | |||
| 353 | 4 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalHeatingCOPFunctionofAirFlowFractionCurve() const { | |
| 354 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 355 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::HeatingCOPFunctionofAirFlowFractionCurveName); |
| 356 | } | ||
| 357 | |||
| 358 | 4 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::optionalPartLoadFractionCorrelationCurve() const { | |
| 359 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 360 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::PartLoadFractionCorrelationCurveName); |
| 361 | } | ||
| 362 | |||
| 363 | // ComponentType CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::componentType() const { | ||
| 364 | // return ComponentType::Heating; | ||
| 365 | // } | ||
| 366 | |||
| 367 | // std::vector<FuelType> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::coolingFuelTypes() const { | ||
| 368 | // return {}; | ||
| 369 | // } | ||
| 370 | |||
| 371 | // std::vector<FuelType> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::heatingFuelTypes() const { | ||
| 372 | // return {FuelType::Electricity}; | ||
| 373 | // } | ||
| 374 | |||
| 375 | // std::vector<AppGFuelType> CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl::appGHeatingFuelTypes() const { | ||
| 376 | // return {AppGFuelType::HeatPump}; // TODO: openstudio-standards uses Electric | ||
| 377 | // } | ||
| 378 | |||
| 379 | } // namespace detail | ||
| 380 | |||
| 381 | 11 | CoilWaterHeatingAirToWaterHeatPumpWrapped::CoilWaterHeatingAirToWaterHeatPumpWrapped(const Model& model) | |
| 382 | 11 | : ModelObject(CoilWaterHeatingAirToWaterHeatPumpWrapped::iddObjectType(), model) { | |
| 383 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 11 times.
✗ Branch 5 not taken.
|
11 | OS_ASSERT(getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()); |
| 384 | |||
| 385 |
1/1✓ Branch 1 taken 11 times.
|
11 | auto always_on = model.alwaysOnDiscreteSchedule(); |
| 386 |
1/1✓ Branch 1 taken 11 times.
|
11 | bool ok = setAvailabilitySchedule(always_on); |
| 387 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 388 | |||
| 389 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedHeatingCapacity(2349.6); |
| 390 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedCOP(2.4); |
| 391 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedSensibleHeatRatio(0.981); |
| 392 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedEvaporatorInletAirDryBulbTemperature(19.72); |
| 393 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedEvaporatorInletAirWetBulbTemperature(13.5); |
| 394 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedCondenserWaterTemperature(48.89); |
| 395 |
1/1✓ Branch 1 taken 11 times.
|
11 | setRatedEvaporatorAirFlowRate(0.189); |
| 396 |
1/1✓ Branch 1 taken 11 times.
|
11 | setEvaporatorFanPowerIncludedinRatedCOP(true); |
| 397 |
1/1✓ Branch 1 taken 11 times.
|
11 | setCrankcaseHeaterCapacity(0.0); |
| 398 |
1/1✓ Branch 1 taken 11 times.
|
11 | setMaximumAmbientTemperatureforCrankcaseHeaterOperation(10.0); |
| 399 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | setEvaporatorAirTemperatureTypeforCurveObjects("WetBulbTemperature"); |
| 400 | |||
| 401 | { | ||
| 402 |
1/1✓ Branch 1 taken 11 times.
|
11 | CurveBiquadratic curve(model); |
| 403 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | curve.setName("HPWH-Htg-Cap-fT"); |
| 404 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient1Constant(0.563); |
| 405 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient2x(0.0437); |
| 406 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient3xPOW2(0.000039); |
| 407 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient4y(0.0055); |
| 408 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient5yPOW2(-.000148); |
| 409 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient6xTIMESY(-.000145); |
| 410 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofx(0); |
| 411 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofx(100); |
| 412 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofy(0); |
| 413 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofy(100); |
| 414 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumCurveOutput(0); |
| 415 | |||
| 416 |
1/1✓ Branch 1 taken 11 times.
|
11 | setHeatingCapacityFunctionofTemperatureCurve(curve); |
| 417 | 11 | } | |
| 418 | |||
| 419 | { | ||
| 420 |
1/1✓ Branch 1 taken 11 times.
|
11 | CurveCubic curve(model); |
| 421 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | curve.setName("HPWH-Htg-Cap-FF"); |
| 422 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient1Constant(1.0); |
| 423 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient2x(0.0); |
| 424 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient3xPOW2(0.0); |
| 425 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient4xPOW3(0.0); |
| 426 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofx(0); |
| 427 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofx(100); |
| 428 | |||
| 429 |
1/1✓ Branch 1 taken 11 times.
|
11 | setHeatingCapacityFunctionofAirFlowFractionCurve(curve); |
| 430 | 11 | } | |
| 431 | |||
| 432 | { | ||
| 433 |
1/1✓ Branch 1 taken 11 times.
|
11 | CurveBiquadratic curve(model); |
| 434 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | curve.setName("HPWH-Htg-COP-fT"); |
| 435 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient1Constant(1.1332); |
| 436 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient2x(0.063); |
| 437 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient3xPOW2(-.0000979); |
| 438 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient4y(-.00972); |
| 439 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient5yPOW2(-.0000214); |
| 440 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient6xTIMESY(-.000686); |
| 441 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofx(0); |
| 442 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofx(100); |
| 443 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofy(0); |
| 444 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofy(100); |
| 445 | |||
| 446 |
1/1✓ Branch 1 taken 11 times.
|
11 | setHeatingCOPFunctionofTemperatureCurve(curve); |
| 447 | 11 | } | |
| 448 | |||
| 449 | { | ||
| 450 |
1/1✓ Branch 1 taken 11 times.
|
11 | CurveCubic curve(model); |
| 451 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | curve.setName("HPWH-Htg-COP-FF"); |
| 452 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient1Constant(1.0); |
| 453 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient2x(0.0); |
| 454 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient3xPOW2(0.0); |
| 455 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient4xPOW3(0.0); |
| 456 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofx(0); |
| 457 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofx(100); |
| 458 | |||
| 459 |
1/1✓ Branch 1 taken 11 times.
|
11 | setHeatingCOPFunctionofAirFlowFractionCurve(curve); |
| 460 | 11 | } | |
| 461 | |||
| 462 | { | ||
| 463 |
1/1✓ Branch 1 taken 11 times.
|
11 | CurveCubic curve(model); |
| 464 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | curve.setName("HPWH-COP-fPLR"); |
| 465 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient1Constant(1); |
| 466 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient2x(0); |
| 467 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient3xPOW2(0); |
| 468 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setCoefficient4xPOW3(0); |
| 469 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMinimumValueofx(0); |
| 470 |
1/1✓ Branch 1 taken 11 times.
|
11 | curve.setMaximumValueofx(1); |
| 471 | |||
| 472 |
1/1✓ Branch 1 taken 11 times.
|
11 | setPartLoadFractionCorrelationCurve(curve); |
| 473 | 11 | } | |
| 474 | 11 | } | |
| 475 | |||
| 476 | 7760 | IddObjectType CoilWaterHeatingAirToWaterHeatPumpWrapped::iddObjectType() { | |
| 477 |
1/1✓ Branch 1 taken 7760 times.
|
7760 | return {IddObjectType::OS_Coil_WaterHeating_AirToWaterHeatPump_Wrapped}; |
| 478 | } | ||
| 479 | |||
| 480 | ✗ | std::vector<std::string> CoilWaterHeatingAirToWaterHeatPumpWrapped::evaporatorAirTemperatureTypeforCurveObjectsValues() { | |
| 481 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 482 | ✗ | OS_Coil_WaterHeating_AirToWaterHeatPump_WrappedFields::EvaporatorAirTemperatureTypeforCurveObjects); | |
| 483 | } | ||
| 484 | |||
| 485 | 5 | Schedule CoilWaterHeatingAirToWaterHeatPumpWrapped::availabilitySchedule() const { | |
| 486 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->availabilitySchedule(); |
| 487 | } | ||
| 488 | |||
| 489 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedHeatingCapacity() const { | |
| 490 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedHeatingCapacity(); |
| 491 | } | ||
| 492 | |||
| 493 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedCOP() const { | |
| 494 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedCOP(); |
| 495 | } | ||
| 496 | |||
| 497 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedSensibleHeatRatio() const { | |
| 498 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedSensibleHeatRatio(); |
| 499 | } | ||
| 500 | |||
| 501 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedEvaporatorInletAirDryBulbTemperature() const { | |
| 502 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedEvaporatorInletAirDryBulbTemperature(); |
| 503 | } | ||
| 504 | |||
| 505 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedEvaporatorInletAirWetBulbTemperature() const { | |
| 506 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedEvaporatorInletAirWetBulbTemperature(); |
| 507 | } | ||
| 508 | |||
| 509 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedCondenserWaterTemperature() const { | |
| 510 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedCondenserWaterTemperature(); |
| 511 | } | ||
| 512 | |||
| 513 | 3 | boost::optional<double> CoilWaterHeatingAirToWaterHeatPumpWrapped::ratedEvaporatorAirFlowRate() const { | |
| 514 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->ratedEvaporatorAirFlowRate(); |
| 515 | } | ||
| 516 | |||
| 517 | 3 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::isRatedEvaporatorAirFlowRateAutocalculated() const { | |
| 518 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->isRatedEvaporatorAirFlowRateAutocalculated(); |
| 519 | } | ||
| 520 | |||
| 521 | 3 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::evaporatorFanPowerIncludedinRatedCOP() const { | |
| 522 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->evaporatorFanPowerIncludedinRatedCOP(); |
| 523 | } | ||
| 524 | |||
| 525 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::crankcaseHeaterCapacity() const { | |
| 526 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->crankcaseHeaterCapacity(); |
| 527 | } | ||
| 528 | |||
| 529 | 3 | double CoilWaterHeatingAirToWaterHeatPumpWrapped::maximumAmbientTemperatureforCrankcaseHeaterOperation() const { | |
| 530 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->maximumAmbientTemperatureforCrankcaseHeaterOperation(); |
| 531 | } | ||
| 532 | |||
| 533 | 3 | std::string CoilWaterHeatingAirToWaterHeatPumpWrapped::evaporatorAirTemperatureTypeforCurveObjects() const { | |
| 534 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->evaporatorAirTemperatureTypeforCurveObjects(); |
| 535 | } | ||
| 536 | |||
| 537 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped::heatingCapacityFunctionofTemperatureCurve() const { | |
| 538 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->heatingCapacityFunctionofTemperatureCurve(); |
| 539 | } | ||
| 540 | |||
| 541 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped::heatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 542 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->heatingCapacityFunctionofAirFlowFractionCurve(); |
| 543 | } | ||
| 544 | |||
| 545 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped::heatingCOPFunctionofTemperatureCurve() const { | |
| 546 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->heatingCOPFunctionofTemperatureCurve(); |
| 547 | } | ||
| 548 | |||
| 549 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped::heatingCOPFunctionofAirFlowFractionCurve() const { | |
| 550 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->heatingCOPFunctionofAirFlowFractionCurve(); |
| 551 | } | ||
| 552 | |||
| 553 | 4 | Curve CoilWaterHeatingAirToWaterHeatPumpWrapped::partLoadFractionCorrelationCurve() const { | |
| 554 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->partLoadFractionCorrelationCurve(); |
| 555 | } | ||
| 556 | |||
| 557 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setAvailabilitySchedule(Schedule& schedule) { | |
| 558 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setAvailabilitySchedule(schedule); |
| 559 | } | ||
| 560 | |||
| 561 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedHeatingCapacity(double ratedHeatingCapacity) { | |
| 562 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedHeatingCapacity(ratedHeatingCapacity); |
| 563 | } | ||
| 564 | |||
| 565 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedCOP(double ratedCOP) { | |
| 566 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedCOP(ratedCOP); |
| 567 | } | ||
| 568 | |||
| 569 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedSensibleHeatRatio(double ratedSensibleHeatRatio) { | |
| 570 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedSensibleHeatRatio(ratedSensibleHeatRatio); |
| 571 | } | ||
| 572 | |||
| 573 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedEvaporatorInletAirDryBulbTemperature(double ratedEvaporatorInletAirDryBulbTemperature) { | |
| 574 |
1/1✓ Branch 3 taken 12 times.
|
24 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedEvaporatorInletAirDryBulbTemperature( |
| 575 | 24 | ratedEvaporatorInletAirDryBulbTemperature); | |
| 576 | } | ||
| 577 | |||
| 578 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedEvaporatorInletAirWetBulbTemperature(double ratedEvaporatorInletAirWetBulbTemperature) { | |
| 579 |
1/1✓ Branch 3 taken 12 times.
|
24 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedEvaporatorInletAirWetBulbTemperature( |
| 580 | 24 | ratedEvaporatorInletAirWetBulbTemperature); | |
| 581 | } | ||
| 582 | |||
| 583 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedCondenserWaterTemperature(double ratedCondenserWaterTemperature) { | |
| 584 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedCondenserWaterTemperature(ratedCondenserWaterTemperature); |
| 585 | } | ||
| 586 | |||
| 587 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setRatedEvaporatorAirFlowRate(double ratedEvaporatorAirFlowRate) { | |
| 588 |
2/2✓ Branch 3 taken 12 times.
✓ Branch 6 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setRatedEvaporatorAirFlowRate(ratedEvaporatorAirFlowRate); |
| 589 | } | ||
| 590 | |||
| 591 | ✗ | void CoilWaterHeatingAirToWaterHeatPumpWrapped::autocalculateRatedEvaporatorAirFlowRate() { | |
| 592 | ✗ | getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->autocalculateRatedEvaporatorAirFlowRate(); | |
| 593 | ✗ | } | |
| 594 | |||
| 595 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setEvaporatorFanPowerIncludedinRatedCOP(bool evaporatorFanPowerIncludedinRatedCOP) { | |
| 596 |
1/1✓ Branch 3 taken 12 times.
|
24 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setEvaporatorFanPowerIncludedinRatedCOP( |
| 597 | 24 | evaporatorFanPowerIncludedinRatedCOP); | |
| 598 | } | ||
| 599 | |||
| 600 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity) { | |
| 601 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setCrankcaseHeaterCapacity(crankcaseHeaterCapacity); |
| 602 | } | ||
| 603 | |||
| 604 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setMaximumAmbientTemperatureforCrankcaseHeaterOperation( | |
| 605 | double maximumAmbientTemperatureforCrankcaseHeaterOperation) { | ||
| 606 |
1/1✓ Branch 3 taken 12 times.
|
24 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setMaximumAmbientTemperatureforCrankcaseHeaterOperation( |
| 607 | 24 | maximumAmbientTemperatureforCrankcaseHeaterOperation); | |
| 608 | } | ||
| 609 | |||
| 610 | 12 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setEvaporatorAirTemperatureTypeforCurveObjects( | |
| 611 | const std::string& evaporatorAirTemperatureTypeforCurveObjects) { | ||
| 612 |
1/1✓ Branch 3 taken 12 times.
|
24 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setEvaporatorAirTemperatureTypeforCurveObjects( |
| 613 | 24 | evaporatorAirTemperatureTypeforCurveObjects); | |
| 614 | } | ||
| 615 | |||
| 616 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 617 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setHeatingCapacityFunctionofTemperatureCurve(curve); |
| 618 | } | ||
| 619 | |||
| 620 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 621 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setHeatingCapacityFunctionofAirFlowFractionCurve(curve); |
| 622 | } | ||
| 623 | |||
| 624 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setHeatingCOPFunctionofTemperatureCurve(const Curve& curve) { | |
| 625 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setHeatingCOPFunctionofTemperatureCurve(curve); |
| 626 | } | ||
| 627 | |||
| 628 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setHeatingCOPFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 629 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setHeatingCOPFunctionofAirFlowFractionCurve(curve); |
| 630 | } | ||
| 631 | |||
| 632 | 11 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 633 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setPartLoadFractionCorrelationCurve(curve); |
| 634 | } | ||
| 635 | |||
| 636 | 3 | boost::optional<Curve> CoilWaterHeatingAirToWaterHeatPumpWrapped::crankcaseHeaterCapacityFunctionofTemperatureCurve() const { | |
| 637 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->crankcaseHeaterCapacityFunctionofTemperatureCurve(); |
| 638 | } | ||
| 639 | |||
| 640 | 1 | bool CoilWaterHeatingAirToWaterHeatPumpWrapped::setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 641 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->setCrankcaseHeaterCapacityFunctionofTemperatureCurve(curve); |
| 642 | } | ||
| 643 | |||
| 644 | ✗ | void CoilWaterHeatingAirToWaterHeatPumpWrapped::resetCrankcaseHeaterCapacityFunctionofTemperatureCurve() { | |
| 645 | ✗ | getImpl<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl>()->resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | |
| 646 | ✗ | } | |
| 647 | |||
| 648 | /// @cond | ||
| 649 | 3 | CoilWaterHeatingAirToWaterHeatPumpWrapped::CoilWaterHeatingAirToWaterHeatPumpWrapped( | |
| 650 | 3 | std::shared_ptr<detail::CoilWaterHeatingAirToWaterHeatPumpWrapped_Impl> impl) | |
| 651 |
1/1✓ Branch 3 taken 3 times.
|
3 | : ModelObject(std::move(impl)) {} |
| 652 | /// @endcond | ||
| 653 | |||
| 654 | } // namespace model | ||
| 655 | } // namespace openstudio | ||
| 656 |