src/model/ZoneHVACHighTemperatureRadiant.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 "ZoneHVACHighTemperatureRadiant.hpp" | ||
| 7 | #include "ZoneHVACHighTemperatureRadiant_Impl.hpp" | ||
| 8 | #include "Schedule.hpp" | ||
| 9 | #include "Schedule_Impl.hpp" | ||
| 10 | #include "ThermalZone.hpp" | ||
| 11 | #include "ThermalZone_Impl.hpp" | ||
| 12 | #include "Model.hpp" | ||
| 13 | #include "Model_Impl.hpp" | ||
| 14 | #include "Space.hpp" | ||
| 15 | #include "Space_Impl.hpp" | ||
| 16 | #include "Surface.hpp" | ||
| 17 | #include "Surface_Impl.hpp" | ||
| 18 | #include "ScheduleTypeLimits.hpp" | ||
| 19 | #include "ScheduleTypeRegistry.hpp" | ||
| 20 | #include <utilities/idd/IddFactory.hxx> | ||
| 21 | |||
| 22 | #include <utilities/idd/OS_ZoneHVAC_HighTemperatureRadiant_FieldEnums.hxx> | ||
| 23 | #include <utilities/idd/IddEnums.hxx> | ||
| 24 | #include "../utilities/core/Assert.hpp" | ||
| 25 | #include "../utilities/data/DataEnums.hpp" | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | namespace model { | ||
| 29 | |||
| 30 | namespace detail { | ||
| 31 | |||
| 32 | 3 | ZoneHVACHighTemperatureRadiant_Impl::ZoneHVACHighTemperatureRadiant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 33 | 3 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 34 |
4/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
|
3 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACHighTemperatureRadiant::iddObjectType()); |
| 35 | 3 | } | |
| 36 | |||
| 37 | ✗ | ZoneHVACHighTemperatureRadiant_Impl::ZoneHVACHighTemperatureRadiant_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 38 | ✗ | bool keepHandle) | |
| 39 | ✗ | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 40 | ✗ | OS_ASSERT(other.iddObject().type() == ZoneHVACHighTemperatureRadiant::iddObjectType()); | |
| 41 | ✗ | } | |
| 42 | |||
| 43 | ✗ | ZoneHVACHighTemperatureRadiant_Impl::ZoneHVACHighTemperatureRadiant_Impl(const ZoneHVACHighTemperatureRadiant_Impl& other, Model_Impl* model, | |
| 44 | ✗ | bool keepHandle) | |
| 45 | ✗ | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 46 | |||
| 47 | ✗ | const std::vector<std::string>& ZoneHVACHighTemperatureRadiant_Impl::outputVariableNames() const { | |
| 48 | static const std::vector<std::string> result{"Zone Radiant HVAC Heating Rate", "Zone Radiant HVAC Heating Energy", | ||
| 49 | "Zone Radiant HVAC NaturalGas Rate", "Zone Radiant HVAC NaturalGas Energy", | ||
| 50 | ✗ | "Zone Radiant HVAC Electricity Rate", "Zone Radiant HVAC Electricity Energy"}; | |
| 51 | ✗ | return result; | |
| 52 | ✗ | } | |
| 53 | |||
| 54 | ✗ | IddObjectType ZoneHVACHighTemperatureRadiant_Impl::iddObjectType() const { | |
| 55 | ✗ | return ZoneHVACHighTemperatureRadiant::iddObjectType(); | |
| 56 | } | ||
| 57 | |||
| 58 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACHighTemperatureRadiant_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 59 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 60 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 61 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 62 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 63 | ✗ | if (std::find(b, e, OS_ZoneHVAC_HighTemperatureRadiantFields::AvailabilityScheduleName) != e) { | |
| 64 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACHighTemperatureRadiant", "Availability")); | |
| 65 | } | ||
| 66 | ✗ | if (std::find(b, e, OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingSetpointTemperatureScheduleName) != e) { | |
| 67 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACHighTemperatureRadiant", "Heating Setpoint Temperature")); | |
| 68 | } | ||
| 69 | ✗ | return result; | |
| 70 | ✗ | } | |
| 71 | |||
| 72 | ✗ | boost::optional<Schedule> ZoneHVACHighTemperatureRadiant_Impl::availabilitySchedule() const { | |
| 73 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_HighTemperatureRadiantFields::AvailabilityScheduleName); | |
| 74 | } | ||
| 75 | |||
| 76 | ✗ | boost::optional<double> ZoneHVACHighTemperatureRadiant_Impl::maximumPowerInput() const { | |
| 77 | ✗ | return getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::MaximumPowerInput, true); | |
| 78 | } | ||
| 79 | |||
| 80 | ✗ | bool ZoneHVACHighTemperatureRadiant_Impl::isMaximumPowerInputAutosized() const { | |
| 81 | ✗ | bool result = false; | |
| 82 | ✗ | boost::optional<std::string> value = getString(OS_ZoneHVAC_HighTemperatureRadiantFields::MaximumPowerInput, true); | |
| 83 | ✗ | if (value) { | |
| 84 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 85 | } | ||
| 86 | ✗ | return result; | |
| 87 | ✗ | } | |
| 88 | |||
| 89 | ✗ | std::string ZoneHVACHighTemperatureRadiant_Impl::fuelType() const { | |
| 90 | ✗ | boost::optional<std::string> value = getString(OS_ZoneHVAC_HighTemperatureRadiantFields::FuelType, true); | |
| 91 | ✗ | OS_ASSERT(value); | |
| 92 | ✗ | return value.get(); | |
| 93 | ✗ | } | |
| 94 | |||
| 95 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::combustionEfficiency() const { | |
| 96 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::CombustionEfficiency, true); | |
| 97 | ✗ | OS_ASSERT(value); | |
| 98 | ✗ | return value.get(); | |
| 99 | } | ||
| 100 | |||
| 101 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::fractionofInputConvertedtoRadiantEnergy() const { | |
| 102 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputConvertedtoRadiantEnergy, true); | |
| 103 | ✗ | OS_ASSERT(value); | |
| 104 | ✗ | return value.get(); | |
| 105 | } | ||
| 106 | |||
| 107 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::fractionofInputConvertedtoLatentEnergy() const { | |
| 108 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputConvertedtoLatentEnergy, true); | |
| 109 | ✗ | OS_ASSERT(value); | |
| 110 | ✗ | return value.get(); | |
| 111 | } | ||
| 112 | |||
| 113 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::fractionofInputthatIsLost() const { | |
| 114 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputthatIsLost, true); | |
| 115 | ✗ | OS_ASSERT(value); | |
| 116 | ✗ | return value.get(); | |
| 117 | } | ||
| 118 | |||
| 119 | ✗ | std::string ZoneHVACHighTemperatureRadiant_Impl::temperatureControlType() const { | |
| 120 | ✗ | boost::optional<std::string> value = getString(OS_ZoneHVAC_HighTemperatureRadiantFields::TemperatureControlType, true); | |
| 121 | ✗ | OS_ASSERT(value); | |
| 122 | ✗ | return value.get(); | |
| 123 | ✗ | } | |
| 124 | |||
| 125 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::heatingThrottlingRange() const { | |
| 126 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingThrottlingRange, true); | |
| 127 | ✗ | OS_ASSERT(value); | |
| 128 | ✗ | return value.get(); | |
| 129 | } | ||
| 130 | |||
| 131 | ✗ | boost::optional<Schedule> ZoneHVACHighTemperatureRadiant_Impl::heatingSetpointTemperatureSchedule() const { | |
| 132 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Schedule>( | |
| 133 | ✗ | OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingSetpointTemperatureScheduleName); | |
| 134 | } | ||
| 135 | |||
| 136 | ✗ | double ZoneHVACHighTemperatureRadiant_Impl::fractionofRadiantEnergyIncidentonPeople() const { | |
| 137 | ✗ | boost::optional<double> value = getDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofRadiantEnergyIncidentonPeople, true); | |
| 138 | ✗ | OS_ASSERT(value); | |
| 139 | ✗ | return value.get(); | |
| 140 | } | ||
| 141 | |||
| 142 | ✗ | bool ZoneHVACHighTemperatureRadiant_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 143 | bool result = | ||
| 144 | ✗ | setSchedule(OS_ZoneHVAC_HighTemperatureRadiantFields::AvailabilityScheduleName, "ZoneHVACHighTemperatureRadiant", "Availability", schedule); | |
| 145 | ✗ | return result; | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | void ZoneHVACHighTemperatureRadiant_Impl::resetAvailabilitySchedule() { | |
| 149 | ✗ | bool result = setString(OS_ZoneHVAC_HighTemperatureRadiantFields::AvailabilityScheduleName, ""); | |
| 150 | ✗ | OS_ASSERT(result); | |
| 151 | ✗ | } | |
| 152 | |||
| 153 | ✗ | bool ZoneHVACHighTemperatureRadiant_Impl::setMaximumPowerInput(boost::optional<double> maximumPowerInput) { | |
| 154 | ✗ | bool result(false); | |
| 155 | ✗ | if (maximumPowerInput) { | |
| 156 | ✗ | result = setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::MaximumPowerInput, maximumPowerInput.get()); | |
| 157 | } | ||
| 158 | ✗ | return result; | |
| 159 | } | ||
| 160 | |||
| 161 | 3 | void ZoneHVACHighTemperatureRadiant_Impl::autosizeMaximumPowerInput() { | |
| 162 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_ZoneHVAC_HighTemperatureRadiantFields::MaximumPowerInput, "autosize"); |
| 163 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 164 | 3 | } | |
| 165 | |||
| 166 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setFuelType(const std::string& fuelType) { | |
| 167 | 3 | bool result = setString(OS_ZoneHVAC_HighTemperatureRadiantFields::FuelType, fuelType); | |
| 168 | 3 | return result; | |
| 169 | } | ||
| 170 | |||
| 171 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setCombustionEfficiency(double combustionEfficiency) { | |
| 172 | 3 | bool result = setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::CombustionEfficiency, combustionEfficiency); | |
| 173 | 3 | return result; | |
| 174 | } | ||
| 175 | |||
| 176 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setFractionofInputConvertedtoRadiantEnergy(double fractionofInputConvertedtoRadiantEnergy) { | |
| 177 | bool result = | ||
| 178 | 3 | setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputConvertedtoRadiantEnergy, fractionofInputConvertedtoRadiantEnergy); | |
| 179 | 3 | return result; | |
| 180 | } | ||
| 181 | |||
| 182 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setFractionofInputConvertedtoLatentEnergy(double fractionofInputConvertedtoLatentEnergy) { | |
| 183 | bool result = | ||
| 184 | 3 | setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputConvertedtoLatentEnergy, fractionofInputConvertedtoLatentEnergy); | |
| 185 | 3 | return result; | |
| 186 | } | ||
| 187 | |||
| 188 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setFractionofInputthatIsLost(double fractionofInputthatIsLost) { | |
| 189 | 3 | bool result = setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofInputthatIsLost, fractionofInputthatIsLost); | |
| 190 | 3 | return result; | |
| 191 | } | ||
| 192 | |||
| 193 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 194 | 3 | bool result = setString(OS_ZoneHVAC_HighTemperatureRadiantFields::TemperatureControlType, temperatureControlType); | |
| 195 | 3 | return result; | |
| 196 | } | ||
| 197 | |||
| 198 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setHeatingThrottlingRange(double heatingThrottlingRange) { | |
| 199 | 3 | bool result = setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingThrottlingRange, heatingThrottlingRange); | |
| 200 | 3 | return result; | |
| 201 | } | ||
| 202 | |||
| 203 | ✗ | bool ZoneHVACHighTemperatureRadiant_Impl::setHeatingSetpointTemperatureSchedule(Schedule& schedule) { | |
| 204 | ✗ | bool result = setSchedule(OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingSetpointTemperatureScheduleName, "ZoneHVACHighTemperatureRadiant", | |
| 205 | "Heating Setpoint Temperature", schedule); | ||
| 206 | ✗ | return result; | |
| 207 | } | ||
| 208 | |||
| 209 | ✗ | void ZoneHVACHighTemperatureRadiant_Impl::resetHeatingSetpointTemperatureSchedule() { | |
| 210 | ✗ | bool result = setString(OS_ZoneHVAC_HighTemperatureRadiantFields::HeatingSetpointTemperatureScheduleName, ""); | |
| 211 | ✗ | OS_ASSERT(result); | |
| 212 | ✗ | } | |
| 213 | |||
| 214 | 3 | bool ZoneHVACHighTemperatureRadiant_Impl::setFractionofRadiantEnergyIncidentonPeople(double fractionofRadiantEnergyIncidentonPeople) { | |
| 215 | bool result = | ||
| 216 | 3 | setDouble(OS_ZoneHVAC_HighTemperatureRadiantFields::FractionofRadiantEnergyIncidentonPeople, fractionofRadiantEnergyIncidentonPeople); | |
| 217 | 3 | return result; | |
| 218 | } | ||
| 219 | |||
| 220 | 2 | unsigned ZoneHVACHighTemperatureRadiant_Impl::inletPort() const { | |
| 221 | 2 | return 0; // this object has no inlet or outlet node | |
| 222 | } | ||
| 223 | |||
| 224 | ✗ | unsigned ZoneHVACHighTemperatureRadiant_Impl::outletPort() const { | |
| 225 | ✗ | return 0; // this object has no inlet or outlet node | |
| 226 | } | ||
| 227 | |||
| 228 | 6 | boost::optional<ThermalZone> ZoneHVACHighTemperatureRadiant_Impl::thermalZone() const { | |
| 229 |
1/1✓ Branch 1 taken 6 times.
|
6 | auto thisObject = this->getObject<ModelObject>(); |
| 230 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | std::vector<ThermalZone> thermalZones = this->model().getConcreteModelObjects<ThermalZone>(); |
| 231 |
2/2✓ Branch 5 taken 6 times.
✓ Branch 6 taken 2 times.
|
8 | for (const auto& thermalZone : thermalZones) { |
| 232 |
1/1✓ Branch 1 taken 6 times.
|
6 | std::vector<ModelObject> equipment = thermalZone.equipment(); |
| 233 | |||
| 234 |
3/3✓ Branch 4 taken 6 times.
✓ Branch 7 taken 4 times.
✓ Branch 8 taken 2 times.
|
6 | if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) { |
| 235 |
1/1✓ Branch 1 taken 4 times.
|
4 | return thermalZone; |
| 236 | } | ||
| 237 | 6 | } | |
| 238 | 2 | return boost::none; | |
| 239 | 6 | } | |
| 240 | |||
| 241 | 2 | bool ZoneHVACHighTemperatureRadiant_Impl::addToThermalZone(ThermalZone& thermalZone) { | |
| 242 |
1/1✓ Branch 1 taken 2 times.
|
2 | Model m = this->model(); |
| 243 | |||
| 244 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 2 times.
|
2 | if (thermalZone.model() != m) { |
| 245 | ✗ | return false; | |
| 246 | } | ||
| 247 | |||
| 248 |
2/3✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
|
2 | if (thermalZone.isPlenum()) { |
| 249 | ✗ | return false; | |
| 250 | } | ||
| 251 | |||
| 252 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeFromThermalZone(); |
| 253 | |||
| 254 |
1/1✓ Branch 1 taken 2 times.
|
2 | thermalZone.setUseIdealAirLoads(false); |
| 255 | |||
| 256 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | thermalZone.addEquipment(this->getObject<ZoneHVACComponent>()); |
| 257 | |||
| 258 | 2 | return true; | |
| 259 | 2 | } | |
| 260 | |||
| 261 | 4 | void ZoneHVACHighTemperatureRadiant_Impl::removeFromThermalZone() { | |
| 262 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
|
8 | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { |
| 263 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | thermalZone->removeEquipment(this->getObject<ZoneHVACComponent>()); |
| 264 | 4 | } | |
| 265 | 4 | } | |
| 266 | |||
| 267 | ✗ | std::vector<Surface> ZoneHVACHighTemperatureRadiant_Impl::surfaces() const { | |
| 268 | |||
| 269 | //vector to hold all of the surfaces that this radiant system is attached to | ||
| 270 | ✗ | std::vector<Surface> surfaces; | |
| 271 | |||
| 272 | //get the thermal zone this equipment belongs to | ||
| 273 | ✗ | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { | |
| 274 | |||
| 275 | //loop through all the spaces in this zone | ||
| 276 | ✗ | for (const Space& space : thermalZone->spaces()) { | |
| 277 | |||
| 278 | //loop through all the surfaces in this space | ||
| 279 | ✗ | for (const Surface& surface : space.surfaces()) { | |
| 280 | ✗ | surfaces.push_back(surface); | |
| 281 | ✗ | } | |
| 282 | ✗ | } | |
| 283 | ✗ | } | |
| 284 | |||
| 285 | ✗ | return surfaces; | |
| 286 | ✗ | } | |
| 287 | |||
| 288 | ✗ | boost::optional<double> ZoneHVACHighTemperatureRadiant_Impl::autosizedMaximumPowerInput() const { | |
| 289 | ✗ | boost::optional<double> result; | |
| 290 | ✗ | result = getAutosizedValue("Design Size Heating Design Capacity", "W"); | |
| 291 | // E+ 9.0.0 wrongly returns as User-Specified | ||
| 292 | ✗ | if (!result) { | |
| 293 | ✗ | result = getAutosizedValue("User-Specified Heating Design Capacity", "W"); | |
| 294 | } | ||
| 295 | ✗ | return result; | |
| 296 | } | ||
| 297 | |||
| 298 | ✗ | void ZoneHVACHighTemperatureRadiant_Impl::autosize() { | |
| 299 | ✗ | autosizeMaximumPowerInput(); | |
| 300 | ✗ | } | |
| 301 | |||
| 302 | ✗ | void ZoneHVACHighTemperatureRadiant_Impl::applySizingValues() { | |
| 303 | ✗ | boost::optional<double> val; | |
| 304 | ✗ | val = autosizedMaximumPowerInput(); | |
| 305 | ✗ | if (val) { | |
| 306 | ✗ | setMaximumPowerInput(val.get()); | |
| 307 | } | ||
| 308 | ✗ | } | |
| 309 | |||
| 310 | ✗ | ComponentType ZoneHVACHighTemperatureRadiant_Impl::componentType() const { | |
| 311 | ✗ | return ComponentType::Heating; | |
| 312 | } | ||
| 313 | |||
| 314 | ✗ | std::vector<FuelType> ZoneHVACHighTemperatureRadiant_Impl::coolingFuelTypes() const { | |
| 315 | ✗ | return {}; | |
| 316 | } | ||
| 317 | |||
| 318 | ✗ | std::vector<FuelType> ZoneHVACHighTemperatureRadiant_Impl::heatingFuelTypes() const { | |
| 319 | ✗ | return {FuelType(fuelType())}; | |
| 320 | } | ||
| 321 | |||
| 322 | ✗ | std::vector<AppGFuelType> ZoneHVACHighTemperatureRadiant_Impl::appGHeatingFuelTypes() const { | |
| 323 | ✗ | return {convertFuelTypeToAppG(FuelType(fuelType()))}; | |
| 324 | } | ||
| 325 | |||
| 326 | } // namespace detail | ||
| 327 | |||
| 328 | 3 | ZoneHVACHighTemperatureRadiant::ZoneHVACHighTemperatureRadiant(const Model& model) | |
| 329 | 3 | : ZoneHVACComponent(ZoneHVACHighTemperatureRadiant::iddObjectType(), model) { | |
| 330 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
|
3 | OS_ASSERT(getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()); |
| 331 | |||
| 332 |
1/1✓ Branch 1 taken 3 times.
|
3 | autosizeMaximumPowerInput(); |
| 333 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | setFuelType("NaturalGas"); |
| 334 |
1/1✓ Branch 1 taken 3 times.
|
3 | setCombustionEfficiency(0.90); |
| 335 |
1/1✓ Branch 1 taken 3 times.
|
3 | setFractionofInputConvertedtoRadiantEnergy(0.70); |
| 336 |
1/1✓ Branch 1 taken 3 times.
|
3 | setFractionofInputConvertedtoLatentEnergy(0.00); |
| 337 |
1/1✓ Branch 1 taken 3 times.
|
3 | setFractionofInputthatIsLost(0.00); |
| 338 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | setTemperatureControlType("OperativeTemperature"); |
| 339 |
1/1✓ Branch 1 taken 3 times.
|
3 | setHeatingThrottlingRange(2.0); |
| 340 |
1/1✓ Branch 1 taken 3 times.
|
3 | setFractionofRadiantEnergyIncidentonPeople(0.04); |
| 341 | 3 | } | |
| 342 | |||
| 343 | 7604 | IddObjectType ZoneHVACHighTemperatureRadiant::iddObjectType() { | |
| 344 |
1/1✓ Branch 1 taken 7604 times.
|
7604 | return {IddObjectType::OS_ZoneHVAC_HighTemperatureRadiant}; |
| 345 | } | ||
| 346 | |||
| 347 | ✗ | std::vector<std::string> ZoneHVACHighTemperatureRadiant::fuelTypeValues() { | |
| 348 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_HighTemperatureRadiantFields::FuelType); | |
| 349 | } | ||
| 350 | |||
| 351 | ✗ | std::vector<std::string> ZoneHVACHighTemperatureRadiant::temperatureControlTypeValues() { | |
| 352 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_HighTemperatureRadiantFields::TemperatureControlType); | |
| 353 | } | ||
| 354 | |||
| 355 | ✗ | boost::optional<Schedule> ZoneHVACHighTemperatureRadiant::availabilitySchedule() const { | |
| 356 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->availabilitySchedule(); | |
| 357 | } | ||
| 358 | |||
| 359 | ✗ | boost::optional<double> ZoneHVACHighTemperatureRadiant::maximumPowerInput() const { | |
| 360 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->maximumPowerInput(); | |
| 361 | } | ||
| 362 | |||
| 363 | ✗ | bool ZoneHVACHighTemperatureRadiant::isMaximumPowerInputAutosized() const { | |
| 364 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->isMaximumPowerInputAutosized(); | |
| 365 | } | ||
| 366 | |||
| 367 | ✗ | std::string ZoneHVACHighTemperatureRadiant::fuelType() const { | |
| 368 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->fuelType(); | |
| 369 | } | ||
| 370 | |||
| 371 | ✗ | double ZoneHVACHighTemperatureRadiant::combustionEfficiency() const { | |
| 372 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->combustionEfficiency(); | |
| 373 | } | ||
| 374 | |||
| 375 | ✗ | double ZoneHVACHighTemperatureRadiant::fractionofInputConvertedtoRadiantEnergy() const { | |
| 376 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->fractionofInputConvertedtoRadiantEnergy(); | |
| 377 | } | ||
| 378 | |||
| 379 | ✗ | double ZoneHVACHighTemperatureRadiant::fractionofInputConvertedtoLatentEnergy() const { | |
| 380 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->fractionofInputConvertedtoLatentEnergy(); | |
| 381 | } | ||
| 382 | |||
| 383 | ✗ | double ZoneHVACHighTemperatureRadiant::fractionofInputthatIsLost() const { | |
| 384 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->fractionofInputthatIsLost(); | |
| 385 | } | ||
| 386 | |||
| 387 | ✗ | std::string ZoneHVACHighTemperatureRadiant::temperatureControlType() const { | |
| 388 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->temperatureControlType(); | |
| 389 | } | ||
| 390 | |||
| 391 | ✗ | double ZoneHVACHighTemperatureRadiant::heatingThrottlingRange() const { | |
| 392 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->heatingThrottlingRange(); | |
| 393 | } | ||
| 394 | |||
| 395 | ✗ | boost::optional<Schedule> ZoneHVACHighTemperatureRadiant::heatingSetpointTemperatureSchedule() const { | |
| 396 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->heatingSetpointTemperatureSchedule(); | |
| 397 | } | ||
| 398 | |||
| 399 | ✗ | double ZoneHVACHighTemperatureRadiant::fractionofRadiantEnergyIncidentonPeople() const { | |
| 400 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->fractionofRadiantEnergyIncidentonPeople(); | |
| 401 | } | ||
| 402 | |||
| 403 | ✗ | bool ZoneHVACHighTemperatureRadiant::setAvailabilitySchedule(Schedule& schedule) { | |
| 404 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setAvailabilitySchedule(schedule); | |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | void ZoneHVACHighTemperatureRadiant::resetAvailabilitySchedule() { | |
| 408 | ✗ | getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->resetAvailabilitySchedule(); | |
| 409 | ✗ | } | |
| 410 | |||
| 411 | ✗ | bool ZoneHVACHighTemperatureRadiant::setMaximumPowerInput(double maximumPowerInput) { | |
| 412 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setMaximumPowerInput(maximumPowerInput); | |
| 413 | } | ||
| 414 | |||
| 415 | 3 | void ZoneHVACHighTemperatureRadiant::autosizeMaximumPowerInput() { | |
| 416 |
1/1✓ Branch 3 taken 3 times.
|
3 | getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->autosizeMaximumPowerInput(); |
| 417 | 3 | } | |
| 418 | |||
| 419 | 3 | bool ZoneHVACHighTemperatureRadiant::setFuelType(const std::string& fuelType) { | |
| 420 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setFuelType(fuelType); |
| 421 | } | ||
| 422 | |||
| 423 | 3 | bool ZoneHVACHighTemperatureRadiant::setCombustionEfficiency(double combustionEfficiency) { | |
| 424 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setCombustionEfficiency(combustionEfficiency); |
| 425 | } | ||
| 426 | |||
| 427 | 3 | bool ZoneHVACHighTemperatureRadiant::setFractionofInputConvertedtoRadiantEnergy(double fractionofInputConvertedtoRadiantEnergy) { | |
| 428 |
1/1✓ Branch 3 taken 3 times.
|
6 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setFractionofInputConvertedtoRadiantEnergy( |
| 429 | 6 | fractionofInputConvertedtoRadiantEnergy); | |
| 430 | } | ||
| 431 | |||
| 432 | 3 | bool ZoneHVACHighTemperatureRadiant::setFractionofInputConvertedtoLatentEnergy(double fractionofInputConvertedtoLatentEnergy) { | |
| 433 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setFractionofInputConvertedtoLatentEnergy(fractionofInputConvertedtoLatentEnergy); |
| 434 | } | ||
| 435 | |||
| 436 | 3 | bool ZoneHVACHighTemperatureRadiant::setFractionofInputthatIsLost(double fractionofInputthatIsLost) { | |
| 437 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setFractionofInputthatIsLost(fractionofInputthatIsLost); |
| 438 | } | ||
| 439 | |||
| 440 | 3 | bool ZoneHVACHighTemperatureRadiant::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 441 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setTemperatureControlType(temperatureControlType); |
| 442 | } | ||
| 443 | |||
| 444 | 3 | bool ZoneHVACHighTemperatureRadiant::setHeatingThrottlingRange(double heatingThrottlingRange) { | |
| 445 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setHeatingThrottlingRange(heatingThrottlingRange); |
| 446 | } | ||
| 447 | |||
| 448 | ✗ | bool ZoneHVACHighTemperatureRadiant::setHeatingSetpointTemperatureSchedule(Schedule& schedule) { | |
| 449 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setHeatingSetpointTemperatureSchedule(schedule); | |
| 450 | } | ||
| 451 | |||
| 452 | ✗ | void ZoneHVACHighTemperatureRadiant::resetHeatingSetpointTemperatureSchedule() { | |
| 453 | ✗ | getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->resetHeatingSetpointTemperatureSchedule(); | |
| 454 | ✗ | } | |
| 455 | |||
| 456 | 3 | bool ZoneHVACHighTemperatureRadiant::setFractionofRadiantEnergyIncidentonPeople(double fractionofRadiantEnergyIncidentonPeople) { | |
| 457 |
1/1✓ Branch 3 taken 3 times.
|
6 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->setFractionofRadiantEnergyIncidentonPeople( |
| 458 | 6 | fractionofRadiantEnergyIncidentonPeople); | |
| 459 | } | ||
| 460 | |||
| 461 | 2 | boost::optional<ThermalZone> ZoneHVACHighTemperatureRadiant::thermalZone() const { | |
| 462 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->thermalZone(); |
| 463 | } | ||
| 464 | |||
| 465 | 2 | bool ZoneHVACHighTemperatureRadiant::addToThermalZone(ThermalZone& thermalZone) { | |
| 466 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->addToThermalZone(thermalZone); |
| 467 | } | ||
| 468 | |||
| 469 | 1 | void ZoneHVACHighTemperatureRadiant::removeFromThermalZone() { | |
| 470 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->removeFromThermalZone(); |
| 471 | 1 | } | |
| 472 | |||
| 473 | /// @cond | ||
| 474 | ✗ | ZoneHVACHighTemperatureRadiant::ZoneHVACHighTemperatureRadiant(std::shared_ptr<detail::ZoneHVACHighTemperatureRadiant_Impl> impl) | |
| 475 | ✗ | : ZoneHVACComponent(std::move(impl)) {} | |
| 476 | /// @endcond | ||
| 477 | |||
| 478 | ✗ | boost::optional<double> ZoneHVACHighTemperatureRadiant::autosizedMaximumPowerInput() const { | |
| 479 | ✗ | return getImpl<detail::ZoneHVACHighTemperatureRadiant_Impl>()->autosizedMaximumPowerInput(); | |
| 480 | } | ||
| 481 | |||
| 482 | } // namespace model | ||
| 483 | } // namespace openstudio | ||
| 484 |