src/model/ZoneHVACLowTempRadiantVarFlow.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 "CoilHeatingLowTempRadiantVarFlow.hpp" | ||
| 7 | #include "CoilHeatingLowTempRadiantVarFlow_Impl.hpp" | ||
| 8 | #include "CoilCoolingLowTempRadiantVarFlow.hpp" | ||
| 9 | #include "CoilCoolingLowTempRadiantVarFlow_Impl.hpp" | ||
| 10 | #include "ConstructionWithInternalSource.hpp" | ||
| 11 | #include "ConstructionWithInternalSource_Impl.hpp" | ||
| 12 | #include "HVACComponent.hpp" | ||
| 13 | #include "HVACComponent_Impl.hpp" | ||
| 14 | #include "WaterToAirComponent.hpp" | ||
| 15 | #include "WaterToAirComponent_Impl.hpp" | ||
| 16 | #include "Model.hpp" | ||
| 17 | #include "Model_Impl.hpp" | ||
| 18 | #include "Schedule.hpp" | ||
| 19 | #include "Schedule_Impl.hpp" | ||
| 20 | #include "ScheduleTypeLimits.hpp" | ||
| 21 | #include "ScheduleTypeRegistry.hpp" | ||
| 22 | #include "Space.hpp" | ||
| 23 | #include "Space_Impl.hpp" | ||
| 24 | #include "Surface.hpp" | ||
| 25 | #include "Surface_Impl.hpp" | ||
| 26 | #include "ThermalZone.hpp" | ||
| 27 | #include "ThermalZone_Impl.hpp" | ||
| 28 | #include "ZoneHVACLowTempRadiantVarFlow.hpp" | ||
| 29 | #include "ZoneHVACLowTempRadiantVarFlow_Impl.hpp" | ||
| 30 | |||
| 31 | #include <utilities/idd/IddFactory.hxx> | ||
| 32 | |||
| 33 | #include <utilities/idd/OS_ZoneHVAC_LowTemperatureRadiant_VariableFlow_FieldEnums.hxx> | ||
| 34 | #include <utilities/idd/IddEnums.hxx> | ||
| 35 | |||
| 36 | #include "../utilities/core/Assert.hpp" | ||
| 37 | #include "../utilities/data/DataEnums.hpp" | ||
| 38 | |||
| 39 | namespace openstudio { | ||
| 40 | namespace model { | ||
| 41 | |||
| 42 | namespace detail { | ||
| 43 | |||
| 44 | 8 | ZoneHVACLowTempRadiantVarFlow_Impl::ZoneHVACLowTempRadiantVarFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 45 | 8 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 46 |
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() == ZoneHVACLowTempRadiantVarFlow::iddObjectType()); |
| 47 | 8 | } | |
| 48 | |||
| 49 | 1 | ZoneHVACLowTempRadiantVarFlow_Impl::ZoneHVACLowTempRadiantVarFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 50 | 1 | bool keepHandle) | |
| 51 | 1 | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 52 |
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() == ZoneHVACLowTempRadiantVarFlow::iddObjectType()); |
| 53 | 1 | } | |
| 54 | |||
| 55 | 12 | ZoneHVACLowTempRadiantVarFlow_Impl::ZoneHVACLowTempRadiantVarFlow_Impl(const ZoneHVACLowTempRadiantVarFlow_Impl& other, Model_Impl* model, | |
| 56 | 12 | bool keepHandle) | |
| 57 | 12 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 58 | |||
| 59 | 2 | ModelObject ZoneHVACLowTempRadiantVarFlow_Impl::clone(Model model) const { | |
| 60 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto lowTempRadiantVarFlowClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACLowTempRadiantVarFlow>(); |
| 61 | |||
| 62 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto t_heatingCoil = optionalHeatingCoil()) { |
| 63 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto heatingCoilClone = t_heatingCoil->clone(model).cast<HVACComponent>(); |
| 64 |
1/1✓ Branch 1 taken 2 times.
|
2 | lowTempRadiantVarFlowClone.setHeatingCoil(heatingCoilClone); |
| 65 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | if (model == this->model()) { |
| 66 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
|
2 | if (auto waterToAirComponent = t_heatingCoil->optionalCast<WaterToAirComponent>()) { |
| 67 | ✗ | if (auto plant = waterToAirComponent->plantLoop()) { | |
| 68 | ✗ | plant->addDemandBranchForComponent(heatingCoilClone); | |
| 69 | ✗ | } | |
| 70 | 1 | } | |
| 71 | } | ||
| 72 | 4 | } | |
| 73 | |||
| 74 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto t_coolingCoil = optionalCoolingCoil()) { |
| 75 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto coolingCoilClone = t_coolingCoil->clone(model).cast<HVACComponent>(); |
| 76 |
1/1✓ Branch 1 taken 2 times.
|
2 | lowTempRadiantVarFlowClone.setCoolingCoil(coolingCoilClone); |
| 77 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | if (model == this->model()) { |
| 78 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
|
2 | if (auto waterToAirComponent = t_coolingCoil->optionalCast<WaterToAirComponent>()) { |
| 79 | ✗ | if (auto plant = waterToAirComponent->plantLoop()) { | |
| 80 | ✗ | plant->addDemandBranchForComponent(coolingCoilClone); | |
| 81 | ✗ | } | |
| 82 | 1 | } | |
| 83 | } | ||
| 84 | 4 | } | |
| 85 | |||
| 86 | 4 | return std::move(lowTempRadiantVarFlowClone); | |
| 87 | 2 | } | |
| 88 | |||
| 89 | ✗ | std::vector<IdfObject> ZoneHVACLowTempRadiantVarFlow_Impl::remove() { | |
| 90 | ✗ | if (auto hc = optionalHeatingCoil()) { | |
| 91 | ✗ | if (boost::optional<CoilHeatingLowTempRadiantVarFlow> waterHeatingCoil = hc->optionalCast<CoilHeatingLowTempRadiantVarFlow>()) { | |
| 92 | ✗ | if (boost::optional<PlantLoop> plantLoop = waterHeatingCoil->plantLoop()) { | |
| 93 | ✗ | plantLoop->removeDemandBranchWithComponent(waterHeatingCoil.get()); | |
| 94 | ✗ | } | |
| 95 | ✗ | } | |
| 96 | ✗ | } | |
| 97 | ✗ | if (auto cc = optionalCoolingCoil()) { | |
| 98 | ✗ | if (boost::optional<CoilCoolingLowTempRadiantVarFlow> waterCoolingCoil = cc->optionalCast<CoilCoolingLowTempRadiantVarFlow>()) { | |
| 99 | ✗ | if (boost::optional<PlantLoop> plantLoop = waterCoolingCoil->plantLoop()) { | |
| 100 | ✗ | plantLoop->removeDemandBranchWithComponent(waterCoolingCoil.get()); | |
| 101 | ✗ | } | |
| 102 | ✗ | } | |
| 103 | ✗ | } | |
| 104 | ✗ | return ZoneHVACComponent_Impl::remove(); | |
| 105 | } | ||
| 106 | |||
| 107 | ✗ | const std::vector<std::string>& ZoneHVACLowTempRadiantVarFlow_Impl::outputVariableNames() const { | |
| 108 | static const std::vector<std::string> result{"Zone Radiant HVAC Heating Rate", "Zone Radiant HVAC Heating Energy", | ||
| 109 | "Zone Radiant HVAC Cooling Rate", "Zone Radiant HVAC Cooling Energy", | ||
| 110 | "Zone Radiant HVAC Mass Flow Rate", "Zone Radiant HVAC Inlet Temperature", | ||
| 111 | "Zone Radiant HVAC Outlet Temperature", "Zone Radiant HVAC Moisture Condensation Time", | ||
| 112 | ✗ | "Zone Radiant HVAC Heating Fluid Energy", "Zone Radiant HVAC Cooling Fluid Energy"}; | |
| 113 | ✗ | return result; | |
| 114 | ✗ | } | |
| 115 | |||
| 116 | 32 | IddObjectType ZoneHVACLowTempRadiantVarFlow_Impl::iddObjectType() const { | |
| 117 | 32 | return ZoneHVACLowTempRadiantVarFlow::iddObjectType(); | |
| 118 | } | ||
| 119 | |||
| 120 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACLowTempRadiantVarFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 121 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 122 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 123 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 124 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 125 | ✗ | if (std::find(b, e, OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName) != e) { | |
| 126 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACLowTempRadiantVarFlow", "Availability")); | |
| 127 | } | ||
| 128 | ✗ | if (std::find(b, e, OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::ChangeoverDelayTimePeriodSchedule) != e) { | |
| 129 | ✗ | result.push_back(ScheduleTypeKey("ZoneHVACLowTempRadiantVarFlow", "Changeover Delay Time Period")); | |
| 130 | } | ||
| 131 | |||
| 132 | ✗ | return result; | |
| 133 | ✗ | } | |
| 134 | |||
| 135 | 6 | Schedule ZoneHVACLowTempRadiantVarFlow_Impl::availabilitySchedule() const { | |
| 136 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 137 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
|
6 | if (!value) { |
| 138 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 139 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 140 | ✗ | OS_ASSERT(value); | |
| 141 | ✗ | const_cast<ZoneHVACLowTempRadiantVarFlow_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 142 | ✗ | value = optionalAvailabilitySchedule(); | |
| 143 | } | ||
| 144 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 145 | 6 | } | |
| 146 | |||
| 147 | 15 | std::vector<ModelObject> ZoneHVACLowTempRadiantVarFlow_Impl::children() const { | |
| 148 | 15 | std::vector<ModelObject> result; | |
| 149 |
3/3✓ Branch 1 taken 15 times.
✓ Branch 3 taken 11 times.
✓ Branch 4 taken 4 times.
|
30 | if (OptionalHVACComponent intermediate = optionalHeatingCoil()) { |
| 150 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | result.push_back(*intermediate); |
| 151 | 15 | } | |
| 152 |
3/3✓ Branch 1 taken 15 times.
✓ Branch 3 taken 11 times.
✓ Branch 4 taken 4 times.
|
30 | if (OptionalHVACComponent intermediate = optionalCoolingCoil()) { |
| 153 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | result.push_back(*intermediate); |
| 154 | 15 | } | |
| 155 | 15 | return result; | |
| 156 | ✗ | } | |
| 157 | |||
| 158 | 10 | unsigned ZoneHVACLowTempRadiantVarFlow_Impl::inletPort() const { | |
| 159 | 10 | return 0; | |
| 160 | } | ||
| 161 | |||
| 162 | 2 | unsigned ZoneHVACLowTempRadiantVarFlow_Impl::outletPort() const { | |
| 163 | 2 | return 0; | |
| 164 | } | ||
| 165 | |||
| 166 | 20 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow_Impl::heatingCoil() const { | |
| 167 | 20 | return optionalHeatingCoil(); | |
| 168 | } | ||
| 169 | |||
| 170 | 18 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow_Impl::coolingCoil() const { | |
| 171 | 18 | return optionalCoolingCoil(); | |
| 172 | } | ||
| 173 | |||
| 174 | 11 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setHeatingCoil(HVACComponent& heatingCoil) { | |
| 175 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowHeatingCoilName, heatingCoil.handle()); |
| 176 | 11 | return result; | |
| 177 | } | ||
| 178 | |||
| 179 | 11 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setCoolingCoil(HVACComponent& coolingCoil) { | |
| 180 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowCoolingCoilName, coolingCoil.handle()); |
| 181 | 11 | return result; | |
| 182 | } | ||
| 183 | |||
| 184 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetHeatingCoil() { | |
| 185 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowHeatingCoilName, ""); |
| 186 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 187 | 1 | } | |
| 188 | |||
| 189 | ✗ | void ZoneHVACLowTempRadiantVarFlow_Impl::resetCoolingCoil() { | |
| 190 | ✗ | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowCoolingCoilName, ""); | |
| 191 | ✗ | OS_ASSERT(result); | |
| 192 | ✗ | } | |
| 193 | |||
| 194 | 52 | boost::optional<std::string> ZoneHVACLowTempRadiantVarFlow_Impl::radiantSurfaceType() const { | |
| 195 | 52 | return getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::RadiantSurfaceType, true); | |
| 196 | } | ||
| 197 | |||
| 198 | 38 | std::vector<Surface> ZoneHVACLowTempRadiantVarFlow_Impl::surfaces() const { | |
| 199 | |||
| 200 | //vector to hold all of the surfaces that this radiant system is attached to | ||
| 201 | 38 | std::vector<Surface> surfaces; | |
| 202 | |||
| 203 | //get the thermal zone this equipment belongs to | ||
| 204 |
2/3✓ Branch 1 taken 38 times.
✓ Branch 3 taken 38 times.
✗ Branch 4 not taken.
|
76 | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { |
| 205 | |||
| 206 | //loop through all the spaces in this zone | ||
| 207 |
4/4✓ Branch 1 taken 38 times.
✓ Branch 4 taken 38 times.
✓ Branch 11 taken 56 times.
✓ Branch 12 taken 38 times.
|
94 | for (const Space& space : thermalZone->spaces()) { |
| 208 | |||
| 209 | //loop through all the surfaces in this space | ||
| 210 |
3/3✓ Branch 1 taken 56 times.
✓ Branch 8 taken 336 times.
✓ Branch 9 taken 56 times.
|
392 | for (const Surface& surface : space.surfaces()) { |
| 211 | |||
| 212 | //skip surfaces who do not have a construction, or whose construction is not internal source | ||
| 213 |
3/3✓ Branch 1 taken 336 times.
✓ Branch 3 taken 185 times.
✓ Branch 4 taken 151 times.
|
672 | if (boost::optional<ConstructionBase> _constructionBase = surface.construction()) { |
| 214 |
4/4✓ Branch 1 taken 185 times.
✓ Branch 4 taken 185 times.
✓ Branch 6 taken 45 times.
✓ Branch 7 taken 140 times.
|
370 | if (boost::optional<ConstructionWithInternalSource> _construction = _constructionBase->optionalCast<ConstructionWithInternalSource>()) { |
| 215 | |||
| 216 | //TODO change this to not optional when idd change is made | ||
| 217 | //get the strings for requested surface types and current surface type | ||
| 218 |
3/3✓ Branch 1 taken 45 times.
✓ Branch 4 taken 45 times.
✓ Branch 7 taken 45 times.
|
45 | std::string surfGrpName = this->radiantSurfaceType().get(); |
| 219 |
1/1✓ Branch 1 taken 45 times.
|
45 | std::string surfaceType = surface.surfaceType(); |
| 220 | |||
| 221 | //if the current surface is of the type requested, add it to the vector of surfaces | ||
| 222 |
16/26✓ Branch 1 taken 45 times.
✓ Branch 4 taken 45 times.
✓ Branch 6 taken 35 times.
✓ Branch 7 taken 10 times.
✓ Branch 9 taken 35 times.
✓ Branch 12 taken 35 times.
✓ Branch 14 taken 33 times.
✓ Branch 15 taken 2 times.
✓ Branch 16 taken 35 times.
✓ Branch 17 taken 10 times.
✓ Branch 19 taken 35 times.
✓ Branch 20 taken 10 times.
✓ Branch 21 taken 45 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 45 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 33 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.
|
205 | if (istringEqual("RoofCeiling", surfaceType) && istringEqual("Ceilings", surfGrpName)) { |
| 223 |
1/1✓ Branch 1 taken 33 times.
|
33 | surfaces.push_back(surface); |
| 224 |
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)) { |
| 225 | ✗ | surfaces.push_back(surface); | |
| 226 |
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)) |
| 227 |
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)) { |
| 228 | ✗ | surfaces.push_back(surface); | |
| 229 |
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)) { |
| 230 |
1/1✓ Branch 1 taken 12 times.
|
12 | surfaces.push_back(surface); |
| 231 | } | ||
| 232 | 230 | } | |
| 233 | 336 | } | |
| 234 | 56 | } | |
| 235 | 38 | } | |
| 236 | 38 | } | |
| 237 | |||
| 238 | 38 | return surfaces; | |
| 239 | ✗ | } | |
| 240 | |||
| 241 | 7 | std::string ZoneHVACLowTempRadiantVarFlow_Impl::fluidtoRadiantSurfaceHeatTransferModel() const { | |
| 242 | boost::optional<std::string> value = | ||
| 243 |
1/1✓ Branch 1 taken 7 times.
|
7 | getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::FluidtoRadiantSurfaceHeatTransferModel, true); |
| 244 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 245 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 246 | 7 | } | |
| 247 | |||
| 248 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isFluidtoRadiantSurfaceHeatTransferModelDefaulted() const { | |
| 249 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::FluidtoRadiantSurfaceHeatTransferModel); | |
| 250 | } | ||
| 251 | |||
| 252 | 11 | double ZoneHVACLowTempRadiantVarFlow_Impl::hydronicTubingInsideDiameter() const { | |
| 253 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingInsideDiameter, true); |
| 254 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 255 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 256 | } | ||
| 257 | |||
| 258 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isHydronicTubingInsideDiameterDefaulted() const { | |
| 259 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingInsideDiameter); | |
| 260 | } | ||
| 261 | |||
| 262 | 7 | double ZoneHVACLowTempRadiantVarFlow_Impl::hydronicTubingOutsideDiameter() const { | |
| 263 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingOutsideDiameter, true); |
| 264 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 265 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 266 | } | ||
| 267 | |||
| 268 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isHydronicTubingOutsideDiameterDefaulted() const { | |
| 269 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingOutsideDiameter); | |
| 270 | } | ||
| 271 | |||
| 272 | 1 | boost::optional<double> ZoneHVACLowTempRadiantVarFlow_Impl::hydronicTubingLength() const { | |
| 273 | 1 | return getDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength, true); | |
| 274 | } | ||
| 275 | |||
| 276 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isHydronicTubingLengthDefaulted() const { | |
| 277 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength); | |
| 278 | } | ||
| 279 | |||
| 280 | 8 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isHydronicTubingLengthAutosized() const { | |
| 281 | 8 | bool result = false; | |
| 282 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength, true); |
| 283 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | if (value) { |
| 284 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
16 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 285 | } | ||
| 286 | 8 | return result; | |
| 287 | 8 | } | |
| 288 | |||
| 289 | 7 | double ZoneHVACLowTempRadiantVarFlow_Impl::hydronicTubingConductivity() const { | |
| 290 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingConductivity, true); |
| 291 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 292 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 293 | } | ||
| 294 | |||
| 295 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isHydronicTubingConductivityDefaulted() const { | |
| 296 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingConductivity); | |
| 297 | } | ||
| 298 | |||
| 299 | 7 | std::string ZoneHVACLowTempRadiantVarFlow_Impl::temperatureControlType() const { | |
| 300 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::TemperatureControlType, true); |
| 301 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 302 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 303 | 7 | } | |
| 304 | |||
| 305 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isTemperatureControlTypeDefaulted() const { | |
| 306 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::TemperatureControlType); | |
| 307 | } | ||
| 308 | |||
| 309 | 7 | std::string ZoneHVACLowTempRadiantVarFlow_Impl::setpointControlType() const { | |
| 310 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::SetpointControlType, true); |
| 311 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 312 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 313 | 7 | } | |
| 314 | |||
| 315 | 3 | bool ZoneHVACLowTempRadiantVarFlow_Impl::isSetpointControlTypeDefaulted() const { | |
| 316 | 3 | return isEmpty(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::SetpointControlType); | |
| 317 | } | ||
| 318 | |||
| 319 | 6 | std::string ZoneHVACLowTempRadiantVarFlow_Impl::numberofCircuits() const { | |
| 320 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::NumberofCircuits, true); |
| 321 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 322 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 323 | 6 | } | |
| 324 | |||
| 325 | 6 | double ZoneHVACLowTempRadiantVarFlow_Impl::circuitLength() const { | |
| 326 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::CircuitLength, true); |
| 327 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 328 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 329 | } | ||
| 330 | |||
| 331 | 8 | boost::optional<Schedule> ZoneHVACLowTempRadiantVarFlow_Impl::changeoverDelayTimePeriodSchedule() const { | |
| 332 |
1/1✓ Branch 1 taken 8 times.
|
16 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 333 |
1/1✓ Branch 1 taken 8 times.
|
16 | OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::ChangeoverDelayTimePeriodSchedule); |
| 334 | } | ||
| 335 | |||
| 336 | 7 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 337 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
28 | bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName, "ZoneHVACLowTempRadiantVarFlow", |
| 338 | "Availability", schedule); | ||
| 339 | 7 | return result; | |
| 340 | } | ||
| 341 | |||
| 342 | 5 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setRadiantSurfaceType(boost::optional<std::string> radiantSurfaceType) { | |
| 343 | 5 | bool result(false); | |
| 344 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (radiantSurfaceType) { |
| 345 | 5 | result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::RadiantSurfaceType, radiantSurfaceType.get()); | |
| 346 | } else { | ||
| 347 | ✗ | resetRadiantSurfaceType(); | |
| 348 | ✗ | result = true; | |
| 349 | } | ||
| 350 | 5 | return result; | |
| 351 | } | ||
| 352 | |||
| 353 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetRadiantSurfaceType() { | |
| 354 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::RadiantSurfaceType, "Ceilings"); |
| 355 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 356 | 1 | } | |
| 357 | |||
| 358 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setFluidtoRadiantSurfaceHeatTransferModel(const std::string& fluidtoRadiantSurfaceHeatTransferModel) { | |
| 359 | 1 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::FluidtoRadiantSurfaceHeatTransferModel, | |
| 360 | fluidtoRadiantSurfaceHeatTransferModel); | ||
| 361 | 1 | return result; | |
| 362 | } | ||
| 363 | |||
| 364 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetFluidtoRadiantSurfaceHeatTransferModel() { | |
| 365 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::FluidtoRadiantSurfaceHeatTransferModel, ""); |
| 366 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 367 | 1 | } | |
| 368 | |||
| 369 | 2 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setHydronicTubingInsideDiameter(double hydronicTubingInsideDiameter) { | |
| 370 | 2 | bool result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingInsideDiameter, hydronicTubingInsideDiameter); | |
| 371 | 2 | return result; | |
| 372 | } | ||
| 373 | |||
| 374 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetHydronicTubingInsideDiameter() { | |
| 375 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingInsideDiameter, ""); |
| 376 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 377 | 1 | } | |
| 378 | |||
| 379 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setHydronicTubingOutsideDiameter(double hydronicTubingOutsideDiameter) { | |
| 380 | 1 | bool result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingOutsideDiameter, hydronicTubingOutsideDiameter); | |
| 381 | 1 | return result; | |
| 382 | } | ||
| 383 | |||
| 384 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetHydronicTubingOutsideDiameter() { | |
| 385 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingOutsideDiameter, ""); |
| 386 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 387 | 1 | } | |
| 388 | |||
| 389 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setHydronicTubingLength(boost::optional<double> hydronicTubingLength) { | |
| 390 | 1 | bool result(false); | |
| 391 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (hydronicTubingLength) { |
| 392 | 1 | result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength, hydronicTubingLength.get()); | |
| 393 | } else { | ||
| 394 | ✗ | resetHydronicTubingLength(); | |
| 395 | ✗ | result = true; | |
| 396 | } | ||
| 397 | 1 | return result; | |
| 398 | } | ||
| 399 | |||
| 400 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetHydronicTubingLength() { | |
| 401 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength, ""); |
| 402 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 403 | 1 | } | |
| 404 | |||
| 405 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::autosizeHydronicTubingLength() { | |
| 406 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingLength, "autosize"); |
| 407 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 408 | 1 | } | |
| 409 | |||
| 410 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setHydronicTubingConductivity(double hydronicTubingConductivity) { | |
| 411 | 1 | bool result = setDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingConductivity, hydronicTubingConductivity); | |
| 412 | 1 | return result; | |
| 413 | } | ||
| 414 | |||
| 415 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetHydronicTubingConductivity() { | |
| 416 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::HydronicTubingConductivity, ""); |
| 417 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 418 | 1 | } | |
| 419 | |||
| 420 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 421 | 1 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::TemperatureControlType, temperatureControlType); | |
| 422 | 1 | return result; | |
| 423 | } | ||
| 424 | |||
| 425 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetTemperatureControlType() { | |
| 426 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::TemperatureControlType, ""); |
| 427 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 428 | 1 | } | |
| 429 | |||
| 430 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setSetpointControlType(const std::string& setpointControlType) { | |
| 431 | 1 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::SetpointControlType, setpointControlType); | |
| 432 | 1 | return result; | |
| 433 | } | ||
| 434 | |||
| 435 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetSetpointControlType() { | |
| 436 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::SetpointControlType, ""); |
| 437 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 438 | 1 | } | |
| 439 | |||
| 440 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setNumberofCircuits(const std::string& numberofCircuits) { | |
| 441 | 1 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::NumberofCircuits, numberofCircuits); | |
| 442 | 1 | return result; | |
| 443 | } | ||
| 444 | |||
| 445 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setCircuitLength(double circuitLength) { | |
| 446 | 1 | return setDouble(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::CircuitLength, circuitLength); | |
| 447 | ; | ||
| 448 | } | ||
| 449 | |||
| 450 | 1 | bool ZoneHVACLowTempRadiantVarFlow_Impl::setChangeoverDelayTimePeriodSchedule(Schedule& schedule) { | |
| 451 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::ChangeoverDelayTimePeriodSchedule, |
| 452 | "ZoneHVACLowTempRadiantVarFlow", "Changeover Delay Time Period", schedule); | ||
| 453 | 1 | return result; | |
| 454 | } | ||
| 455 | |||
| 456 | 1 | void ZoneHVACLowTempRadiantVarFlow_Impl::resetChangeoverDelayTimePeriodSchedule() { | |
| 457 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::ChangeoverDelayTimePeriodSchedule, ""); |
| 458 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 459 | 1 | } | |
| 460 | |||
| 461 | 6 | boost::optional<Schedule> ZoneHVACLowTempRadiantVarFlow_Impl::optionalAvailabilitySchedule() const { | |
| 462 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName); |
| 463 | } | ||
| 464 | |||
| 465 | 37 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow_Impl::optionalHeatingCoil() const { | |
| 466 |
1/1✓ Branch 1 taken 37 times.
|
74 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>( |
| 467 |
1/1✓ Branch 1 taken 37 times.
|
74 | OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowHeatingCoilName); |
| 468 | } | ||
| 469 | |||
| 470 | 35 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow_Impl::optionalCoolingCoil() const { | |
| 471 |
1/1✓ Branch 1 taken 35 times.
|
70 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>( |
| 472 |
1/1✓ Branch 1 taken 35 times.
|
70 | OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowCoolingCoilName); |
| 473 | } | ||
| 474 | |||
| 475 | ✗ | std::vector<std::string> ZoneHVACLowTempRadiantVarFlow_Impl::radiantSurfaceTypeValues() const { | |
| 476 | ✗ | return ZoneHVACLowTempRadiantVarFlow::radiantSurfaceTypeValues(); | |
| 477 | } | ||
| 478 | |||
| 479 | ✗ | std::vector<std::string> ZoneHVACLowTempRadiantVarFlow_Impl::temperatureControlTypeValues() const { | |
| 480 | ✗ | return ZoneHVACLowTempRadiantVarFlow::temperatureControlTypeValues(); | |
| 481 | } | ||
| 482 | |||
| 483 | 52 | boost::optional<ThermalZone> ZoneHVACLowTempRadiantVarFlow_Impl::thermalZone() const { | |
| 484 |
1/1✓ Branch 1 taken 52 times.
|
52 | auto thisObject = this->getObject<ModelObject>(); |
| 485 |
2/2✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
|
52 | std::vector<ThermalZone> thermalZones = this->model().getConcreteModelObjects<ThermalZone>(); |
| 486 |
2/2✓ Branch 5 taken 52 times.
✓ Branch 6 taken 7 times.
|
59 | for (const auto& thermalZone : thermalZones) { |
| 487 |
1/1✓ Branch 1 taken 52 times.
|
52 | std::vector<ModelObject> equipment = thermalZone.equipment(); |
| 488 | |||
| 489 |
3/3✓ Branch 4 taken 52 times.
✓ Branch 7 taken 45 times.
✓ Branch 8 taken 7 times.
|
52 | if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) { |
| 490 |
1/1✓ Branch 1 taken 45 times.
|
45 | return thermalZone; |
| 491 | } | ||
| 492 | 52 | } | |
| 493 | 7 | return boost::none; | |
| 494 | 52 | } | |
| 495 | |||
| 496 | //reimplemented to override the base-class method in ZoneHVACComponent | ||
| 497 | //because this component doesn't get attached to the zone inlet and zone outlet nodes | ||
| 498 | 6 | bool ZoneHVACLowTempRadiantVarFlow_Impl::addToThermalZone(ThermalZone& thermalZone) { | |
| 499 |
1/1✓ Branch 1 taken 6 times.
|
6 | Model m = this->model(); |
| 500 | |||
| 501 |
3/4✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 6 times.
|
6 | if (thermalZone.model() != m) { |
| 502 | ✗ | return false; | |
| 503 | } | ||
| 504 | |||
| 505 |
2/3✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
|
6 | if (thermalZone.isPlenum()) { |
| 506 | ✗ | return false; | |
| 507 | } | ||
| 508 | |||
| 509 |
1/1✓ Branch 1 taken 6 times.
|
6 | removeFromThermalZone(); |
| 510 | |||
| 511 |
1/1✓ Branch 1 taken 6 times.
|
6 | thermalZone.setUseIdealAirLoads(false); |
| 512 | |||
| 513 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | thermalZone.addEquipment(this->getObject<ZoneHVACComponent>()); |
| 514 | |||
| 515 | 6 | return true; | |
| 516 | 6 | } | |
| 517 | |||
| 518 | //reimplemented to override the base-class method in ZoneHVACComponent | ||
| 519 | //because this component doesn't get attached to the zone inlet and zone outlet nodes | ||
| 520 | //and therefore doesn't need to be removed from them when removed from the zone | ||
| 521 | 7 | void ZoneHVACLowTempRadiantVarFlow_Impl::removeFromThermalZone() { | |
| 522 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 6 times.
|
14 | if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) { |
| 523 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | thermalZone->removeEquipment(this->getObject<ZoneHVACComponent>()); |
| 524 | 7 | } | |
| 525 | 7 | } | |
| 526 | |||
| 527 | ✗ | boost::optional<double> ZoneHVACLowTempRadiantVarFlow_Impl::autosizedHydronicTubingLength() const { | |
| 528 | ✗ | return getAutosizedValue("Design Size Hydronic Tubing Length", "m"); | |
| 529 | } | ||
| 530 | |||
| 531 | ✗ | void ZoneHVACLowTempRadiantVarFlow_Impl::autosize() { | |
| 532 | ✗ | autosizeHydronicTubingLength(); | |
| 533 | ✗ | } | |
| 534 | |||
| 535 | ✗ | void ZoneHVACLowTempRadiantVarFlow_Impl::applySizingValues() { | |
| 536 | ✗ | boost::optional<double> val; | |
| 537 | ✗ | val = autosizedHydronicTubingLength(); | |
| 538 | ✗ | if (val) { | |
| 539 | ✗ | setHydronicTubingLength(val.get()); | |
| 540 | } | ||
| 541 | ✗ | } | |
| 542 | |||
| 543 | ✗ | std::vector<EMSActuatorNames> ZoneHVACLowTempRadiantVarFlow_Impl::emsActuatorNames() const { | |
| 544 | ✗ | std::vector<EMSActuatorNames> actuators{{"Hydronic Low Temp Radiant", "Water Mass Flow Rate"}}; | |
| 545 | ✗ | return actuators; | |
| 546 | ✗ | } | |
| 547 | |||
| 548 | ✗ | std::vector<std::string> ZoneHVACLowTempRadiantVarFlow_Impl::emsInternalVariableNames() const { | |
| 549 | std::vector<std::string> types{"Hydronic Low Temp Radiant Design Water Volume Flow Rate for Heating", | ||
| 550 | ✗ | "Hydronic Low Temp Radiant Design Water Volume Flow Rate for Cooling"}; | |
| 551 | ✗ | return types; | |
| 552 | ✗ | } | |
| 553 | |||
| 554 | ✗ | ComponentType ZoneHVACLowTempRadiantVarFlow_Impl::componentType() const { | |
| 555 | ✗ | const bool has_cooling = heatingCoil().has_value(); | |
| 556 | ✗ | const bool has_heating = coolingCoil().has_value(); | |
| 557 | |||
| 558 | ✗ | if (has_cooling && has_heating) { | |
| 559 | ✗ | return ComponentType::Both; | |
| 560 | ✗ | } else if (has_cooling) { | |
| 561 | ✗ | return ComponentType::Cooling; | |
| 562 | ✗ | } else if (has_heating) { | |
| 563 | ✗ | return ComponentType::Heating; | |
| 564 | } | ||
| 565 | ✗ | return ComponentType::None; | |
| 566 | } | ||
| 567 | |||
| 568 | ✗ | std::vector<FuelType> ZoneHVACLowTempRadiantVarFlow_Impl::coolingFuelTypes() const { | |
| 569 | ✗ | std::set<FuelType> result; | |
| 570 | ✗ | if (auto cc_ = coolingCoil()) { | |
| 571 | ✗ | for (auto ft : cc_->coolingFuelTypes()) { | |
| 572 | ✗ | result.insert(ft); | |
| 573 | ✗ | } | |
| 574 | ✗ | } | |
| 575 | ✗ | return {result.begin(), result.end()}; | |
| 576 | ✗ | } | |
| 577 | |||
| 578 | ✗ | std::vector<FuelType> ZoneHVACLowTempRadiantVarFlow_Impl::heatingFuelTypes() const { | |
| 579 | ✗ | std::set<FuelType> result; | |
| 580 | ✗ | if (auto hc_ = heatingCoil()) { | |
| 581 | ✗ | for (auto ft : hc_->heatingFuelTypes()) { | |
| 582 | ✗ | result.insert(ft); | |
| 583 | ✗ | } | |
| 584 | ✗ | } | |
| 585 | ✗ | return {result.begin(), result.end()}; | |
| 586 | ✗ | } | |
| 587 | |||
| 588 | ✗ | std::vector<AppGFuelType> ZoneHVACLowTempRadiantVarFlow_Impl::appGHeatingFuelTypes() const { | |
| 589 | ✗ | std::set<AppGFuelType> result; | |
| 590 | ✗ | if (auto hc_ = heatingCoil()) { | |
| 591 | ✗ | for (auto ft : hc_->appGHeatingFuelTypes()) { | |
| 592 | ✗ | result.insert(ft); | |
| 593 | ✗ | } | |
| 594 | ✗ | } | |
| 595 | ✗ | return {result.begin(), result.end()}; | |
| 596 | ✗ | } | |
| 597 | |||
| 598 | } // namespace detail | ||
| 599 | |||
| 600 | 5 | ZoneHVACLowTempRadiantVarFlow::ZoneHVACLowTempRadiantVarFlow(const Model& model, Schedule& availabilitySchedule, HVACComponent& heatingCoil, | |
| 601 | 5 | HVACComponent& coolingCoil) | |
| 602 | |||
| 603 | 5 | : ZoneHVACComponent(ZoneHVACLowTempRadiantVarFlow::iddObjectType(), model) { | |
| 604 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 5 not taken.
|
5 | OS_ASSERT(getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()); |
| 605 | |||
| 606 |
1/1✓ Branch 1 taken 5 times.
|
5 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 607 | |||
| 608 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
|
5 | if (!ok) { |
| 609 | ✗ | remove(); | |
| 610 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 611 | } | ||
| 612 | |||
| 613 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setHeatingCoil(heatingCoil); |
| 614 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
|
5 | if (!ok) { |
| 615 | ✗ | remove(); | |
| 616 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Heating Coil to " << heatingCoil.briefDescription() << "."); | |
| 617 | } | ||
| 618 | |||
| 619 |
1/1✓ Branch 1 taken 5 times.
|
5 | ok = setCoolingCoil(coolingCoil); |
| 620 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
|
5 | if (!ok) { |
| 621 | ✗ | remove(); | |
| 622 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s Cooling Coil to " << coolingCoil.briefDescription() << "."); | |
| 623 | } | ||
| 624 | 5 | } | |
| 625 | |||
| 626 | 2 | ZoneHVACLowTempRadiantVarFlow::ZoneHVACLowTempRadiantVarFlow(const Model& model) | |
| 627 | |||
| 628 | 2 | : ZoneHVACComponent(ZoneHVACLowTempRadiantVarFlow::iddObjectType(), model) { | |
| 629 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 5 not taken.
|
2 | OS_ASSERT(getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()); |
| 630 | |||
| 631 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto alwaysOn = model.alwaysOnDiscreteSchedule(); |
| 632 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool ok = setAvailabilitySchedule(alwaysOn); |
| 633 | |||
| 634 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | if (!ok) { |
| 635 | ✗ | remove(); | |
| 636 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << alwaysOn.briefDescription() << "."); | |
| 637 | } | ||
| 638 | 2 | } | |
| 639 | |||
| 640 | 7656 | IddObjectType ZoneHVACLowTempRadiantVarFlow::iddObjectType() { | |
| 641 |
1/1✓ Branch 1 taken 7656 times.
|
7656 | return {IddObjectType::OS_ZoneHVAC_LowTemperatureRadiant_VariableFlow}; |
| 642 | } | ||
| 643 | |||
| 644 | ✗ | std::vector<std::string> ZoneHVACLowTempRadiantVarFlow::radiantSurfaceTypeValues() { | |
| 645 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 646 | ✗ | OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::RadiantSurfaceType); | |
| 647 | } | ||
| 648 | |||
| 649 | ✗ | std::vector<std::string> ZoneHVACLowTempRadiantVarFlow::temperatureControlTypeValues() { | |
| 650 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 651 | ✗ | OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::TemperatureControlType); | |
| 652 | } | ||
| 653 | |||
| 654 | 6 | Schedule ZoneHVACLowTempRadiantVarFlow::availabilitySchedule() const { | |
| 655 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->availabilitySchedule(); |
| 656 | } | ||
| 657 | |||
| 658 | 20 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow::heatingCoil() const { | |
| 659 |
1/1✓ Branch 3 taken 20 times.
|
20 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->heatingCoil(); |
| 660 | } | ||
| 661 | |||
| 662 | 18 | boost::optional<HVACComponent> ZoneHVACLowTempRadiantVarFlow::coolingCoil() const { | |
| 663 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->coolingCoil(); |
| 664 | } | ||
| 665 | |||
| 666 | 7 | boost::optional<std::string> ZoneHVACLowTempRadiantVarFlow::radiantSurfaceType() const { | |
| 667 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->radiantSurfaceType(); |
| 668 | } | ||
| 669 | |||
| 670 | 38 | std::vector<Surface> ZoneHVACLowTempRadiantVarFlow::surfaces() const { | |
| 671 |
1/1✓ Branch 3 taken 38 times.
|
38 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->surfaces(); |
| 672 | } | ||
| 673 | |||
| 674 | 7 | std::string ZoneHVACLowTempRadiantVarFlow::fluidtoRadiantSurfaceHeatTransferModel() const { | |
| 675 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->fluidtoRadiantSurfaceHeatTransferModel(); |
| 676 | } | ||
| 677 | |||
| 678 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isFluidtoRadiantSurfaceHeatTransferModelDefaulted() const { | |
| 679 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isFluidtoRadiantSurfaceHeatTransferModelDefaulted(); |
| 680 | } | ||
| 681 | |||
| 682 | 11 | double ZoneHVACLowTempRadiantVarFlow::hydronicTubingInsideDiameter() const { | |
| 683 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->hydronicTubingInsideDiameter(); |
| 684 | } | ||
| 685 | |||
| 686 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isHydronicTubingInsideDiameterDefaulted() const { | |
| 687 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isHydronicTubingInsideDiameterDefaulted(); |
| 688 | } | ||
| 689 | |||
| 690 | 7 | double ZoneHVACLowTempRadiantVarFlow::hydronicTubingOutsideDiameter() const { | |
| 691 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->hydronicTubingOutsideDiameter(); |
| 692 | } | ||
| 693 | |||
| 694 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isHydronicTubingOutsideDiameterDefaulted() const { | |
| 695 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isHydronicTubingOutsideDiameterDefaulted(); |
| 696 | } | ||
| 697 | |||
| 698 | 1 | boost::optional<double> ZoneHVACLowTempRadiantVarFlow::hydronicTubingLength() const { | |
| 699 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->hydronicTubingLength(); |
| 700 | } | ||
| 701 | |||
| 702 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isHydronicTubingLengthDefaulted() const { | |
| 703 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isHydronicTubingLengthDefaulted(); |
| 704 | } | ||
| 705 | |||
| 706 | 8 | bool ZoneHVACLowTempRadiantVarFlow::isHydronicTubingLengthAutosized() const { | |
| 707 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isHydronicTubingLengthAutosized(); |
| 708 | } | ||
| 709 | |||
| 710 | 7 | double ZoneHVACLowTempRadiantVarFlow::hydronicTubingConductivity() const { | |
| 711 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->hydronicTubingConductivity(); |
| 712 | } | ||
| 713 | |||
| 714 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isHydronicTubingConductivityDefaulted() const { | |
| 715 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isHydronicTubingConductivityDefaulted(); |
| 716 | } | ||
| 717 | |||
| 718 | 7 | std::string ZoneHVACLowTempRadiantVarFlow::temperatureControlType() const { | |
| 719 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->temperatureControlType(); |
| 720 | } | ||
| 721 | |||
| 722 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isTemperatureControlTypeDefaulted() const { | |
| 723 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isTemperatureControlTypeDefaulted(); |
| 724 | } | ||
| 725 | |||
| 726 | 7 | std::string ZoneHVACLowTempRadiantVarFlow::setpointControlType() const { | |
| 727 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setpointControlType(); |
| 728 | } | ||
| 729 | |||
| 730 | 3 | bool ZoneHVACLowTempRadiantVarFlow::isSetpointControlTypeDefaulted() const { | |
| 731 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->isSetpointControlTypeDefaulted(); |
| 732 | } | ||
| 733 | |||
| 734 | 6 | std::string ZoneHVACLowTempRadiantVarFlow::numberofCircuits() const { | |
| 735 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->numberofCircuits(); |
| 736 | } | ||
| 737 | |||
| 738 | 6 | double ZoneHVACLowTempRadiantVarFlow::circuitLength() const { | |
| 739 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->circuitLength(); |
| 740 | } | ||
| 741 | |||
| 742 | 8 | boost::optional<Schedule> ZoneHVACLowTempRadiantVarFlow::changeoverDelayTimePeriodSchedule() const { | |
| 743 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->changeoverDelayTimePeriodSchedule(); |
| 744 | } | ||
| 745 | |||
| 746 | 7 | bool ZoneHVACLowTempRadiantVarFlow::setAvailabilitySchedule(Schedule& schedule) { | |
| 747 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setAvailabilitySchedule(schedule); |
| 748 | } | ||
| 749 | |||
| 750 | 11 | bool ZoneHVACLowTempRadiantVarFlow::setHeatingCoil(HVACComponent& heatingCoil) { | |
| 751 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setHeatingCoil(heatingCoil); |
| 752 | } | ||
| 753 | |||
| 754 | 11 | bool ZoneHVACLowTempRadiantVarFlow::setCoolingCoil(HVACComponent& coolingCoil) { | |
| 755 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setCoolingCoil(coolingCoil); |
| 756 | } | ||
| 757 | |||
| 758 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetHeatingCoil() { | |
| 759 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetHeatingCoil(); |
| 760 | } | ||
| 761 | |||
| 762 | ✗ | void ZoneHVACLowTempRadiantVarFlow::resetCoolingCoil() { | |
| 763 | ✗ | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetCoolingCoil(); | |
| 764 | } | ||
| 765 | |||
| 766 | 5 | bool ZoneHVACLowTempRadiantVarFlow::setRadiantSurfaceType(const std::string& radiantSurfaceType) { | |
| 767 |
2/2✓ Branch 3 taken 5 times.
✓ Branch 6 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setRadiantSurfaceType(radiantSurfaceType); |
| 768 | } | ||
| 769 | |||
| 770 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetRadiantSurfaceType() { | |
| 771 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetRadiantSurfaceType(); |
| 772 | 1 | } | |
| 773 | |||
| 774 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setFluidtoRadiantSurfaceHeatTransferModel(const std::string& fluidtoRadiantSurfaceHeatTransferModel) { | |
| 775 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setFluidtoRadiantSurfaceHeatTransferModel(fluidtoRadiantSurfaceHeatTransferModel); |
| 776 | } | ||
| 777 | |||
| 778 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetFluidtoRadiantSurfaceHeatTransferModel() { | |
| 779 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetFluidtoRadiantSurfaceHeatTransferModel(); |
| 780 | 1 | } | |
| 781 | |||
| 782 | 2 | bool ZoneHVACLowTempRadiantVarFlow::setHydronicTubingInsideDiameter(double hydronicTubingInsideDiameter) { | |
| 783 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setHydronicTubingInsideDiameter(hydronicTubingInsideDiameter); |
| 784 | } | ||
| 785 | |||
| 786 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetHydronicTubingInsideDiameter() { | |
| 787 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetHydronicTubingInsideDiameter(); |
| 788 | 1 | } | |
| 789 | |||
| 790 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setHydronicTubingOutsideDiameter(double hydronicTubingOutsideDiameter) { | |
| 791 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setHydronicTubingOutsideDiameter(hydronicTubingOutsideDiameter); |
| 792 | } | ||
| 793 | |||
| 794 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetHydronicTubingOutsideDiameter() { | |
| 795 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetHydronicTubingOutsideDiameter(); |
| 796 | 1 | } | |
| 797 | |||
| 798 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setHydronicTubingLength(double hydronicTubingLength) { | |
| 799 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setHydronicTubingLength(hydronicTubingLength); |
| 800 | } | ||
| 801 | |||
| 802 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetHydronicTubingLength() { | |
| 803 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetHydronicTubingLength(); |
| 804 | 1 | } | |
| 805 | |||
| 806 | 1 | void ZoneHVACLowTempRadiantVarFlow::autosizeHydronicTubingLength() { | |
| 807 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->autosizeHydronicTubingLength(); |
| 808 | 1 | } | |
| 809 | |||
| 810 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setHydronicTubingConductivity(double hydronicTubingConductivity) { | |
| 811 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setHydronicTubingConductivity(hydronicTubingConductivity); |
| 812 | } | ||
| 813 | |||
| 814 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetHydronicTubingConductivity() { | |
| 815 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetHydronicTubingConductivity(); |
| 816 | 1 | } | |
| 817 | |||
| 818 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setTemperatureControlType(const std::string& temperatureControlType) { | |
| 819 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setTemperatureControlType(temperatureControlType); |
| 820 | } | ||
| 821 | |||
| 822 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetTemperatureControlType() { | |
| 823 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetTemperatureControlType(); |
| 824 | 1 | } | |
| 825 | |||
| 826 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setSetpointControlType(const std::string& setpointControlType) { | |
| 827 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setSetpointControlType(setpointControlType); |
| 828 | } | ||
| 829 | |||
| 830 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetSetpointControlType() { | |
| 831 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetSetpointControlType(); |
| 832 | 1 | } | |
| 833 | |||
| 834 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setNumberofCircuits(const std::string& numCircs) { | |
| 835 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setNumberofCircuits(numCircs); |
| 836 | } | ||
| 837 | |||
| 838 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setCircuitLength(double circLength) { | |
| 839 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setCircuitLength(circLength); |
| 840 | } | ||
| 841 | |||
| 842 | 1 | bool ZoneHVACLowTempRadiantVarFlow::setChangeoverDelayTimePeriodSchedule(Schedule& schedule) { | |
| 843 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->setChangeoverDelayTimePeriodSchedule(schedule); |
| 844 | } | ||
| 845 | |||
| 846 | 1 | void ZoneHVACLowTempRadiantVarFlow::resetChangeoverDelayTimePeriodSchedule() { | |
| 847 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->resetChangeoverDelayTimePeriodSchedule(); |
| 848 | 1 | } | |
| 849 | |||
| 850 | 7 | boost::optional<ThermalZone> ZoneHVACLowTempRadiantVarFlow::thermalZone() const { | |
| 851 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->thermalZone(); |
| 852 | } | ||
| 853 | |||
| 854 | 6 | bool ZoneHVACLowTempRadiantVarFlow::addToThermalZone(ThermalZone& thermalZone) { | |
| 855 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->addToThermalZone(thermalZone); |
| 856 | } | ||
| 857 | |||
| 858 | 1 | void ZoneHVACLowTempRadiantVarFlow::removeFromThermalZone() { | |
| 859 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->removeFromThermalZone(); |
| 860 | } | ||
| 861 | /// @cond | ||
| 862 | 33 | ZoneHVACLowTempRadiantVarFlow::ZoneHVACLowTempRadiantVarFlow(std::shared_ptr<detail::ZoneHVACLowTempRadiantVarFlow_Impl> impl) | |
| 863 |
1/1✓ Branch 3 taken 33 times.
|
33 | : ZoneHVACComponent(std::move(impl)) {} |
| 864 | /// @endcond | ||
| 865 | |||
| 866 | ✗ | boost::optional<double> ZoneHVACLowTempRadiantVarFlow::autosizedHydronicTubingLength() const { | |
| 867 | ✗ | return getImpl<detail::ZoneHVACLowTempRadiantVarFlow_Impl>()->autosizedHydronicTubingLength(); | |
| 868 | } | ||
| 869 | |||
| 870 | } // namespace model | ||
| 871 | } // namespace openstudio | ||
| 872 |