src/model/AirLoopHVACSupplyPlenum.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 "AirLoopHVAC.hpp" | ||
| 7 | #include "AirLoopHVAC_Impl.hpp" | ||
| 8 | #include "AirLoopHVACZoneSplitter.hpp" | ||
| 9 | #include "AirLoopHVACZoneSplitter_Impl.hpp" | ||
| 10 | #include "AirLoopHVACSupplyPlenum.hpp" | ||
| 11 | #include "AirLoopHVACSupplyPlenum_Impl.hpp" | ||
| 12 | #include "AirLoopHVACReturnPlenum.hpp" | ||
| 13 | #include "AirLoopHVACReturnPlenum_Impl.hpp" | ||
| 14 | #include "AirLoopHVACZoneMixer.hpp" | ||
| 15 | #include "AirLoopHVACZoneMixer_Impl.hpp" | ||
| 16 | #include "ThermalZone.hpp" | ||
| 17 | #include "ThermalZone_Impl.hpp" | ||
| 18 | #include "Model.hpp" | ||
| 19 | #include "Model_Impl.hpp" | ||
| 20 | #include "Node.hpp" | ||
| 21 | #include "Node_Impl.hpp" | ||
| 22 | #include "AirTerminalSingleDuctConstantVolumeNoReheat.hpp" | ||
| 23 | #include "AirTerminalSingleDuctConstantVolumeNoReheat_Impl.hpp" | ||
| 24 | |||
| 25 | #include "../utilities/data/DataEnums.hpp" | ||
| 26 | |||
| 27 | #include <utilities/idd/OS_AirLoopHVAC_SupplyPlenum_FieldEnums.hxx> | ||
| 28 | #include <utilities/idd/IddEnums.hxx> | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 10 | AirLoopHVACSupplyPlenum_Impl::AirLoopHVACSupplyPlenum_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 36 | 10 | : Splitter_Impl(idfObject, model, keepHandle) { | |
| 37 |
4/6✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
|
10 | OS_ASSERT(idfObject.iddObject().type() == AirLoopHVACSupplyPlenum::iddObjectType()); |
| 38 | 10 | } | |
| 39 | |||
| 40 | ✗ | AirLoopHVACSupplyPlenum_Impl::AirLoopHVACSupplyPlenum_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 41 | ✗ | bool keepHandle) | |
| 42 | ✗ | : Splitter_Impl(other, model, keepHandle) { | |
| 43 | ✗ | OS_ASSERT(other.iddObject().type() == AirLoopHVACSupplyPlenum::iddObjectType()); | |
| 44 | ✗ | } | |
| 45 | |||
| 46 | ✗ | AirLoopHVACSupplyPlenum_Impl::AirLoopHVACSupplyPlenum_Impl(const AirLoopHVACSupplyPlenum_Impl& other, Model_Impl* model, bool keepHandle) | |
| 47 | ✗ | : Splitter_Impl(other, model, keepHandle) {} | |
| 48 | |||
| 49 | ✗ | const std::vector<std::string>& AirLoopHVACSupplyPlenum_Impl::outputVariableNames() const { | |
| 50 | ✗ | static const std::vector<std::string> result; | |
| 51 | ✗ | return result; | |
| 52 | } | ||
| 53 | |||
| 54 | 44 | IddObjectType AirLoopHVACSupplyPlenum_Impl::iddObjectType() const { | |
| 55 | 44 | return AirLoopHVACSupplyPlenum::iddObjectType(); | |
| 56 | } | ||
| 57 | |||
| 58 | 75 | boost::optional<ThermalZone> AirLoopHVACSupplyPlenum_Impl::thermalZone() const { | |
| 59 |
2/2✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
|
75 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_AirLoopHVAC_SupplyPlenumFields::ThermalZone); |
| 60 | } | ||
| 61 | |||
| 62 | 9 | bool AirLoopHVACSupplyPlenum_Impl::setThermalZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 63 | 9 | bool result(false); | |
| 64 | |||
| 65 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
|
9 | if (!thermalZone) { |
| 66 | ✗ | resetThermalZone(); | |
| 67 | ✗ | result = true; | |
| 68 |
3/9✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
|
18 | } else if ((!thermalZone->getImpl<ThermalZone_Impl>()->airLoopHVACSupplyPlenum()) |
| 69 |
9/20✓ Branch 1 taken 9 times.
✓ Branch 6 taken 9 times.
✓ Branch 9 taken 9 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 9 times.
✓ Branch 15 taken 9 times.
✓ Branch 18 taken 9 times.
✗ Branch 19 not taken.
✓ Branch 21 taken 9 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 9 times.
✗ Branch 25 not taken.
✓ Branch 27 taken 9 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
|
18 | && (!thermalZone->getImpl<ThermalZone_Impl>()->airLoopHVACReturnPlenum()) && (thermalZone->equipment().empty()) |
| 70 |
6/9✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 9 times.
✓ Branch 10 taken 9 times.
✓ Branch 12 taken 9 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 9 times.
✗ Branch 15 not taken.
|
27 | && (!thermalZone->useIdealAirLoads())) { |
| 71 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
9 | result = setPointer(OS_AirLoopHVAC_SupplyPlenumFields::ThermalZone, thermalZone.get().handle()); |
| 72 | } | ||
| 73 | |||
| 74 | 9 | return result; | |
| 75 | } | ||
| 76 | |||
| 77 | ✗ | void AirLoopHVACSupplyPlenum_Impl::resetThermalZone() { | |
| 78 | ✗ | bool result = setString(OS_AirLoopHVAC_SupplyPlenumFields::ThermalZone, ""); | |
| 79 | ✗ | OS_ASSERT(result); | |
| 80 | ✗ | } | |
| 81 | |||
| 82 | 12 | unsigned AirLoopHVACSupplyPlenum_Impl::inletPort() const { | |
| 83 | 12 | return OS_AirLoopHVAC_SupplyPlenumFields::InletNode; | |
| 84 | } | ||
| 85 | |||
| 86 | 1629 | unsigned AirLoopHVACSupplyPlenum_Impl::outletPort(unsigned branchIndex) const { | |
| 87 | unsigned result; | ||
| 88 | 1629 | result = numNonextensibleFields(); | |
| 89 | 1629 | result = result + branchIndex; | |
| 90 | 1629 | return result; | |
| 91 | } | ||
| 92 | |||
| 93 | 15 | unsigned AirLoopHVACSupplyPlenum_Impl::nextOutletPort() const { | |
| 94 | 15 | return outletPort(this->nextBranchIndex()); | |
| 95 | } | ||
| 96 | |||
| 97 | 15 | bool AirLoopHVACSupplyPlenum_Impl::addToNode(Node& node) { | |
| 98 | 15 | bool result = true; | |
| 99 | |||
| 100 |
1/1✓ Branch 1 taken 15 times.
|
15 | Model _model = model(); |
| 101 | |||
| 102 | // Is the node in this model | ||
| 103 |
3/4✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 15 times.
|
15 | if (node.model() != _model) { |
| 104 | ✗ | result = false; | |
| 105 | } | ||
| 106 | |||
| 107 | // Is the node part of an air loop | ||
| 108 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<AirLoopHVAC> nodeAirLoop = node.airLoopHVAC(); |
| 109 | |||
| 110 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!nodeAirLoop) { |
| 111 | ✗ | result = false; | |
| 112 | } | ||
| 113 | |||
| 114 | // Is this plenum already connected to a different air loop | ||
| 115 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<AirLoopHVAC> currentAirLoopHVAC = airLoopHVAC(); |
| 116 |
6/8✓ Branch 0 taken 8 times.
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 8 times.
✓ Branch 6 taken 8 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 8 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 15 times.
|
15 | if (currentAirLoopHVAC && (currentAirLoopHVAC.get() != nodeAirLoop)) { |
| 117 | ✗ | result = false; | |
| 118 | } | ||
| 119 | |||
| 120 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<ModelObject> inletObj = node.inletModelObject(); |
| 121 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<ModelObject> outletObj = node.outletModelObject(); |
| 122 | 15 | boost::optional<AirTerminalSingleDuctConstantVolumeNoReheat> directAirModelObject; | |
| 123 | 15 | boost::optional<ModelObject> directAirInletModelObject; | |
| 124 | |||
| 125 |
6/12✓ Branch 1 taken 15 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 15 times.
✓ Branch 7 taken 15 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 15 times.
✓ Branch 12 taken 15 times.
✗ Branch 13 not taken.
✗ Branch 15 not taken.
✓ Branch 16 taken 15 times.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
45 | if (inletObj && inletObj->optionalCast<AirTerminalSingleDuctConstantVolumeNoReheat>()) { |
| 126 | ✗ | directAirModelObject = inletObj->cast<AirTerminalSingleDuctConstantVolumeNoReheat>(); | |
| 127 | ✗ | directAirInletModelObject = directAirModelObject->inletModelObject(); | |
| 128 | } | ||
| 129 | |||
| 130 | // Is the immediate upstream object to the node a splitter | ||
| 131 | // or a direct air terminal (special case since this guy oddly does not have an inlet node) | ||
| 132 | 15 | boost::optional<AirLoopHVACZoneSplitter> splitter; | |
| 133 | |||
| 134 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | if (result) { |
| 135 |
3/3✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✓ Branch 7 taken 15 times.
|
15 | splitter = nodeAirLoop->zoneSplitter(); |
| 136 | |||
| 137 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (directAirInletModelObject) { |
| 138 | ✗ | if (!(splitter && (directAirInletModelObject.get() == splitter.get()))) { | |
| 139 | ✗ | result = false; | |
| 140 | } | ||
| 141 |
7/11✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 15 times.
✓ Branch 8 taken 15 times.
✓ Branch 11 taken 15 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 15 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 15 times.
|
30 | } else if (!(inletObj && splitter && (inletObj.get() == splitter.get()))) { |
| 142 | ✗ | result = false; | |
| 143 | } | ||
| 144 | } | ||
| 145 | |||
| 146 | // Is there a zone on this branch | ||
| 147 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | if (result) { |
| 148 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
15 | Mixer mixer = nodeAirLoop->zoneMixer(); |
| 149 |
4/5✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✓ Branch 7 taken 15 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 15 times.
|
15 | if (nodeAirLoop->demandComponents(node, mixer, ThermalZone::iddObjectType()).empty()) { |
| 150 | ✗ | result = false; | |
| 151 | } | ||
| 152 | 15 | } | |
| 153 | |||
| 154 | unsigned oldOutletObjectPort; | ||
| 155 | unsigned oldInletObjectPort; | ||
| 156 | 15 | boost::optional<ModelObject> oldInletModelObject; | |
| 157 | 15 | boost::optional<ModelObject> oldOutletModelObject; | |
| 158 | |||
| 159 | // Record the old port connections | ||
| 160 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | if (result) { |
| 161 |
1/1✓ Branch 1 taken 15 times.
|
15 | oldInletModelObject = splitter; |
| 162 | |||
| 163 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | if (directAirModelObject) { |
| 164 | ✗ | oldOutletModelObject = directAirModelObject; | |
| 165 | ✗ | oldOutletObjectPort = directAirModelObject->inletPort(); | |
| 166 | ✗ | oldInletObjectPort = directAirModelObject->connectedObjectPort(directAirModelObject->inletPort()).get(); | |
| 167 | } else { | ||
| 168 |
1/1✓ Branch 1 taken 15 times.
|
15 | oldOutletModelObject = node; |
| 169 |
1/1✓ Branch 1 taken 15 times.
|
15 | oldOutletObjectPort = node.inletPort(); |
| 170 |
3/3✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✓ Branch 7 taken 15 times.
|
15 | oldInletObjectPort = node.connectedObjectPort(node.inletPort()).get(); |
| 171 | } | ||
| 172 | } | ||
| 173 | |||
| 174 | // Create a new node and connect the plenum | ||
| 175 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | if (result) { |
| 176 |
1/1✓ Branch 1 taken 15 times.
|
15 | auto thisObject = getObject<AirLoopHVACSupplyPlenum>(); |
| 177 | |||
| 178 |
2/2✓ Branch 0 taken 8 times.
✓ Branch 1 taken 7 times.
|
15 | if (currentAirLoopHVAC) { |
| 179 |
6/6✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
✓ Branch 13 taken 8 times.
✓ Branch 16 taken 8 times.
|
8 | splitter->removePortForBranch(splitter->branchIndexForOutletModelObject(oldOutletModelObject.get())); |
| 180 |
5/5✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 8 times.
✓ Branch 13 taken 8 times.
|
8 | _model.connect(thisObject, thisObject.nextOutletPort(), oldOutletModelObject.get(), oldOutletObjectPort); |
| 181 | } else { | ||
| 182 |
1/1✓ Branch 1 taken 7 times.
|
7 | Node plenumInletNode(_model); |
| 183 |
1/1✓ Branch 1 taken 7 times.
|
7 | plenumInletNode.createName(); |
| 184 | |||
| 185 |
5/5✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 7 times.
✓ Branch 13 taken 7 times.
|
7 | _model.connect(oldInletModelObject.get(), oldInletObjectPort, plenumInletNode, plenumInletNode.inletPort()); |
| 186 |
5/5✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 7 times.
✓ Branch 13 taken 7 times.
|
7 | _model.connect(plenumInletNode, plenumInletNode.outletPort(), thisObject, thisObject.inletPort()); |
| 187 |
5/5✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 7 times.
✓ Branch 13 taken 7 times.
|
7 | _model.connect(thisObject, thisObject.nextOutletPort(), oldOutletModelObject.get(), oldOutletObjectPort); |
| 188 | 7 | } | |
| 189 | 15 | } | |
| 190 | |||
| 191 | 15 | return result; | |
| 192 | 15 | } | |
| 193 | |||
| 194 | ✗ | bool AirLoopHVACSupplyPlenum_Impl::addBranchForZone(openstudio::model::ThermalZone& thermalZone, HVACComponent& terminal) { | |
| 195 | ✗ | boost::optional<HVACComponent> t_terminal = terminal; | |
| 196 | |||
| 197 | ✗ | return AirLoopHVACSupplyPlenum_Impl::addBranchForZoneImpl(thermalZone, t_terminal); | |
| 198 | ✗ | } | |
| 199 | |||
| 200 | ✗ | bool AirLoopHVACSupplyPlenum_Impl::addBranchForZone(openstudio::model::ThermalZone& thermalZone) { | |
| 201 | ✗ | boost::optional<HVACComponent> t_terminal; | |
| 202 | |||
| 203 | ✗ | return AirLoopHVACSupplyPlenum_Impl::addBranchForZoneImpl(thermalZone, t_terminal); | |
| 204 | ✗ | } | |
| 205 | |||
| 206 | ✗ | bool AirLoopHVACSupplyPlenum_Impl::addBranchForZoneImpl(openstudio::model::ThermalZone& thermalZone, boost::optional<HVACComponent>& terminal) { | |
| 207 | ✗ | boost::optional<Splitter> splitter = getObject<AirLoopHVACSupplyPlenum>(); | |
| 208 | ✗ | boost::optional<Mixer> mixer; | |
| 209 | |||
| 210 | ✗ | boost::optional<AirLoopHVAC> t_airLoopHVAC = airLoopHVAC(); | |
| 211 | |||
| 212 | ✗ | if (!t_airLoopHVAC) { | |
| 213 | ✗ | return false; | |
| 214 | } | ||
| 215 | |||
| 216 | ✗ | std::vector<ModelObject> returnPlenums; | |
| 217 | ✗ | returnPlenums = t_airLoopHVAC->demandComponents(splitter.get(), t_airLoopHVAC->demandOutletNode(), AirLoopHVACReturnPlenum::iddObjectType()); | |
| 218 | |||
| 219 | ✗ | if (returnPlenums.size() == 1u) { | |
| 220 | ✗ | mixer = returnPlenums.front().cast<Mixer>(); | |
| 221 | } else { | ||
| 222 | ✗ | mixer = t_airLoopHVAC->zoneMixer(); | |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | OS_ASSERT(splitter); | |
| 226 | ✗ | OS_ASSERT(mixer); | |
| 227 | |||
| 228 | ✗ | return AirLoopHVAC_Impl::addBranchForZoneImpl(thermalZone, t_airLoopHVAC.get(), splitter.get(), mixer.get(), true, terminal); | |
| 229 | ✗ | } | |
| 230 | |||
| 231 | 5 | std::vector<IdfObject> AirLoopHVACSupplyPlenum_Impl::remove() { | |
| 232 |
1/1✓ Branch 1 taken 5 times.
|
5 | Model t_model = model(); |
| 233 | |||
| 234 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (boost::optional<AirLoopHVAC> t_airLoopHVAC = airLoopHVAC()) { |
| 235 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | AirLoopHVACZoneSplitter zoneSplitter = t_airLoopHVAC->zoneSplitter(); |
| 236 |
1/1✓ Branch 1 taken 5 times.
|
5 | std::vector<ModelObject> t_outletModelObjects = outletModelObjects(); |
| 237 | |||
| 238 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 4 taken 5 times.
|
16 | for (auto it = t_outletModelObjects.rbegin(); it != t_outletModelObjects.rend(); ++it) { |
| 239 |
2/2✓ Branch 2 taken 11 times.
✓ Branch 5 taken 11 times.
|
11 | unsigned branchIndex = branchIndexForOutletModelObject(*it); |
| 240 |
1/1✓ Branch 1 taken 11 times.
|
11 | unsigned t_outletPort = outletPort(branchIndex); |
| 241 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | unsigned connectedObjectInletPort = connectedObjectPort(t_outletPort).get(); |
| 242 | |||
| 243 |
4/4✓ Branch 2 taken 11 times.
✓ Branch 5 taken 11 times.
✓ Branch 8 taken 11 times.
✓ Branch 11 taken 11 times.
|
11 | t_model.connect(zoneSplitter, zoneSplitter.nextOutletPort(), *it, connectedObjectInletPort); |
| 244 | } | ||
| 245 | |||
| 246 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<ModelObject> mo = inletModelObject(); |
| 247 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(mo); |
| 248 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | boost::optional<Node> node = mo->optionalCast<Node>(); |
| 249 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(node); |
| 250 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | zoneSplitter.removePortForBranch(zoneSplitter.branchIndexForOutletModelObject(node.get())); |
| 251 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | node->remove(); |
| 252 | 10 | } | |
| 253 | |||
| 254 |
1/1✓ Branch 1 taken 5 times.
|
10 | return Splitter_Impl::remove(); |
| 255 | 5 | } | |
| 256 | |||
| 257 | ✗ | ComponentType AirLoopHVACSupplyPlenum_Impl::componentType() const { | |
| 258 | ✗ | return ComponentType::None; | |
| 259 | } | ||
| 260 | |||
| 261 | ✗ | std::vector<FuelType> AirLoopHVACSupplyPlenum_Impl::coolingFuelTypes() const { | |
| 262 | ✗ | return {}; | |
| 263 | } | ||
| 264 | |||
| 265 | ✗ | std::vector<FuelType> AirLoopHVACSupplyPlenum_Impl::heatingFuelTypes() const { | |
| 266 | ✗ | return {}; | |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | std::vector<AppGFuelType> AirLoopHVACSupplyPlenum_Impl::appGHeatingFuelTypes() const { | |
| 270 | ✗ | return {}; | |
| 271 | } | ||
| 272 | |||
| 273 | } // namespace detail | ||
| 274 | |||
| 275 | 10 | AirLoopHVACSupplyPlenum::AirLoopHVACSupplyPlenum(const Model& model) : Splitter(AirLoopHVACSupplyPlenum::iddObjectType(), model) { | |
| 276 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 5 not taken.
|
10 | OS_ASSERT(getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()); |
| 277 | 10 | } | |
| 278 | |||
| 279 | 28826 | IddObjectType AirLoopHVACSupplyPlenum::iddObjectType() { | |
| 280 |
1/1✓ Branch 1 taken 28826 times.
|
28826 | return {IddObjectType::OS_AirLoopHVAC_SupplyPlenum}; |
| 281 | } | ||
| 282 | |||
| 283 | 75 | boost::optional<ThermalZone> AirLoopHVACSupplyPlenum::thermalZone() const { | |
| 284 |
1/1✓ Branch 3 taken 75 times.
|
75 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->thermalZone(); |
| 285 | } | ||
| 286 | |||
| 287 | 9 | bool AirLoopHVACSupplyPlenum::setThermalZone(const ThermalZone& thermalZone) { | |
| 288 |
2/2✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
|
9 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->setThermalZone(thermalZone); |
| 289 | } | ||
| 290 | |||
| 291 | ✗ | void AirLoopHVACSupplyPlenum::resetThermalZone() { | |
| 292 | ✗ | getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->resetThermalZone(); | |
| 293 | ✗ | } | |
| 294 | |||
| 295 | 7 | unsigned AirLoopHVACSupplyPlenum::inletPort() const { | |
| 296 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->inletPort(); |
| 297 | } | ||
| 298 | |||
| 299 | 2 | unsigned AirLoopHVACSupplyPlenum::outletPort(unsigned branchIndex) const { | |
| 300 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->outletPort(branchIndex); |
| 301 | } | ||
| 302 | |||
| 303 | 15 | unsigned AirLoopHVACSupplyPlenum::nextOutletPort() const { | |
| 304 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->nextOutletPort(); |
| 305 | } | ||
| 306 | |||
| 307 | 15 | bool AirLoopHVACSupplyPlenum::addToNode(Node& node) { | |
| 308 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->addToNode(node); |
| 309 | } | ||
| 310 | |||
| 311 | ✗ | bool AirLoopHVACSupplyPlenum::addBranchForZone(openstudio::model::ThermalZone& thermalZone) { | |
| 312 | ✗ | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->addBranchForZone(thermalZone); | |
| 313 | } | ||
| 314 | |||
| 315 | ✗ | bool AirLoopHVACSupplyPlenum::addBranchForZone(openstudio::model::ThermalZone& thermalZone, HVACComponent& terminal) { | |
| 316 | ✗ | return getImpl<detail::AirLoopHVACSupplyPlenum_Impl>()->addBranchForZone(thermalZone, terminal); | |
| 317 | } | ||
| 318 | |||
| 319 | /// @cond | ||
| 320 |
1/1✓ Branch 3 taken 104 times.
|
104 | AirLoopHVACSupplyPlenum::AirLoopHVACSupplyPlenum(std::shared_ptr<detail::AirLoopHVACSupplyPlenum_Impl> impl) : Splitter(std::move(impl)) {} |
| 321 | /// @endcond | ||
| 322 | |||
| 323 | } // namespace model | ||
| 324 | } // namespace openstudio | ||
| 325 |