src/model/AirTerminalSingleDuctConstantVolumeCooledBeam.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 "AirTerminalSingleDuctConstantVolumeCooledBeam.hpp" | ||
| 7 | #include "AirTerminalSingleDuctConstantVolumeCooledBeam_Impl.hpp" | ||
| 8 | #include "Schedule.hpp" | ||
| 9 | #include "Schedule_Impl.hpp" | ||
| 10 | #include "ScheduleTypeLimits.hpp" | ||
| 11 | #include "ScheduleTypeRegistry.hpp" | ||
| 12 | #include "StraightComponent.hpp" | ||
| 13 | #include "StraightComponent_Impl.hpp" | ||
| 14 | #include "CoilCoolingCooledBeam.hpp" | ||
| 15 | #include "CoilCoolingCooledBeam_Impl.hpp" | ||
| 16 | #include "Model.hpp" | ||
| 17 | #include "Model_Impl.hpp" | ||
| 18 | #include "AirLoopHVAC.hpp" | ||
| 19 | #include "AirLoopHVAC_Impl.hpp" | ||
| 20 | #include "Node.hpp" | ||
| 21 | #include "Node_Impl.hpp" | ||
| 22 | #include "PortList.hpp" | ||
| 23 | #include "PortList_Impl.hpp" | ||
| 24 | #include "HVACComponent.hpp" | ||
| 25 | #include "HVACComponent_Impl.hpp" | ||
| 26 | #include "AirLoopHVACZoneSplitter.hpp" | ||
| 27 | #include "AirLoopHVACZoneSplitter_Impl.hpp" | ||
| 28 | #include "AirLoopHVACZoneMixer.hpp" | ||
| 29 | #include "AirLoopHVACZoneMixer_Impl.hpp" | ||
| 30 | #include "ThermalZone.hpp" | ||
| 31 | #include "ThermalZone_Impl.hpp" | ||
| 32 | #include <utilities/idd/IddFactory.hxx> | ||
| 33 | |||
| 34 | #include <utilities/idd/OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeam_FieldEnums.hxx> | ||
| 35 | #include <utilities/idd/IddEnums.hxx> | ||
| 36 | #include "../utilities/core/Compare.hpp" | ||
| 37 | #include "../utilities/core/Assert.hpp" | ||
| 38 | #include "../utilities/data/DataEnums.hpp" | ||
| 39 | |||
| 40 | namespace openstudio { | ||
| 41 | namespace model { | ||
| 42 | |||
| 43 | namespace detail { | ||
| 44 | |||
| 45 | 4 | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl(const IdfObject& idfObject, | |
| 46 | 4 | Model_Impl* model, bool keepHandle) | |
| 47 | 4 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 48 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctConstantVolumeCooledBeam::iddObjectType()); |
| 49 | 4 | } | |
| 50 | |||
| 51 | ✗ | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl( | |
| 52 | ✗ | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 53 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 54 | ✗ | OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctConstantVolumeCooledBeam::iddObjectType()); | |
| 55 | ✗ | } | |
| 56 | |||
| 57 | 8 | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl( | |
| 58 | 8 | const AirTerminalSingleDuctConstantVolumeCooledBeam_Impl& other, Model_Impl* model, bool keepHandle) | |
| 59 | 8 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 60 | |||
| 61 | ✗ | const std::vector<std::string>& AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::outputVariableNames() const { | |
| 62 | static const std::vector<std::string> result{// These apply to all AirTerminals | ||
| 63 | "Zone Air Terminal Sensible Heating Energy", | ||
| 64 | "Zone Air Terminal Sensible Heating Rate", | ||
| 65 | "Zone Air Terminal Sensible Cooling Energy", | ||
| 66 | "Zone Air Terminal Sensible Cooling Rate", | ||
| 67 | |||
| 68 | "Zone Air Terminal Beam Sensible Cooling Energy", | ||
| 69 | "Zone Air Terminal Beam Sensible Cooling Rate", | ||
| 70 | "Zone Air Terminal Supply Air Sensible Cooling Energy", | ||
| 71 | "Zone Air Terminal Supply Air Sensible Cooling Rate", | ||
| 72 | "Zone Air Terminal Supply Air Sensible Heating Energy", | ||
| 73 | "Zone Air Terminal Supply Air Sensible Heating Rate", | ||
| 74 | ✗ | "Zone Air Terminal Beam Chilled Water Energy"}; | |
| 75 | ✗ | return result; | |
| 76 | ✗ | } | |
| 77 | |||
| 78 | 3 | IddObjectType AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::iddObjectType() const { | |
| 79 | 3 | return AirTerminalSingleDuctConstantVolumeCooledBeam::iddObjectType(); | |
| 80 | } | ||
| 81 | |||
| 82 | ✗ | std::vector<ScheduleTypeKey> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 83 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 84 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 85 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 86 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 87 | ✗ | if (std::find(b, e, OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::AvailabilityScheduleName) != e) { | |
| 88 | ✗ | result.push_back(ScheduleTypeKey("AirTerminalSingleDuctConstantVolumeCooledBeam", "Availability")); | |
| 89 | } | ||
| 90 | ✗ | return result; | |
| 91 | ✗ | } | |
| 92 | |||
| 93 | 1 | Schedule AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::availabilitySchedule() const { | |
| 94 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 95 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
|
1 | if (!value) { |
| 96 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 97 | ✗ | OS_ASSERT(value); | |
| 98 | ✗ | const_cast<AirTerminalSingleDuctConstantVolumeCooledBeam_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 99 | ✗ | value = optionalAvailabilitySchedule(); | |
| 100 | } | ||
| 101 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 102 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 103 | 1 | } | |
| 104 | |||
| 105 | 5 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 106 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
20 | bool result = setSchedule(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::AvailabilityScheduleName, |
| 107 | "AirTerminalSingleDuctConstantVolumeCooledBeam", "Availability", schedule); | ||
| 108 | 5 | return result; | |
| 109 | } | ||
| 110 | 8 | unsigned AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::inletPort() const { | |
| 111 | 8 | return OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirInletNodeName; | |
| 112 | } | ||
| 113 | |||
| 114 | 24 | unsigned AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::outletPort() const { | |
| 115 | 24 | return OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirOutletNodeName; | |
| 116 | } | ||
| 117 | |||
| 118 | 8 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::addToNode(Node& node) { | |
| 119 |
1/1✓ Branch 1 taken 8 times.
|
8 | Model _model = node.model(); |
| 120 | |||
| 121 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<ModelObject> outlet = node.outletModelObject()) { |
| 122 | 8 | boost::optional<ThermalZone> thermalZone; | |
| 123 | |||
| 124 |
4/4✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 6 times.
|
16 | if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) { |
| 125 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | thermalZone = portList->thermalZone(); |
| 126 | 8 | } | |
| 127 | |||
| 128 |
14/19✓ Branch 1 taken 6 times.
✓ Branch 2 taken 2 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 4 times.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 2 times.
✓ Branch 19 taken 6 times.
✓ Branch 21 taken 6 times.
✓ Branch 22 taken 2 times.
✓ Branch 24 taken 4 times.
✓ Branch 25 taken 4 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
|
24 | if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) { |
| 129 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
8 | if (boost::optional<ModelObject> inlet = node.inletModelObject()) { |
| 130 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 6 taken 4 times.
✗ Branch 7 not taken.
|
8 | if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) { |
| 131 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<ModelObject> sourceModelObject = inlet; |
| 132 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort()); |
| 133 | |||
| 134 |
3/6✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
✗ Branch 5 not taken.
|
8 | if (sourcePort && sourceModelObject) { |
| 135 |
1/1✓ Branch 1 taken 4 times.
|
4 | Node inletNode(_model); |
| 136 | |||
| 137 |
6/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
✓ Branch 16 taken 4 times.
|
4 | _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort()); |
| 138 | |||
| 139 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | _model.connect(inletNode, inletNode.outletPort(), this->getObject<ModelObject>(), this->inletPort()); |
| 140 | |||
| 141 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | _model.connect(this->getObject<ModelObject>(), outletPort(), node, node.inletPort()); |
| 142 | |||
| 143 |
2/2✓ Branch 0 taken 2 times.
✓ Branch 1 taken 2 times.
|
4 | if (thermalZone) { |
| 144 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto mo = this->getObject<AirTerminalSingleDuctConstantVolumeCooledBeam>(); |
| 145 | |||
| 146 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | thermalZone->addEquipment(mo); |
| 147 | 2 | } | |
| 148 | |||
| 149 | 4 | return true; | |
| 150 | 4 | } | |
| 151 | 8 | } | |
| 152 | 4 | } | |
| 153 | } | ||
| 154 | 16 | } | |
| 155 | |||
| 156 | 4 | return false; | |
| 157 | 8 | } | |
| 158 | |||
| 159 | ✗ | std::vector<IdfObject> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::remove() { | |
| 160 | ✗ | Model _model = this->model(); | |
| 161 | ✗ | auto thisObject = this->getObject<ModelObject>(); | |
| 162 | |||
| 163 | ✗ | HVACComponent _coolingCoil = coilCoolingCooledBeam(); | |
| 164 | |||
| 165 | ✗ | boost::optional<ModelObject> sourceModelObject = this->inletModelObject(); | |
| 166 | ✗ | boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort()); | |
| 167 | |||
| 168 | ✗ | boost::optional<ModelObject> targetModelObject = this->outletModelObject(); | |
| 169 | ✗ | boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort()); | |
| 170 | |||
| 171 | ✗ | std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>(); | |
| 172 | ✗ | for (auto& thermalZone : thermalZones) { | |
| 173 | ✗ | std::vector<ModelObject> equipment = thermalZone.equipment(); | |
| 174 | |||
| 175 | ✗ | if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) { | |
| 176 | ✗ | thermalZone.removeEquipment(thisObject); | |
| 177 | |||
| 178 | ✗ | break; | |
| 179 | } | ||
| 180 | ✗ | } | |
| 181 | |||
| 182 | ✗ | if (sourcePort && sourceModelObject && targetPort && targetModelObject) { | |
| 183 | ✗ | if (boost::optional<Node> inletNode = sourceModelObject->optionalCast<Node>()) { | |
| 184 | ✗ | if (boost::optional<ModelObject> source2ModelObject = inletNode->inletModelObject()) { | |
| 185 | ✗ | if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) { | |
| 186 | ✗ | _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get()); | |
| 187 | |||
| 188 | ✗ | inletNode->disconnect(); | |
| 189 | ✗ | inletNode->remove(); | |
| 190 | |||
| 191 | ✗ | if (boost::optional<PlantLoop> loop = _coolingCoil.plantLoop()) { | |
| 192 | ✗ | loop->removeDemandBranchWithComponent(_coolingCoil); | |
| 193 | ✗ | } | |
| 194 | |||
| 195 | ✗ | return StraightComponent_Impl::remove(); | |
| 196 | } | ||
| 197 | ✗ | } | |
| 198 | ✗ | } | |
| 199 | } | ||
| 200 | |||
| 201 | ✗ | model().disconnect(getObject<ModelObject>(), inletPort()); | |
| 202 | ✗ | model().disconnect(getObject<ModelObject>(), outletPort()); | |
| 203 | |||
| 204 | ✗ | if (boost::optional<PlantLoop> loop = _coolingCoil.plantLoop()) { | |
| 205 | ✗ | loop->removeDemandBranchWithComponent(_coolingCoil); | |
| 206 | ✗ | } | |
| 207 | |||
| 208 | ✗ | return StraightComponent_Impl::remove(); | |
| 209 | ✗ | } | |
| 210 | |||
| 211 | ✗ | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isRemovable() const { | |
| 212 | ✗ | return true; | |
| 213 | } | ||
| 214 | |||
| 215 | 4 | ModelObject AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::clone(Model model) const { | |
| 216 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | auto airTerminalCVCooledBeamClone = StraightComponent_Impl::clone(model).cast<AirTerminalSingleDuctConstantVolumeCooledBeam>(); |
| 217 | |||
| 218 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto coilCoolingClone = this->coilCoolingCooledBeam().clone(model).cast<HVACComponent>(); |
| 219 | |||
| 220 |
1/1✓ Branch 1 taken 4 times.
|
4 | airTerminalCVCooledBeamClone.setCoolingCoil(coilCoolingClone); |
| 221 | |||
| 222 | 8 | return std::move(airTerminalCVCooledBeamClone); | |
| 223 | 4 | } | |
| 224 | |||
| 225 | ✗ | std::vector<ModelObject> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::children() const { | |
| 226 | ✗ | std::vector<ModelObject> result; | |
| 227 | ✗ | if (OptionalHVACComponent intermediate = optionalCoolingCoil()) { | |
| 228 | ✗ | result.push_back(*intermediate); | |
| 229 | ✗ | } | |
| 230 | ✗ | return result; | |
| 231 | ✗ | } | |
| 232 | |||
| 233 | 8 | HVACComponent AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::coilCoolingCooledBeam() const { | |
| 234 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<HVACComponent> value = optionalCoolingCoil(); |
| 235 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | if (!value) { |
| 236 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Cooling Coil attached."); | |
| 237 | } | ||
| 238 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 239 | 8 | } | |
| 240 | |||
| 241 | 1 | std::string AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::cooledBeamType() const { | |
| 242 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CooledBeamType, true); |
| 243 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 244 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 245 | 1 | } | |
| 246 | |||
| 247 | 8 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::supplyAirVolumetricFlowRate() const { | |
| 248 | 8 | return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate, true); | |
| 249 | } | ||
| 250 | |||
| 251 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isSupplyAirVolumetricFlowRateDefaulted() const { | |
| 252 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate); | |
| 253 | } | ||
| 254 | |||
| 255 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isSupplyAirVolumetricFlowRateAutosized() const { | |
| 256 | 2 | bool result = false; | |
| 257 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate, true); |
| 258 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (value) { |
| 259 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
4 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 260 | } | ||
| 261 | 2 | return result; | |
| 262 | 2 | } | |
| 263 | |||
| 264 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::maximumTotalChilledWaterVolumetricFlowRate() const { | |
| 265 | 1 | return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate, true); | |
| 266 | } | ||
| 267 | |||
| 268 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isMaximumTotalChilledWaterVolumetricFlowRateDefaulted() const { | |
| 269 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate); | |
| 270 | } | ||
| 271 | |||
| 272 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isMaximumTotalChilledWaterVolumetricFlowRateAutosized() const { | |
| 273 | 2 | bool result = false; | |
| 274 | boost::optional<std::string> value = | ||
| 275 |
1/1✓ Branch 1 taken 2 times.
|
2 | getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate, true); |
| 276 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (value) { |
| 277 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
4 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 278 | } | ||
| 279 | 2 | return result; | |
| 280 | 2 | } | |
| 281 | |||
| 282 | 1 | boost::optional<int> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::numberofBeams() const { | |
| 283 | 1 | return getInt(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams, true); | |
| 284 | } | ||
| 285 | |||
| 286 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isNumberofBeamsDefaulted() const { | |
| 287 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams); | |
| 288 | } | ||
| 289 | |||
| 290 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isNumberofBeamsAutosized() const { | |
| 291 | 2 | bool result = false; | |
| 292 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams, true); |
| 293 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (value) { |
| 294 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
4 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 295 | } | ||
| 296 | 2 | return result; | |
| 297 | 2 | } | |
| 298 | |||
| 299 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::beamLength() const { | |
| 300 | 1 | return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength, true); | |
| 301 | } | ||
| 302 | |||
| 303 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isBeamLengthDefaulted() const { | |
| 304 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength); | |
| 305 | } | ||
| 306 | |||
| 307 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isBeamLengthAutosized() const { | |
| 308 | 2 | bool result = false; | |
| 309 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength, true); |
| 310 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (value) { |
| 311 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
4 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 312 | } | ||
| 313 | 2 | return result; | |
| 314 | 2 | } | |
| 315 | |||
| 316 | 1 | double AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::designInletWaterTemperature() const { | |
| 317 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignInletWaterTemperature, true); |
| 318 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 319 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 320 | } | ||
| 321 | |||
| 322 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isDesignInletWaterTemperatureDefaulted() const { | |
| 323 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignInletWaterTemperature); | |
| 324 | } | ||
| 325 | |||
| 326 | 1 | double AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::designOutletWaterTemperature() const { | |
| 327 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignOutletWaterTemperature, true); |
| 328 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 329 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 330 | } | ||
| 331 | |||
| 332 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isDesignOutletWaterTemperatureDefaulted() const { | |
| 333 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignOutletWaterTemperature); | |
| 334 | } | ||
| 335 | |||
| 336 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::coefficientofInductionKin() const { | |
| 337 | 1 | return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin, true); | |
| 338 | } | ||
| 339 | |||
| 340 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isCoefficientofInductionKinDefaulted() const { | |
| 341 | 2 | return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin); | |
| 342 | } | ||
| 343 | |||
| 344 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::isCoefficientofInductionKinAutocalculated() const { | |
| 345 | 2 | bool result = false; | |
| 346 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin, true); |
| 347 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (value) { |
| 348 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
4 | result = openstudio::istringEqual(value.get(), "autocalculate"); |
| 349 | } | ||
| 350 | 2 | return result; | |
| 351 | 2 | } | |
| 352 | |||
| 353 | 5 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setCooledBeamType(const std::string& cooledBeamType) { | |
| 354 | 5 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CooledBeamType, cooledBeamType); | |
| 355 | 5 | return result; | |
| 356 | } | ||
| 357 | |||
| 358 | 9 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setCoolingCoil(HVACComponent& coolingCoilCooledBeam) { | |
| 359 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | bool result = setPointer(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoolingCoilName, coolingCoilCooledBeam.handle()); |
| 360 | 9 | return result; | |
| 361 | } | ||
| 362 | |||
| 363 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setSupplyAirVolumetricFlowRate(boost::optional<double> supplyAirVolumetricFlowRate) { | |
| 364 | 2 | bool result(false); | |
| 365 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (supplyAirVolumetricFlowRate) { |
| 366 | 2 | result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate, supplyAirVolumetricFlowRate.get()); | |
| 367 | } else { | ||
| 368 | ✗ | resetSupplyAirVolumetricFlowRate(); | |
| 369 | ✗ | result = true; | |
| 370 | } | ||
| 371 | 2 | return result; | |
| 372 | } | ||
| 373 | |||
| 374 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetSupplyAirVolumetricFlowRate() { | |
| 375 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate, ""); |
| 376 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 377 | 1 | } | |
| 378 | |||
| 379 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizeSupplyAirVolumetricFlowRate() { | |
| 380 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::SupplyAirVolumetricFlowRate, "autosize"); | |
| 381 | ✗ | OS_ASSERT(result); | |
| 382 | ✗ | } | |
| 383 | |||
| 384 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setMaximumTotalChilledWaterVolumetricFlowRate( | |
| 385 | boost::optional<double> maximumTotalChilledWaterVolumetricFlowRate) { | ||
| 386 | 1 | bool result(false); | |
| 387 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (maximumTotalChilledWaterVolumetricFlowRate) { |
| 388 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate, | |
| 389 | 1 | maximumTotalChilledWaterVolumetricFlowRate.get()); | |
| 390 | } else { | ||
| 391 | ✗ | resetMaximumTotalChilledWaterVolumetricFlowRate(); | |
| 392 | ✗ | result = true; | |
| 393 | } | ||
| 394 | 1 | return result; | |
| 395 | } | ||
| 396 | |||
| 397 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetMaximumTotalChilledWaterVolumetricFlowRate() { | |
| 398 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate, ""); |
| 399 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 400 | 1 | } | |
| 401 | |||
| 402 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizeMaximumTotalChilledWaterVolumetricFlowRate() { | |
| 403 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::MaximumTotalChilledWaterVolumetricFlowRate, "autosize"); | |
| 404 | ✗ | OS_ASSERT(result); | |
| 405 | ✗ | } | |
| 406 | |||
| 407 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setNumberofBeams(boost::optional<int> numberofBeams) { | |
| 408 | 1 | bool result(false); | |
| 409 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (numberofBeams) { |
| 410 | 1 | result = setInt(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams, numberofBeams.get()); | |
| 411 | } else { | ||
| 412 | ✗ | resetNumberofBeams(); | |
| 413 | ✗ | result = true; | |
| 414 | } | ||
| 415 | 1 | return result; | |
| 416 | } | ||
| 417 | |||
| 418 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetNumberofBeams() { | |
| 419 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams, ""); |
| 420 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 421 | 1 | } | |
| 422 | |||
| 423 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizeNumberofBeams() { | |
| 424 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::NumberofBeams, "autosize"); | |
| 425 | ✗ | OS_ASSERT(result); | |
| 426 | ✗ | } | |
| 427 | |||
| 428 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setBeamLength(boost::optional<double> beamLength) { | |
| 429 | 1 | bool result(false); | |
| 430 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (beamLength) { |
| 431 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength, beamLength.get()); | |
| 432 | } else { | ||
| 433 | ✗ | resetBeamLength(); | |
| 434 | ✗ | result = true; | |
| 435 | } | ||
| 436 | 1 | return result; | |
| 437 | } | ||
| 438 | |||
| 439 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetBeamLength() { | |
| 440 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength, ""); |
| 441 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 442 | 1 | } | |
| 443 | |||
| 444 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizeBeamLength() { | |
| 445 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::BeamLength, "autosize"); | |
| 446 | ✗ | OS_ASSERT(result); | |
| 447 | ✗ | } | |
| 448 | |||
| 449 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setDesignInletWaterTemperature(double designInletWaterTemperature) { | |
| 450 | 1 | bool result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignInletWaterTemperature, designInletWaterTemperature); | |
| 451 | 1 | return result; | |
| 452 | } | ||
| 453 | |||
| 454 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetDesignInletWaterTemperature() { | |
| 455 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignInletWaterTemperature, ""); |
| 456 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 457 | 1 | } | |
| 458 | |||
| 459 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setDesignOutletWaterTemperature(double designOutletWaterTemperature) { | |
| 460 | 1 | bool result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignOutletWaterTemperature, designOutletWaterTemperature); | |
| 461 | 1 | return result; | |
| 462 | } | ||
| 463 | |||
| 464 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetDesignOutletWaterTemperature() { | |
| 465 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::DesignOutletWaterTemperature, ""); |
| 466 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 467 | 1 | } | |
| 468 | |||
| 469 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setCoefficientofInductionKin(boost::optional<double> coefficientofInductionKin) { | |
| 470 | 1 | bool result(false); | |
| 471 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (coefficientofInductionKin) { |
| 472 | 1 | result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin, coefficientofInductionKin.get()); | |
| 473 | } else { | ||
| 474 | ✗ | resetCoefficientofInductionKin(); | |
| 475 | ✗ | result = true; | |
| 476 | } | ||
| 477 | 1 | return result; | |
| 478 | } | ||
| 479 | |||
| 480 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::resetCoefficientofInductionKin() { | |
| 481 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin, ""); |
| 482 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 483 | 1 | } | |
| 484 | |||
| 485 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autocalculateCoefficientofInductionKin() { | |
| 486 | ✗ | bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoefficientofInductionKin, "autocalculate"); | |
| 487 | ✗ | OS_ASSERT(result); | |
| 488 | ✗ | } | |
| 489 | |||
| 490 | 1 | boost::optional<Schedule> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::optionalAvailabilitySchedule() const { | |
| 491 |
1/1✓ Branch 1 taken 1 time.
|
2 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 492 |
1/1✓ Branch 1 taken 1 time.
|
2 | OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::AvailabilityScheduleName); |
| 493 | } | ||
| 494 | |||
| 495 | 8 | boost::optional<HVACComponent> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::optionalCoolingCoil() const { | |
| 496 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CoolingCoilName); |
| 497 | } | ||
| 498 | |||
| 499 | ✗ | boost::optional<ModelObject> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::availabilityScheduleAsModelObject() const { | |
| 500 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 501 | ✗ | return result; | |
| 502 | } | ||
| 503 | |||
| 504 | ✗ | boost::optional<ModelObject> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::coolingCoilAsModelObject() const { | |
| 505 | ✗ | OptionalModelObject result = coilCoolingCooledBeam(); | |
| 506 | ✗ | return result; | |
| 507 | } | ||
| 508 | |||
| 509 | ✗ | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 510 | ✗ | if (modelObject) { | |
| 511 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 512 | ✗ | if (intermediate) { | |
| 513 | ✗ | Schedule schedule(*intermediate); | |
| 514 | ✗ | return setAvailabilitySchedule(schedule); | |
| 515 | ✗ | } | |
| 516 | ✗ | } | |
| 517 | ✗ | return false; | |
| 518 | } | ||
| 519 | |||
| 520 | ✗ | bool AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::setCoolingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 521 | ✗ | if (modelObject) { | |
| 522 | ✗ | OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>(); | |
| 523 | ✗ | if (intermediate) { | |
| 524 | ✗ | HVACComponent coilCoolingCooledBeam(*intermediate); | |
| 525 | ✗ | return setCoolingCoil(coilCoolingCooledBeam); | |
| 526 | ✗ | } | |
| 527 | ✗ | } | |
| 528 | ✗ | return false; | |
| 529 | } | ||
| 530 | |||
| 531 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizedSupplyAirVolumetricFlowRate() const { | |
| 532 | ✗ | return getAutosizedValue("Supply Air Flow Rate", "m3/s"); | |
| 533 | } | ||
| 534 | |||
| 535 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizedMaximumTotalChilledWaterVolumetricFlowRate() const { | |
| 536 | ✗ | return getAutosizedValue("Maximum Total Chilled Water Flow Rate", "m3/s"); | |
| 537 | } | ||
| 538 | |||
| 539 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizedNumberofBeams() const { | |
| 540 | ✗ | return getAutosizedValue("Number of Beams", ""); | |
| 541 | } | ||
| 542 | |||
| 543 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizedBeamLength() const { | |
| 544 | ✗ | return getAutosizedValue("Beam Length", "m"); | |
| 545 | } | ||
| 546 | |||
| 547 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosizedCoefficientofInductionKin() const { | |
| 548 | ✗ | return getAutosizedValue("Coefficient of Induction Kin", ""); | |
| 549 | } | ||
| 550 | |||
| 551 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::autosize() { | |
| 552 | ✗ | autosizeSupplyAirVolumetricFlowRate(); | |
| 553 | ✗ | autosizeMaximumTotalChilledWaterVolumetricFlowRate(); | |
| 554 | ✗ | autosizeNumberofBeams(); | |
| 555 | ✗ | autosizeBeamLength(); | |
| 556 | ✗ | autocalculateCoefficientofInductionKin(); | |
| 557 | ✗ | } | |
| 558 | |||
| 559 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::applySizingValues() { | |
| 560 | ✗ | boost::optional<double> val; | |
| 561 | ✗ | val = autosizedSupplyAirVolumetricFlowRate(); | |
| 562 | ✗ | if (val) { | |
| 563 | ✗ | setSupplyAirVolumetricFlowRate(val.get()); | |
| 564 | } | ||
| 565 | |||
| 566 | ✗ | val = autosizedMaximumTotalChilledWaterVolumetricFlowRate(); | |
| 567 | ✗ | if (val) { | |
| 568 | ✗ | setMaximumTotalChilledWaterVolumetricFlowRate(val.get()); | |
| 569 | } | ||
| 570 | |||
| 571 | ✗ | val = autosizedNumberofBeams(); | |
| 572 | ✗ | if (val) { | |
| 573 | // DLM: assuming you want to round up? | ||
| 574 | ✗ | setNumberofBeams((int)std::ceil(val.get())); | |
| 575 | } | ||
| 576 | |||
| 577 | ✗ | val = autosizedBeamLength(); | |
| 578 | ✗ | if (val) { | |
| 579 | ✗ | setBeamLength(val.get()); | |
| 580 | } | ||
| 581 | |||
| 582 | ✗ | val = autosizedCoefficientofInductionKin(); | |
| 583 | ✗ | if (val) { | |
| 584 | ✗ | setCoefficientofInductionKin(val.get()); | |
| 585 | } | ||
| 586 | ✗ | } | |
| 587 | |||
| 588 | ✗ | ComponentType AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::componentType() const { | |
| 589 | ✗ | ComponentType loopType = ComponentType::None; | |
| 590 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 591 | ✗ | loopType = a_->componentType(); | |
| 592 | ✗ | } | |
| 593 | ✗ | if ((loopType == ComponentType::Both) or (loopType == ComponentType::Heating)) { | |
| 594 | ✗ | return ComponentType::Both; | |
| 595 | } | ||
| 596 | |||
| 597 | ✗ | return ComponentType::Cooling; | |
| 598 | } | ||
| 599 | |||
| 600 | ✗ | std::vector<FuelType> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::coolingFuelTypes() const { | |
| 601 | ✗ | std::set<FuelType> result; | |
| 602 | ✗ | for (auto ft : coilCoolingCooledBeam().coolingFuelTypes()) { | |
| 603 | ✗ | result.insert(ft); | |
| 604 | ✗ | } | |
| 605 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 606 | ✗ | for (auto ft : a_->coolingFuelTypes()) { | |
| 607 | ✗ | result.insert(ft); | |
| 608 | ✗ | } | |
| 609 | ✗ | } | |
| 610 | ✗ | return {result.begin(), result.end()}; | |
| 611 | ✗ | } | |
| 612 | |||
| 613 | ✗ | std::vector<FuelType> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::heatingFuelTypes() const { | |
| 614 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 615 | ✗ | return a_->heatingFuelTypes(); | |
| 616 | ✗ | } | |
| 617 | ✗ | return {}; | |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | std::vector<AppGFuelType> AirTerminalSingleDuctConstantVolumeCooledBeam_Impl::appGHeatingFuelTypes() const { | |
| 621 | ✗ | if (auto a_ = airLoopHVAC()) { | |
| 622 | ✗ | return a_->appGHeatingFuelTypes(); | |
| 623 | ✗ | } | |
| 624 | ✗ | return {}; | |
| 625 | } | ||
| 626 | |||
| 627 | } // namespace detail | ||
| 628 | |||
| 629 | 4 | AirTerminalSingleDuctConstantVolumeCooledBeam::AirTerminalSingleDuctConstantVolumeCooledBeam(const Model& model, Schedule& availabilitySchedule, | |
| 630 | 4 | HVACComponent& coilCoolingCooledBeam) | |
| 631 | 4 | : StraightComponent(AirTerminalSingleDuctConstantVolumeCooledBeam::iddObjectType(), model) { | |
| 632 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
|
4 | OS_ASSERT(getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()); |
| 633 | |||
| 634 |
1/1✓ Branch 1 taken 4 times.
|
4 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 635 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | if (!ok) { |
| 636 | ✗ | remove(); | |
| 637 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 638 | } | ||
| 639 | |||
| 640 |
1/1✓ Branch 1 taken 4 times.
|
4 | ok = setCoolingCoil(coilCoolingCooledBeam); |
| 641 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | this->setCooledBeamType("Passive"); |
| 642 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
|
4 | OS_ASSERT(ok); |
| 643 | 4 | } | |
| 644 | |||
| 645 | 7740 | IddObjectType AirTerminalSingleDuctConstantVolumeCooledBeam::iddObjectType() { | |
| 646 |
1/1✓ Branch 1 taken 7740 times.
|
7740 | return {IddObjectType::OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeam}; |
| 647 | } | ||
| 648 | |||
| 649 | ✗ | std::vector<std::string> AirTerminalSingleDuctConstantVolumeCooledBeam::cooledBeamTypeValues() { | |
| 650 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 651 | ✗ | OS_AirTerminal_SingleDuct_ConstantVolume_CooledBeamFields::CooledBeamType); | |
| 652 | } | ||
| 653 | |||
| 654 | 1 | Schedule AirTerminalSingleDuctConstantVolumeCooledBeam::availabilitySchedule() const { | |
| 655 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->availabilitySchedule(); |
| 656 | } | ||
| 657 | |||
| 658 | 4 | HVACComponent AirTerminalSingleDuctConstantVolumeCooledBeam::coilCoolingCooledBeam() const { | |
| 659 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->coilCoolingCooledBeam(); |
| 660 | } | ||
| 661 | |||
| 662 | 1 | std::string AirTerminalSingleDuctConstantVolumeCooledBeam::cooledBeamType() const { | |
| 663 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->cooledBeamType(); |
| 664 | } | ||
| 665 | |||
| 666 | 8 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::supplyAirVolumetricFlowRate() const { | |
| 667 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->supplyAirVolumetricFlowRate(); |
| 668 | } | ||
| 669 | |||
| 670 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isSupplyAirVolumetricFlowRateDefaulted() const { | |
| 671 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isSupplyAirVolumetricFlowRateDefaulted(); |
| 672 | } | ||
| 673 | |||
| 674 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isSupplyAirVolumetricFlowRateAutosized() const { | |
| 675 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isSupplyAirVolumetricFlowRateAutosized(); |
| 676 | } | ||
| 677 | |||
| 678 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::maximumTotalChilledWaterVolumetricFlowRate() const { | |
| 679 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->maximumTotalChilledWaterVolumetricFlowRate(); |
| 680 | } | ||
| 681 | |||
| 682 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isMaximumTotalChilledWaterVolumetricFlowRateDefaulted() const { | |
| 683 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isMaximumTotalChilledWaterVolumetricFlowRateDefaulted(); |
| 684 | } | ||
| 685 | |||
| 686 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isMaximumTotalChilledWaterVolumetricFlowRateAutosized() const { | |
| 687 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isMaximumTotalChilledWaterVolumetricFlowRateAutosized(); |
| 688 | } | ||
| 689 | |||
| 690 | 1 | boost::optional<int> AirTerminalSingleDuctConstantVolumeCooledBeam::numberofBeams() const { | |
| 691 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->numberofBeams(); |
| 692 | } | ||
| 693 | |||
| 694 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isNumberofBeamsDefaulted() const { | |
| 695 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isNumberofBeamsDefaulted(); |
| 696 | } | ||
| 697 | |||
| 698 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isNumberofBeamsAutosized() const { | |
| 699 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isNumberofBeamsAutosized(); |
| 700 | } | ||
| 701 | |||
| 702 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::beamLength() const { | |
| 703 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->beamLength(); |
| 704 | } | ||
| 705 | |||
| 706 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isBeamLengthDefaulted() const { | |
| 707 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isBeamLengthDefaulted(); |
| 708 | } | ||
| 709 | |||
| 710 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isBeamLengthAutosized() const { | |
| 711 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isBeamLengthAutosized(); |
| 712 | } | ||
| 713 | |||
| 714 | 1 | double AirTerminalSingleDuctConstantVolumeCooledBeam::designInletWaterTemperature() const { | |
| 715 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->designInletWaterTemperature(); |
| 716 | } | ||
| 717 | |||
| 718 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isDesignInletWaterTemperatureDefaulted() const { | |
| 719 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isDesignInletWaterTemperatureDefaulted(); |
| 720 | } | ||
| 721 | |||
| 722 | 1 | double AirTerminalSingleDuctConstantVolumeCooledBeam::designOutletWaterTemperature() const { | |
| 723 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->designOutletWaterTemperature(); |
| 724 | } | ||
| 725 | |||
| 726 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isDesignOutletWaterTemperatureDefaulted() const { | |
| 727 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isDesignOutletWaterTemperatureDefaulted(); |
| 728 | } | ||
| 729 | |||
| 730 | 1 | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::coefficientofInductionKin() const { | |
| 731 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->coefficientofInductionKin(); |
| 732 | } | ||
| 733 | |||
| 734 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isCoefficientofInductionKinDefaulted() const { | |
| 735 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isCoefficientofInductionKinDefaulted(); |
| 736 | } | ||
| 737 | |||
| 738 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::isCoefficientofInductionKinAutocalculated() const { | |
| 739 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->isCoefficientofInductionKinAutocalculated(); |
| 740 | } | ||
| 741 | |||
| 742 | 5 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setAvailabilitySchedule(Schedule& schedule) { | |
| 743 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setAvailabilitySchedule(schedule); |
| 744 | } | ||
| 745 | |||
| 746 | 5 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setCooledBeamType(const std::string& cooledBeamType) { | |
| 747 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setCooledBeamType(cooledBeamType); |
| 748 | } | ||
| 749 | |||
| 750 | 9 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setCoolingCoil(HVACComponent& coolingCoilCooledBeam) { | |
| 751 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setCoolingCoil(coolingCoilCooledBeam); |
| 752 | } | ||
| 753 | |||
| 754 | 2 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setSupplyAirVolumetricFlowRate(double supplyAirVolumetricFlowRate) { | |
| 755 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setSupplyAirVolumetricFlowRate(supplyAirVolumetricFlowRate); |
| 756 | } | ||
| 757 | |||
| 758 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetSupplyAirVolumetricFlowRate() { | |
| 759 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetSupplyAirVolumetricFlowRate(); |
| 760 | 1 | } | |
| 761 | |||
| 762 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam::autosizeSupplyAirVolumetricFlowRate() { | |
| 763 | ✗ | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizeSupplyAirVolumetricFlowRate(); | |
| 764 | ✗ | } | |
| 765 | |||
| 766 | bool | ||
| 767 | 1 | AirTerminalSingleDuctConstantVolumeCooledBeam::setMaximumTotalChilledWaterVolumetricFlowRate(double maximumTotalChilledWaterVolumetricFlowRate) { | |
| 768 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
2 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setMaximumTotalChilledWaterVolumetricFlowRate( |
| 769 | 2 | maximumTotalChilledWaterVolumetricFlowRate); | |
| 770 | } | ||
| 771 | |||
| 772 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetMaximumTotalChilledWaterVolumetricFlowRate() { | |
| 773 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetMaximumTotalChilledWaterVolumetricFlowRate(); |
| 774 | 1 | } | |
| 775 | |||
| 776 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam::autosizeMaximumTotalChilledWaterVolumetricFlowRate() { | |
| 777 | ✗ | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizeMaximumTotalChilledWaterVolumetricFlowRate(); | |
| 778 | ✗ | } | |
| 779 | |||
| 780 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setNumberofBeams(int numberofBeams) { | |
| 781 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setNumberofBeams(numberofBeams); |
| 782 | } | ||
| 783 | |||
| 784 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetNumberofBeams() { | |
| 785 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetNumberofBeams(); |
| 786 | 1 | } | |
| 787 | |||
| 788 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam::autosizeNumberofBeams() { | |
| 789 | ✗ | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizeNumberofBeams(); | |
| 790 | ✗ | } | |
| 791 | |||
| 792 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setBeamLength(double beamLength) { | |
| 793 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setBeamLength(beamLength); |
| 794 | } | ||
| 795 | |||
| 796 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetBeamLength() { | |
| 797 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetBeamLength(); |
| 798 | 1 | } | |
| 799 | |||
| 800 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam::autosizeBeamLength() { | |
| 801 | ✗ | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizeBeamLength(); | |
| 802 | ✗ | } | |
| 803 | |||
| 804 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setDesignInletWaterTemperature(double designInletWaterTemperature) { | |
| 805 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setDesignInletWaterTemperature(designInletWaterTemperature); |
| 806 | } | ||
| 807 | |||
| 808 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetDesignInletWaterTemperature() { | |
| 809 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetDesignInletWaterTemperature(); |
| 810 | 1 | } | |
| 811 | |||
| 812 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setDesignOutletWaterTemperature(double designOutletWaterTemperature) { | |
| 813 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setDesignOutletWaterTemperature(designOutletWaterTemperature); |
| 814 | } | ||
| 815 | |||
| 816 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetDesignOutletWaterTemperature() { | |
| 817 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetDesignOutletWaterTemperature(); |
| 818 | 1 | } | |
| 819 | |||
| 820 | 1 | bool AirTerminalSingleDuctConstantVolumeCooledBeam::setCoefficientofInductionKin(double coefficientofInductionKin) { | |
| 821 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->setCoefficientofInductionKin(coefficientofInductionKin); |
| 822 | } | ||
| 823 | |||
| 824 | 1 | void AirTerminalSingleDuctConstantVolumeCooledBeam::resetCoefficientofInductionKin() { | |
| 825 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->resetCoefficientofInductionKin(); |
| 826 | 1 | } | |
| 827 | |||
| 828 | ✗ | void AirTerminalSingleDuctConstantVolumeCooledBeam::autocalculateCoefficientofInductionKin() { | |
| 829 | ✗ | getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autocalculateCoefficientofInductionKin(); | |
| 830 | ✗ | } | |
| 831 | |||
| 832 | 12 | AirTerminalSingleDuctConstantVolumeCooledBeam::AirTerminalSingleDuctConstantVolumeCooledBeam( | |
| 833 | 12 | std::shared_ptr<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl> impl) | |
| 834 |
1/1✓ Branch 3 taken 12 times.
|
12 | : StraightComponent(std::move(impl)) {} |
| 835 | /// @endcond | ||
| 836 | |||
| 837 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::autosizedSupplyAirVolumetricFlowRate() const { | |
| 838 | ✗ | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizedSupplyAirVolumetricFlowRate(); | |
| 839 | } | ||
| 840 | |||
| 841 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::autosizedMaximumTotalChilledWaterVolumetricFlowRate() const { | |
| 842 | ✗ | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizedMaximumTotalChilledWaterVolumetricFlowRate(); | |
| 843 | } | ||
| 844 | |||
| 845 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::autosizedNumberofBeams() const { | |
| 846 | ✗ | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizedNumberofBeams(); | |
| 847 | } | ||
| 848 | |||
| 849 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::autosizedBeamLength() const { | |
| 850 | ✗ | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizedBeamLength(); | |
| 851 | } | ||
| 852 | |||
| 853 | ✗ | boost::optional<double> AirTerminalSingleDuctConstantVolumeCooledBeam::autosizedCoefficientofInductionKin() const { | |
| 854 | ✗ | return getImpl<detail::AirTerminalSingleDuctConstantVolumeCooledBeam_Impl>()->autosizedCoefficientofInductionKin(); | |
| 855 | } | ||
| 856 | |||
| 857 | } // namespace model | ||
| 858 | } // namespace openstudio | ||
| 859 |