src/model/ThermalStorageChilledWaterStratified.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 "ThermalStorageChilledWaterStratified.hpp" | ||
| 7 | #include "ThermalStorageChilledWaterStratified_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Model.hpp" | ||
| 10 | #include "Schedule.hpp" | ||
| 11 | #include "Schedule_Impl.hpp" | ||
| 12 | #include "ThermalZone.hpp" | ||
| 13 | #include "ThermalZone_Impl.hpp" | ||
| 14 | #include "ScheduleRuleset.hpp" | ||
| 15 | #include "ScheduleDay.hpp" | ||
| 16 | #include "ScheduleTypeLimits.hpp" | ||
| 17 | #include "ScheduleTypeRegistry.hpp" | ||
| 18 | #include "WaterHeaterSizing.hpp" | ||
| 19 | #include "WaterHeaterSizing_Impl.hpp" | ||
| 20 | |||
| 21 | #include "../utilities/core/Assert.hpp" | ||
| 22 | #include "../utilities/data/DataEnums.hpp" | ||
| 23 | #include "../utilities/time/Time.hpp" | ||
| 24 | |||
| 25 | #include <utilities/idd/IddFactory.hxx> | ||
| 26 | #include <utilities/idd/IddEnums.hxx> | ||
| 27 | #include <utilities/idd/OS_ThermalStorage_ChilledWater_Stratified_FieldEnums.hxx> | ||
| 28 | |||
| 29 | namespace openstudio { | ||
| 30 | namespace model { | ||
| 31 | |||
| 32 | namespace detail { | ||
| 33 | |||
| 34 | 8 | ThermalStorageChilledWaterStratified_Impl::ThermalStorageChilledWaterStratified_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 35 | 8 | bool keepHandle) | |
| 36 | 8 | : WaterToWaterComponent_Impl(idfObject, model, keepHandle) { | |
| 37 |
4/6✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 8 times.
✗ Branch 13 not taken.
|
8 | OS_ASSERT(idfObject.iddObject().type() == ThermalStorageChilledWaterStratified::iddObjectType()); |
| 38 | 8 | } | |
| 39 | |||
| 40 | 1 | ThermalStorageChilledWaterStratified_Impl::ThermalStorageChilledWaterStratified_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 41 | 1 | Model_Impl* model, bool keepHandle) | |
| 42 | 1 | : WaterToWaterComponent_Impl(other, model, keepHandle) { | |
| 43 |
4/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
|
1 | OS_ASSERT(other.iddObject().type() == ThermalStorageChilledWaterStratified::iddObjectType()); |
| 44 | 1 | } | |
| 45 | |||
| 46 | 2 | ThermalStorageChilledWaterStratified_Impl::ThermalStorageChilledWaterStratified_Impl(const ThermalStorageChilledWaterStratified_Impl& other, | |
| 47 | 2 | Model_Impl* model, bool keepHandle) | |
| 48 | 2 | : WaterToWaterComponent_Impl(other, model, keepHandle) {} | |
| 49 | |||
| 50 | ✗ | const std::vector<std::string>& ThermalStorageChilledWaterStratified_Impl::outputVariableNames() const { | |
| 51 | ✗ | static const std::vector<std::string> result = []() { | |
| 52 | std::vector<std::string> val = {"Chilled Water Thermal Storage Tank Temperature", | ||
| 53 | "Chilled Water Thermal Storage Tank Final Tank Temperature", | ||
| 54 | "Chilled Water Thermal Storage Tank Heat Gain Rate", | ||
| 55 | "Chilled Water Thermal Storage Tank Heat Gain Energy", | ||
| 56 | "Chilled Water Thermal Storage Tank Use Side Mass Flow Rate", | ||
| 57 | "Chilled Water Thermal Storage Tank Use Side Inlet Temperature", | ||
| 58 | "Chilled Water Thermal Storage Tank Use Side Outlet Temperature", | ||
| 59 | "Chilled Water Thermal Storage Tank Use Side Heat Transfer Rate", | ||
| 60 | "Chilled Water Thermal Storage Tank Use Side Heat Transfer Energy", | ||
| 61 | "Chilled Water Thermal Storage Tank Source Side Mass Flow Rate", | ||
| 62 | "Chilled Water Thermal Storage Tank Source Side Inlet Temperature", | ||
| 63 | "Chilled Water Thermal Storage Tank Source Side Outlet Temperature", | ||
| 64 | "Chilled Water Thermal Storage Tank Source Side Heat Transfer Rate", | ||
| 65 | ✗ | "Chilled Water Thermal Storage Tank Source Side Heat Transfer Energy"}; | |
| 66 | // TODO: This should really be a check on whether the node is defined... | ||
| 67 | ✗ | for (int i = 1; i <= 12; ++i) { | |
| 68 | ✗ | val.push_back("Chilled Water Thermal Storage Tank Temperature Node " + std::to_string(i)); | |
| 69 | ✗ | val.push_back("Chilled Water Thermal Storage Tank Final Temperature Node " + std::to_string(i)); | |
| 70 | } | ||
| 71 | ✗ | return val; | |
| 72 | ✗ | }(); | |
| 73 | |||
| 74 | ✗ | return result; | |
| 75 | } | ||
| 76 | |||
| 77 | 3 | IddObjectType ThermalStorageChilledWaterStratified_Impl::iddObjectType() const { | |
| 78 | 3 | return ThermalStorageChilledWaterStratified::iddObjectType(); | |
| 79 | } | ||
| 80 | |||
| 81 | 2 | std::vector<ModelObject> ThermalStorageChilledWaterStratified_Impl::children() const { | |
| 82 |
3/5✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
|
6 | return std::vector<ModelObject>{waterHeaterSizing()}; |
| 83 | 2 | } | |
| 84 | |||
| 85 | ✗ | ModelObject ThermalStorageChilledWaterStratified_Impl::clone(Model model) const { | |
| 86 | ✗ | auto whClone = WaterToWaterComponent_Impl::clone(model).cast<ThermalStorageChilledWaterStratified>(); | |
| 87 | |||
| 88 | ✗ | auto sizingClone = waterHeaterSizing().clone(model).cast<WaterHeaterSizing>(); | |
| 89 | ✗ | sizingClone.getImpl<WaterHeaterSizing_Impl>()->setWaterHeater(whClone); | |
| 90 | ✗ | return std::move(whClone); | |
| 91 | ✗ | } | |
| 92 | |||
| 93 | ✗ | std::vector<ScheduleTypeKey> ThermalStorageChilledWaterStratified_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 94 | // TODO: Check schedule display names. | ||
| 95 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 96 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 97 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 98 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 99 | ✗ | if (std::find(b, e, OS_ThermalStorage_ChilledWater_StratifiedFields::SetpointTemperatureScheduleName) != e) { | |
| 100 | ✗ | result.push_back(ScheduleTypeKey("ThermalStorageChilledWaterStratified", "Setpoint Temperature")); | |
| 101 | } | ||
| 102 | ✗ | if (std::find(b, e, OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureScheduleName) != e) { | |
| 103 | ✗ | result.push_back(ScheduleTypeKey("ThermalStorageChilledWaterStratified", "Ambient Temperature")); | |
| 104 | } | ||
| 105 | ✗ | if (std::find(b, e, OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideAvailabilityScheduleName) != e) { | |
| 106 | ✗ | result.push_back(ScheduleTypeKey("ThermalStorageChilledWaterStratified", "Use Side Availability")); | |
| 107 | } | ||
| 108 | ✗ | if (std::find(b, e, OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideAvailabilityScheduleName) != e) { | |
| 109 | ✗ | result.push_back(ScheduleTypeKey("ThermalStorageChilledWaterStratified", "Source Side Availability")); | |
| 110 | } | ||
| 111 | ✗ | return result; | |
| 112 | ✗ | } | |
| 113 | |||
| 114 | 4 | WaterHeaterSizing ThermalStorageChilledWaterStratified_Impl::waterHeaterSizing() const { | |
| 115 | 4 | boost::optional<WaterHeaterSizing> waterHeaterSizing_; | |
| 116 | |||
| 117 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | auto sizingObjects = getObject<ThermalStorageChilledWaterStratified>().getModelObjectSources<WaterHeaterSizing>(); |
| 118 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto predicate = [thisHandle = this->handle()](const auto& siz) { |
| 119 | try { | ||
| 120 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | return siz.waterHeater().handle() == thisHandle; |
| 121 | ✗ | } catch (...) { | |
| 122 | ✗ | LOG(Debug, siz.briefDescription() << " is not attached to a WaterHeater object."); | |
| 123 | ✗ | return false; | |
| 124 | } | ||
| 125 | }; | ||
| 126 | |||
| 127 |
1/1✓ Branch 3 taken 4 times.
|
4 | auto it = std::find_if(sizingObjects.cbegin(), sizingObjects.cend(), predicate); |
| 128 |
1/2✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
|
4 | if (it != sizingObjects.cend()) { |
| 129 |
1/1✓ Branch 2 taken 4 times.
|
8 | return *it; |
| 130 | } else { | ||
| 131 | ✗ | LOG_AND_THROW(briefDescription() << " missing WaterHeater:Sizing object."); | |
| 132 | } | ||
| 133 | 4 | } | |
| 134 | |||
| 135 | 262 | unsigned ThermalStorageChilledWaterStratified_Impl::supplyInletPort() const { | |
| 136 | 262 | return OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideInletNodeName; | |
| 137 | } | ||
| 138 | |||
| 139 | 147 | unsigned ThermalStorageChilledWaterStratified_Impl::supplyOutletPort() const { | |
| 140 | 147 | return OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideOutletNodeName; | |
| 141 | } | ||
| 142 | |||
| 143 | 126 | unsigned ThermalStorageChilledWaterStratified_Impl::demandInletPort() const { | |
| 144 | 126 | return OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideInletNodeName; | |
| 145 | } | ||
| 146 | |||
| 147 | 126 | unsigned ThermalStorageChilledWaterStratified_Impl::demandOutletPort() const { | |
| 148 | 126 | return OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideOutletNodeName; | |
| 149 | } | ||
| 150 | |||
| 151 | 4 | double ThermalStorageChilledWaterStratified_Impl::tankVolume() const { | |
| 152 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankVolume, true); |
| 153 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 154 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 155 | } | ||
| 156 | |||
| 157 | 4 | double ThermalStorageChilledWaterStratified_Impl::tankHeight() const { | |
| 158 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankHeight, true); |
| 159 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 160 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 161 | } | ||
| 162 | |||
| 163 | 4 | std::string ThermalStorageChilledWaterStratified_Impl::tankShape() const { | |
| 164 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::TankShape, true); |
| 165 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 166 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 167 | 4 | } | |
| 168 | |||
| 169 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::tankPerimeter() const { | |
| 170 | 6 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankPerimeter, true); | |
| 171 | } | ||
| 172 | |||
| 173 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified_Impl::setpointTemperatureSchedule() const { | |
| 174 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 175 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_ThermalStorage_ChilledWater_StratifiedFields::SetpointTemperatureScheduleName); |
| 176 | } | ||
| 177 | |||
| 178 | 4 | double ThermalStorageChilledWaterStratified_Impl::deadbandTemperatureDifference() const { | |
| 179 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::DeadbandTemperatureDifference, true); |
| 180 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 181 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 182 | } | ||
| 183 | |||
| 184 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::temperatureSensorHeight() const { | |
| 185 | 6 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TemperatureSensorHeight, true); | |
| 186 | } | ||
| 187 | |||
| 188 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::minimumTemperatureLimit() const { | |
| 189 | 4 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::MinimumTemperatureLimit, true); | |
| 190 | } | ||
| 191 | |||
| 192 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::nominalCoolingCapacity() const { | |
| 193 | 4 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::NominalCoolingCapacity, true); | |
| 194 | } | ||
| 195 | |||
| 196 | ✗ | bool ThermalStorageChilledWaterStratified_Impl::isNominalCoolingCapacityAutosized() const { | |
| 197 | ✗ | bool result = false; | |
| 198 | ✗ | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::NominalCoolingCapacity, true); | |
| 199 | ✗ | if (value) { | |
| 200 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 201 | } | ||
| 202 | ✗ | return result; | |
| 203 | ✗ | } | |
| 204 | |||
| 205 | 4 | std::string ThermalStorageChilledWaterStratified_Impl::ambientTemperatureIndicator() const { | |
| 206 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureIndicator, true); |
| 207 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 208 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 209 | 4 | } | |
| 210 | |||
| 211 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified_Impl::ambientTemperatureSchedule() const { | |
| 212 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureScheduleName); |
| 213 | } | ||
| 214 | |||
| 215 | 4 | boost::optional<ThermalZone> ThermalStorageChilledWaterStratified_Impl::ambientTemperatureThermalZone() const { | |
| 216 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>( |
| 217 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureThermalZoneName); |
| 218 | } | ||
| 219 | |||
| 220 | 4 | boost::optional<std::string> ThermalStorageChilledWaterStratified_Impl::ambientTemperatureOutdoorAirNodeName() const { | |
| 221 | 4 | return getString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureOutdoorAirNodeName, true); | |
| 222 | } | ||
| 223 | |||
| 224 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::uniformSkinLossCoefficientperUnitAreatoAmbientTemperature() const { | |
| 225 | 6 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UniformSkinLossCoefficientperUnitAreatoAmbientTemperature, true); | |
| 226 | } | ||
| 227 | |||
| 228 | 4 | double ThermalStorageChilledWaterStratified_Impl::useSideHeatTransferEffectiveness() const { | |
| 229 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideHeatTransferEffectiveness, true); |
| 230 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 231 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 232 | } | ||
| 233 | |||
| 234 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified_Impl::useSideAvailabilitySchedule() const { | |
| 235 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 236 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideAvailabilityScheduleName); |
| 237 | } | ||
| 238 | |||
| 239 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::useSideInletHeight() const { | |
| 240 | 4 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideInletHeight, true); | |
| 241 | } | ||
| 242 | |||
| 243 | 4 | bool ThermalStorageChilledWaterStratified_Impl::isUseSideInletHeightAutocalculated() const { | |
| 244 | 4 | bool result = false; | |
| 245 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideInletHeight, true); |
| 246 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 247 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autocalculate"); |
| 248 | } | ||
| 249 | 4 | return result; | |
| 250 | 4 | } | |
| 251 | |||
| 252 | 4 | double ThermalStorageChilledWaterStratified_Impl::useSideOutletHeight() const { | |
| 253 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideOutletHeight, true); |
| 254 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 255 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 256 | } | ||
| 257 | |||
| 258 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::useSideDesignFlowRate() const { | |
| 259 | 4 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideDesignFlowRate, true); | |
| 260 | } | ||
| 261 | |||
| 262 | 4 | bool ThermalStorageChilledWaterStratified_Impl::isUseSideDesignFlowRateAutosized() const { | |
| 263 | 4 | bool result = false; | |
| 264 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideDesignFlowRate, true); |
| 265 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 266 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 267 | } | ||
| 268 | 4 | return result; | |
| 269 | 4 | } | |
| 270 | |||
| 271 | 4 | double ThermalStorageChilledWaterStratified_Impl::sourceSideHeatTransferEffectiveness() const { | |
| 272 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideHeatTransferEffectiveness, true); |
| 273 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 274 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 275 | } | ||
| 276 | |||
| 277 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified_Impl::sourceSideAvailabilitySchedule() const { | |
| 278 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 279 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideAvailabilityScheduleName); |
| 280 | } | ||
| 281 | |||
| 282 | 4 | double ThermalStorageChilledWaterStratified_Impl::sourceSideInletHeight() const { | |
| 283 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideInletHeight, true); |
| 284 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 285 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 286 | } | ||
| 287 | |||
| 288 | 5 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::sourceSideOutletHeight() const { | |
| 289 | 5 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideOutletHeight, true); | |
| 290 | } | ||
| 291 | |||
| 292 | 4 | bool ThermalStorageChilledWaterStratified_Impl::isSourceSideOutletHeightAutocalculated() const { | |
| 293 | 4 | bool result = false; | |
| 294 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideOutletHeight, true); |
| 295 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 296 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autocalculate"); |
| 297 | } | ||
| 298 | 4 | return result; | |
| 299 | 4 | } | |
| 300 | |||
| 301 | 5 | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::sourceSideDesignFlowRate() const { | |
| 302 | 5 | return getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideDesignFlowRate, true); | |
| 303 | } | ||
| 304 | |||
| 305 | 4 | bool ThermalStorageChilledWaterStratified_Impl::isSourceSideDesignFlowRateAutosized() const { | |
| 306 | 4 | bool result = false; | |
| 307 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideDesignFlowRate, true); |
| 308 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 309 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 310 | } | ||
| 311 | 4 | return result; | |
| 312 | 4 | } | |
| 313 | |||
| 314 | 4 | double ThermalStorageChilledWaterStratified_Impl::tankRecoveryTime() const { | |
| 315 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankRecoveryTime, true); |
| 316 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 317 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 318 | } | ||
| 319 | |||
| 320 | 4 | std::string ThermalStorageChilledWaterStratified_Impl::inletMode() const { | |
| 321 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ThermalStorage_ChilledWater_StratifiedFields::InletMode, true); |
| 322 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 323 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 324 | 4 | } | |
| 325 | |||
| 326 | 4 | int ThermalStorageChilledWaterStratified_Impl::numberofNodes() const { | |
| 327 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<int> value = getInt(OS_ThermalStorage_ChilledWater_StratifiedFields::NumberofNodes, true); |
| 328 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 329 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 330 | } | ||
| 331 | |||
| 332 | 4 | double ThermalStorageChilledWaterStratified_Impl::additionalDestratificationConductivity() const { | |
| 333 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::AdditionalDestratificationConductivity, true); |
| 334 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 335 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 336 | } | ||
| 337 | |||
| 338 | 1 | double ThermalStorageChilledWaterStratified_Impl::node1AdditionalLossCoefficient() const { | |
| 339 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node1AdditionalLossCoefficient, true); |
| 340 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 341 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 342 | } | ||
| 343 | |||
| 344 | 1 | double ThermalStorageChilledWaterStratified_Impl::node2AdditionalLossCoefficient() const { | |
| 345 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node2AdditionalLossCoefficient, true); |
| 346 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 347 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 348 | } | ||
| 349 | |||
| 350 | 1 | double ThermalStorageChilledWaterStratified_Impl::node3AdditionalLossCoefficient() const { | |
| 351 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node3AdditionalLossCoefficient, true); |
| 352 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 353 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 354 | } | ||
| 355 | |||
| 356 | 1 | double ThermalStorageChilledWaterStratified_Impl::node4AdditionalLossCoefficient() const { | |
| 357 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node4AdditionalLossCoefficient, true); |
| 358 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 359 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 360 | } | ||
| 361 | |||
| 362 | 1 | double ThermalStorageChilledWaterStratified_Impl::node5AdditionalLossCoefficient() const { | |
| 363 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node5AdditionalLossCoefficient, true); |
| 364 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 365 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 366 | } | ||
| 367 | |||
| 368 | 1 | double ThermalStorageChilledWaterStratified_Impl::node6AdditionalLossCoefficient() const { | |
| 369 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node6AdditionalLossCoefficient, true); |
| 370 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 371 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 372 | } | ||
| 373 | |||
| 374 | 1 | double ThermalStorageChilledWaterStratified_Impl::node7AdditionalLossCoefficient() const { | |
| 375 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node7AdditionalLossCoefficient, true); |
| 376 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 377 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 378 | } | ||
| 379 | |||
| 380 | 1 | double ThermalStorageChilledWaterStratified_Impl::node8AdditionalLossCoefficient() const { | |
| 381 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node8AdditionalLossCoefficient, true); |
| 382 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 383 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 384 | } | ||
| 385 | |||
| 386 | 1 | double ThermalStorageChilledWaterStratified_Impl::node9AdditionalLossCoefficient() const { | |
| 387 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node9AdditionalLossCoefficient, true); |
| 388 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 389 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 390 | } | ||
| 391 | |||
| 392 | 1 | double ThermalStorageChilledWaterStratified_Impl::node10AdditionalLossCoefficient() const { | |
| 393 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node10AdditionalLossCoefficient, true); |
| 394 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 395 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 396 | } | ||
| 397 | |||
| 398 | 10 | bool ThermalStorageChilledWaterStratified_Impl::setTankVolume(double tankVolume) { | |
| 399 | 10 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankVolume, tankVolume); | |
| 400 | 10 | return result; | |
| 401 | } | ||
| 402 | |||
| 403 | 10 | bool ThermalStorageChilledWaterStratified_Impl::setTankHeight(double tankHeight) { | |
| 404 | 10 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankHeight, tankHeight); | |
| 405 | 10 | return result; | |
| 406 | } | ||
| 407 | |||
| 408 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setTankShape(const std::string& tankShape) { | |
| 409 | 11 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::TankShape, tankShape); | |
| 410 | 11 | return result; | |
| 411 | } | ||
| 412 | |||
| 413 | 4 | bool ThermalStorageChilledWaterStratified_Impl::setTankPerimeter(boost::optional<double> tankPerimeter) { | |
| 414 | 4 | bool result(false); | |
| 415 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (tankPerimeter) { |
| 416 | 4 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankPerimeter, tankPerimeter.get()); | |
| 417 | } else { | ||
| 418 | ✗ | resetTankPerimeter(); | |
| 419 | ✗ | result = true; | |
| 420 | } | ||
| 421 | 4 | return result; | |
| 422 | } | ||
| 423 | |||
| 424 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetTankPerimeter() { | |
| 425 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::TankPerimeter, ""); | |
| 426 | ✗ | OS_ASSERT(result); | |
| 427 | ✗ | } | |
| 428 | |||
| 429 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setSetpointTemperatureSchedule(Schedule& schedule) { | |
| 430 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
12 | bool result = setSchedule(OS_ThermalStorage_ChilledWater_StratifiedFields::SetpointTemperatureScheduleName, |
| 431 | "ThermalStorageChilledWaterStratified", "Setpoint Temperature", schedule); | ||
| 432 | 3 | return result; | |
| 433 | } | ||
| 434 | |||
| 435 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetSetpointTemperatureSchedule() { | |
| 436 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::SetpointTemperatureScheduleName, ""); | |
| 437 | ✗ | OS_ASSERT(result); | |
| 438 | ✗ | } | |
| 439 | |||
| 440 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setDeadbandTemperatureDifference(double deadbandTemperatureDifference) { | |
| 441 | 11 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::DeadbandTemperatureDifference, deadbandTemperatureDifference); | |
| 442 | 11 | return result; | |
| 443 | } | ||
| 444 | |||
| 445 | 4 | bool ThermalStorageChilledWaterStratified_Impl::setTemperatureSensorHeight(boost::optional<double> temperatureSensorHeight) { | |
| 446 | 4 | bool result(false); | |
| 447 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (temperatureSensorHeight) { |
| 448 | 4 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TemperatureSensorHeight, temperatureSensorHeight.get()); | |
| 449 | } else { | ||
| 450 | ✗ | resetTemperatureSensorHeight(); | |
| 451 | ✗ | result = true; | |
| 452 | } | ||
| 453 | 4 | return result; | |
| 454 | } | ||
| 455 | |||
| 456 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetTemperatureSensorHeight() { | |
| 457 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::TemperatureSensorHeight, ""); | |
| 458 | ✗ | OS_ASSERT(result); | |
| 459 | ✗ | } | |
| 460 | |||
| 461 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setMinimumTemperatureLimit(boost::optional<double> minimumTemperatureLimit) { | |
| 462 | 3 | bool result(false); | |
| 463 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (minimumTemperatureLimit) { |
| 464 | 3 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::MinimumTemperatureLimit, minimumTemperatureLimit.get()); | |
| 465 | } else { | ||
| 466 | ✗ | resetMinimumTemperatureLimit(); | |
| 467 | ✗ | result = true; | |
| 468 | } | ||
| 469 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 470 | 3 | return result; | |
| 471 | } | ||
| 472 | |||
| 473 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetMinimumTemperatureLimit() { | |
| 474 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::MinimumTemperatureLimit, ""); | |
| 475 | ✗ | OS_ASSERT(result); | |
| 476 | ✗ | } | |
| 477 | |||
| 478 | 2 | bool ThermalStorageChilledWaterStratified_Impl::setNominalCoolingCapacity(boost::optional<double> nominalCoolingCapacity) { | |
| 479 | 2 | bool result(false); | |
| 480 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (nominalCoolingCapacity) { |
| 481 | 2 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::NominalCoolingCapacity, nominalCoolingCapacity.get()); | |
| 482 | } | ||
| 483 | 2 | return result; | |
| 484 | } | ||
| 485 | |||
| 486 | 7 | void ThermalStorageChilledWaterStratified_Impl::autosizeNominalCoolingCapacity() { | |
| 487 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::NominalCoolingCapacity, "autosize"); |
| 488 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 489 | 7 | } | |
| 490 | |||
| 491 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setAmbientTemperatureIndicator(const std::string& ambientTemperatureIndicator) { | |
| 492 | 11 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureIndicator, ambientTemperatureIndicator); | |
| 493 | 11 | return result; | |
| 494 | } | ||
| 495 | |||
| 496 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setAmbientTemperatureSchedule(Schedule& schedule) { | |
| 497 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureScheduleName, |
| 498 | "ThermalStorageChilledWaterStratified", "Ambient Temperature", schedule); | ||
| 499 | 9 | return result; | |
| 500 | } | ||
| 501 | |||
| 502 | 1 | void ThermalStorageChilledWaterStratified_Impl::resetAmbientTemperatureSchedule() { | |
| 503 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureScheduleName, ""); |
| 504 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 505 | 1 | } | |
| 506 | |||
| 507 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setAmbientTemperatureThermalZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 508 | 3 | bool result(false); | |
| 509 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (thermalZone) { |
| 510 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | result = setPointer(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureThermalZoneName, thermalZone.get().handle()); |
| 511 | } else { | ||
| 512 | ✗ | resetAmbientTemperatureThermalZone(); | |
| 513 | ✗ | result = true; | |
| 514 | } | ||
| 515 | 3 | return result; | |
| 516 | } | ||
| 517 | |||
| 518 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetAmbientTemperatureThermalZone() { | |
| 519 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureThermalZoneName, ""); | |
| 520 | ✗ | OS_ASSERT(result); | |
| 521 | ✗ | } | |
| 522 | |||
| 523 | 2 | bool ThermalStorageChilledWaterStratified_Impl::setAmbientTemperatureOutdoorAirNodeName( | |
| 524 | boost::optional<std::string> ambientTemperatureOutdoorAirNodeName) { | ||
| 525 | 2 | bool result(false); | |
| 526 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (ambientTemperatureOutdoorAirNodeName) { |
| 527 | 2 | result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureOutdoorAirNodeName, | |
| 528 | 2 | ambientTemperatureOutdoorAirNodeName.get()); | |
| 529 | } else { | ||
| 530 | ✗ | resetAmbientTemperatureOutdoorAirNodeName(); | |
| 531 | ✗ | result = true; | |
| 532 | } | ||
| 533 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 534 | 2 | return result; | |
| 535 | } | ||
| 536 | |||
| 537 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetAmbientTemperatureOutdoorAirNodeName() { | |
| 538 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureOutdoorAirNodeName, ""); | |
| 539 | ✗ | OS_ASSERT(result); | |
| 540 | ✗ | } | |
| 541 | |||
| 542 | 4 | bool ThermalStorageChilledWaterStratified_Impl::setUniformSkinLossCoefficientperUnitAreatoAmbientTemperature( | |
| 543 | boost::optional<double> uniformSkinLossCoefficientperUnitAreatoAmbientTemperature) { | ||
| 544 | 4 | bool result(false); | |
| 545 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (uniformSkinLossCoefficientperUnitAreatoAmbientTemperature) { |
| 546 | 4 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UniformSkinLossCoefficientperUnitAreatoAmbientTemperature, | |
| 547 | 4 | uniformSkinLossCoefficientperUnitAreatoAmbientTemperature.get()); | |
| 548 | } else { | ||
| 549 | ✗ | resetUniformSkinLossCoefficientperUnitAreatoAmbientTemperature(); | |
| 550 | ✗ | result = true; | |
| 551 | } | ||
| 552 | 4 | return result; | |
| 553 | } | ||
| 554 | |||
| 555 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetUniformSkinLossCoefficientperUnitAreatoAmbientTemperature() { | |
| 556 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::UniformSkinLossCoefficientperUnitAreatoAmbientTemperature, ""); | |
| 557 | ✗ | OS_ASSERT(result); | |
| 558 | ✗ | } | |
| 559 | |||
| 560 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setUseSideHeatTransferEffectiveness(double useSideHeatTransferEffectiveness) { | |
| 561 | 11 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideHeatTransferEffectiveness, useSideHeatTransferEffectiveness); | |
| 562 | 11 | return result; | |
| 563 | } | ||
| 564 | |||
| 565 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setUseSideAvailabilitySchedule(Schedule& schedule) { | |
| 566 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
12 | bool result = setSchedule(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideAvailabilityScheduleName, |
| 567 | "ThermalStorageChilledWaterStratified", "Use Side Availability", schedule); | ||
| 568 | 3 | return result; | |
| 569 | } | ||
| 570 | |||
| 571 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetUseSideAvailabilitySchedule() { | |
| 572 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideAvailabilityScheduleName, ""); | |
| 573 | ✗ | OS_ASSERT(result); | |
| 574 | ✗ | } | |
| 575 | |||
| 576 | 2 | bool ThermalStorageChilledWaterStratified_Impl::setUseSideInletHeight(boost::optional<double> useSideInletHeight) { | |
| 577 | 2 | bool result(false); | |
| 578 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (useSideInletHeight) { |
| 579 | 2 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideInletHeight, useSideInletHeight.get()); | |
| 580 | } | ||
| 581 | 2 | return result; | |
| 582 | } | ||
| 583 | |||
| 584 | 9 | void ThermalStorageChilledWaterStratified_Impl::autocalculateUseSideInletHeight() { | |
| 585 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideInletHeight, "autocalculate"); |
| 586 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 587 | 9 | } | |
| 588 | |||
| 589 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setUseSideOutletHeight(double useSideOutletHeight) { | |
| 590 | 11 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideOutletHeight, useSideOutletHeight); | |
| 591 | 11 | return result; | |
| 592 | } | ||
| 593 | |||
| 594 | 2 | bool ThermalStorageChilledWaterStratified_Impl::setUseSideDesignFlowRate(boost::optional<double> useSideDesignFlowRate) { | |
| 595 | 2 | bool result(false); | |
| 596 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (useSideDesignFlowRate) { |
| 597 | 2 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideDesignFlowRate, useSideDesignFlowRate.get()); | |
| 598 | } | ||
| 599 | 2 | return result; | |
| 600 | } | ||
| 601 | |||
| 602 | 9 | void ThermalStorageChilledWaterStratified_Impl::autosizeUseSideDesignFlowRate() { | |
| 603 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::UseSideDesignFlowRate, "autosize"); |
| 604 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 605 | 9 | } | |
| 606 | |||
| 607 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setSourceSideHeatTransferEffectiveness(double sourceSideHeatTransferEffectiveness) { | |
| 608 | bool result = | ||
| 609 | 11 | setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideHeatTransferEffectiveness, sourceSideHeatTransferEffectiveness); | |
| 610 | 11 | return result; | |
| 611 | } | ||
| 612 | |||
| 613 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setSourceSideAvailabilitySchedule(Schedule& schedule) { | |
| 614 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
12 | bool result = setSchedule(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideAvailabilityScheduleName, |
| 615 | "ThermalStorageChilledWaterStratified", "Source Side Availability", schedule); | ||
| 616 | 3 | return result; | |
| 617 | } | ||
| 618 | |||
| 619 | ✗ | void ThermalStorageChilledWaterStratified_Impl::resetSourceSideAvailabilitySchedule() { | |
| 620 | ✗ | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideAvailabilityScheduleName, ""); | |
| 621 | ✗ | OS_ASSERT(result); | |
| 622 | ✗ | } | |
| 623 | |||
| 624 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setSourceSideInletHeight(double sourceSideInletHeight) { | |
| 625 | 11 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideInletHeight, sourceSideInletHeight); | |
| 626 | 11 | return result; | |
| 627 | } | ||
| 628 | |||
| 629 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setSourceSideOutletHeight(boost::optional<double> sourceSideOutletHeight) { | |
| 630 | 3 | bool result(false); | |
| 631 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (sourceSideOutletHeight) { |
| 632 | 3 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideOutletHeight, sourceSideOutletHeight.get()); | |
| 633 | } | ||
| 634 | 3 | return result; | |
| 635 | } | ||
| 636 | |||
| 637 | 8 | void ThermalStorageChilledWaterStratified_Impl::autocalculateSourceSideOutletHeight() { | |
| 638 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideOutletHeight, "autocalculate"); |
| 639 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 640 | 8 | } | |
| 641 | |||
| 642 | 3 | bool ThermalStorageChilledWaterStratified_Impl::setSourceSideDesignFlowRate(boost::optional<double> sourceSideDesignFlowRate) { | |
| 643 | 3 | bool result(false); | |
| 644 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (sourceSideDesignFlowRate) { |
| 645 | 3 | result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideDesignFlowRate, sourceSideDesignFlowRate.get()); | |
| 646 | } | ||
| 647 | 3 | return result; | |
| 648 | } | ||
| 649 | |||
| 650 | 8 | void ThermalStorageChilledWaterStratified_Impl::autosizeSourceSideDesignFlowRate() { | |
| 651 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::SourceSideDesignFlowRate, "autosize"); |
| 652 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 653 | 8 | } | |
| 654 | |||
| 655 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setTankRecoveryTime(double tankRecoveryTime) { | |
| 656 | 11 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::TankRecoveryTime, tankRecoveryTime); | |
| 657 | 11 | return result; | |
| 658 | } | ||
| 659 | |||
| 660 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setInletMode(const std::string& inletMode) { | |
| 661 | 11 | bool result = setString(OS_ThermalStorage_ChilledWater_StratifiedFields::InletMode, inletMode); | |
| 662 | 11 | return result; | |
| 663 | } | ||
| 664 | |||
| 665 | 12 | bool ThermalStorageChilledWaterStratified_Impl::setNumberofNodes(int numberofNodes) { | |
| 666 | 12 | bool result = setInt(OS_ThermalStorage_ChilledWater_StratifiedFields::NumberofNodes, numberofNodes); | |
| 667 | 12 | return result; | |
| 668 | } | ||
| 669 | |||
| 670 | 11 | bool ThermalStorageChilledWaterStratified_Impl::setAdditionalDestratificationConductivity(double additionalDestratificationConductivity) { | |
| 671 | bool result = | ||
| 672 | 11 | setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::AdditionalDestratificationConductivity, additionalDestratificationConductivity); | |
| 673 | 11 | return result; | |
| 674 | } | ||
| 675 | |||
| 676 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode1AdditionalLossCoefficient(double node1AdditionalLossCoefficient) { | |
| 677 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node1AdditionalLossCoefficient, node1AdditionalLossCoefficient); | |
| 678 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 679 | 9 | return result; | |
| 680 | } | ||
| 681 | |||
| 682 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode2AdditionalLossCoefficient(double node2AdditionalLossCoefficient) { | |
| 683 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node2AdditionalLossCoefficient, node2AdditionalLossCoefficient); | |
| 684 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 685 | 9 | return result; | |
| 686 | } | ||
| 687 | |||
| 688 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode3AdditionalLossCoefficient(double node3AdditionalLossCoefficient) { | |
| 689 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node3AdditionalLossCoefficient, node3AdditionalLossCoefficient); | |
| 690 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 691 | 9 | return result; | |
| 692 | } | ||
| 693 | |||
| 694 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode4AdditionalLossCoefficient(double node4AdditionalLossCoefficient) { | |
| 695 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node4AdditionalLossCoefficient, node4AdditionalLossCoefficient); | |
| 696 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 697 | 9 | return result; | |
| 698 | } | ||
| 699 | |||
| 700 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode5AdditionalLossCoefficient(double node5AdditionalLossCoefficient) { | |
| 701 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node5AdditionalLossCoefficient, node5AdditionalLossCoefficient); | |
| 702 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 703 | 9 | return result; | |
| 704 | } | ||
| 705 | |||
| 706 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode6AdditionalLossCoefficient(double node6AdditionalLossCoefficient) { | |
| 707 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node6AdditionalLossCoefficient, node6AdditionalLossCoefficient); | |
| 708 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 709 | 9 | return result; | |
| 710 | } | ||
| 711 | |||
| 712 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode7AdditionalLossCoefficient(double node7AdditionalLossCoefficient) { | |
| 713 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node7AdditionalLossCoefficient, node7AdditionalLossCoefficient); | |
| 714 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 715 | 9 | return result; | |
| 716 | } | ||
| 717 | |||
| 718 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode8AdditionalLossCoefficient(double node8AdditionalLossCoefficient) { | |
| 719 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node8AdditionalLossCoefficient, node8AdditionalLossCoefficient); | |
| 720 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 721 | 9 | return result; | |
| 722 | } | ||
| 723 | |||
| 724 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode9AdditionalLossCoefficient(double node9AdditionalLossCoefficient) { | |
| 725 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node9AdditionalLossCoefficient, node9AdditionalLossCoefficient); | |
| 726 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 727 | 9 | return result; | |
| 728 | } | ||
| 729 | |||
| 730 | 9 | bool ThermalStorageChilledWaterStratified_Impl::setNode10AdditionalLossCoefficient(double node10AdditionalLossCoefficient) { | |
| 731 | 9 | bool result = setDouble(OS_ThermalStorage_ChilledWater_StratifiedFields::Node10AdditionalLossCoefficient, node10AdditionalLossCoefficient); | |
| 732 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 733 | 9 | return result; | |
| 734 | } | ||
| 735 | |||
| 736 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::autosizedNominalCoolingCapacity() const { | |
| 737 | ✗ | return getAutosizedValue("Maximum Heater Capacity", "W"); | |
| 738 | } | ||
| 739 | |||
| 740 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::autosizedUseSideDesignFlowRate() const { | |
| 741 | ✗ | return getAutosizedValue("Use Side Design Flow Rate", "m3/s"); | |
| 742 | } | ||
| 743 | |||
| 744 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified_Impl::autosizedSourceSideDesignFlowRate() const { | |
| 745 | ✗ | return getAutosizedValue("Source Side Design Flow Rate", "m3/s"); | |
| 746 | } | ||
| 747 | |||
| 748 | ✗ | void ThermalStorageChilledWaterStratified_Impl::autosize() { | |
| 749 | ✗ | autosizeNominalCoolingCapacity(); | |
| 750 | ✗ | autosizeUseSideDesignFlowRate(); | |
| 751 | ✗ | autosizeSourceSideDesignFlowRate(); | |
| 752 | ✗ | } | |
| 753 | |||
| 754 | ✗ | void ThermalStorageChilledWaterStratified_Impl::applySizingValues() { | |
| 755 | ✗ | boost::optional<double> val; | |
| 756 | ✗ | val = autosizedNominalCoolingCapacity(); | |
| 757 | ✗ | if (val) { | |
| 758 | ✗ | setNominalCoolingCapacity(val.get()); | |
| 759 | } | ||
| 760 | |||
| 761 | ✗ | val = autosizedUseSideDesignFlowRate(); | |
| 762 | ✗ | if (val) { | |
| 763 | ✗ | setUseSideDesignFlowRate(val.get()); | |
| 764 | } | ||
| 765 | |||
| 766 | ✗ | val = autosizedSourceSideDesignFlowRate(); | |
| 767 | ✗ | if (val) { | |
| 768 | ✗ | setSourceSideDesignFlowRate(val.get()); | |
| 769 | } | ||
| 770 | ✗ | } | |
| 771 | |||
| 772 | 9 | ComponentType ThermalStorageChilledWaterStratified_Impl::componentType() const { | |
| 773 |
1/1✓ Branch 1 taken 9 times.
|
9 | return ComponentType::Cooling; |
| 774 | } | ||
| 775 | |||
| 776 | 2 | std::vector<FuelType> ThermalStorageChilledWaterStratified_Impl::coolingFuelTypes() const { | |
| 777 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (auto p_ = secondaryPlantLoop()) { |
| 778 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return p_->coolingFuelTypes(); |
| 779 | 2 | } | |
| 780 | 1 | return {}; | |
| 781 | } | ||
| 782 | |||
| 783 | 2 | std::vector<FuelType> ThermalStorageChilledWaterStratified_Impl::heatingFuelTypes() const { | |
| 784 | 2 | return {}; | |
| 785 | } | ||
| 786 | |||
| 787 | 2 | std::vector<AppGFuelType> ThermalStorageChilledWaterStratified_Impl::appGHeatingFuelTypes() const { | |
| 788 | 2 | return {}; | |
| 789 | } | ||
| 790 | |||
| 791 | } // namespace detail | ||
| 792 | |||
| 793 | 7 | ThermalStorageChilledWaterStratified::ThermalStorageChilledWaterStratified(const Model& model) | |
| 794 | 7 | : WaterToWaterComponent(ThermalStorageChilledWaterStratified::iddObjectType(), model) { | |
| 795 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
|
7 | OS_ASSERT(getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()); |
| 796 | |||
| 797 | 7 | bool ok = true; | |
| 798 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setTankVolume(50.0); |
| 799 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 800 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setTankHeight(8.0); |
| 801 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 802 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | ok = setTankShape("VerticalCylinder"); |
| 803 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 804 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setDeadbandTemperatureDifference(2.5); |
| 805 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 806 |
1/1✓ Branch 1 taken 7 times.
|
7 | autosizeNominalCoolingCapacity(); |
| 807 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | ok = setAmbientTemperatureIndicator("Outdoors"); |
| 808 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 809 | |||
| 810 |
1/1✓ Branch 1 taken 7 times.
|
7 | ScheduleRuleset setpoint_schedule_1(model); |
| 811 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
7 | setpoint_schedule_1.defaultDaySchedule().addValue(Time(0, 24, 0, 0), 48.89); |
| 812 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAmbientTemperatureSchedule(setpoint_schedule_1); |
| 813 | |||
| 814 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setUseSideHeatTransferEffectiveness(1.0); |
| 815 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 816 |
1/1✓ Branch 1 taken 7 times.
|
7 | autocalculateUseSideInletHeight(); |
| 817 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setUseSideOutletHeight(0.0); |
| 818 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 819 |
1/1✓ Branch 1 taken 7 times.
|
7 | autosizeUseSideDesignFlowRate(); |
| 820 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSourceSideHeatTransferEffectiveness(1.0); |
| 821 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 822 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setSourceSideInletHeight(0.0); |
| 823 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 824 |
1/1✓ Branch 1 taken 7 times.
|
7 | autocalculateSourceSideOutletHeight(); |
| 825 |
1/1✓ Branch 1 taken 7 times.
|
7 | autosizeSourceSideDesignFlowRate(); |
| 826 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setTankRecoveryTime(4.0); |
| 827 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 828 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | ok = setInletMode("Fixed"); |
| 829 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 830 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setNumberofNodes(6); |
| 831 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 832 |
1/1✓ Branch 1 taken 7 times.
|
7 | ok = setAdditionalDestratificationConductivity(0.0); |
| 833 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✗ Branch 3 not taken.
|
7 | OS_ASSERT(ok); |
| 834 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode1AdditionalLossCoefficient(0.0); |
| 835 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode2AdditionalLossCoefficient(0.0); |
| 836 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode3AdditionalLossCoefficient(0.0); |
| 837 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode4AdditionalLossCoefficient(0.0); |
| 838 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode5AdditionalLossCoefficient(0.0); |
| 839 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode6AdditionalLossCoefficient(0.0); |
| 840 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode7AdditionalLossCoefficient(0.0); |
| 841 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode8AdditionalLossCoefficient(0.0); |
| 842 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode9AdditionalLossCoefficient(0.0); |
| 843 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNode10AdditionalLossCoefficient(0.0); |
| 844 | |||
| 845 |
1/1✓ Branch 1 taken 7 times.
|
7 | WaterHeaterSizing waterHeaterSizing(*this); |
| 846 | 7 | } | |
| 847 | |||
| 848 | 7747 | IddObjectType ThermalStorageChilledWaterStratified::iddObjectType() { | |
| 849 |
1/1✓ Branch 1 taken 7747 times.
|
7747 | return {IddObjectType::OS_ThermalStorage_ChilledWater_Stratified}; |
| 850 | } | ||
| 851 | |||
| 852 | ✗ | std::vector<std::string> ThermalStorageChilledWaterStratified::tankShapeValues() { | |
| 853 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ThermalStorage_ChilledWater_StratifiedFields::TankShape); | |
| 854 | } | ||
| 855 | |||
| 856 | ✗ | std::vector<std::string> ThermalStorageChilledWaterStratified::ambientTemperatureIndicatorValues() { | |
| 857 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 858 | ✗ | OS_ThermalStorage_ChilledWater_StratifiedFields::AmbientTemperatureIndicator); | |
| 859 | } | ||
| 860 | |||
| 861 | ✗ | std::vector<std::string> ThermalStorageChilledWaterStratified::inletModeValues() { | |
| 862 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ThermalStorage_ChilledWater_StratifiedFields::InletMode); | |
| 863 | } | ||
| 864 | |||
| 865 | 4 | double ThermalStorageChilledWaterStratified::tankVolume() const { | |
| 866 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->tankVolume(); |
| 867 | } | ||
| 868 | |||
| 869 | 4 | double ThermalStorageChilledWaterStratified::tankHeight() const { | |
| 870 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->tankHeight(); |
| 871 | } | ||
| 872 | |||
| 873 | 4 | std::string ThermalStorageChilledWaterStratified::tankShape() const { | |
| 874 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->tankShape(); |
| 875 | } | ||
| 876 | |||
| 877 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified::tankPerimeter() const { | |
| 878 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->tankPerimeter(); |
| 879 | } | ||
| 880 | |||
| 881 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified::setpointTemperatureSchedule() const { | |
| 882 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setpointTemperatureSchedule(); |
| 883 | } | ||
| 884 | |||
| 885 | 4 | double ThermalStorageChilledWaterStratified::deadbandTemperatureDifference() const { | |
| 886 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->deadbandTemperatureDifference(); |
| 887 | } | ||
| 888 | |||
| 889 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified::temperatureSensorHeight() const { | |
| 890 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->temperatureSensorHeight(); |
| 891 | } | ||
| 892 | |||
| 893 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified::minimumTemperatureLimit() const { | |
| 894 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->minimumTemperatureLimit(); |
| 895 | } | ||
| 896 | |||
| 897 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified::nominalCoolingCapacity() const { | |
| 898 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->nominalCoolingCapacity(); |
| 899 | } | ||
| 900 | |||
| 901 | ✗ | bool ThermalStorageChilledWaterStratified::isNominalCoolingCapacityAutosized() const { | |
| 902 | ✗ | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->isNominalCoolingCapacityAutosized(); | |
| 903 | } | ||
| 904 | |||
| 905 | 4 | std::string ThermalStorageChilledWaterStratified::ambientTemperatureIndicator() const { | |
| 906 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->ambientTemperatureIndicator(); |
| 907 | } | ||
| 908 | |||
| 909 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified::ambientTemperatureSchedule() const { | |
| 910 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->ambientTemperatureSchedule(); |
| 911 | } | ||
| 912 | |||
| 913 | 4 | boost::optional<ThermalZone> ThermalStorageChilledWaterStratified::ambientTemperatureThermalZone() const { | |
| 914 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->ambientTemperatureThermalZone(); |
| 915 | } | ||
| 916 | |||
| 917 | 4 | boost::optional<std::string> ThermalStorageChilledWaterStratified::ambientTemperatureOutdoorAirNodeName() const { | |
| 918 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->ambientTemperatureOutdoorAirNodeName(); |
| 919 | } | ||
| 920 | |||
| 921 | 6 | boost::optional<double> ThermalStorageChilledWaterStratified::uniformSkinLossCoefficientperUnitAreatoAmbientTemperature() const { | |
| 922 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->uniformSkinLossCoefficientperUnitAreatoAmbientTemperature(); |
| 923 | } | ||
| 924 | |||
| 925 | 4 | double ThermalStorageChilledWaterStratified::useSideHeatTransferEffectiveness() const { | |
| 926 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->useSideHeatTransferEffectiveness(); |
| 927 | } | ||
| 928 | |||
| 929 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified::useSideAvailabilitySchedule() const { | |
| 930 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->useSideAvailabilitySchedule(); |
| 931 | } | ||
| 932 | |||
| 933 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified::useSideInletHeight() const { | |
| 934 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->useSideInletHeight(); |
| 935 | } | ||
| 936 | |||
| 937 | 4 | bool ThermalStorageChilledWaterStratified::isUseSideInletHeightAutocalculated() const { | |
| 938 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->isUseSideInletHeightAutocalculated(); |
| 939 | } | ||
| 940 | |||
| 941 | 4 | double ThermalStorageChilledWaterStratified::useSideOutletHeight() const { | |
| 942 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->useSideOutletHeight(); |
| 943 | } | ||
| 944 | |||
| 945 | 4 | boost::optional<double> ThermalStorageChilledWaterStratified::useSideDesignFlowRate() const { | |
| 946 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->useSideDesignFlowRate(); |
| 947 | } | ||
| 948 | |||
| 949 | 4 | bool ThermalStorageChilledWaterStratified::isUseSideDesignFlowRateAutosized() const { | |
| 950 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->isUseSideDesignFlowRateAutosized(); |
| 951 | } | ||
| 952 | |||
| 953 | 4 | double ThermalStorageChilledWaterStratified::sourceSideHeatTransferEffectiveness() const { | |
| 954 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->sourceSideHeatTransferEffectiveness(); |
| 955 | } | ||
| 956 | |||
| 957 | 4 | boost::optional<Schedule> ThermalStorageChilledWaterStratified::sourceSideAvailabilitySchedule() const { | |
| 958 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->sourceSideAvailabilitySchedule(); |
| 959 | } | ||
| 960 | |||
| 961 | 4 | double ThermalStorageChilledWaterStratified::sourceSideInletHeight() const { | |
| 962 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->sourceSideInletHeight(); |
| 963 | } | ||
| 964 | |||
| 965 | 5 | boost::optional<double> ThermalStorageChilledWaterStratified::sourceSideOutletHeight() const { | |
| 966 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->sourceSideOutletHeight(); |
| 967 | } | ||
| 968 | |||
| 969 | 4 | bool ThermalStorageChilledWaterStratified::isSourceSideOutletHeightAutocalculated() const { | |
| 970 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->isSourceSideOutletHeightAutocalculated(); |
| 971 | } | ||
| 972 | |||
| 973 | 5 | boost::optional<double> ThermalStorageChilledWaterStratified::sourceSideDesignFlowRate() const { | |
| 974 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->sourceSideDesignFlowRate(); |
| 975 | } | ||
| 976 | |||
| 977 | 4 | bool ThermalStorageChilledWaterStratified::isSourceSideDesignFlowRateAutosized() const { | |
| 978 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->isSourceSideDesignFlowRateAutosized(); |
| 979 | } | ||
| 980 | |||
| 981 | 4 | double ThermalStorageChilledWaterStratified::tankRecoveryTime() const { | |
| 982 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->tankRecoveryTime(); |
| 983 | } | ||
| 984 | |||
| 985 | 4 | std::string ThermalStorageChilledWaterStratified::inletMode() const { | |
| 986 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->inletMode(); |
| 987 | } | ||
| 988 | |||
| 989 | 4 | int ThermalStorageChilledWaterStratified::numberofNodes() const { | |
| 990 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->numberofNodes(); |
| 991 | } | ||
| 992 | |||
| 993 | 4 | double ThermalStorageChilledWaterStratified::additionalDestratificationConductivity() const { | |
| 994 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->additionalDestratificationConductivity(); |
| 995 | } | ||
| 996 | |||
| 997 | 1 | double ThermalStorageChilledWaterStratified::node1AdditionalLossCoefficient() const { | |
| 998 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node1AdditionalLossCoefficient(); |
| 999 | } | ||
| 1000 | |||
| 1001 | 1 | double ThermalStorageChilledWaterStratified::node2AdditionalLossCoefficient() const { | |
| 1002 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node2AdditionalLossCoefficient(); |
| 1003 | } | ||
| 1004 | |||
| 1005 | 1 | double ThermalStorageChilledWaterStratified::node3AdditionalLossCoefficient() const { | |
| 1006 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node3AdditionalLossCoefficient(); |
| 1007 | } | ||
| 1008 | |||
| 1009 | 1 | double ThermalStorageChilledWaterStratified::node4AdditionalLossCoefficient() const { | |
| 1010 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node4AdditionalLossCoefficient(); |
| 1011 | } | ||
| 1012 | |||
| 1013 | 1 | double ThermalStorageChilledWaterStratified::node5AdditionalLossCoefficient() const { | |
| 1014 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node5AdditionalLossCoefficient(); |
| 1015 | } | ||
| 1016 | |||
| 1017 | 1 | double ThermalStorageChilledWaterStratified::node6AdditionalLossCoefficient() const { | |
| 1018 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node6AdditionalLossCoefficient(); |
| 1019 | } | ||
| 1020 | |||
| 1021 | 1 | double ThermalStorageChilledWaterStratified::node7AdditionalLossCoefficient() const { | |
| 1022 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node7AdditionalLossCoefficient(); |
| 1023 | } | ||
| 1024 | |||
| 1025 | 1 | double ThermalStorageChilledWaterStratified::node8AdditionalLossCoefficient() const { | |
| 1026 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node8AdditionalLossCoefficient(); |
| 1027 | } | ||
| 1028 | |||
| 1029 | 1 | double ThermalStorageChilledWaterStratified::node9AdditionalLossCoefficient() const { | |
| 1030 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node9AdditionalLossCoefficient(); |
| 1031 | } | ||
| 1032 | |||
| 1033 | 1 | double ThermalStorageChilledWaterStratified::node10AdditionalLossCoefficient() const { | |
| 1034 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->node10AdditionalLossCoefficient(); |
| 1035 | } | ||
| 1036 | |||
| 1037 | 10 | bool ThermalStorageChilledWaterStratified::setTankVolume(double tankVolume) { | |
| 1038 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTankVolume(tankVolume); |
| 1039 | } | ||
| 1040 | |||
| 1041 | 10 | bool ThermalStorageChilledWaterStratified::setTankHeight(double tankHeight) { | |
| 1042 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTankHeight(tankHeight); |
| 1043 | } | ||
| 1044 | |||
| 1045 | 11 | bool ThermalStorageChilledWaterStratified::setTankShape(const std::string& tankShape) { | |
| 1046 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTankShape(tankShape); |
| 1047 | } | ||
| 1048 | |||
| 1049 | 4 | bool ThermalStorageChilledWaterStratified::setTankPerimeter(double tankPerimeter) { | |
| 1050 |
2/2✓ Branch 3 taken 4 times.
✓ Branch 6 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTankPerimeter(tankPerimeter); |
| 1051 | } | ||
| 1052 | |||
| 1053 | ✗ | void ThermalStorageChilledWaterStratified::resetTankPerimeter() { | |
| 1054 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetTankPerimeter(); | |
| 1055 | ✗ | } | |
| 1056 | |||
| 1057 | 3 | bool ThermalStorageChilledWaterStratified::setSetpointTemperatureSchedule(Schedule& schedule) { | |
| 1058 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSetpointTemperatureSchedule(schedule); |
| 1059 | } | ||
| 1060 | |||
| 1061 | ✗ | void ThermalStorageChilledWaterStratified::resetSetpointTemperatureSchedule() { | |
| 1062 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetSetpointTemperatureSchedule(); | |
| 1063 | ✗ | } | |
| 1064 | |||
| 1065 | 11 | bool ThermalStorageChilledWaterStratified::setDeadbandTemperatureDifference(double deadbandTemperatureDifference) { | |
| 1066 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setDeadbandTemperatureDifference(deadbandTemperatureDifference); |
| 1067 | } | ||
| 1068 | |||
| 1069 | 4 | bool ThermalStorageChilledWaterStratified::setTemperatureSensorHeight(double temperatureSensorHeight) { | |
| 1070 |
2/2✓ Branch 3 taken 4 times.
✓ Branch 6 taken 4 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTemperatureSensorHeight(temperatureSensorHeight); |
| 1071 | } | ||
| 1072 | |||
| 1073 | ✗ | void ThermalStorageChilledWaterStratified::resetTemperatureSensorHeight() { | |
| 1074 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetTemperatureSensorHeight(); | |
| 1075 | ✗ | } | |
| 1076 | |||
| 1077 | 3 | bool ThermalStorageChilledWaterStratified::setMinimumTemperatureLimit(double minimumTemperatureLimit) { | |
| 1078 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setMinimumTemperatureLimit(minimumTemperatureLimit); |
| 1079 | } | ||
| 1080 | |||
| 1081 | ✗ | void ThermalStorageChilledWaterStratified::resetMinimumTemperatureLimit() { | |
| 1082 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetMinimumTemperatureLimit(); | |
| 1083 | ✗ | } | |
| 1084 | |||
| 1085 | 2 | bool ThermalStorageChilledWaterStratified::setNominalCoolingCapacity(double nominalCoolingCapacity) { | |
| 1086 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNominalCoolingCapacity(nominalCoolingCapacity); |
| 1087 | } | ||
| 1088 | |||
| 1089 | 7 | void ThermalStorageChilledWaterStratified::autosizeNominalCoolingCapacity() { | |
| 1090 |
1/1✓ Branch 3 taken 7 times.
|
7 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizeNominalCoolingCapacity(); |
| 1091 | 7 | } | |
| 1092 | |||
| 1093 | 11 | bool ThermalStorageChilledWaterStratified::setAmbientTemperatureIndicator(const std::string& ambientTemperatureIndicator) { | |
| 1094 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setAmbientTemperatureIndicator(ambientTemperatureIndicator); |
| 1095 | } | ||
| 1096 | |||
| 1097 | 9 | bool ThermalStorageChilledWaterStratified::setAmbientTemperatureSchedule(Schedule& schedule) { | |
| 1098 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setAmbientTemperatureSchedule(schedule); |
| 1099 | } | ||
| 1100 | |||
| 1101 | 1 | void ThermalStorageChilledWaterStratified::resetAmbientTemperatureSchedule() { | |
| 1102 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetAmbientTemperatureSchedule(); |
| 1103 | 1 | } | |
| 1104 | |||
| 1105 | 3 | bool ThermalStorageChilledWaterStratified::setAmbientTemperatureThermalZone(const ThermalZone& thermalZone) { | |
| 1106 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setAmbientTemperatureThermalZone(thermalZone); |
| 1107 | } | ||
| 1108 | |||
| 1109 | ✗ | void ThermalStorageChilledWaterStratified::resetAmbientTemperatureThermalZone() { | |
| 1110 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetAmbientTemperatureThermalZone(); | |
| 1111 | ✗ | } | |
| 1112 | |||
| 1113 | 2 | bool ThermalStorageChilledWaterStratified::setAmbientTemperatureOutdoorAirNodeName(const std::string& ambientTemperatureOutdoorAirNodeName) { | |
| 1114 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
4 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setAmbientTemperatureOutdoorAirNodeName( |
| 1115 | 4 | ambientTemperatureOutdoorAirNodeName); | |
| 1116 | } | ||
| 1117 | |||
| 1118 | ✗ | void ThermalStorageChilledWaterStratified::resetAmbientTemperatureOutdoorAirNodeName() { | |
| 1119 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetAmbientTemperatureOutdoorAirNodeName(); | |
| 1120 | ✗ | } | |
| 1121 | |||
| 1122 | 4 | bool ThermalStorageChilledWaterStratified::setUniformSkinLossCoefficientperUnitAreatoAmbientTemperature( | |
| 1123 | double uniformSkinLossCoefficientperUnitAreatoAmbientTemperature) { | ||
| 1124 |
2/2✓ Branch 3 taken 4 times.
✓ Branch 6 taken 4 times.
|
8 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUniformSkinLossCoefficientperUnitAreatoAmbientTemperature( |
| 1125 | 8 | uniformSkinLossCoefficientperUnitAreatoAmbientTemperature); | |
| 1126 | } | ||
| 1127 | |||
| 1128 | ✗ | void ThermalStorageChilledWaterStratified::resetUniformSkinLossCoefficientperUnitAreatoAmbientTemperature() { | |
| 1129 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetUniformSkinLossCoefficientperUnitAreatoAmbientTemperature(); | |
| 1130 | ✗ | } | |
| 1131 | |||
| 1132 | 11 | bool ThermalStorageChilledWaterStratified::setUseSideHeatTransferEffectiveness(double useSideHeatTransferEffectiveness) { | |
| 1133 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUseSideHeatTransferEffectiveness(useSideHeatTransferEffectiveness); |
| 1134 | } | ||
| 1135 | |||
| 1136 | 3 | bool ThermalStorageChilledWaterStratified::setUseSideAvailabilitySchedule(Schedule& schedule) { | |
| 1137 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUseSideAvailabilitySchedule(schedule); |
| 1138 | } | ||
| 1139 | |||
| 1140 | ✗ | void ThermalStorageChilledWaterStratified::resetUseSideAvailabilitySchedule() { | |
| 1141 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetUseSideAvailabilitySchedule(); | |
| 1142 | ✗ | } | |
| 1143 | |||
| 1144 | 2 | bool ThermalStorageChilledWaterStratified::setUseSideInletHeight(double useSideInletHeight) { | |
| 1145 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUseSideInletHeight(useSideInletHeight); |
| 1146 | } | ||
| 1147 | |||
| 1148 | 9 | void ThermalStorageChilledWaterStratified::autocalculateUseSideInletHeight() { | |
| 1149 |
1/1✓ Branch 3 taken 9 times.
|
9 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autocalculateUseSideInletHeight(); |
| 1150 | 9 | } | |
| 1151 | |||
| 1152 | 11 | bool ThermalStorageChilledWaterStratified::setUseSideOutletHeight(double useSideOutletHeight) { | |
| 1153 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUseSideOutletHeight(useSideOutletHeight); |
| 1154 | } | ||
| 1155 | |||
| 1156 | 2 | bool ThermalStorageChilledWaterStratified::setUseSideDesignFlowRate(double useSideDesignFlowRate) { | |
| 1157 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setUseSideDesignFlowRate(useSideDesignFlowRate); |
| 1158 | } | ||
| 1159 | |||
| 1160 | 9 | void ThermalStorageChilledWaterStratified::autosizeUseSideDesignFlowRate() { | |
| 1161 |
1/1✓ Branch 3 taken 9 times.
|
9 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizeUseSideDesignFlowRate(); |
| 1162 | 9 | } | |
| 1163 | |||
| 1164 | 11 | bool ThermalStorageChilledWaterStratified::setSourceSideHeatTransferEffectiveness(double sourceSideHeatTransferEffectiveness) { | |
| 1165 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSourceSideHeatTransferEffectiveness(sourceSideHeatTransferEffectiveness); |
| 1166 | } | ||
| 1167 | |||
| 1168 | 3 | bool ThermalStorageChilledWaterStratified::setSourceSideAvailabilitySchedule(Schedule& schedule) { | |
| 1169 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSourceSideAvailabilitySchedule(schedule); |
| 1170 | } | ||
| 1171 | |||
| 1172 | ✗ | void ThermalStorageChilledWaterStratified::resetSourceSideAvailabilitySchedule() { | |
| 1173 | ✗ | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->resetSourceSideAvailabilitySchedule(); | |
| 1174 | ✗ | } | |
| 1175 | |||
| 1176 | 11 | bool ThermalStorageChilledWaterStratified::setSourceSideInletHeight(double sourceSideInletHeight) { | |
| 1177 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSourceSideInletHeight(sourceSideInletHeight); |
| 1178 | } | ||
| 1179 | |||
| 1180 | 3 | bool ThermalStorageChilledWaterStratified::setSourceSideOutletHeight(double sourceSideOutletHeight) { | |
| 1181 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSourceSideOutletHeight(sourceSideOutletHeight); |
| 1182 | } | ||
| 1183 | |||
| 1184 | 8 | void ThermalStorageChilledWaterStratified::autocalculateSourceSideOutletHeight() { | |
| 1185 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autocalculateSourceSideOutletHeight(); |
| 1186 | 8 | } | |
| 1187 | |||
| 1188 | 3 | bool ThermalStorageChilledWaterStratified::setSourceSideDesignFlowRate(double sourceSideDesignFlowRate) { | |
| 1189 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setSourceSideDesignFlowRate(sourceSideDesignFlowRate); |
| 1190 | } | ||
| 1191 | |||
| 1192 | 8 | void ThermalStorageChilledWaterStratified::autosizeSourceSideDesignFlowRate() { | |
| 1193 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizeSourceSideDesignFlowRate(); |
| 1194 | 8 | } | |
| 1195 | |||
| 1196 | 11 | bool ThermalStorageChilledWaterStratified::setTankRecoveryTime(double tankRecoveryTime) { | |
| 1197 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setTankRecoveryTime(tankRecoveryTime); |
| 1198 | } | ||
| 1199 | |||
| 1200 | 11 | bool ThermalStorageChilledWaterStratified::setInletMode(const std::string& inletMode) { | |
| 1201 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setInletMode(inletMode); |
| 1202 | } | ||
| 1203 | |||
| 1204 | 12 | bool ThermalStorageChilledWaterStratified::setNumberofNodes(int numberofNodes) { | |
| 1205 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNumberofNodes(numberofNodes); |
| 1206 | } | ||
| 1207 | |||
| 1208 | 11 | bool ThermalStorageChilledWaterStratified::setAdditionalDestratificationConductivity(double additionalDestratificationConductivity) { | |
| 1209 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setAdditionalDestratificationConductivity( |
| 1210 | 22 | additionalDestratificationConductivity); | |
| 1211 | } | ||
| 1212 | |||
| 1213 | 9 | bool ThermalStorageChilledWaterStratified::setNode1AdditionalLossCoefficient(double node1AdditionalLossCoefficient) { | |
| 1214 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode1AdditionalLossCoefficient(node1AdditionalLossCoefficient); |
| 1215 | } | ||
| 1216 | |||
| 1217 | 9 | bool ThermalStorageChilledWaterStratified::setNode2AdditionalLossCoefficient(double node2AdditionalLossCoefficient) { | |
| 1218 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode2AdditionalLossCoefficient(node2AdditionalLossCoefficient); |
| 1219 | } | ||
| 1220 | |||
| 1221 | 9 | bool ThermalStorageChilledWaterStratified::setNode3AdditionalLossCoefficient(double node3AdditionalLossCoefficient) { | |
| 1222 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode3AdditionalLossCoefficient(node3AdditionalLossCoefficient); |
| 1223 | } | ||
| 1224 | |||
| 1225 | 9 | bool ThermalStorageChilledWaterStratified::setNode4AdditionalLossCoefficient(double node4AdditionalLossCoefficient) { | |
| 1226 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode4AdditionalLossCoefficient(node4AdditionalLossCoefficient); |
| 1227 | } | ||
| 1228 | |||
| 1229 | 9 | bool ThermalStorageChilledWaterStratified::setNode5AdditionalLossCoefficient(double node5AdditionalLossCoefficient) { | |
| 1230 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode5AdditionalLossCoefficient(node5AdditionalLossCoefficient); |
| 1231 | } | ||
| 1232 | |||
| 1233 | 9 | bool ThermalStorageChilledWaterStratified::setNode6AdditionalLossCoefficient(double node6AdditionalLossCoefficient) { | |
| 1234 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode6AdditionalLossCoefficient(node6AdditionalLossCoefficient); |
| 1235 | } | ||
| 1236 | |||
| 1237 | 9 | bool ThermalStorageChilledWaterStratified::setNode7AdditionalLossCoefficient(double node7AdditionalLossCoefficient) { | |
| 1238 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode7AdditionalLossCoefficient(node7AdditionalLossCoefficient); |
| 1239 | } | ||
| 1240 | |||
| 1241 | 9 | bool ThermalStorageChilledWaterStratified::setNode8AdditionalLossCoefficient(double node8AdditionalLossCoefficient) { | |
| 1242 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode8AdditionalLossCoefficient(node8AdditionalLossCoefficient); |
| 1243 | } | ||
| 1244 | |||
| 1245 | 9 | bool ThermalStorageChilledWaterStratified::setNode9AdditionalLossCoefficient(double node9AdditionalLossCoefficient) { | |
| 1246 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode9AdditionalLossCoefficient(node9AdditionalLossCoefficient); |
| 1247 | } | ||
| 1248 | |||
| 1249 | 9 | bool ThermalStorageChilledWaterStratified::setNode10AdditionalLossCoefficient(double node10AdditionalLossCoefficient) { | |
| 1250 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->setNode10AdditionalLossCoefficient(node10AdditionalLossCoefficient); |
| 1251 | } | ||
| 1252 | |||
| 1253 | /// @cond | ||
| 1254 | 7 | ThermalStorageChilledWaterStratified::ThermalStorageChilledWaterStratified(std::shared_ptr<detail::ThermalStorageChilledWaterStratified_Impl> impl) | |
| 1255 |
1/1✓ Branch 3 taken 7 times.
|
7 | : WaterToWaterComponent(std::move(impl)) {} |
| 1256 | /// @endcond | ||
| 1257 | |||
| 1258 | 2 | WaterHeaterSizing ThermalStorageChilledWaterStratified::waterHeaterSizing() const { | |
| 1259 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->waterHeaterSizing(); |
| 1260 | } | ||
| 1261 | |||
| 1262 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified::autosizedNominalCoolingCapacity() const { | |
| 1263 | ✗ | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizedNominalCoolingCapacity(); | |
| 1264 | } | ||
| 1265 | |||
| 1266 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified::autosizedUseSideDesignFlowRate() const { | |
| 1267 | ✗ | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizedUseSideDesignFlowRate(); | |
| 1268 | } | ||
| 1269 | |||
| 1270 | ✗ | boost::optional<double> ThermalStorageChilledWaterStratified::autosizedSourceSideDesignFlowRate() const { | |
| 1271 | ✗ | return getImpl<detail::ThermalStorageChilledWaterStratified_Impl>()->autosizedSourceSideDesignFlowRate(); | |
| 1272 | } | ||
| 1273 | |||
| 1274 | } // namespace model | ||
| 1275 | } // namespace openstudio | ||
| 1276 |