src/model/ZoneHVACLowTemperatureRadiantElectric.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 "ConstructionWithInternalSource.hpp" | ||
| 7 | #include "ConstructionWithInternalSource_Impl.hpp" | ||
| 8 | #include "HVACComponent.hpp" | ||
| 9 | #include "HVACComponent_Impl.hpp" | ||
| 10 | #include "Model.hpp" | ||
| 11 | #include "Model_Impl.hpp" | ||
| 12 | #include "Schedule.hpp" | ||
| 13 | #include "Schedule_Impl.hpp" | ||
| 14 | #include "ScheduleTypeLimits.hpp" | ||
| 15 | #include "ScheduleTypeRegistry.hpp" | ||
| 16 | #include "Space.hpp" | ||
| 17 | #include "Space_Impl.hpp" | ||
| 18 | #include "ThermalZone.hpp" | ||
| 19 | #include "ThermalZone_Impl.hpp" | ||
| 20 | #include "ZoneHVACLowTemperatureRadiantElectric.hpp" | ||
| 21 | #include "ZoneHVACLowTemperatureRadiantElectric_Impl.hpp" | ||
| 22 | |||
| 23 | #include <utilities/idd/IddFactory.hxx> | ||
| 24 | |||
| 25 | #include <utilities/idd/OS_ZoneHVAC_LowTemperatureRadiant_Electric_FieldEnums.hxx> | ||
| 26 | #include <utilities/idd/IddEnums.hxx> | ||
| 27 | |||
| 28 | #include "../utilities/core/Assert.hpp" | ||
| 29 | #include "../utilities/data/DataEnums.hpp" | ||
| 30 | |||
| 31 | namespace openstudio { | ||
| 32 | namespace model { | ||
| 33 | |||
| 34 | namespace detail { | ||
| 35 | |||
| 36 | 9 | ZoneHVACLowTemperatureRadiantElectric_Impl::ZoneHVACLowTemperatureRadiantElectric_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 37 | 9 | bool keepHandle) | |
| 38 | 9 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 39 |
4/6✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 9 times.
✗ Branch 13 not taken.
|
9 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACLowTemperatureRadiantElectric::iddObjectType()); |
| 40 | 9 | } | |
| 41 | |||
| 42 | 1 | ZoneHVACLowTemperatureRadiantElectric_Impl::ZoneHVACLowTemperatureRadiantElectric_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 43 | 1 | Model_Impl* model, bool keepHandle) | |
| 44 | 1 | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 45 |
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() == ZoneHVACLowTemperatureRadiantElectric::iddObjectType()); |
| 46 | 1 | } | |
| 47 | |||
| 48 | 7 | ZoneHVACLowTemperatureRadiantElectric_Impl::ZoneHVACLowTemperatureRadiantElectric_Impl(const ZoneHVACLowTemperatureRadiantElectric_Impl& other, | |
| 49 | 7 | Model_Impl* model, bool keepHandle) | |
| 50 | 7 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 51 | |||
| 52 | 2 | ModelObject ZoneHVACLowTemperatureRadiantElectric_Impl::clone(Model model) const { | |
| 53 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto zoneHVACLowTemperatureRadiantElectricClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACLowTemperatureRadiantElectric>(); |
| 54 | |||
| 55 | 4 | return std::move(zoneHVACLowTemperatureRadiantElectricClone); | |
| 56 | 2 | } | |
| 57 | |||
| 58 | ✗ | const std::vector<std::string>& ZoneHVACLowTemperatureRadiantElectric_Impl::outputVariableNames() const { | |
| 59 | static const std::vector<std::string> result{"Zone Radiant HVAC Electricity Rate", "Zone Radiant HVAC Electricity Energy", | ||
| 60 | ✗ | "Zone Radiant HVAC Heating Energy", "Zone Radiant HVAC Heating Rate"}; | |
| 61 | ✗ | return result; | |
| 62 | ✗ | } | |
| 63 | |||
| 64 | 12 | IddObjectType ZoneHVACLowTemperatureRadiantElectric_Impl::iddObjectType() const { | |
| 65 | 12 | return ZoneHVACLowTemperatureRadiantElectric::iddObjectType(); | |
| 66 | } | ||
| 67 | |||
| 68 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACLowTemperatureRadiantElectric_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 69 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 70 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 71 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 72 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 73 | ✗ | if (std::find(b, e, OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::AvailabilityScheduleName) != e) { | |
| 74 | ✗ | result.emplace_back("ZoneHVACLowTemperatureRadiantElectric", "Availability"); | |
| 75 | } | ||
| 76 | ✗ | if (std::find(b, e, OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName) != e) { | |
| 77 | ✗ | result.emplace_back("ZoneHVACLowTemperatureRadiantElectric", "Heating Setpoint Temperature"); | |
| 78 | } | ||
| 79 | ✗ | return result; | |
| 80 | ✗ | } | |
| 81 | |||
| 82 | 5 | unsigned ZoneHVACLowTemperatureRadiantElectric_Impl::inletPort() const { | |
| 83 | 5 | return (0); // this object has no inlet or outlet node | |
| 84 | } | ||
| 85 | |||
| 86 | 2 | unsigned ZoneHVACLowTemperatureRadiantElectric_Impl::outletPort() const { | |
| 87 | 2 | return (0); // this object has no inlet or outlet node | |
| 88 | } | ||
| 89 | |||
| 90 | 2 | Schedule ZoneHVACLowTemperatureRadiantElectric_Impl::availabilitySchedule() const { | |
| 91 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 92 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
|
2 | if (!value) { |
| 93 | // it is an error if we get here, however we don't want to crash | ||
| 94 | // so we hook up to global always on schedule | ||
| 95 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 96 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 97 | ✗ | OS_ASSERT(value); | |
| 98 | ✗ | const_cast<ZoneHVACLowTemperatureRadiantElectric_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 99 | ✗ | value = optionalAvailabilitySchedule(); | |
| 100 | } | ||
| 101 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 102 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 103 | 2 | } | |
| 104 | |||
| 105 | 2 | Schedule ZoneHVACLowTemperatureRadiantElectric_Impl::heatingSetpointTemperatureSchedule() const { | |
| 106 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<Schedule> value = optionalHeatingSetpointTemperatureSchedule(); |
| 107 | |||
| 108 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
|
2 | if (!value) { |
| 109 | // // it is an error if we get here, however we don't want to crash | ||
| 110 | // // so we hook up to global temperature schedule | ||
| 111 | ✗ | LOG(Error, "Required heating temperature setpoint schedule not set"); | |
| 112 | // value = this->model().alwaysOnDiscreteSchedule(); | ||
| 113 | // OS_ASSERT(value); | ||
| 114 | // const_cast<ZoneHVACLowTemperatureRadiantElectric_Impl*>(this)->setAvailabilitySchedule(*value); | ||
| 115 | // value = optionalAvailabilitySchedule(); | ||
| 116 | } | ||
| 117 | //OS_ASSERT(value); | ||
| 118 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 119 | 2 | } | |
| 120 | |||
| 121 | 28 | boost::optional<std::string> ZoneHVACLowTemperatureRadiantElectric_Impl::radiantSurfaceType() const { | |
| 122 | 28 | return getString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::RadiantSurfaceType, true); | |
| 123 | } | ||
| 124 | |||
| 125 | 15 | std::vector<Surface> ZoneHVACLowTemperatureRadiantElectric_Impl::surfaces() const { | |
| 126 | |||
| 127 | //vector to hold all of the surfaces that this radiant system is attached to | ||
| 128 | 15 | std::vector<Surface> surfaces; | |
| 129 | |||
| 130 | //get the thermal zone this equipment belongs to | ||
| 131 |
2/3✓ Branch 1 taken 15 times.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
30 | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { |
| 132 | |||
| 133 | //loop through all the spaces in this zone | ||
| 134 |
4/4✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✓ Branch 11 taken 27 times.
✓ Branch 12 taken 15 times.
|
42 | for (const Space& space : thermalZone->spaces()) { |
| 135 | |||
| 136 | //loop through all the surfaces in this space | ||
| 137 |
3/3✓ Branch 1 taken 27 times.
✓ Branch 8 taken 162 times.
✓ Branch 9 taken 27 times.
|
189 | for (const Surface& surface : space.surfaces()) { |
| 138 | |||
| 139 | //skip surfaces who do not have a construction, or whose construction is not internal source | ||
| 140 |
3/3✓ Branch 1 taken 162 times.
✓ Branch 3 taken 120 times.
✓ Branch 4 taken 42 times.
|
324 | if (boost::optional<ConstructionBase> _constructionBase = surface.construction()) { |
| 141 |
4/4✓ Branch 1 taken 120 times.
✓ Branch 4 taken 120 times.
✓ Branch 6 taken 24 times.
✓ Branch 7 taken 96 times.
|
240 | if (boost::optional<ConstructionWithInternalSource> _construction = _constructionBase->optionalCast<ConstructionWithInternalSource>()) { |
| 142 | |||
| 143 | //TODO change this to not optional when idd change is made | ||
| 144 | //get the strings for requested surface types and current surface type | ||
| 145 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
24 | std::string surfGrpName = this->radiantSurfaceType().get(); |
| 146 |
1/1✓ Branch 1 taken 24 times.
|
24 | std::string surfaceType = surface.surfaceType(); |
| 147 | |||
| 148 | //if the current surface is of the type requested, add it to the vector of surfaces | ||
| 149 |
16/26✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 6 taken 14 times.
✓ Branch 7 taken 10 times.
✓ Branch 9 taken 14 times.
✓ Branch 12 taken 14 times.
✓ Branch 14 taken 12 times.
✓ Branch 15 taken 2 times.
✓ Branch 16 taken 14 times.
✓ Branch 17 taken 10 times.
✓ Branch 19 taken 14 times.
✓ Branch 20 taken 10 times.
✓ Branch 21 taken 24 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 24 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 12 times.
✓ Branch 27 taken 12 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
100 | if (istringEqual("RoofCeiling", surfaceType) && istringEqual("Ceilings", surfGrpName)) { |
| 150 |
1/1✓ Branch 1 taken 12 times.
|
12 | surfaces.push_back(surface); |
| 151 |
14/26✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 10 times.
✓ Branch 9 taken 2 times.
✓ Branch 12 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 2 times.
✓ Branch 16 taken 2 times.
✓ Branch 17 taken 10 times.
✓ Branch 19 taken 2 times.
✓ Branch 20 taken 10 times.
✓ Branch 21 taken 12 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 12 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✓ Branch 27 taken 12 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
40 | } else if (istringEqual("Floor", surfaceType) && istringEqual("Floors", surfGrpName)) { |
| 152 | ✗ | surfaces.push_back(surface); | |
| 153 |
10/21✓ Branch 1 taken 12 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 9 taken 2 times.
✓ Branch 10 taken 8 times.
✓ Branch 12 taken 10 times.
✓ Branch 13 taken 2 times.
✓ Branch 14 taken 12 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 12 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✓ Branch 20 taken 12 times.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
|
56 | } else if ((istringEqual("Floor", surfaceType) || istringEqual("RoofCeiling", surfaceType)) |
| 154 |
12/17✓ Branch 1 taken 12 times.
✓ Branch 3 taken 10 times.
✓ Branch 4 taken 2 times.
✓ Branch 6 taken 4 times.
✓ Branch 9 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 4 times.
✓ Branch 14 taken 8 times.
✓ Branch 16 taken 4 times.
✓ Branch 17 taken 8 times.
✓ Branch 18 taken 10 times.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
40 | && istringEqual("CeilingsandFloors", surfGrpName)) { |
| 155 | ✗ | surfaces.push_back(surface); | |
| 156 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | } else if (istringEqual("AllSurfaces", surfGrpName)) { |
| 157 |
1/1✓ Branch 1 taken 12 times.
|
12 | surfaces.push_back(surface); |
| 158 | } | ||
| 159 | 144 | } | |
| 160 | 162 | } | |
| 161 | 27 | } | |
| 162 | 15 | } | |
| 163 | 15 | } | |
| 164 | |||
| 165 | 15 | return surfaces; | |
| 166 | ✗ | } | |
| 167 | |||
| 168 | 6 | boost::optional<double> ZoneHVACLowTemperatureRadiantElectric_Impl::maximumElectricalPowertoPanel() const { | |
| 169 | 6 | return getDouble(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel, true); | |
| 170 | } | ||
| 171 | |||
| 172 | 3 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::isMaximumElectricalPowertoPanelDefaulted() const { | |
| 173 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel); | |
| 174 | } | ||
| 175 | |||
| 176 | 4 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::isMaximumElectricalPowertoPanelAutosized() const { | |
| 177 | 4 | bool result = false; | |
| 178 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel, true); |
| 179 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 180 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 181 | } | ||
| 182 | 4 | return result; | |
| 183 | 4 | } | |
| 184 | |||
| 185 | 4 | std::string ZoneHVACLowTemperatureRadiantElectric_Impl::temperatureControlType() const { | |
| 186 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::TemperatureControlType, true); |
| 187 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 188 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 189 | 4 | } | |
| 190 | |||
| 191 | 2 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::isTemperatureControlTypeDefaulted() const { | |
| 192 | 2 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::TemperatureControlType); | |
| 193 | } | ||
| 194 | |||
| 195 | 3 | std::string ZoneHVACLowTemperatureRadiantElectric_Impl::setpointControlType() const { | |
| 196 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::SetpointControlType, true); |
| 197 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 198 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 199 | 3 | } | |
| 200 | |||
| 201 | 3 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::isSetpointControlTypeDefaulted() const { | |
| 202 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::SetpointControlType); | |
| 203 | } | ||
| 204 | |||
| 205 | 4 | double ZoneHVACLowTemperatureRadiantElectric_Impl::heatingThrottlingRange() const { | |
| 206 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingThrottlingRange, true); |
| 207 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 208 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 209 | } | ||
| 210 | |||
| 211 | 2 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::isHeatingThrottlingRangeDefaulted() const { | |
| 212 | 2 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingThrottlingRange); | |
| 213 | } | ||
| 214 | |||
| 215 | 9 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 216 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::AvailabilityScheduleName, "ZoneHVACLowTemperatureRadiantElectric", |
| 217 | "Availability", schedule); | ||
| 218 | 9 | return result; | |
| 219 | } | ||
| 220 | |||
| 221 | 9 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setHeatingSetpointTemperatureSchedule(Schedule& schedule) { | |
| 222 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
36 | bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName, |
| 223 | "ZoneHVACLowTemperatureRadiantElectric", "Heating Setpoint Temperature", schedule); | ||
| 224 | 9 | return result; | |
| 225 | } | ||
| 226 | |||
| 227 | //void ZoneHVACLowTemperatureRadiantElectric_Impl::resetHeatingSetpointTemperatureSchedule() | ||
| 228 | //{ | ||
| 229 | // bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName, ""); | ||
| 230 | // OS_ASSERT(result); | ||
| 231 | //} | ||
| 232 | |||
| 233 | 3 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setRadiantSurfaceType(boost::optional<std::string> radiantSurfaceType) { | |
| 234 | 3 | bool result(false); | |
| 235 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (radiantSurfaceType) { |
| 236 | 3 | result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::RadiantSurfaceType, radiantSurfaceType.get()); | |
| 237 | } else { | ||
| 238 | ✗ | resetRadiantSurfaceType(); | |
| 239 | ✗ | result = true; | |
| 240 | } | ||
| 241 | 3 | return result; | |
| 242 | } | ||
| 243 | |||
| 244 | 9 | void ZoneHVACLowTemperatureRadiantElectric_Impl::resetRadiantSurfaceType() { | |
| 245 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::RadiantSurfaceType, "Ceilings"); |
| 246 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 247 | 9 | } | |
| 248 | |||
| 249 | 2 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setMaximumElectricalPowertoPanel(boost::optional<double> maximumElectricalPowertoPanel) { | |
| 250 | 2 | bool result(false); | |
| 251 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (maximumElectricalPowertoPanel) { |
| 252 | 2 | result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel, maximumElectricalPowertoPanel.get()); | |
| 253 | } else { | ||
| 254 | ✗ | resetMaximumElectricalPowertoPanel(); | |
| 255 | ✗ | result = true; | |
| 256 | } | ||
| 257 | 2 | return result; | |
| 258 | } | ||
| 259 | |||
| 260 | 1 | void ZoneHVACLowTemperatureRadiantElectric_Impl::resetMaximumElectricalPowertoPanel() { | |
| 261 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel, ""); |
| 262 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 263 | 1 | } | |
| 264 | |||
| 265 | 9 | void ZoneHVACLowTemperatureRadiantElectric_Impl::autosizeMaximumElectricalPowertoPanel() { | |
| 266 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::MaximumElectricalPowertoPanel, "autosize"); |
| 267 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 268 | 9 | } | |
| 269 | |||
| 270 | 9 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 271 | 9 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::TemperatureControlType, temperatureControlType); | |
| 272 | 9 | return result; | |
| 273 | } | ||
| 274 | |||
| 275 | 1 | void ZoneHVACLowTemperatureRadiantElectric_Impl::resetTemperatureControlType() { | |
| 276 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::TemperatureControlType, ""); |
| 277 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 278 | 1 | } | |
| 279 | |||
| 280 | 1 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setSetpointControlType(const std::string& setpointControlType) { | |
| 281 | 1 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::SetpointControlType, setpointControlType); | |
| 282 | 1 | return result; | |
| 283 | } | ||
| 284 | |||
| 285 | 1 | void ZoneHVACLowTemperatureRadiantElectric_Impl::resetSetpointControlType() { | |
| 286 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::SetpointControlType, ""); |
| 287 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 288 | 1 | } | |
| 289 | |||
| 290 | 9 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::setHeatingThrottlingRange(double heatingThrottlingRange) { | |
| 291 | 9 | bool result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingThrottlingRange, heatingThrottlingRange); | |
| 292 | 9 | return result; | |
| 293 | } | ||
| 294 | |||
| 295 | 1 | void ZoneHVACLowTemperatureRadiantElectric_Impl::resetHeatingThrottlingRange() { | |
| 296 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingThrottlingRange, ""); |
| 297 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 298 | 1 | } | |
| 299 | |||
| 300 | 2 | boost::optional<Schedule> ZoneHVACLowTemperatureRadiantElectric_Impl::optionalAvailabilitySchedule() const { | |
| 301 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::AvailabilityScheduleName); |
| 302 | } | ||
| 303 | |||
| 304 | 2 | boost::optional<Schedule> ZoneHVACLowTemperatureRadiantElectric_Impl::optionalHeatingSetpointTemperatureSchedule() const { | |
| 305 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 306 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName); |
| 307 | } | ||
| 308 | |||
| 309 | ✗ | std::vector<std::string> ZoneHVACLowTemperatureRadiantElectric_Impl::radiantSurfaceTypeValues() const { | |
| 310 | ✗ | return ZoneHVACLowTemperatureRadiantElectric::radiantSurfaceTypeValues(); | |
| 311 | } | ||
| 312 | |||
| 313 | ✗ | std::vector<std::string> ZoneHVACLowTemperatureRadiantElectric_Impl::temperatureControlTypeValues() const { | |
| 314 | ✗ | return ZoneHVACLowTemperatureRadiantElectric::temperatureControlTypeValues(); | |
| 315 | } | ||
| 316 | |||
| 317 | 20 | boost::optional<ThermalZone> ZoneHVACLowTemperatureRadiantElectric_Impl::thermalZone() const { | |
| 318 |
1/1✓ Branch 1 taken 20 times.
|
20 | auto thisObject = this->getObject<ModelObject>(); |
| 319 |
2/2✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
|
20 | std::vector<ThermalZone> thermalZones = this->model().getConcreteModelObjects<ThermalZone>(); |
| 320 |
2/2✓ Branch 5 taken 20 times.
✓ Branch 6 taken 4 times.
|
24 | for (const auto& thermalZone : thermalZones) { |
| 321 |
1/1✓ Branch 1 taken 20 times.
|
20 | std::vector<ModelObject> equipment = thermalZone.equipment(); |
| 322 | |||
| 323 |
3/3✓ Branch 4 taken 20 times.
✓ Branch 7 taken 16 times.
✓ Branch 8 taken 4 times.
|
20 | if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) { |
| 324 |
1/1✓ Branch 1 taken 16 times.
|
16 | return thermalZone; |
| 325 | } | ||
| 326 | 20 | } | |
| 327 | 4 | return boost::none; | |
| 328 | 20 | } | |
| 329 | |||
| 330 | //reimplemented to override the base-class method in ZoneHVACComponent | ||
| 331 | //because this component doesn't get attached to the zone inlet and zone outlet nodes | ||
| 332 | 4 | bool ZoneHVACLowTemperatureRadiantElectric_Impl::addToThermalZone(ThermalZone& thermalZone) { | |
| 333 |
1/1✓ Branch 1 taken 4 times.
|
4 | Model m = this->model(); |
| 334 | |||
| 335 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 4 times.
|
4 | if (thermalZone.model() != m) { |
| 336 | ✗ | return false; | |
| 337 | } | ||
| 338 | |||
| 339 |
2/3✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
|
4 | if (thermalZone.isPlenum()) { |
| 340 | ✗ | return false; | |
| 341 | } | ||
| 342 | |||
| 343 |
1/1✓ Branch 1 taken 4 times.
|
4 | removeFromThermalZone(); |
| 344 | |||
| 345 |
1/1✓ Branch 1 taken 4 times.
|
4 | thermalZone.setUseIdealAirLoads(false); |
| 346 | |||
| 347 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | thermalZone.addEquipment(this->getObject<ZoneHVACComponent>()); |
| 348 | |||
| 349 | 4 | return true; | |
| 350 | 4 | } | |
| 351 | |||
| 352 | //reimplemented to override the base-class method in ZoneHVACComponent | ||
| 353 | //because this component doesn't get attached to the zone inlet and zone outlet nodes | ||
| 354 | //and therefore doesn't need to be removed from them when removed from the zone | ||
| 355 | 4 | void ZoneHVACLowTemperatureRadiantElectric_Impl::removeFromThermalZone() { | |
| 356 |
2/3✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
|
8 | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { |
| 357 | ✗ | thermalZone->removeEquipment(this->getObject<ZoneHVACComponent>()); | |
| 358 | 4 | } | |
| 359 | 4 | } | |
| 360 | |||
| 361 | ✗ | boost::optional<double> ZoneHVACLowTemperatureRadiantElectric_Impl::autosizedMaximumElectricalPowertoPanel() const { | |
| 362 | ✗ | return getAutosizedValue("Design Size Heating Design Capacity", "W"); | |
| 363 | } | ||
| 364 | |||
| 365 | ✗ | void ZoneHVACLowTemperatureRadiantElectric_Impl::autosize() { | |
| 366 | ✗ | autosizeMaximumElectricalPowertoPanel(); | |
| 367 | ✗ | } | |
| 368 | |||
| 369 | ✗ | void ZoneHVACLowTemperatureRadiantElectric_Impl::applySizingValues() { | |
| 370 | ✗ | boost::optional<double> val; | |
| 371 | ✗ | val = autosizedMaximumElectricalPowertoPanel(); | |
| 372 | ✗ | if (val) { | |
| 373 | ✗ | setMaximumElectricalPowertoPanel(val.get()); | |
| 374 | } | ||
| 375 | ✗ | } | |
| 376 | |||
| 377 | ✗ | ComponentType ZoneHVACLowTemperatureRadiantElectric_Impl::componentType() const { | |
| 378 | ✗ | return ComponentType::Heating; | |
| 379 | } | ||
| 380 | |||
| 381 | ✗ | std::vector<FuelType> ZoneHVACLowTemperatureRadiantElectric_Impl::coolingFuelTypes() const { | |
| 382 | ✗ | return {}; | |
| 383 | } | ||
| 384 | |||
| 385 | ✗ | std::vector<FuelType> ZoneHVACLowTemperatureRadiantElectric_Impl::heatingFuelTypes() const { | |
| 386 | ✗ | return {FuelType::Electricity}; | |
| 387 | } | ||
| 388 | |||
| 389 | ✗ | std::vector<AppGFuelType> ZoneHVACLowTemperatureRadiantElectric_Impl::appGHeatingFuelTypes() const { | |
| 390 | ✗ | return {AppGFuelType::Electric}; | |
| 391 | } | ||
| 392 | |||
| 393 | } // namespace detail | ||
| 394 | |||
| 395 | 8 | ZoneHVACLowTemperatureRadiantElectric::ZoneHVACLowTemperatureRadiantElectric(const Model& model, Schedule& availabilitySchedule, | |
| 396 | 8 | Schedule& heatingTemperatureSchedule) | |
| 397 | 8 | : ZoneHVACComponent(ZoneHVACLowTemperatureRadiantElectric::iddObjectType(), model) { | |
| 398 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
|
8 | OS_ASSERT(getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()); |
| 399 | |||
| 400 |
1/1✓ Branch 1 taken 8 times.
|
8 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 401 | |||
| 402 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | if (!ok) { |
| 403 | //remove(); | ||
| 404 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 405 | } | ||
| 406 | |||
| 407 |
1/1✓ Branch 1 taken 8 times.
|
8 | ok = setHeatingSetpointTemperatureSchedule(heatingTemperatureSchedule); |
| 408 | |||
| 409 | 8 | if (!ok) { | |
| 410 | //remove(); | ||
| 411 | //LOG_AND_THROW("Unable to set " << briefDescription() << "'s heating temperature schedule to " | ||
| 412 | // << schedule.briefDescription() << "."); | ||
| 413 | } | ||
| 414 | |||
| 415 |
1/1✓ Branch 1 taken 8 times.
|
8 | resetRadiantSurfaceType(); |
| 416 |
1/1✓ Branch 1 taken 8 times.
|
8 | autosizeMaximumElectricalPowertoPanel(); |
| 417 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | setTemperatureControlType("MeanAirTemperature"); |
| 418 |
1/1✓ Branch 1 taken 8 times.
|
8 | setHeatingThrottlingRange(2.0); |
| 419 | //setString(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName,""); | ||
| 420 | 8 | } | |
| 421 | |||
| 422 | 7759 | IddObjectType ZoneHVACLowTemperatureRadiantElectric::iddObjectType() { | |
| 423 |
1/1✓ Branch 1 taken 7759 times.
|
7759 | return {IddObjectType::OS_ZoneHVAC_LowTemperatureRadiant_Electric}; |
| 424 | } | ||
| 425 | |||
| 426 | ✗ | std::vector<std::string> ZoneHVACLowTemperatureRadiantElectric::radiantSurfaceTypeValues() { | |
| 427 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 428 | ✗ | OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::RadiantSurfaceType); | |
| 429 | } | ||
| 430 | |||
| 431 | ✗ | std::vector<std::string> ZoneHVACLowTemperatureRadiantElectric::temperatureControlTypeValues() { | |
| 432 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 433 | ✗ | OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::TemperatureControlType); | |
| 434 | } | ||
| 435 | |||
| 436 | 2 | Schedule ZoneHVACLowTemperatureRadiantElectric::availabilitySchedule() const { | |
| 437 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->availabilitySchedule(); |
| 438 | } | ||
| 439 | |||
| 440 | 2 | Schedule ZoneHVACLowTemperatureRadiantElectric::heatingSetpointTemperatureSchedule() const { | |
| 441 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->heatingSetpointTemperatureSchedule(); |
| 442 | } | ||
| 443 | |||
| 444 | 4 | boost::optional<std::string> ZoneHVACLowTemperatureRadiantElectric::radiantSurfaceType() const { | |
| 445 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->radiantSurfaceType(); |
| 446 | } | ||
| 447 | |||
| 448 | 15 | std::vector<Surface> ZoneHVACLowTemperatureRadiantElectric::surfaces() const { | |
| 449 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->surfaces(); |
| 450 | } | ||
| 451 | |||
| 452 | 6 | boost::optional<double> ZoneHVACLowTemperatureRadiantElectric::maximumElectricalPowertoPanel() const { | |
| 453 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->maximumElectricalPowertoPanel(); |
| 454 | } | ||
| 455 | |||
| 456 | 3 | bool ZoneHVACLowTemperatureRadiantElectric::isMaximumElectricalPowertoPanelDefaulted() const { | |
| 457 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->isMaximumElectricalPowertoPanelDefaulted(); |
| 458 | } | ||
| 459 | |||
| 460 | 4 | bool ZoneHVACLowTemperatureRadiantElectric::isMaximumElectricalPowertoPanelAutosized() const { | |
| 461 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->isMaximumElectricalPowertoPanelAutosized(); |
| 462 | } | ||
| 463 | |||
| 464 | 4 | std::string ZoneHVACLowTemperatureRadiantElectric::temperatureControlType() const { | |
| 465 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->temperatureControlType(); |
| 466 | } | ||
| 467 | |||
| 468 | 2 | bool ZoneHVACLowTemperatureRadiantElectric::isTemperatureControlTypeDefaulted() const { | |
| 469 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->isTemperatureControlTypeDefaulted(); |
| 470 | } | ||
| 471 | |||
| 472 | 3 | std::string ZoneHVACLowTemperatureRadiantElectric::setpointControlType() const { | |
| 473 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setpointControlType(); |
| 474 | } | ||
| 475 | |||
| 476 | 3 | bool ZoneHVACLowTemperatureRadiantElectric::isSetpointControlTypeDefaulted() const { | |
| 477 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->isSetpointControlTypeDefaulted(); |
| 478 | } | ||
| 479 | |||
| 480 | 4 | double ZoneHVACLowTemperatureRadiantElectric::heatingThrottlingRange() const { | |
| 481 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->heatingThrottlingRange(); |
| 482 | } | ||
| 483 | |||
| 484 | 2 | bool ZoneHVACLowTemperatureRadiantElectric::isHeatingThrottlingRangeDefaulted() const { | |
| 485 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->isHeatingThrottlingRangeDefaulted(); |
| 486 | } | ||
| 487 | |||
| 488 | 9 | bool ZoneHVACLowTemperatureRadiantElectric::setAvailabilitySchedule(Schedule& schedule) { | |
| 489 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setAvailabilitySchedule(schedule); |
| 490 | } | ||
| 491 | |||
| 492 | 9 | bool ZoneHVACLowTemperatureRadiantElectric::setHeatingSetpointTemperatureSchedule(Schedule& schedule) { | |
| 493 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setHeatingSetpointTemperatureSchedule(schedule); |
| 494 | } | ||
| 495 | |||
| 496 | 3 | bool ZoneHVACLowTemperatureRadiantElectric::setRadiantSurfaceType(const std::string& radiantSurfaceType) { | |
| 497 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setRadiantSurfaceType(radiantSurfaceType); |
| 498 | } | ||
| 499 | |||
| 500 | 9 | void ZoneHVACLowTemperatureRadiantElectric::resetRadiantSurfaceType() { | |
| 501 |
1/1✓ Branch 3 taken 9 times.
|
9 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->resetRadiantSurfaceType(); |
| 502 | 9 | } | |
| 503 | |||
| 504 | 2 | bool ZoneHVACLowTemperatureRadiantElectric::setMaximumElectricalPowertoPanel(double maximumElectricalPowertoPanel) { | |
| 505 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setMaximumElectricalPowertoPanel(maximumElectricalPowertoPanel); |
| 506 | } | ||
| 507 | |||
| 508 | 1 | void ZoneHVACLowTemperatureRadiantElectric::resetMaximumElectricalPowertoPanel() { | |
| 509 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->resetMaximumElectricalPowertoPanel(); |
| 510 | 1 | } | |
| 511 | |||
| 512 | 9 | void ZoneHVACLowTemperatureRadiantElectric::autosizeMaximumElectricalPowertoPanel() { | |
| 513 |
1/1✓ Branch 3 taken 9 times.
|
9 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->autosizeMaximumElectricalPowertoPanel(); |
| 514 | 9 | } | |
| 515 | |||
| 516 | 9 | bool ZoneHVACLowTemperatureRadiantElectric::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 517 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setTemperatureControlType(temperatureControlType); |
| 518 | } | ||
| 519 | |||
| 520 | 1 | void ZoneHVACLowTemperatureRadiantElectric::resetTemperatureControlType() { | |
| 521 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->resetTemperatureControlType(); |
| 522 | 1 | } | |
| 523 | |||
| 524 | 1 | bool ZoneHVACLowTemperatureRadiantElectric::setSetpointControlType(const std::string& setpointControlType) { | |
| 525 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setSetpointControlType(setpointControlType); |
| 526 | } | ||
| 527 | |||
| 528 | 1 | void ZoneHVACLowTemperatureRadiantElectric::resetSetpointControlType() { | |
| 529 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->resetSetpointControlType(); |
| 530 | 1 | } | |
| 531 | |||
| 532 | 9 | bool ZoneHVACLowTemperatureRadiantElectric::setHeatingThrottlingRange(double heatingThrottlingRange) { | |
| 533 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->setHeatingThrottlingRange(heatingThrottlingRange); |
| 534 | } | ||
| 535 | |||
| 536 | 1 | void ZoneHVACLowTemperatureRadiantElectric::resetHeatingThrottlingRange() { | |
| 537 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->resetHeatingThrottlingRange(); |
| 538 | 1 | } | |
| 539 | |||
| 540 | 1 | boost::optional<ThermalZone> ZoneHVACLowTemperatureRadiantElectric::thermalZone() const { | |
| 541 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->thermalZone(); |
| 542 | } | ||
| 543 | |||
| 544 | 4 | bool ZoneHVACLowTemperatureRadiantElectric::addToThermalZone(ThermalZone& thermalZone) { | |
| 545 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->addToThermalZone(thermalZone); |
| 546 | } | ||
| 547 | |||
| 548 | ✗ | void ZoneHVACLowTemperatureRadiantElectric::removeFromThermalZone() { | |
| 549 | ✗ | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->removeFromThermalZone(); | |
| 550 | } | ||
| 551 | |||
| 552 | /// @cond | ||
| 553 | 11 | ZoneHVACLowTemperatureRadiantElectric::ZoneHVACLowTemperatureRadiantElectric( | |
| 554 | 11 | std::shared_ptr<detail::ZoneHVACLowTemperatureRadiantElectric_Impl> impl) | |
| 555 |
1/1✓ Branch 3 taken 11 times.
|
11 | : ZoneHVACComponent(std::move(impl)) {} |
| 556 | /// @endcond | ||
| 557 | |||
| 558 | ✗ | boost::optional<double> ZoneHVACLowTemperatureRadiantElectric::autosizedMaximumElectricalPowertoPanel() const { | |
| 559 | ✗ | return getImpl<detail::ZoneHVACLowTemperatureRadiantElectric_Impl>()->autosizedMaximumElectricalPowertoPanel(); | |
| 560 | } | ||
| 561 | |||
| 562 | } // namespace model | ||
| 563 | } // namespace openstudio | ||
| 564 |