src/model/WaterHeaterSizing.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 "WaterHeaterSizing.hpp" | ||
| 7 | #include "WaterHeaterSizing_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Model.hpp" | ||
| 10 | #include "WaterToWaterComponent.hpp" | ||
| 11 | #include "WaterToWaterComponent_Impl.hpp" | ||
| 12 | |||
| 13 | #include <utilities/idd/IddFactory.hxx> | ||
| 14 | #include <utilities/idd/IddEnums.hxx> | ||
| 15 | #include <utilities/idd/OS_WaterHeater_Sizing_FieldEnums.hxx> | ||
| 16 | |||
| 17 | #include "../utilities/units/Unit.hpp" | ||
| 18 | |||
| 19 | #include "../utilities/core/Assert.hpp" | ||
| 20 | |||
| 21 | namespace openstudio { | ||
| 22 | namespace model { | ||
| 23 | |||
| 24 | namespace detail { | ||
| 25 | |||
| 26 | 97 | WaterHeaterSizing_Impl::WaterHeaterSizing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 27 | 97 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 28 |
4/6✓ Branch 1 taken 97 times.
✓ Branch 4 taken 97 times.
✓ Branch 7 taken 97 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 97 times.
✗ Branch 13 not taken.
|
97 | OS_ASSERT(idfObject.iddObject().type() == WaterHeaterSizing::iddObjectType()); |
| 29 | 97 | } | |
| 30 | |||
| 31 | 20 | WaterHeaterSizing_Impl::WaterHeaterSizing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 32 | 20 | : ModelObject_Impl(other, model, keepHandle) { | |
| 33 |
4/6✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 20 times.
✗ Branch 13 not taken.
|
20 | OS_ASSERT(other.iddObject().type() == WaterHeaterSizing::iddObjectType()); |
| 34 | 20 | } | |
| 35 | |||
| 36 | 94 | WaterHeaterSizing_Impl::WaterHeaterSizing_Impl(const WaterHeaterSizing_Impl& other, Model_Impl* model, bool keepHandle) | |
| 37 | 94 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 38 | |||
| 39 | ✗ | const std::vector<std::string>& WaterHeaterSizing_Impl::outputVariableNames() const { | |
| 40 | ✗ | static std::vector<std::string> result; | |
| 41 | ✗ | if (result.empty()) { | |
| 42 | } | ||
| 43 | ✗ | return result; | |
| 44 | } | ||
| 45 | |||
| 46 | ✗ | IddObjectType WaterHeaterSizing_Impl::iddObjectType() const { | |
| 47 | ✗ | return WaterHeaterSizing::iddObjectType(); | |
| 48 | } | ||
| 49 | |||
| 50 | 166 | WaterToWaterComponent WaterHeaterSizing_Impl::waterHeater() const { | |
| 51 |
1/1✓ Branch 1 taken 166 times.
|
166 | boost::optional<WaterToWaterComponent> value = optionalWaterHeater(); |
| 52 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 166 times.
|
166 | if (!value) { |
| 53 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Water Heater attached."); | |
| 54 | } | ||
| 55 |
2/2✓ Branch 1 taken 166 times.
✓ Branch 4 taken 166 times.
|
332 | return value.get(); |
| 56 | 166 | } | |
| 57 | |||
| 58 | 166 | boost::optional<WaterToWaterComponent> WaterHeaterSizing_Impl::optionalWaterHeater() const { | |
| 59 |
2/2✓ Branch 1 taken 166 times.
✓ Branch 4 taken 166 times.
|
166 | return getObject<ModelObject>().getModelObjectTarget<WaterToWaterComponent>(OS_WaterHeater_SizingFields::WaterHeaterName); |
| 60 | } | ||
| 61 | |||
| 62 | 79 | bool WaterHeaterSizing_Impl::setWaterHeater(const WaterToWaterComponent& waterHeater) { | |
| 63 |
2/2✓ Branch 1 taken 79 times.
✓ Branch 4 taken 79 times.
|
79 | bool result = setPointer(OS_WaterHeater_SizingFields::WaterHeaterName, waterHeater.handle()); |
| 64 | 79 | return result; | |
| 65 | } | ||
| 66 | |||
| 67 | 45 | boost::optional<std::string> WaterHeaterSizing_Impl::designMode() const { | |
| 68 | 45 | return getString(OS_WaterHeater_SizingFields::DesignMode, true); | |
| 69 | } | ||
| 70 | |||
| 71 | 45 | boost::optional<double> WaterHeaterSizing_Impl::timeStorageCanMeetPeakDraw() const { | |
| 72 | 45 | return getDouble(OS_WaterHeater_SizingFields::TimeStorageCanMeetPeakDraw, true); | |
| 73 | } | ||
| 74 | |||
| 75 | 45 | boost::optional<double> WaterHeaterSizing_Impl::timeforTankRecovery() const { | |
| 76 | 45 | return getDouble(OS_WaterHeater_SizingFields::TimeforTankRecovery, true); | |
| 77 | } | ||
| 78 | |||
| 79 | 43 | boost::optional<double> WaterHeaterSizing_Impl::nominalTankVolumeforAutosizingPlantConnections() const { | |
| 80 | 43 | return getDouble(OS_WaterHeater_SizingFields::NominalTankVolumeforAutosizingPlantConnections, true); | |
| 81 | } | ||
| 82 | |||
| 83 | 45 | boost::optional<int> WaterHeaterSizing_Impl::numberofBedrooms() const { | |
| 84 | 45 | return getInt(OS_WaterHeater_SizingFields::NumberofBedrooms, true); | |
| 85 | } | ||
| 86 | |||
| 87 | 45 | boost::optional<int> WaterHeaterSizing_Impl::numberofBathrooms() const { | |
| 88 | 45 | return getInt(OS_WaterHeater_SizingFields::NumberofBathrooms, true); | |
| 89 | } | ||
| 90 | |||
| 91 | 45 | boost::optional<double> WaterHeaterSizing_Impl::storageCapacityperPerson() const { | |
| 92 | 45 | return getDouble(OS_WaterHeater_SizingFields::StorageCapacityperPerson, true); | |
| 93 | } | ||
| 94 | |||
| 95 | 45 | boost::optional<double> WaterHeaterSizing_Impl::recoveryCapacityperPerson() const { | |
| 96 | 45 | return getDouble(OS_WaterHeater_SizingFields::RecoveryCapacityperPerson, true); | |
| 97 | } | ||
| 98 | |||
| 99 | 45 | boost::optional<double> WaterHeaterSizing_Impl::storageCapacityperFloorArea() const { | |
| 100 | 45 | return getDouble(OS_WaterHeater_SizingFields::StorageCapacityperFloorArea, true); | |
| 101 | } | ||
| 102 | |||
| 103 | 45 | boost::optional<double> WaterHeaterSizing_Impl::recoveryCapacityperFloorArea() const { | |
| 104 | 45 | return getDouble(OS_WaterHeater_SizingFields::RecoveryCapacityperFloorArea, true); | |
| 105 | } | ||
| 106 | |||
| 107 | 43 | boost::optional<double> WaterHeaterSizing_Impl::numberofUnits() const { | |
| 108 | 43 | return getDouble(OS_WaterHeater_SizingFields::NumberofUnits, true); | |
| 109 | } | ||
| 110 | |||
| 111 | 45 | boost::optional<double> WaterHeaterSizing_Impl::storageCapacityperUnit() const { | |
| 112 | 45 | return getDouble(OS_WaterHeater_SizingFields::StorageCapacityperUnit, true); | |
| 113 | } | ||
| 114 | |||
| 115 | 45 | boost::optional<double> WaterHeaterSizing_Impl::recoveryCapacityPerUnit() const { | |
| 116 | 45 | return getDouble(OS_WaterHeater_SizingFields::RecoveryCapacityPerUnit, true); | |
| 117 | } | ||
| 118 | |||
| 119 | 45 | boost::optional<double> WaterHeaterSizing_Impl::storageCapacityperCollectorArea() const { | |
| 120 | 45 | return getDouble(OS_WaterHeater_SizingFields::StorageCapacityperCollectorArea, true); | |
| 121 | } | ||
| 122 | |||
| 123 | 45 | boost::optional<double> WaterHeaterSizing_Impl::heightAspectRatio() const { | |
| 124 | 45 | return getDouble(OS_WaterHeater_SizingFields::HeightAspectRatio, true); | |
| 125 | } | ||
| 126 | |||
| 127 | 80 | bool WaterHeaterSizing_Impl::setDesignMode(const std::string& designMode) { | |
| 128 | 80 | bool result = setString(OS_WaterHeater_SizingFields::DesignMode, designMode); | |
| 129 | 80 | return result; | |
| 130 | } | ||
| 131 | |||
| 132 | ✗ | void WaterHeaterSizing_Impl::resetDesignMode() { | |
| 133 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::DesignMode, ""); | |
| 134 | ✗ | OS_ASSERT(result); | |
| 135 | ✗ | } | |
| 136 | |||
| 137 | 80 | bool WaterHeaterSizing_Impl::setTimeStorageCanMeetPeakDraw(double timeStorageCanMeetPeakDraw) { | |
| 138 | 80 | bool result = setDouble(OS_WaterHeater_SizingFields::TimeStorageCanMeetPeakDraw, timeStorageCanMeetPeakDraw); | |
| 139 | 80 | return result; | |
| 140 | } | ||
| 141 | |||
| 142 | ✗ | void WaterHeaterSizing_Impl::resetTimeStorageCanMeetPeakDraw() { | |
| 143 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::TimeStorageCanMeetPeakDraw, ""); | |
| 144 | ✗ | OS_ASSERT(result); | |
| 145 | ✗ | } | |
| 146 | |||
| 147 | 80 | bool WaterHeaterSizing_Impl::setTimeforTankRecovery(double timeforTankRecovery) { | |
| 148 | 80 | bool result = setDouble(OS_WaterHeater_SizingFields::TimeforTankRecovery, timeforTankRecovery); | |
| 149 | 80 | return result; | |
| 150 | } | ||
| 151 | |||
| 152 | ✗ | void WaterHeaterSizing_Impl::resetTimeforTankRecovery() { | |
| 153 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::TimeforTankRecovery, ""); | |
| 154 | ✗ | OS_ASSERT(result); | |
| 155 | ✗ | } | |
| 156 | |||
| 157 | 79 | bool WaterHeaterSizing_Impl::setNominalTankVolumeforAutosizingPlantConnections(double nominalTankVolumeforAutosizingPlantConnections) { | |
| 158 | bool result = | ||
| 159 | 79 | setDouble(OS_WaterHeater_SizingFields::NominalTankVolumeforAutosizingPlantConnections, nominalTankVolumeforAutosizingPlantConnections); | |
| 160 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 79 times.
|
79 | OS_ASSERT(result); |
| 161 | 79 | return result; | |
| 162 | } | ||
| 163 | |||
| 164 | ✗ | void WaterHeaterSizing_Impl::resetNominalTankVolumeforAutosizingPlantConnections() { | |
| 165 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::NominalTankVolumeforAutosizingPlantConnections, ""); | |
| 166 | ✗ | OS_ASSERT(result); | |
| 167 | ✗ | } | |
| 168 | |||
| 169 | 3 | bool WaterHeaterSizing_Impl::setNumberofBedrooms(int numberofBedrooms) { | |
| 170 | 3 | bool result = setInt(OS_WaterHeater_SizingFields::NumberofBedrooms, numberofBedrooms); | |
| 171 | 3 | return result; | |
| 172 | } | ||
| 173 | |||
| 174 | ✗ | void WaterHeaterSizing_Impl::resetNumberofBedrooms() { | |
| 175 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::NumberofBedrooms, ""); | |
| 176 | ✗ | OS_ASSERT(result); | |
| 177 | ✗ | } | |
| 178 | |||
| 179 | 3 | bool WaterHeaterSizing_Impl::setNumberofBathrooms(int numberofBathrooms) { | |
| 180 | 3 | bool result = setInt(OS_WaterHeater_SizingFields::NumberofBathrooms, numberofBathrooms); | |
| 181 | 3 | return result; | |
| 182 | } | ||
| 183 | |||
| 184 | ✗ | void WaterHeaterSizing_Impl::resetNumberofBathrooms() { | |
| 185 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::NumberofBathrooms, ""); | |
| 186 | ✗ | OS_ASSERT(result); | |
| 187 | ✗ | } | |
| 188 | |||
| 189 | 3 | bool WaterHeaterSizing_Impl::setStorageCapacityperPerson(double storageCapacityperPerson) { | |
| 190 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::StorageCapacityperPerson, storageCapacityperPerson); | |
| 191 | 3 | return result; | |
| 192 | } | ||
| 193 | |||
| 194 | ✗ | void WaterHeaterSizing_Impl::resetStorageCapacityperPerson() { | |
| 195 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::StorageCapacityperPerson, ""); | |
| 196 | ✗ | OS_ASSERT(result); | |
| 197 | ✗ | } | |
| 198 | |||
| 199 | 3 | bool WaterHeaterSizing_Impl::setRecoveryCapacityperPerson(double recoveryCapacityperPerson) { | |
| 200 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::RecoveryCapacityperPerson, recoveryCapacityperPerson); | |
| 201 | 3 | return result; | |
| 202 | } | ||
| 203 | |||
| 204 | ✗ | void WaterHeaterSizing_Impl::resetRecoveryCapacityperPerson() { | |
| 205 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::RecoveryCapacityperPerson, ""); | |
| 206 | ✗ | OS_ASSERT(result); | |
| 207 | ✗ | } | |
| 208 | |||
| 209 | 3 | bool WaterHeaterSizing_Impl::setStorageCapacityperFloorArea(double storageCapacityperFloorArea) { | |
| 210 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::StorageCapacityperFloorArea, storageCapacityperFloorArea); | |
| 211 | 3 | return result; | |
| 212 | } | ||
| 213 | |||
| 214 | ✗ | void WaterHeaterSizing_Impl::resetStorageCapacityperFloorArea() { | |
| 215 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::StorageCapacityperFloorArea, ""); | |
| 216 | ✗ | OS_ASSERT(result); | |
| 217 | ✗ | } | |
| 218 | |||
| 219 | 3 | bool WaterHeaterSizing_Impl::setRecoveryCapacityperFloorArea(double recoveryCapacityperFloorArea) { | |
| 220 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::RecoveryCapacityperFloorArea, recoveryCapacityperFloorArea); | |
| 221 | 3 | return result; | |
| 222 | } | ||
| 223 | |||
| 224 | ✗ | void WaterHeaterSizing_Impl::resetRecoveryCapacityperFloorArea() { | |
| 225 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::RecoveryCapacityperFloorArea, ""); | |
| 226 | ✗ | OS_ASSERT(result); | |
| 227 | ✗ | } | |
| 228 | |||
| 229 | 2 | bool WaterHeaterSizing_Impl::setNumberofUnits(double numberofUnits) { | |
| 230 | 2 | bool result = setDouble(OS_WaterHeater_SizingFields::NumberofUnits, numberofUnits); | |
| 231 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 232 | 2 | return result; | |
| 233 | } | ||
| 234 | |||
| 235 | ✗ | void WaterHeaterSizing_Impl::resetNumberofUnits() { | |
| 236 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::NumberofUnits, ""); | |
| 237 | ✗ | OS_ASSERT(result); | |
| 238 | ✗ | } | |
| 239 | |||
| 240 | 3 | bool WaterHeaterSizing_Impl::setStorageCapacityperUnit(double storageCapacityperUnit) { | |
| 241 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::StorageCapacityperUnit, storageCapacityperUnit); | |
| 242 | 3 | return result; | |
| 243 | } | ||
| 244 | |||
| 245 | ✗ | void WaterHeaterSizing_Impl::resetStorageCapacityperUnit() { | |
| 246 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::StorageCapacityperUnit, ""); | |
| 247 | ✗ | OS_ASSERT(result); | |
| 248 | ✗ | } | |
| 249 | |||
| 250 | 3 | bool WaterHeaterSizing_Impl::setRecoveryCapacityPerUnit(double recoveryCapacityPerUnit) { | |
| 251 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::RecoveryCapacityPerUnit, recoveryCapacityPerUnit); | |
| 252 | 3 | return result; | |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | void WaterHeaterSizing_Impl::resetRecoveryCapacityPerUnit() { | |
| 256 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::RecoveryCapacityPerUnit, ""); | |
| 257 | ✗ | OS_ASSERT(result); | |
| 258 | ✗ | } | |
| 259 | |||
| 260 | 3 | bool WaterHeaterSizing_Impl::setStorageCapacityperCollectorArea(double storageCapacityperCollectorArea) { | |
| 261 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::StorageCapacityperCollectorArea, storageCapacityperCollectorArea); | |
| 262 | 3 | return result; | |
| 263 | } | ||
| 264 | |||
| 265 | ✗ | void WaterHeaterSizing_Impl::resetStorageCapacityperCollectorArea() { | |
| 266 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::StorageCapacityperCollectorArea, ""); | |
| 267 | ✗ | OS_ASSERT(result); | |
| 268 | ✗ | } | |
| 269 | |||
| 270 | 3 | bool WaterHeaterSizing_Impl::setHeightAspectRatio(double heightAspectRatio) { | |
| 271 | 3 | bool result = setDouble(OS_WaterHeater_SizingFields::HeightAspectRatio, heightAspectRatio); | |
| 272 | 3 | return result; | |
| 273 | } | ||
| 274 | |||
| 275 | ✗ | void WaterHeaterSizing_Impl::resetHeightAspectRatio() { | |
| 276 | ✗ | bool result = setString(OS_WaterHeater_SizingFields::HeightAspectRatio, ""); | |
| 277 | ✗ | OS_ASSERT(result); | |
| 278 | ✗ | } | |
| 279 | |||
| 280 | } // namespace detail | ||
| 281 | |||
| 282 | 77 | WaterHeaterSizing::WaterHeaterSizing(const WaterToWaterComponent& waterHeater) | |
| 283 |
3/3✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
✓ Branch 7 taken 77 times.
|
77 | : ModelObject(WaterHeaterSizing::iddObjectType(), waterHeater.model()) { |
| 284 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 77 times.
✗ Branch 5 not taken.
|
77 | OS_ASSERT(getImpl<detail::WaterHeaterSizing_Impl>()); |
| 285 | |||
| 286 |
1/1✓ Branch 1 taken 77 times.
|
77 | bool ok = setWaterHeater(waterHeater); |
| 287 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 77 times.
|
77 | if (!ok) { |
| 288 | ✗ | remove(); | |
| 289 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s WaterHeater " << waterHeater.briefDescription() << "."); | |
| 290 | } | ||
| 291 | |||
| 292 | // Defaults from 5ZoneWaterSystems.idf | ||
| 293 |
2/2✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
|
77 | setDesignMode("PeakDraw"); |
| 294 |
1/1✓ Branch 1 taken 77 times.
|
77 | setTimeStorageCanMeetPeakDraw(0.538503); |
| 295 |
1/1✓ Branch 1 taken 77 times.
|
77 | setTimeforTankRecovery(0.0); |
| 296 |
1/1✓ Branch 1 taken 77 times.
|
77 | setNominalTankVolumeforAutosizingPlantConnections(1.0); |
| 297 | 77 | } | |
| 298 | |||
| 299 | 7928 | IddObjectType WaterHeaterSizing::iddObjectType() { | |
| 300 |
1/1✓ Branch 1 taken 7928 times.
|
7928 | return {IddObjectType::OS_WaterHeater_Sizing}; |
| 301 | } | ||
| 302 | |||
| 303 | ✗ | std::vector<std::string> WaterHeaterSizing::designModeValues() { | |
| 304 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_WaterHeater_SizingFields::DesignMode); | |
| 305 | } | ||
| 306 | |||
| 307 | 166 | WaterToWaterComponent WaterHeaterSizing::waterHeater() const { | |
| 308 |
1/1✓ Branch 3 taken 166 times.
|
166 | return getImpl<detail::WaterHeaterSizing_Impl>()->waterHeater(); |
| 309 | } | ||
| 310 | |||
| 311 | 45 | boost::optional<std::string> WaterHeaterSizing::designMode() const { | |
| 312 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->designMode(); |
| 313 | } | ||
| 314 | |||
| 315 | 45 | boost::optional<double> WaterHeaterSizing::timeStorageCanMeetPeakDraw() const { | |
| 316 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->timeStorageCanMeetPeakDraw(); |
| 317 | } | ||
| 318 | |||
| 319 | 45 | boost::optional<double> WaterHeaterSizing::timeforTankRecovery() const { | |
| 320 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->timeforTankRecovery(); |
| 321 | } | ||
| 322 | |||
| 323 | 43 | boost::optional<double> WaterHeaterSizing::nominalTankVolumeforAutosizingPlantConnections() const { | |
| 324 |
1/1✓ Branch 3 taken 43 times.
|
43 | return getImpl<detail::WaterHeaterSizing_Impl>()->nominalTankVolumeforAutosizingPlantConnections(); |
| 325 | } | ||
| 326 | |||
| 327 | 45 | boost::optional<int> WaterHeaterSizing::numberofBedrooms() const { | |
| 328 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->numberofBedrooms(); |
| 329 | } | ||
| 330 | |||
| 331 | 45 | boost::optional<int> WaterHeaterSizing::numberofBathrooms() const { | |
| 332 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->numberofBathrooms(); |
| 333 | } | ||
| 334 | |||
| 335 | 45 | boost::optional<double> WaterHeaterSizing::storageCapacityperPerson() const { | |
| 336 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->storageCapacityperPerson(); |
| 337 | } | ||
| 338 | |||
| 339 | 45 | boost::optional<double> WaterHeaterSizing::recoveryCapacityperPerson() const { | |
| 340 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->recoveryCapacityperPerson(); |
| 341 | } | ||
| 342 | |||
| 343 | 45 | boost::optional<double> WaterHeaterSizing::storageCapacityperFloorArea() const { | |
| 344 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->storageCapacityperFloorArea(); |
| 345 | } | ||
| 346 | |||
| 347 | 45 | boost::optional<double> WaterHeaterSizing::recoveryCapacityperFloorArea() const { | |
| 348 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->recoveryCapacityperFloorArea(); |
| 349 | } | ||
| 350 | |||
| 351 | 43 | boost::optional<double> WaterHeaterSizing::numberofUnits() const { | |
| 352 |
1/1✓ Branch 3 taken 43 times.
|
43 | return getImpl<detail::WaterHeaterSizing_Impl>()->numberofUnits(); |
| 353 | } | ||
| 354 | |||
| 355 | 45 | boost::optional<double> WaterHeaterSizing::storageCapacityperUnit() const { | |
| 356 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->storageCapacityperUnit(); |
| 357 | } | ||
| 358 | |||
| 359 | 45 | boost::optional<double> WaterHeaterSizing::recoveryCapacityPerUnit() const { | |
| 360 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->recoveryCapacityPerUnit(); |
| 361 | } | ||
| 362 | |||
| 363 | 45 | boost::optional<double> WaterHeaterSizing::storageCapacityperCollectorArea() const { | |
| 364 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->storageCapacityperCollectorArea(); |
| 365 | } | ||
| 366 | |||
| 367 | 45 | boost::optional<double> WaterHeaterSizing::heightAspectRatio() const { | |
| 368 |
1/1✓ Branch 3 taken 45 times.
|
45 | return getImpl<detail::WaterHeaterSizing_Impl>()->heightAspectRatio(); |
| 369 | } | ||
| 370 | |||
| 371 | 77 | bool WaterHeaterSizing::setWaterHeater(const WaterToWaterComponent& waterHeater) { | |
| 372 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::WaterHeaterSizing_Impl>()->setWaterHeater(waterHeater); |
| 373 | } | ||
| 374 | |||
| 375 | 80 | bool WaterHeaterSizing::setDesignMode(const std::string& designMode) { | |
| 376 |
1/1✓ Branch 3 taken 80 times.
|
80 | return getImpl<detail::WaterHeaterSizing_Impl>()->setDesignMode(designMode); |
| 377 | } | ||
| 378 | |||
| 379 | ✗ | void WaterHeaterSizing::resetDesignMode() { | |
| 380 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetDesignMode(); | |
| 381 | ✗ | } | |
| 382 | |||
| 383 | 80 | bool WaterHeaterSizing::setTimeStorageCanMeetPeakDraw(double timeStorageCanMeetPeakDraw) { | |
| 384 |
1/1✓ Branch 3 taken 80 times.
|
80 | return getImpl<detail::WaterHeaterSizing_Impl>()->setTimeStorageCanMeetPeakDraw(timeStorageCanMeetPeakDraw); |
| 385 | } | ||
| 386 | |||
| 387 | ✗ | void WaterHeaterSizing::resetTimeStorageCanMeetPeakDraw() { | |
| 388 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetTimeStorageCanMeetPeakDraw(); | |
| 389 | ✗ | } | |
| 390 | |||
| 391 | 80 | bool WaterHeaterSizing::setTimeforTankRecovery(double timeforTankRecovery) { | |
| 392 |
1/1✓ Branch 3 taken 80 times.
|
80 | return getImpl<detail::WaterHeaterSizing_Impl>()->setTimeforTankRecovery(timeforTankRecovery); |
| 393 | } | ||
| 394 | |||
| 395 | ✗ | void WaterHeaterSizing::resetTimeforTankRecovery() { | |
| 396 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetTimeforTankRecovery(); | |
| 397 | ✗ | } | |
| 398 | |||
| 399 | 79 | bool WaterHeaterSizing::setNominalTankVolumeforAutosizingPlantConnections(double nominalTankVolumeforAutosizingPlantConnections) { | |
| 400 |
1/1✓ Branch 3 taken 79 times.
|
158 | return getImpl<detail::WaterHeaterSizing_Impl>()->setNominalTankVolumeforAutosizingPlantConnections( |
| 401 | 158 | nominalTankVolumeforAutosizingPlantConnections); | |
| 402 | } | ||
| 403 | |||
| 404 | ✗ | void WaterHeaterSizing::resetNominalTankVolumeforAutosizingPlantConnections() { | |
| 405 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetNominalTankVolumeforAutosizingPlantConnections(); | |
| 406 | ✗ | } | |
| 407 | |||
| 408 | 3 | bool WaterHeaterSizing::setNumberofBedrooms(int numberofBedrooms) { | |
| 409 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setNumberofBedrooms(numberofBedrooms); |
| 410 | } | ||
| 411 | |||
| 412 | ✗ | void WaterHeaterSizing::resetNumberofBedrooms() { | |
| 413 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetNumberofBedrooms(); | |
| 414 | ✗ | } | |
| 415 | |||
| 416 | 3 | bool WaterHeaterSizing::setNumberofBathrooms(int numberofBathrooms) { | |
| 417 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setNumberofBathrooms(numberofBathrooms); |
| 418 | } | ||
| 419 | |||
| 420 | ✗ | void WaterHeaterSizing::resetNumberofBathrooms() { | |
| 421 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetNumberofBathrooms(); | |
| 422 | ✗ | } | |
| 423 | |||
| 424 | 3 | bool WaterHeaterSizing::setStorageCapacityperPerson(double storageCapacityperPerson) { | |
| 425 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setStorageCapacityperPerson(storageCapacityperPerson); |
| 426 | } | ||
| 427 | |||
| 428 | ✗ | void WaterHeaterSizing::resetStorageCapacityperPerson() { | |
| 429 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetStorageCapacityperPerson(); | |
| 430 | ✗ | } | |
| 431 | |||
| 432 | 3 | bool WaterHeaterSizing::setRecoveryCapacityperPerson(double recoveryCapacityperPerson) { | |
| 433 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setRecoveryCapacityperPerson(recoveryCapacityperPerson); |
| 434 | } | ||
| 435 | |||
| 436 | ✗ | void WaterHeaterSizing::resetRecoveryCapacityperPerson() { | |
| 437 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetRecoveryCapacityperPerson(); | |
| 438 | ✗ | } | |
| 439 | |||
| 440 | 3 | bool WaterHeaterSizing::setStorageCapacityperFloorArea(double storageCapacityperFloorArea) { | |
| 441 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setStorageCapacityperFloorArea(storageCapacityperFloorArea); |
| 442 | } | ||
| 443 | |||
| 444 | ✗ | void WaterHeaterSizing::resetStorageCapacityperFloorArea() { | |
| 445 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetStorageCapacityperFloorArea(); | |
| 446 | ✗ | } | |
| 447 | |||
| 448 | 3 | bool WaterHeaterSizing::setRecoveryCapacityperFloorArea(double recoveryCapacityperFloorArea) { | |
| 449 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setRecoveryCapacityperFloorArea(recoveryCapacityperFloorArea); |
| 450 | } | ||
| 451 | |||
| 452 | ✗ | void WaterHeaterSizing::resetRecoveryCapacityperFloorArea() { | |
| 453 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetRecoveryCapacityperFloorArea(); | |
| 454 | ✗ | } | |
| 455 | |||
| 456 | 2 | bool WaterHeaterSizing::setNumberofUnits(double numberofUnits) { | |
| 457 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::WaterHeaterSizing_Impl>()->setNumberofUnits(numberofUnits); |
| 458 | } | ||
| 459 | |||
| 460 | ✗ | void WaterHeaterSizing::resetNumberofUnits() { | |
| 461 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetNumberofUnits(); | |
| 462 | ✗ | } | |
| 463 | |||
| 464 | 3 | bool WaterHeaterSizing::setStorageCapacityperUnit(double storageCapacityperUnit) { | |
| 465 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setStorageCapacityperUnit(storageCapacityperUnit); |
| 466 | } | ||
| 467 | |||
| 468 | ✗ | void WaterHeaterSizing::resetStorageCapacityperUnit() { | |
| 469 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetStorageCapacityperUnit(); | |
| 470 | ✗ | } | |
| 471 | |||
| 472 | 3 | bool WaterHeaterSizing::setRecoveryCapacityPerUnit(double recoveryCapacityPerUnit) { | |
| 473 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setRecoveryCapacityPerUnit(recoveryCapacityPerUnit); |
| 474 | } | ||
| 475 | |||
| 476 | ✗ | void WaterHeaterSizing::resetRecoveryCapacityPerUnit() { | |
| 477 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetRecoveryCapacityPerUnit(); | |
| 478 | ✗ | } | |
| 479 | |||
| 480 | 3 | bool WaterHeaterSizing::setStorageCapacityperCollectorArea(double storageCapacityperCollectorArea) { | |
| 481 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setStorageCapacityperCollectorArea(storageCapacityperCollectorArea); |
| 482 | } | ||
| 483 | |||
| 484 | ✗ | void WaterHeaterSizing::resetStorageCapacityperCollectorArea() { | |
| 485 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetStorageCapacityperCollectorArea(); | |
| 486 | ✗ | } | |
| 487 | |||
| 488 | 3 | bool WaterHeaterSizing::setHeightAspectRatio(double heightAspectRatio) { | |
| 489 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::WaterHeaterSizing_Impl>()->setHeightAspectRatio(heightAspectRatio); |
| 490 | } | ||
| 491 | |||
| 492 | ✗ | void WaterHeaterSizing::resetHeightAspectRatio() { | |
| 493 | ✗ | getImpl<detail::WaterHeaterSizing_Impl>()->resetHeightAspectRatio(); | |
| 494 | ✗ | } | |
| 495 | |||
| 496 | /// @cond | ||
| 497 |
1/1✓ Branch 2 taken 172 times.
|
172 | WaterHeaterSizing::WaterHeaterSizing(std::shared_ptr<detail::WaterHeaterSizing_Impl> impl) : ModelObject(impl) {} |
| 498 | /// @endcond | ||
| 499 | |||
| 500 | } // namespace model | ||
| 501 | } // namespace openstudio | ||
| 502 |