src/energyplus/ForwardTranslator/ForwardTranslateAirTerminalSingleDuctParallelPIUReheat.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/AirTerminalSingleDuctParallelPIUReheat.hpp" | ||
| 9 | #include "../../model/AirTerminalSingleDuctParallelPIUReheat_Impl.hpp" | ||
| 10 | #include "../../model/HVACComponent.hpp" | ||
| 11 | #include "../../model/Schedule.hpp" | ||
| 12 | #include "../../model/Schedule_Impl.hpp" | ||
| 13 | #include "../../model/ThermalZone.hpp" | ||
| 14 | #include "../../model/ThermalZone_Impl.hpp" | ||
| 15 | #include "../../model/Node.hpp" | ||
| 16 | #include "../../model/Node_Impl.hpp" | ||
| 17 | #include "../../model/CoilHeatingWater.hpp" | ||
| 18 | #include "../../model/CoilHeatingWater_Impl.hpp" | ||
| 19 | #include "../../utilities/idf/IdfExtensibleGroup.hpp" | ||
| 20 | #include <utilities/idd/AirTerminal_SingleDuct_ParallelPIU_Reheat_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/ZoneHVAC_AirDistributionUnit_FieldEnums.hxx> | ||
| 22 | #include <utilities/idd/AirLoopHVAC_ZoneMixer_FieldEnums.hxx> | ||
| 23 | #include <utilities/idd/Coil_Heating_Fuel_FieldEnums.hxx> | ||
| 24 | #include <utilities/idd/Coil_Heating_Electric_FieldEnums.hxx> | ||
| 25 | #include <utilities/idd/Coil_Heating_Water_FieldEnums.hxx> | ||
| 26 | #include <utilities/idd/Fan_ConstantVolume_FieldEnums.hxx> | ||
| 27 | #include <utilities/idd/Fan_SystemModel_FieldEnums.hxx> | ||
| 28 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 29 | #include <utilities/idd/IddEnums.hxx> | ||
| 30 | #include <utilities/idd/IddFactory.hxx> | ||
| 31 | |||
| 32 | using namespace openstudio::model; | ||
| 33 | |||
| 34 | namespace openstudio { | ||
| 35 | |||
| 36 | namespace energyplus { | ||
| 37 | |||
| 38 | 1 | boost::optional<IdfObject> ForwardTranslator::translateAirTerminalSingleDuctParallelPIUReheat(AirTerminalSingleDuctParallelPIUReheat& modelObject) { | |
| 39 | 1 | OptionalModelObject temp; | |
| 40 | 1 | OptionalString optS; | |
| 41 | 1 | boost::optional<std::string> s; | |
| 42 | 1 | boost::optional<double> value; | |
| 43 | |||
| 44 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject _airDistributionUnit(openstudio::IddObjectType::ZoneHVAC_AirDistributionUnit); |
| 45 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | _airDistributionUnit.setName(modelObject.name().get() + " Air Distribution Unit"); |
| 46 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(_airDistributionUnit); |
| 47 | |||
| 48 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject idfObject(openstudio::IddObjectType::AirTerminal_SingleDuct_ParallelPIU_Reheat); |
| 49 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setName(modelObject.name().get()); |
| 50 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(idfObject); |
| 51 | |||
| 52 |
1/1✓ Branch 1 taken 1 time.
|
1 | HVACComponent coil = modelObject.reheatCoil(); |
| 53 | |||
| 54 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<IdfObject> _reheatCoil = translateAndMapModelObject(coil); |
| 55 | |||
| 56 |
1/1✓ Branch 1 taken 1 time.
|
1 | HVACComponent fan = modelObject.fan(); |
| 57 | |||
| 58 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<IdfObject> _fan = translateAndMapModelObject(fan); |
| 59 | |||
| 60 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | std::string fanOutletNodeName = modelObject.name().get() + " Fan Outlet"; |
| 61 | |||
| 62 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | std::string mixerOutletNodeName = modelObject.name().get() + " Mixer Outlet"; |
| 63 | |||
| 64 | 1 | boost::optional<std::string> inletNodeName; | |
| 65 | 1 | boost::optional<std::string> secondaryAirInletNodeName; | |
| 66 | 1 | boost::optional<std::string> outletNodeName; | |
| 67 | |||
| 68 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> inletModelObject = modelObject.inletModelObject()) { |
| 69 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> inletNode = inletModelObject->optionalCast<Node>()) { |
| 70 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | inletNodeName = inletNode->name().get(); |
| 71 | 1 | } | |
| 72 | 1 | } | |
| 73 | |||
| 74 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> outletModelObject = modelObject.outletModelObject()) { |
| 75 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> outletNode = outletModelObject->optionalCast<Node>()) { |
| 76 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | outletNodeName = outletNode->name().get(); |
| 77 | 1 | } | |
| 78 | 1 | } | |
| 79 | |||
| 80 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<Node> secondaryInletNode = modelObject.secondaryAirInletNode()) { |
| 81 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (secondaryInletNode) { |
| 82 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | secondaryAirInletNodeName = secondaryInletNode->name().get(); |
| 83 | } | ||
| 84 | 1 | } | |
| 85 | |||
| 86 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (outletNodeName) { |
| 87 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::OutletNodeName, outletNodeName.get()); |
| 88 | } | ||
| 89 | |||
| 90 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (inletNodeName) { |
| 91 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::SupplyAirInletNodeName, inletNodeName.get()); |
| 92 | } | ||
| 93 | |||
| 94 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (secondaryAirInletNodeName) { |
| 95 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::SecondaryAirInletNodeName, secondaryAirInletNodeName.get()); |
| 96 | } | ||
| 97 | |||
| 98 | // Populate fields for AirDistributionUnit | ||
| 99 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (outletNodeName) { |
| 100 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirDistributionUnitOutletNodeName, outletNodeName.get()); |
| 101 | } | ||
| 102 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirTerminalObjectType, idfObject.iddObject().name()); |
| 103 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirTerminalName, idfObject.name().get()); |
| 104 | |||
| 105 | // MixerName | ||
| 106 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject _mixer(IddObjectType::AirLoopHVAC_ZoneMixer); |
| 107 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | _mixer.setName(modelObject.name().get() + " Mixer"); |
| 108 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(_mixer); |
| 109 |
1/1✓ Branch 1 taken 1 time.
|
1 | _mixer.clearExtensibleGroups(); |
| 110 | |||
| 111 |
1/1✓ Branch 1 taken 1 time.
|
1 | _mixer.setString(AirLoopHVAC_ZoneMixerFields::OutletNodeName, mixerOutletNodeName); |
| 112 | |||
| 113 |
1/1✓ Branch 1 taken 1 time.
|
1 | IdfExtensibleGroup eg = _mixer.pushExtensibleGroup(); |
| 114 |
1/1✓ Branch 1 taken 1 time.
|
1 | eg.setString(AirLoopHVAC_ZoneMixerExtensibleFields::InletNodeName, fanOutletNodeName); |
| 115 | |||
| 116 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (inletNodeName) { |
| 117 |
1/1✓ Branch 1 taken 1 time.
|
1 | eg = _mixer.pushExtensibleGroup(); |
| 118 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | eg.setString(AirLoopHVAC_ZoneMixerExtensibleFields::InletNodeName, inletNodeName.get()); |
| 119 | } | ||
| 120 | |||
| 121 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::ZoneMixerName, _mixer.name().get()); |
| 122 | |||
| 123 | // FanName | ||
| 124 |
3/12✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 1 time.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
2 | if (_fan || _fan->name()) { |
| 125 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanName, _fan->name().get()); |
| 126 | |||
| 127 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 14 not taken.
✓ Branch 15 taken 1 time.
|
1 | if (_fan->iddObject().type() == IddObjectType::Fan_ConstantVolume) { |
| 128 | ✗ | if (secondaryAirInletNodeName) { | |
| 129 | ✗ | _fan->setString(Fan_ConstantVolumeFields::AirInletNodeName, secondaryAirInletNodeName.get()); | |
| 130 | } | ||
| 131 | ✗ | _fan->setString(Fan_ConstantVolumeFields::AirOutletNodeName, fanOutletNodeName); | |
| 132 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✗ Branch 15 not taken.
|
1 | } else if (_fan->iddObject().type() == IddObjectType::Fan_SystemModel) { |
| 133 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (secondaryAirInletNodeName) { |
| 134 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | _fan->setString(Fan_SystemModelFields::AirInletNodeName, secondaryAirInletNodeName.get()); |
| 135 | } | ||
| 136 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _fan->setString(Fan_SystemModelFields::AirOutletNodeName, fanOutletNodeName); |
| 137 | } | ||
| 138 | } | ||
| 139 | |||
| 140 | // ReheatCoilName | ||
| 141 |
6/12✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
3 | if (_reheatCoil && _reheatCoil->name()) { |
| 142 | // Reheat Coil Name | ||
| 143 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::ReheatCoilName, _reheatCoil->name().get()); |
| 144 | |||
| 145 | // Reheat Coil Type | ||
| 146 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::ReheatCoilObjectType, _reheatCoil->iddObject().name()); |
| 147 | |||
| 148 |
3/6✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
|
2 | if (outletNodeName && inletNodeName) { |
| 149 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 14 not taken.
✓ Branch 15 taken 1 time.
|
1 | if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Fuel) { |
| 150 | ✗ | _reheatCoil->setString(Coil_Heating_FuelFields::AirInletNodeName, mixerOutletNodeName); | |
| 151 | ✗ | _reheatCoil->setString(Coil_Heating_FuelFields::AirOutletNodeName, outletNodeName.get()); | |
| 152 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✗ Branch 15 not taken.
|
1 | } else if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Electric) { |
| 153 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _reheatCoil->setString(Coil_Heating_ElectricFields::AirInletNodeName, mixerOutletNodeName); |
| 154 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | _reheatCoil->setString(Coil_Heating_ElectricFields::AirOutletNodeName, outletNodeName.get()); |
| 155 | ✗ | } else if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Water) { | |
| 156 | ✗ | _reheatCoil->setString(Coil_Heating_WaterFields::AirInletNodeName, mixerOutletNodeName); | |
| 157 | ✗ | _reheatCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName, outletNodeName.get()); | |
| 158 | } | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | // AvailabilityScheduleName | ||
| 163 |
1/1✓ Branch 1 taken 1 time.
|
1 | Schedule availabilitySchedule = modelObject.availabilitySchedule(); |
| 164 | |||
| 165 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<IdfObject> _availabilitySchedule = translateAndMapModelObject(availabilitySchedule); |
| 166 | |||
| 167 |
6/12✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
|
3 | if (_availabilitySchedule && _availabilitySchedule->name()) { |
| 168 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::AvailabilityScheduleName, _availabilitySchedule->name().get()); |
| 169 | } | ||
| 170 | |||
| 171 | // MaximumPrimaryAirFlowRate | ||
| 172 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isMaximumPrimaryAirFlowRateAutosized()) { |
| 173 | ✗ | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumPrimaryAirFlowRate, "Autosize"); | |
| 174 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.maximumPrimaryAirFlowRate())) { |
| 175 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumPrimaryAirFlowRate, value.get()); |
| 176 | } | ||
| 177 | |||
| 178 | // MaximumSecondaryAirFlowRate | ||
| 179 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isMaximumSecondaryAirFlowRateAutosized()) { |
| 180 | ✗ | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumSecondaryAirFlowRate, "Autosize"); | |
| 181 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.maximumSecondaryAirFlowRate())) { |
| 182 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumSecondaryAirFlowRate, value.get()); |
| 183 | } | ||
| 184 | |||
| 185 | // MinimumPrimaryAirFlowFraction | ||
| 186 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isMinimumPrimaryAirFlowFractionAutosized()) { |
| 187 | ✗ | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumPrimaryAirFlowFraction, "Autosize"); | |
| 188 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.minimumPrimaryAirFlowFraction())) { |
| 189 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumPrimaryAirFlowFraction, value.get()); |
| 190 | } | ||
| 191 | |||
| 192 | // FanOnFlowFraction | ||
| 193 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isFanOnFlowFractionAutosized()) { |
| 194 | ✗ | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanOnFlowFraction, "Autosize"); | |
| 195 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.fanOnFlowFraction())) { |
| 196 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanOnFlowFraction, value.get()); |
| 197 | } | ||
| 198 | |||
| 199 | // MaximumHotWaterorSteamFlowRate | ||
| 200 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isMaximumHotWaterorSteamFlowRateAutosized()) { |
| 201 | ✗ | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, "Autosize"); | |
| 202 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.maximumHotWaterorSteamFlowRate())) { |
| 203 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, value.get()); |
| 204 | } | ||
| 205 | |||
| 206 | // MinimumHotWaterorSteamFlowRate | ||
| 207 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.minimumHotWaterorSteamFlowRate())) { |
| 208 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumHotWaterorSteamFlowRate, value.get()); |
| 209 | } | ||
| 210 | |||
| 211 | // ConvergenceTolerance | ||
| 212 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.convergenceTolerance())) { |
| 213 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::ConvergenceTolerance, value.get()); |
| 214 | } | ||
| 215 | |||
| 216 | // FanControlType | ||
| 217 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
2 | if ((s = modelObject.fanControlType())) { |
| 218 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanControlType, s.get()); |
| 219 | } | ||
| 220 | |||
| 221 | // MinimumFanTurnDownRatio | ||
| 222 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.minimumFanTurnDownRatio())) { |
| 223 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumFanTurnDownRatio, value.get()); |
| 224 | } | ||
| 225 | |||
| 226 | // HeatingControlType | ||
| 227 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
2 | if ((s = modelObject.heatingControlType())) { |
| 228 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::HeatingControlType, s.get()); |
| 229 | } | ||
| 230 | |||
| 231 | // DesignHeatingDischargeAirTemperature | ||
| 232 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.designHeatingDischargeAirTemperature())) { |
| 233 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::DesignHeatingDischargeAirTemperature, value.get()); |
| 234 | } | ||
| 235 | |||
| 236 | // HighLimitHeatingDischargeAirTemperature | ||
| 237 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.highLimitHeatingDischargeAirTemperature())) { |
| 238 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::HighLimitHeatingDischargeAirTemperature, value.get()); |
| 239 | } | ||
| 240 | |||
| 241 |
1/1✓ Branch 1 taken 1 time.
|
2 | return _airDistributionUnit; |
| 242 | 1 | } | |
| 243 | |||
| 244 | } // namespace energyplus | ||
| 245 | |||
| 246 | } // namespace openstudio | ||
| 247 |