src/energyplus/ForwardTranslator/ForwardTranslateAirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.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 "../ForwardTranslator.hpp" | ||
| 7 | #include "../../model/Model.hpp" | ||
| 8 | #include "../../model/AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.hpp" | ||
| 9 | #include "../../model/AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl.hpp" | ||
| 10 | #include "../../model/CoilCoolingDXSingleSpeed.hpp" | ||
| 11 | #include "../../model/CoilCoolingDXSingleSpeed_Impl.hpp" | ||
| 12 | #include "../../model/CoilCoolingDXVariableSpeed.hpp" | ||
| 13 | #include "../../model/CoilCoolingDXVariableSpeed_Impl.hpp" | ||
| 14 | #include "../../model/CoilSystemCoolingDXHeatExchangerAssisted.hpp" | ||
| 15 | #include "../../model/CoilSystemCoolingDXHeatExchangerAssisted_Impl.hpp" | ||
| 16 | #include "../../model/CoilCoolingDXTwoStageWithHumidityControlMode.hpp" | ||
| 17 | #include "../../model/CoilCoolingDXTwoStageWithHumidityControlMode_Impl.hpp" | ||
| 18 | #include "../../model/CoilHeatingDXSingleSpeed.hpp" | ||
| 19 | #include "../../model/CoilHeatingDXSingleSpeed_Impl.hpp" | ||
| 20 | #include "../../model/CoilHeatingDXVariableSpeed.hpp" | ||
| 21 | #include "../../model/CoilHeatingDXVariableSpeed_Impl.hpp" | ||
| 22 | #include "../../model/CoilHeatingGas.hpp" | ||
| 23 | #include "../../model/CoilHeatingGas_Impl.hpp" | ||
| 24 | #include "../../model/CoilHeatingElectric.hpp" | ||
| 25 | #include "../../model/CoilHeatingElectric_Impl.hpp" | ||
| 26 | #include "../../model/CoilHeatingWater.hpp" | ||
| 27 | #include "../../model/CoilHeatingWater_Impl.hpp" | ||
| 28 | #include "../../model/AirToAirComponent.hpp" | ||
| 29 | #include "../../model/AirToAirComponent_Impl.hpp" | ||
| 30 | #include "../../model/Node.hpp" | ||
| 31 | #include "../../model/Node_Impl.hpp" | ||
| 32 | #include "../../model/ThermalZone.hpp" | ||
| 33 | #include "../../model/ThermalZone_Impl.hpp" | ||
| 34 | #include "../../model/Schedule.hpp" | ||
| 35 | #include "../../model/Schedule_Impl.hpp" | ||
| 36 | #include "../../model/Mixer.hpp" | ||
| 37 | #include <utilities/idd/AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypass_FieldEnums.hxx> | ||
| 38 | #include <utilities/idd/Coil_Cooling_DX_SingleSpeed_FieldEnums.hxx> | ||
| 39 | #include <utilities/idd/Coil_Cooling_DX_VariableSpeed_FieldEnums.hxx> | ||
| 40 | #include <utilities/idd/Coil_Cooling_DX_TwoStageWithHumidityControlMode_FieldEnums.hxx> | ||
| 41 | #include <utilities/idd/Coil_Heating_DX_SingleSpeed_FieldEnums.hxx> | ||
| 42 | #include <utilities/idd/Coil_Heating_DX_VariableSpeed_FieldEnums.hxx> | ||
| 43 | #include <utilities/idd/Coil_Heating_Fuel_FieldEnums.hxx> | ||
| 44 | #include <utilities/idd/Coil_Heating_Electric_FieldEnums.hxx> | ||
| 45 | #include <utilities/idd/Coil_Heating_Water_FieldEnums.hxx> | ||
| 46 | #include <utilities/idd/HeatExchanger_AirToAir_SensibleAndLatent_FieldEnums.hxx> | ||
| 47 | #include <utilities/idd/HeatExchanger_Desiccant_BalancedFlow_FieldEnums.hxx> | ||
| 48 | #include <utilities/idd/Fan_ConstantVolume_FieldEnums.hxx> | ||
| 49 | #include <utilities/idd/Fan_OnOff_FieldEnums.hxx> | ||
| 50 | #include <utilities/idd/Fan_VariableVolume_FieldEnums.hxx> | ||
| 51 | #include <utilities/idd/Fan_SystemModel_FieldEnums.hxx> | ||
| 52 | #include <utilities/idd/OutdoorAir_Mixer_FieldEnums.hxx> | ||
| 53 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 54 | #include <utilities/idd/IddEnums.hxx> | ||
| 55 | #include <utilities/idd/IddFactory.hxx> | ||
| 56 | |||
| 57 | using namespace openstudio::model; | ||
| 58 | |||
| 59 | namespace openstudio { | ||
| 60 | |||
| 61 | namespace energyplus { | ||
| 62 | |||
| 63 | boost::optional<IdfObject> | ||
| 64 | 13 | ForwardTranslator::translateAirLoopHVACUnitaryHeatCoolVAVChangeoverBypass(AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass& modelObject) { | |
| 65 | 13 | boost::optional<std::string> s; | |
| 66 | 13 | boost::optional<double> d; | |
| 67 | |||
| 68 | // Name | ||
| 69 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | IdfObject unitarySystem = createRegisterAndNameIdfObject(openstudio::IddObjectType::AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypass, modelObject); |
| 70 | |||
| 71 | // Availability Schedule Name | ||
| 72 |
2/3✓ Branch 1 taken 13 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13 times.
|
26 | if (boost::optional<Schedule> availabilitySchedule = modelObject.availabilitySchedule()) { |
| 73 | ✗ | boost::optional<IdfObject> _availabilitySchedule = translateAndMapModelObject(availabilitySchedule.get()); | |
| 74 | |||
| 75 | ✗ | if (_availabilitySchedule && _availabilitySchedule->name()) { | |
| 76 | ✗ | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::AvailabilityScheduleName, _availabilitySchedule->name().get()); | |
| 77 | } | ||
| 78 | 13 | } | |
| 79 | |||
| 80 | // SystemAirFlowRateDuringCoolingOperation | ||
| 81 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isSystemAirFlowRateDuringCoolingOperationAutosized()) { |
| 82 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingSupplyAirFlowRate, "AutoSize"); |
| 83 | ✗ | } else if ((d = modelObject.systemAirFlowRateDuringCoolingOperation())) { | |
| 84 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingSupplyAirFlowRate, d.get()); | |
| 85 | } | ||
| 86 | |||
| 87 | // SystemAirFlowRateDuringHeatingOperation | ||
| 88 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isSystemAirFlowRateDuringHeatingOperationAutosized()) { |
| 89 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingSupplyAirFlowRate, "AutoSize"); |
| 90 | ✗ | } else if ((d = modelObject.systemAirFlowRateDuringHeatingOperation())) { | |
| 91 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingSupplyAirFlowRate, d.get()); | |
| 92 | } | ||
| 93 | |||
| 94 | // SystemAirFlowRateWhenNoCoolingorHeatingisNeeded | ||
| 95 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isSystemAirFlowRateWhenNoCoolingorHeatingisNeededAutosized()) { |
| 96 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::NoLoadSupplyAirFlowRate, "AutoSize"); |
| 97 | ✗ | } else if ((d = modelObject.systemAirFlowRateWhenNoCoolingorHeatingisNeeded())) { | |
| 98 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::NoLoadSupplyAirFlowRate, d.get()); | |
| 99 | } | ||
| 100 | |||
| 101 | // OutdoorAirFlowRateDuringCoolingOperation | ||
| 102 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isOutdoorAirFlowRateDuringCoolingOperationAutosized()) { |
| 103 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingOutdoorAirFlowRate, "AutoSize"); |
| 104 | ✗ | } else if ((d = modelObject.outdoorAirFlowRateDuringCoolingOperation())) { | |
| 105 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingOutdoorAirFlowRate, d.get()); | |
| 106 | } | ||
| 107 | |||
| 108 | // OutdoorAirFlowRateDuringHeatingOperation | ||
| 109 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isOutdoorAirFlowRateDuringHeatingOperationAutosized()) { |
| 110 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingOutdoorAirFlowRate, "AutoSize"); |
| 111 | ✗ | } else if ((d = modelObject.outdoorAirFlowRateDuringHeatingOperation())) { | |
| 112 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingOutdoorAirFlowRate, d.get()); | |
| 113 | } | ||
| 114 | |||
| 115 | // OutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded | ||
| 116 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
13 | if (modelObject.isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized()) { |
| 117 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::NoLoadOutdoorAirFlowRate, "AutoSize"); |
| 118 | ✗ | } else if ((d = modelObject.outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded())) { | |
| 119 | ✗ | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::NoLoadOutdoorAirFlowRate, d.get()); | |
| 120 | } | ||
| 121 | |||
| 122 | // OutdoorAirFlowRateMultiplierScheduleName | ||
| 123 |
2/3✓ Branch 1 taken 13 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13 times.
|
26 | if (boost::optional<Schedule> schedule = modelObject.outdoorAirFlowRateMultiplierSchedule()) { |
| 124 | ✗ | if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) { | |
| 125 | ✗ | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::OutdoorAirFlowRateMultiplierScheduleName, | |
| 126 | ✗ | _schedule->name().get()); | |
| 127 | ✗ | } | |
| 128 | 13 | } | |
| 129 | |||
| 130 | 13 | boost::optional<std::string> airInletNodeName; | |
| 131 | 13 | boost::optional<std::string> airOutletNodeName; | |
| 132 | |||
| 133 | // Air Inlet Node Name | ||
| 134 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
26 | if (boost::optional<ModelObject> mo = modelObject.inletModelObject()) { |
| 135 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 13 times.
✗ Branch 7 not taken.
|
26 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 136 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | airInletNodeName = node->name().get(); |
| 137 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::AirInletNodeName, node->name().get()); |
| 138 | 13 | } | |
| 139 | 13 | } | |
| 140 | |||
| 141 | // Air Outlet Node Name | ||
| 142 |
2/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 13 times.
✗ Branch 4 not taken.
|
26 | if (boost::optional<ModelObject> mo = modelObject.outletModelObject()) { |
| 143 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 13 times.
✗ Branch 7 not taken.
|
26 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 144 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | airOutletNodeName = node->name().get(); |
| 145 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::AirOutletNodeName, node->name().get()); |
| 146 | 13 | } | |
| 147 | 13 | } | |
| 148 | |||
| 149 |
3/3✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
|
13 | std::string baseName = modelObject.name().get(); |
| 150 | |||
| 151 | // BypassDuctMixerNodeName | ||
| 152 |
1/1✓ Branch 1 taken 13 times.
|
13 | std::string bypassDuctMixerNodeName = baseName + " Bypass Duct Mixer Node"; |
| 153 |
1/1✓ Branch 1 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::BypassDuctMixerNodeName, bypassDuctMixerNodeName); |
| 154 | |||
| 155 | // BypassDuctSplitterNodeName | ||
| 156 |
1/1✓ Branch 1 taken 13 times.
|
13 | std::string bypassDuctSplitterNodeName = baseName + " Bypass Duct Splitter Node"; |
| 157 |
1/1✓ Branch 1 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::BypassDuctSplitterNodeName, bypassDuctSplitterNodeName); |
| 158 | |||
| 159 | // OutdoorAirMixerObjectType | ||
| 160 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::OutdoorAirMixerObjectType, "OutdoorAir:Mixer"); |
| 161 | |||
| 162 | // OutdoorAirMixerName | ||
| 163 |
1/1✓ Branch 1 taken 13 times.
|
13 | std::string outdoorAirMixerName = baseName + " Outdoor Air Mixer"; |
| 164 |
1/1✓ Branch 1 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::OutdoorAirMixerName, outdoorAirMixerName); |
| 165 | |||
| 166 | // SupplyAirFanName | ||
| 167 | 13 | boost::optional<IdfObject> _fan; | |
| 168 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 8 taken 13 times.
✗ Branch 9 not taken.
|
26 | if (boost::optional<HVACComponent> fan = modelObject.supplyAirFan()) { |
| 169 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 8 taken 13 times.
✗ Branch 9 not taken.
|
26 | if ((_fan = translateAndMapModelObject(fan.get()))) { |
| 170 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::SupplyAirFanObjectType, _fan->iddObject().name()); |
| 171 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::SupplyAirFanName, _fan->name().get()); |
| 172 | } | ||
| 173 | 13 | } | |
| 174 | |||
| 175 | 13 | bool blowThroughFan = false; | |
| 176 | // SupplyAirFanPlacement | ||
| 177 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 8 taken 13 times.
✗ Branch 9 not taken.
|
26 | if ((s = modelObject.supplyAirFanPlacement())) { |
| 178 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::SupplyAirFanPlacement, s.get()); |
| 179 |
5/5✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 5 times.
✓ Branch 11 taken 8 times.
|
26 | if (istringEqual(s.get(), "BlowThrough")) { |
| 180 | 5 | blowThroughFan = true; | |
| 181 | } | ||
| 182 | } | ||
| 183 | |||
| 184 | // SupplyAirFanOperatingModeScheduleName | ||
| 185 |
2/3✓ Branch 1 taken 13 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13 times.
|
26 | if (boost::optional<Schedule> schedule = modelObject.supplyAirFanOperatingModeSchedule()) { |
| 186 | ✗ | if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) { | |
| 187 | ✗ | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::SupplyAirFanOperatingModeScheduleName, | |
| 188 | ✗ | _schedule->name().get()); | |
| 189 | ✗ | } | |
| 190 | 13 | } | |
| 191 | |||
| 192 | // Heating Coil Object Type | ||
| 193 | // Heating Coil Name | ||
| 194 | 13 | boost::optional<IdfObject> _heatingCoil; | |
| 195 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | boost::optional<HVACComponent> heatingCoil = modelObject.heatingCoil(); |
| 196 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | if (heatingCoil) { |
| 197 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 11 times.
|
26 | if (boost::optional<CoilHeatingDXSingleSpeed> dxCoil = heatingCoil->optionalCast<CoilHeatingDXSingleSpeed>()) { |
| 198 | // Not calling `translateAndMapModelObject` but directly the without unitary function, so need to insert into m_map | ||
| 199 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil = translateCoilHeatingDXSingleSpeedWithoutUnitary(dxCoil.get()); |
| 200 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | m_map.insert(std::make_pair(heatingCoil->handle(), _heatingCoil.get())); |
| 201 |
4/4✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 9 times.
|
22 | } else if (boost::optional<CoilHeatingDXVariableSpeed> dxCoil = heatingCoil->optionalCast<CoilHeatingDXVariableSpeed>()) { |
| 202 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil = translateCoilHeatingDXVariableSpeedWithoutUnitary(dxCoil.get()); |
| 203 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | m_map.insert(std::make_pair(heatingCoil->handle(), _heatingCoil.get())); |
| 204 |
7/13✓ Branch 1 taken 9 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 5 times.
✓ Branch 13 taken 9 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 9 times.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
|
32 | } else if ((heatingCoil->optionalCast<CoilHeatingGas>()) || (heatingCoil->optionalCast<CoilHeatingElectric>()) |
| 205 |
10/13✓ Branch 1 taken 9 times.
✓ Branch 4 taken 7 times.
✓ Branch 5 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 2 times.
✓ Branch 16 taken 7 times.
✓ Branch 18 taken 7 times.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
|
36 | || (heatingCoil->optionalCast<CoilHeatingWater>())) { |
| 206 | // translateAndMapModelObject already inserts into m_map | ||
| 207 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | _heatingCoil = translateAndMapModelObject(heatingCoil.get()); |
| 208 | } else { | ||
| 209 | ✗ | LOG(Fatal, modelObject.briefDescription() << " appears to have a heating coil that shouldn't have been accepted: " | |
| 210 | << heatingCoil->briefDescription()); | ||
| 211 | ✗ | OS_ASSERT(false); | |
| 212 | 24 | } | |
| 213 | |||
| 214 |
6/12✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 13 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 13 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
39 | if (_heatingCoil && _heatingCoil->name()) { |
| 215 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingCoilObjectType, _heatingCoil->iddObject().name()); |
| 216 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::HeatingCoilName, _heatingCoil->name().get()); |
| 217 | } | ||
| 218 | } | ||
| 219 | |||
| 220 | // Cooling Coil Object Type | ||
| 221 | // Cooling Coil Name | ||
| 222 | 13 | boost::optional<IdfObject> _coolingCoil; | |
| 223 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | boost::optional<HVACComponent> coolingCoil = modelObject.coolingCoil(); |
| 224 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | if (coolingCoil) { |
| 225 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 6 taken 7 times.
✓ Branch 7 taken 6 times.
|
26 | if (boost::optional<CoilCoolingDXSingleSpeed> dxCoil = coolingCoil->optionalCast<CoilCoolingDXSingleSpeed>()) { |
| 226 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | _coolingCoil = translateCoilCoolingDXSingleSpeedWithoutUnitary(dxCoil.get()); |
| 227 |
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 | m_map.insert(std::make_pair(coolingCoil->handle(), _coolingCoil.get())); |
| 228 |
4/4✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 4 times.
|
12 | } else if (boost::optional<CoilCoolingDXVariableSpeed> dxCoil = coolingCoil->optionalCast<CoilCoolingDXVariableSpeed>()) { |
| 229 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil = translateCoilCoolingDXVariableSpeedWithoutUnitary(dxCoil.get()); |
| 230 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | m_map.insert(std::make_pair(coolingCoil->handle(), _coolingCoil.get())); |
| 231 | 4 | } else if (boost::optional<CoilSystemCoolingDXHeatExchangerAssisted> dxCoil = | |
| 232 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 2 times.
|
8 | coolingCoil->optionalCast<CoilSystemCoolingDXHeatExchangerAssisted>()) { |
| 233 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil = translateAndMapModelObject(dxCoil.get()); |
| 234 | 2 | } else if (boost::optional<CoilCoolingDXTwoStageWithHumidityControlMode> dxCoil = | |
| 235 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
|
4 | coolingCoil->optionalCast<CoilCoolingDXTwoStageWithHumidityControlMode>()) { |
| 236 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil = translateCoilCoolingDXTwoStageWithHumidityControlModeWithoutUnitary(dxCoil.get()); |
| 237 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | m_map.insert(std::make_pair(coolingCoil->handle(), _coolingCoil.get())); |
| 238 | } else { | ||
| 239 | ✗ | LOG(Fatal, modelObject.briefDescription() << " appears to have a cooling coil that shouldn't have been accepted: " | |
| 240 | << coolingCoil->briefDescription()); | ||
| 241 | ✗ | OS_ASSERT(false); | |
| 242 | 25 | } | |
| 243 | |||
| 244 |
6/12✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 13 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 13 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
39 | if (_coolingCoil && _coolingCoil->name()) { |
| 245 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingCoilObjectType, _coolingCoil->iddObject().name()); |
| 246 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::CoolingCoilName, _coolingCoil->name().get()); |
| 247 | } | ||
| 248 | } | ||
| 249 | |||
| 250 | // PriorityControlMode | ||
| 251 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 8 taken 13 times.
✗ Branch 9 not taken.
|
26 | if ((s = modelObject.priorityControlMode())) { |
| 252 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::PriorityControlMode, s.get()); |
| 253 | } | ||
| 254 | |||
| 255 | // MinimumOutletAirTemperatureDuringCoolingOperation | ||
| 256 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✗ Branch 8 not taken.
|
26 | if ((d = modelObject.minimumOutletAirTemperatureDuringCoolingOperation())) { |
| 257 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::MinimumOutletAirTemperatureDuringCoolingOperation, d.get()); |
| 258 | } | ||
| 259 | |||
| 260 | // MaximumOutletAirTemperatureDuringHeatingOperation)(Maximum Outlet Air Temperature During Heating Operation)) | ||
| 261 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✗ Branch 8 not taken.
|
26 | if ((d = modelObject.maximumOutletAirTemperatureDuringHeatingOperation())) { |
| 262 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::MaximumOutletAirTemperatureDuringHeatingOperation, d.get()); |
| 263 | } | ||
| 264 | |||
| 265 | // DehumidificationControlType | ||
| 266 |
3/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 8 taken 13 times.
✗ Branch 9 not taken.
|
26 | if ((s = modelObject.dehumidificationControlType())) { |
| 267 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::DehumidificationControlType, s.get()); |
| 268 | } | ||
| 269 | |||
| 270 | // Minimum Runtime Before Operating Mode Change | ||
| 271 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | unitarySystem.setDouble(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::MinimumRuntimeBeforeOperatingModeChange, |
| 272 | modelObject.minimumRuntimeBeforeOperatingModeChange()); | ||
| 273 | |||
| 274 |
4/8✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 13 times.
✗ Branch 7 not taken.
|
39 | if (_fan && _coolingCoil && _heatingCoil) { |
| 275 | 13 | std::string fanOutletNodeName; | |
| 276 | 13 | std::string fanInletNodeName; | |
| 277 | 13 | std::string heatOutletNodeName; | |
| 278 | 13 | std::string heatInletNodeName; | |
| 279 | 13 | std::string coolOutletNodeName; | |
| 280 | 13 | std::string coolInletNodeName; | |
| 281 | 13 | std::string mixedAirNodeName; | |
| 282 | |||
| 283 |
2/2✓ Branch 0 taken 5 times.
✓ Branch 1 taken 8 times.
|
13 | if (blowThroughFan) { |
| 284 |
1/1✓ Branch 1 taken 5 times.
|
5 | mixedAirNodeName = baseName + " Mixed Air Node"; |
| 285 |
1/1✓ Branch 1 taken 5 times.
|
5 | fanInletNodeName = mixedAirNodeName; |
| 286 |
1/1✓ Branch 1 taken 5 times.
|
5 | fanOutletNodeName = baseName + " Fan Outlet Node"; |
| 287 |
1/1✓ Branch 1 taken 5 times.
|
5 | coolInletNodeName = fanOutletNodeName; |
| 288 |
1/1✓ Branch 1 taken 5 times.
|
5 | coolOutletNodeName = baseName + " Cooling Coil Outlet Node"; |
| 289 |
1/1✓ Branch 1 taken 5 times.
|
5 | heatInletNodeName = coolOutletNodeName; |
| 290 |
1/1✓ Branch 1 taken 5 times.
|
5 | heatOutletNodeName = bypassDuctSplitterNodeName; |
| 291 | } else { | ||
| 292 |
1/1✓ Branch 1 taken 8 times.
|
8 | mixedAirNodeName = baseName + " Mixed Air Node"; |
| 293 |
1/1✓ Branch 1 taken 8 times.
|
8 | coolInletNodeName = mixedAirNodeName; |
| 294 |
1/1✓ Branch 1 taken 8 times.
|
8 | coolOutletNodeName = baseName + " Cooling Coil Outlet Node"; |
| 295 |
1/1✓ Branch 1 taken 8 times.
|
8 | heatInletNodeName = coolOutletNodeName; |
| 296 |
1/1✓ Branch 1 taken 8 times.
|
8 | heatOutletNodeName = baseName + " Heating Coil Outlet Node"; |
| 297 |
1/1✓ Branch 1 taken 8 times.
|
8 | fanInletNodeName = heatOutletNodeName; |
| 298 |
1/1✓ Branch 1 taken 8 times.
|
8 | fanOutletNodeName = bypassDuctSplitterNodeName; |
| 299 | } | ||
| 300 | |||
| 301 |
5/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 14 taken 13 times.
✗ Branch 15 not taken.
|
13 | if (_fan->iddObject().type() == IddObjectType::Fan_ConstantVolume) { |
| 302 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | _fan->setString(Fan_ConstantVolumeFields::AirInletNodeName, fanInletNodeName); |
| 303 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | _fan->setString(Fan_ConstantVolumeFields::AirOutletNodeName, fanOutletNodeName); |
| 304 | ✗ | } else if (_fan->iddObject().type() == IddObjectType::Fan_VariableVolume) { | |
| 305 | ✗ | _fan->setString(Fan_VariableVolumeFields::AirInletNodeName, fanInletNodeName); | |
| 306 | ✗ | _fan->setString(Fan_VariableVolumeFields::AirOutletNodeName, fanOutletNodeName); | |
| 307 | ✗ | } else if (_fan->iddObject().type() == IddObjectType::Fan_OnOff) { | |
| 308 | ✗ | _fan->setString(Fan_OnOffFields::AirInletNodeName, fanInletNodeName); | |
| 309 | ✗ | _fan->setString(Fan_OnOffFields::AirOutletNodeName, fanOutletNodeName); | |
| 310 | ✗ | } else if (_fan->iddObject().type() == IddObjectType::Fan_SystemModel) { | |
| 311 | ✗ | _fan->setString(Fan_SystemModelFields::AirInletNodeName, fanInletNodeName); | |
| 312 | ✗ | _fan->setString(Fan_SystemModelFields::AirOutletNodeName, fanOutletNodeName); | |
| 313 | } | ||
| 314 | |||
| 315 |
1/1✓ Branch 1 taken 13 times.
|
13 | fixSPMsForUnitarySystem(modelObject, fanInletNodeName, fanOutletNodeName); |
| 316 | |||
| 317 |
6/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 14 taken 7 times.
✓ Branch 15 taken 6 times.
|
13 | if (_coolingCoil->iddObject().type() == IddObjectType::Coil_Cooling_DX_SingleSpeed) { |
| 318 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | _coolingCoil->setString(Coil_Cooling_DX_SingleSpeedFields::AirInletNodeName, coolInletNodeName); |
| 319 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | _coolingCoil->setString(Coil_Cooling_DX_SingleSpeedFields::AirOutletNodeName, coolOutletNodeName); |
| 320 |
6/6✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 4 times.
|
6 | } else if (_coolingCoil->iddObject().type() == IddObjectType::Coil_Cooling_DX_VariableSpeed) { |
| 321 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil->setString(Coil_Cooling_DX_VariableSpeedFields::IndoorAirInletNodeName, coolInletNodeName); |
| 322 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil->setString(Coil_Cooling_DX_VariableSpeedFields::IndoorAirOutletNodeName, coolOutletNodeName); |
| 323 |
6/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 2 times.
|
4 | } else if (_coolingCoil->iddObject().type() == IddObjectType::CoilSystem_Cooling_DX_HeatExchangerAssisted) { |
| 324 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(coolingCoil); |
| 325 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | auto coilSystem = coolingCoil->optionalCast<model::CoilSystemCoolingDXHeatExchangerAssisted>(); |
| 326 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(coilSystem); |
| 327 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | auto hx = coilSystem->heatExchanger(); |
| 328 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto _hx = translateAndMapModelObject(hx); |
| 329 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(_hx); |
| 330 |
5/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✗ Branch 15 not taken.
|
2 | if (_hx->iddObject().type() == IddObjectType::HeatExchanger_AirToAir_SensibleAndLatent) { |
| 331 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _hx->setString(HeatExchanger_AirToAir_SensibleAndLatentFields::SupplyAirInletNodeName, coolInletNodeName); |
| 332 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _hx->setString(HeatExchanger_AirToAir_SensibleAndLatentFields::ExhaustAirOutletNodeName, coolOutletNodeName); |
| 333 | ✗ | } else if (_hx->iddObject().type() == IddObjectType::HeatExchanger_Desiccant_BalancedFlow) { | |
| 334 | ✗ | _hx->setString(HeatExchanger_Desiccant_BalancedFlowFields::RegenerationAirInletNodeName, coolInletNodeName); | |
| 335 | ✗ | _hx->setString(HeatExchanger_Desiccant_BalancedFlowFields::ProcessAirOutletNodeName, coolOutletNodeName); | |
| 336 | } else { | ||
| 337 | ✗ | LOG(Warn, modelObject.briefDescription() << ": Contains an unsupported type " << _hx->iddObject().type() << "."); | |
| 338 | } | ||
| 339 |
5/6✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✓ Branch 17 taken 2 times.
✗ Branch 18 not taken.
|
4 | } else if (_coolingCoil->iddObject().type() == IddObjectType::Coil_Cooling_DX_TwoStageWithHumidityControlMode) { |
| 340 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil->setString(Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AirInletNodeName, coolInletNodeName); |
| 341 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _coolingCoil->setString(Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AirOutletNodeName, coolOutletNodeName); |
| 342 | } | ||
| 343 | |||
| 344 |
6/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✓ Branch 10 taken 13 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 11 times.
|
13 | if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_DX_SingleSpeed) { |
| 345 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_DX_SingleSpeedFields::AirInletNodeName, heatInletNodeName); |
| 346 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_DX_SingleSpeedFields::AirOutletNodeName, heatOutletNodeName); |
| 347 |
6/6✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✓ Branch 10 taken 11 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 9 times.
|
11 | } else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_DX_VariableSpeed) { |
| 348 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_DX_VariableSpeedFields::IndoorAirInletNodeName, heatInletNodeName); |
| 349 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_DX_VariableSpeedFields::IndoorAirOutletNodeName, heatOutletNodeName); |
| 350 |
6/6✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✓ Branch 10 taken 9 times.
✓ Branch 14 taken 2 times.
✓ Branch 15 taken 7 times.
|
9 | } else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Fuel) { |
| 351 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_FuelFields::AirInletNodeName, heatInletNodeName); |
| 352 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_FuelFields::AirOutletNodeName, heatOutletNodeName); |
| 353 |
6/6✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 7 times.
✓ Branch 14 taken 5 times.
✓ Branch 15 taken 2 times.
|
7 | } else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Electric) { |
| 354 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | _heatingCoil->setString(Coil_Heating_ElectricFields::AirInletNodeName, heatInletNodeName); |
| 355 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | _heatingCoil->setString(Coil_Heating_ElectricFields::AirOutletNodeName, heatOutletNodeName); |
| 356 |
5/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✗ Branch 15 not taken.
|
2 | } else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Water) { |
| 357 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_WaterFields::AirInletNodeName, heatInletNodeName); |
| 358 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | _heatingCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName, heatOutletNodeName); |
| 359 | } | ||
| 360 | |||
| 361 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | IdfObject _outdoorAirMixer(IddObjectType::OutdoorAir_Mixer); |
| 362 |
1/1✓ Branch 1 taken 13 times.
|
13 | _outdoorAirMixer.setName(outdoorAirMixerName); |
| 363 |
1/1✓ Branch 1 taken 13 times.
|
13 | m_idfObjects.push_back(_outdoorAirMixer); |
| 364 | |||
| 365 |
1/1✓ Branch 1 taken 13 times.
|
13 | std::string oaNodeName = baseName + " OA Node"; |
| 366 |
1/1✓ Branch 1 taken 13 times.
|
13 | _outdoorAirMixer.setString(OutdoorAir_MixerFields::MixedAirNodeName, mixedAirNodeName); |
| 367 |
1/1✓ Branch 1 taken 13 times.
|
13 | _outdoorAirMixer.setString(OutdoorAir_MixerFields::OutdoorAirStreamNodeName, oaNodeName); |
| 368 | |||
| 369 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | IdfObject _oaNodeList(openstudio::IddObjectType::OutdoorAir_NodeList); |
| 370 |
1/1✓ Branch 1 taken 13 times.
|
13 | _oaNodeList.setString(0, oaNodeName); |
| 371 |
1/1✓ Branch 1 taken 13 times.
|
13 | m_idfObjects.push_back(_oaNodeList); |
| 372 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | _outdoorAirMixer.setString(OutdoorAir_MixerFields::ReliefAirStreamNodeName, baseName + " Relief Air Node"); |
| 373 |
1/1✓ Branch 1 taken 13 times.
|
13 | _outdoorAirMixer.setString(OutdoorAir_MixerFields::ReturnAirStreamNodeName, bypassDuctMixerNodeName); |
| 374 | |||
| 375 | // Plenum or Mixer | ||
| 376 |
3/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 11 times.
|
26 | if (boost::optional<Mixer> returnPathComponent = modelObject.plenumorMixer()) { |
| 377 | // In this case, do translate the node | ||
| 378 | 2 | unitarySystem.setString(AirLoopHVAC_UnitaryHeatCool_VAVChangeoverBypassFields::PlenumorMixerInletNodeName, | |
| 379 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | modelObject.plenumorMixerNode().name().get()); |
| 380 | 13 | } | |
| 381 | 13 | } | |
| 382 | |||
| 383 |
1/1✓ Branch 1 taken 13 times.
|
26 | return unitarySystem; |
| 384 | 13 | } | |
| 385 | |||
| 386 | } // namespace energyplus | ||
| 387 | |||
| 388 | } // namespace openstudio | ||
| 389 |