src/energyplus/ForwardTranslator/ForwardTranslateSizingSystem.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/SizingSystem.hpp" | ||
| 9 | #include "../../model/SizingSystem_Impl.hpp" | ||
| 10 | #include "../../model/AirLoopHVAC.hpp" | ||
| 11 | #include "../../model/AirLoopHVAC_Impl.hpp" | ||
| 12 | #include "../../utilities/core/Logger.hpp" | ||
| 13 | #include "../../utilities/core/Assert.hpp" | ||
| 14 | #include <utilities/idd/Sizing_System_FieldEnums.hxx> | ||
| 15 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 16 | #include <utilities/idd/IddEnums.hxx> | ||
| 17 | #include <utilities/idd/IddFactory.hxx> | ||
| 18 | |||
| 19 | using namespace openstudio::model; | ||
| 20 | |||
| 21 | namespace openstudio { | ||
| 22 | |||
| 23 | namespace energyplus { | ||
| 24 | |||
| 25 | 200 | boost::optional<IdfObject> ForwardTranslator::translateSizingSystem(SizingSystem& modelObject) { | |
| 26 | 200 | boost::optional<std::string> s; | |
| 27 | 200 | boost::optional<double> value; | |
| 28 | |||
| 29 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | IdfObject idfObject(IddObjectType::Sizing_System); |
| 30 | |||
| 31 |
1/1✓ Branch 1 taken 200 times.
|
200 | m_idfObjects.push_back(idfObject); |
| 32 | |||
| 33 | // AirLoopName | ||
| 34 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.airLoopHVAC().name(); |
| 35 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 36 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::AirLoopName, s.get()); |
| 37 | } | ||
| 38 | |||
| 39 | // TypeofLoadtoSizeOn | ||
| 40 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.typeofLoadtoSizeOn(); |
| 41 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 42 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::TypeofLoadtoSizeOn, s.get()); |
| 43 | } | ||
| 44 | |||
| 45 | // DesignOutdoorAirFlowRate | ||
| 46 |
2/3✓ Branch 1 taken 200 times.
✓ Branch 3 taken 200 times.
✗ Branch 4 not taken.
|
200 | if (modelObject.isDesignOutdoorAirFlowRateAutosized()) { |
| 47 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
400 | idfObject.setString(Sizing_SystemFields::DesignOutdoorAirFlowRate, "Autosize"); |
| 48 | ✗ | } else if ((value = modelObject.designOutdoorAirFlowRate())) { | |
| 49 | ✗ | idfObject.setDouble(Sizing_SystemFields::DesignOutdoorAirFlowRate, value.get()); | |
| 50 | } | ||
| 51 | |||
| 52 | // CentralHeatingMaximumSystemAirFlowRatio | ||
| 53 |
2/3✓ Branch 1 taken 200 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 200 times.
|
200 | if (modelObject.isCentralHeatingMaximumSystemAirFlowRatioAutosized()) { |
| 54 | ✗ | idfObject.setString(Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, "Autosize"); | |
| 55 |
2/3✓ Branch 1 taken 200 times.
✓ Branch 3 taken 200 times.
✗ Branch 4 not taken.
|
400 | } else if ((value = modelObject.centralHeatingMaximumSystemAirFlowRatio())) { |
| 56 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, value.get()); |
| 57 | } | ||
| 58 | |||
| 59 | // PreheatDesignTemperature | ||
| 60 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.preheatDesignTemperature(); |
| 61 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 62 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::PreheatDesignTemperature, value.get()); |
| 63 | } | ||
| 64 | |||
| 65 | // PreheatDesignHumidityRatio | ||
| 66 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.preheatDesignHumidityRatio(); |
| 67 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 68 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::PreheatDesignHumidityRatio, value.get()); |
| 69 | } | ||
| 70 | |||
| 71 | // PrecoolDesignTemperature | ||
| 72 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.precoolDesignTemperature(); |
| 73 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 74 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::PrecoolDesignTemperature, value.get()); |
| 75 | } | ||
| 76 | |||
| 77 | // PrecoolDesignHumidityRatio | ||
| 78 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.precoolDesignHumidityRatio(); |
| 79 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 80 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::PrecoolDesignHumidityRatio, value.get()); |
| 81 | } | ||
| 82 | |||
| 83 | // CentralCoolingDesignSupplyAirTemperature | ||
| 84 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.centralCoolingDesignSupplyAirTemperature(); |
| 85 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 86 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CentralCoolingDesignSupplyAirTemperature, value.get()); |
| 87 | } | ||
| 88 | |||
| 89 | // CentralHeatingDesignSupplyAirTemperature | ||
| 90 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.centralHeatingDesignSupplyAirTemperature(); |
| 91 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 92 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CentralHeatingDesignSupplyAirTemperature, value.get()); |
| 93 | } | ||
| 94 | |||
| 95 | // SizingOption | ||
| 96 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.sizingOption(); |
| 97 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 98 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::TypeofZoneSumtoUse, s.get()); |
| 99 | } | ||
| 100 | |||
| 101 | // AllOutdoorAirinCooling | ||
| 102 |
1/1✓ Branch 1 taken 200 times.
|
200 | bool b = modelObject.allOutdoorAirinCooling(); |
| 103 |
2/2✓ Branch 0 taken 189 times.
✓ Branch 1 taken 11 times.
|
200 | if (b) { |
| 104 |
2/2✓ Branch 1 taken 189 times.
✓ Branch 4 taken 189 times.
|
378 | idfObject.setString(Sizing_SystemFields::AllOutdoorAirinCooling, "Yes"); |
| 105 | } else { | ||
| 106 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
22 | idfObject.setString(Sizing_SystemFields::AllOutdoorAirinCooling, "No"); |
| 107 | } | ||
| 108 | |||
| 109 | // AllOutdoorAirinHeating | ||
| 110 |
1/1✓ Branch 1 taken 200 times.
|
200 | b = modelObject.allOutdoorAirinHeating(); |
| 111 |
2/2✓ Branch 0 taken 189 times.
✓ Branch 1 taken 11 times.
|
200 | if (b) { |
| 112 |
2/2✓ Branch 1 taken 189 times.
✓ Branch 4 taken 189 times.
|
378 | idfObject.setString(Sizing_SystemFields::AllOutdoorAirinHeating, "Yes"); |
| 113 | } else { | ||
| 114 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
22 | idfObject.setString(Sizing_SystemFields::AllOutdoorAirinHeating, "No"); |
| 115 | } | ||
| 116 | |||
| 117 | // CentralCoolingDesignSupplyAirHumidityRatio | ||
| 118 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.centralCoolingDesignSupplyAirHumidityRatio(); |
| 119 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 120 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CentralCoolingDesignSupplyAirHumidityRatio, value.get()); |
| 121 | } | ||
| 122 | |||
| 123 | // CentralHeatingDesignSupplyAirHumidityRatio | ||
| 124 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.centralHeatingDesignSupplyAirHumidityRatio(); |
| 125 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 126 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CentralHeatingDesignSupplyAirHumidityRatio, value.get()); |
| 127 | } | ||
| 128 | |||
| 129 | // CoolingDesignAirFlowMethod | ||
| 130 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.coolingDesignAirFlowMethod(); |
| 131 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 132 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::CoolingSupplyAirFlowRateMethod, s.get()); |
| 133 | } | ||
| 134 | |||
| 135 | // CoolingDesignAirFlowRate | ||
| 136 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.coolingDesignAirFlowRate(); |
| 137 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 138 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CoolingSupplyAirFlowRate, value.get()); |
| 139 | } | ||
| 140 | |||
| 141 | // HeatingDesignAirFlowMethod | ||
| 142 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.heatingDesignAirFlowMethod(); |
| 143 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 144 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::HeatingSupplyAirFlowRateMethod, s.get()); |
| 145 | } | ||
| 146 | |||
| 147 | // HeatingDesignAirFlowRate | ||
| 148 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingDesignAirFlowRate(); |
| 149 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 150 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingSupplyAirFlowRate, value.get()); |
| 151 | } | ||
| 152 | |||
| 153 | // SystemOutdoorAirMethod | ||
| 154 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.systemOutdoorAirMethod(); |
| 155 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 156 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::SystemOutdoorAirMethod, s.get()); |
| 157 | } | ||
| 158 | |||
| 159 | // ZoneMaximumOutdoorAirFraction | ||
| 160 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.zoneMaximumOutdoorAirFraction(); |
| 161 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 162 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::ZoneMaximumOutdoorAirFraction, value.get()); |
| 163 | } | ||
| 164 | |||
| 165 | // CoolingSupplyAirFlowRatePerFloorArea | ||
| 166 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.coolingSupplyAirFlowRatePerFloorArea(); |
| 167 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 168 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CoolingSupplyAirFlowRatePerFloorArea, value.get()); |
| 169 | } | ||
| 170 | |||
| 171 | // CoolingFractionofAutosizedCoolingSupplyAirFlowRate | ||
| 172 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.coolingFractionofAutosizedCoolingSupplyAirFlowRate(); |
| 173 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 174 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CoolingFractionofAutosizedCoolingSupplyAirFlowRate, value.get()); |
| 175 | } | ||
| 176 | |||
| 177 | // CoolingSupplyAirFlowRatePerUnitCoolingCapacity | ||
| 178 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.coolingSupplyAirFlowRatePerUnitCoolingCapacity(); |
| 179 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 180 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CoolingSupplyAirFlowRatePerUnitCoolingCapacity, value.get()); |
| 181 | } | ||
| 182 | |||
| 183 | // HeatingSupplyAirFlowRatePerFloorArea | ||
| 184 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingSupplyAirFlowRatePerFloorArea(); |
| 185 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 186 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingSupplyAirFlowRatePerFloorArea, value.get()); |
| 187 | } | ||
| 188 | |||
| 189 | // HeatingFractionofAutosizedHeatingSupplyAirFlowRate | ||
| 190 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingFractionofAutosizedHeatingSupplyAirFlowRate(); |
| 191 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 192 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingFractionofAutosizedHeatingSupplyAirFlowRate, value.get()); |
| 193 | } | ||
| 194 | |||
| 195 | // HeatingFractionofAutosizedCoolingSupplyAirFlowRate | ||
| 196 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingFractionofAutosizedCoolingSupplyAirFlowRate(); |
| 197 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 198 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingFractionofAutosizedCoolingSupplyAirFlowRate, value.get()); |
| 199 | } | ||
| 200 | |||
| 201 | // HeatingSupplyAirFlowRatePerUnitHeatingCapacity | ||
| 202 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingSupplyAirFlowRatePerUnitHeatingCapacity(); |
| 203 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 204 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingSupplyAirFlowRatePerUnitHeatingCapacity, value.get()); |
| 205 | } | ||
| 206 | |||
| 207 | // CoolingDesignCapacityMethod | ||
| 208 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.coolingDesignCapacityMethod(); |
| 209 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 210 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::CoolingDesignCapacityMethod, s.get()); |
| 211 | } | ||
| 212 | |||
| 213 | // CoolingDesignCapacity | ||
| 214 |
1/1✓ Branch 1 taken 200 times.
|
200 | value = modelObject.coolingDesignCapacity(); |
| 215 |
2/3✓ Branch 1 taken 200 times.
✓ Branch 3 taken 200 times.
✗ Branch 4 not taken.
|
200 | if (modelObject.isCoolingDesignCapacityAutosized()) { |
| 216 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
400 | idfObject.setString(Sizing_SystemFields::CoolingDesignCapacity, "Autosize"); |
| 217 | ✗ | } else if (value) { | |
| 218 | ✗ | idfObject.setDouble(Sizing_SystemFields::CoolingDesignCapacity, value.get()); | |
| 219 | } | ||
| 220 | |||
| 221 | // CoolingDesignCapacityPerFloorArea | ||
| 222 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.coolingDesignCapacityPerFloorArea(); |
| 223 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 224 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::CoolingDesignCapacityPerFloorArea, value.get()); |
| 225 | } | ||
| 226 | |||
| 227 | // FractionofAutosizedCoolingDesignCapacity | ||
| 228 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.fractionofAutosizedCoolingDesignCapacity(); |
| 229 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 230 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::FractionofAutosizedCoolingDesignCapacity, value.get()); |
| 231 | } | ||
| 232 | |||
| 233 | // HeatingDesignCapacityMethod | ||
| 234 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.heatingDesignCapacityMethod(); |
| 235 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 236 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::HeatingDesignCapacityMethod, s.get()); |
| 237 | } | ||
| 238 | |||
| 239 | // HeatingDesignCapacity | ||
| 240 |
1/1✓ Branch 1 taken 200 times.
|
200 | value = modelObject.heatingDesignCapacity(); |
| 241 |
2/3✓ Branch 1 taken 200 times.
✓ Branch 3 taken 200 times.
✗ Branch 4 not taken.
|
200 | if (modelObject.isHeatingDesignCapacityAutosized()) { |
| 242 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
400 | idfObject.setString(Sizing_SystemFields::HeatingDesignCapacity, "Autosize"); |
| 243 | ✗ | } else if (value) { | |
| 244 | ✗ | idfObject.setDouble(Sizing_SystemFields::HeatingDesignCapacity, value.get()); | |
| 245 | } | ||
| 246 | |||
| 247 | // HeatingDesignCapacityPerFloorArea | ||
| 248 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.heatingDesignCapacityPerFloorArea(); |
| 249 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 250 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::HeatingDesignCapacityPerFloorArea, value.get()); |
| 251 | } | ||
| 252 | |||
| 253 | // FractionofAutosizedHeatingDesignCapacity | ||
| 254 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.fractionofAutosizedHeatingDesignCapacity(); |
| 255 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 256 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::FractionofAutosizedHeatingDesignCapacity, value.get()); |
| 257 | } | ||
| 258 | |||
| 259 | // CentralCoolingCapacityControlMethod | ||
| 260 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.centralCoolingCapacityControlMethod(); |
| 261 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 262 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::CentralCoolingCapacityControlMethod, s.get()); |
| 263 | } | ||
| 264 | |||
| 265 | // OccupantDiversity | ||
| 266 |
1/1✓ Branch 1 taken 200 times.
|
200 | value = modelObject.occupantDiversity(); |
| 267 |
3/3✓ Branch 1 taken 200 times.
✓ Branch 3 taken 190 times.
✓ Branch 4 taken 10 times.
|
200 | if (modelObject.isOccupantDiversityAutosized()) { |
| 268 |
2/2✓ Branch 1 taken 190 times.
✓ Branch 4 taken 190 times.
|
380 | idfObject.setString(Sizing_SystemFields::OccupantDiversity, "Autosize"); |
| 269 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | } else if (value) { |
| 270 | ✗ | idfObject.setDouble(Sizing_SystemFields::OccupantDiversity, value.get()); | |
| 271 | } | ||
| 272 | |||
| 273 | // HeatingCoilSizingMethod | ||
| 274 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | s = modelObject.heatingCoilSizingMethod(); |
| 275 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (s) { |
| 276 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setString(Sizing_SystemFields::HeatingCoilSizingMethod, s.get()); |
| 277 | } | ||
| 278 | |||
| 279 | // MaximumHeatingCapacityToCoolingCapacitySizingRatio | ||
| 280 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | value = modelObject.maximumHeatingCapacityToCoolingCapacitySizingRatio(); |
| 281 |
1/2✓ Branch 0 taken 200 times.
✗ Branch 1 not taken.
|
200 | if (value) { |
| 282 |
2/2✓ Branch 1 taken 200 times.
✓ Branch 4 taken 200 times.
|
200 | idfObject.setDouble(Sizing_SystemFields::MaximumHeatingCapacityToCoolingCapacitySizingRatio, value.get()); |
| 283 | } | ||
| 284 | |||
| 285 |
1/1✓ Branch 1 taken 200 times.
|
400 | return idfObject; |
| 286 | 200 | } | |
| 287 | |||
| 288 | } // namespace energyplus | ||
| 289 | |||
| 290 | } // namespace openstudio | ||
| 291 |