src/energyplus/ForwardTranslator/ForwardTranslateDesignDay.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/DesignDay.hpp" | ||
| 8 | #include "../../model/ScheduleDay.hpp" | ||
| 9 | #include "../../model/ScheduleDay_Impl.hpp" | ||
| 10 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 11 | #include <utilities/idd/SizingPeriod_DesignDay_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | using namespace openstudio::model; | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | |||
| 18 | namespace energyplus { | ||
| 19 | |||
| 20 | 158 | boost::optional<IdfObject> ForwardTranslator::translateDesignDay(DesignDay& modelObject) { | |
| 21 | |||
| 22 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | IdfObject idfObject(openstudio::IddObjectType::SizingPeriod_DesignDay); |
| 23 | |||
| 24 | // Name | ||
| 25 |
3/3✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 7 taken 158 times.
|
158 | idfObject.setName(modelObject.name().get()); |
| 26 | |||
| 27 | // Month | ||
| 28 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setInt(SizingPeriod_DesignDayFields::Month, modelObject.month()); |
| 29 | |||
| 30 | // Day of Month | ||
| 31 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setInt(SizingPeriod_DesignDayFields::DayofMonth, modelObject.dayOfMonth()); |
| 32 | |||
| 33 | // Day Type | ||
| 34 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setString(SizingPeriod_DesignDayFields::DayType, modelObject.dayType()); |
| 35 | |||
| 36 | // Maximum Dry-Bulb Temperature | ||
| 37 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setDouble(SizingPeriod_DesignDayFields::MaximumDryBulbTemperature, modelObject.maximumDryBulbTemperature()); |
| 38 | |||
| 39 | // Dry-Bulb Temperature Range Modifier Type | ||
| 40 |
1/1✓ Branch 1 taken 158 times.
|
158 | std::string dryBulbTemperatureRangeModifierType = modelObject.dryBulbTemperatureRangeModifierType(); |
| 41 |
1/1✓ Branch 1 taken 158 times.
|
158 | idfObject.setString(SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType, dryBulbTemperatureRangeModifierType); |
| 42 | |||
| 43 | // Daily Dry-Bulb Temperature Range | ||
| 44 |
3/4✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 7 taken 158 times.
✗ Branch 8 not taken.
|
316 | if (!istringEqual(dryBulbTemperatureRangeModifierType, "DifferenceSchedule")) { |
| 45 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setDouble(SizingPeriod_DesignDayFields::DailyDryBulbTemperatureRange, modelObject.dailyDryBulbTemperatureRange()); |
| 46 | } | ||
| 47 | |||
| 48 | // Dry-Bulb Temperature Range Modifier Day Schedule Name | ||
| 49 |
4/9✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 157 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
|
474 | if (istringEqual(dryBulbTemperatureRangeModifierType, "MultiplierSchedule") |
| 50 |
11/17✓ Branch 1 taken 158 times.
✓ Branch 3 taken 157 times.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 157 times.
✓ Branch 9 taken 157 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 157 times.
✓ Branch 13 taken 157 times.
✓ Branch 14 taken 1 time.
✓ Branch 16 taken 157 times.
✓ Branch 17 taken 1 time.
✓ Branch 18 taken 158 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
630 | || istringEqual(dryBulbTemperatureRangeModifierType, "DifferenceSchedule")) { |
| 51 | 1 | boost::optional<IdfObject> idfSchedule; | |
| 52 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ScheduleDay> schedule = modelObject.dryBulbTemperatureRangeModifierDaySchedule()) { |
| 53 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfSchedule = translateAndMapModelObject(*schedule); |
| 54 | 1 | } | |
| 55 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (idfSchedule) { |
| 56 |
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(SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierDayScheduleName, idfSchedule->name().get()); |
| 57 | } else { | ||
| 58 | ✗ | LOG(Error, "Dry Bulb Temperature Range Modifier Day Schedule Name field is required but not found"); | |
| 59 | } | ||
| 60 | 1 | } | |
| 61 | |||
| 62 | // Humidity Condition Type | ||
| 63 |
1/1✓ Branch 1 taken 158 times.
|
158 | std::string humidityConditionType = modelObject.humidityConditionType(); |
| 64 |
1/1✓ Branch 1 taken 158 times.
|
158 | idfObject.setString(SizingPeriod_DesignDayFields::HumidityConditionType, humidityConditionType); |
| 65 | |||
| 66 | // Humidity Condition Day Schedule Name | ||
| 67 |
9/21✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 7 taken 158 times.
✓ Branch 9 taken 158 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 158 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 158 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 158 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 1 time.
✓ Branch 20 taken 157 times.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
|
790 | if (istringEqual(humidityConditionType, "RelativeHumiditySchedule") || istringEqual(humidityConditionType, "WetBulbProfileMultiplierSchedule") |
| 68 |
6/12✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 6 taken 157 times.
✓ Branch 7 taken 1 time.
✓ Branch 9 taken 158 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 158 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
|
474 | || istringEqual(humidityConditionType, "WetBulbProfileDifferenceSchedule") |
| 69 |
10/17✓ Branch 1 taken 158 times.
✓ Branch 3 taken 158 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 157 times.
✓ Branch 9 taken 157 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 157 times.
✓ Branch 13 taken 157 times.
✓ Branch 14 taken 1 time.
✓ Branch 16 taken 157 times.
✓ Branch 17 taken 1 time.
✓ Branch 18 taken 158 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
631 | || istringEqual(humidityConditionType, "RelativeHumiditySchedule")) { |
| 70 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ScheduleDay> schedule = modelObject.humidityConditionDaySchedule()) { |
| 71 |
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(SizingPeriod_DesignDayFields::HumidityConditionDayScheduleName, schedule->name().get()); |
| 72 | } else { | ||
| 73 | ✗ | LOG(Error, "Humidity Condition Day Schedule Name field is required but not found"); | |
| 74 | 1 | } | |
| 75 | } | ||
| 76 | |||
| 77 | // Wetbulb or DewPoint at Maximum Dry-Bulb | ||
| 78 |
11/21✓ Branch 1 taken 158 times.
✓ Branch 4 taken 31 times.
✓ Branch 7 taken 31 times.
✓ Branch 9 taken 11 times.
✓ Branch 10 taken 20 times.
✓ Branch 12 taken 31 times.
✓ Branch 13 taken 127 times.
✓ Branch 14 taken 158 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 158 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 148 times.
✓ Branch 20 taken 10 times.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
|
536 | if (istringEqual(humidityConditionType, "WetBulb") || istringEqual(humidityConditionType, "DewPoint") |
| 79 |
7/12✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 11 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 11 times.
✓ Branch 10 taken 147 times.
✓ Branch 11 taken 31 times.
✓ Branch 12 taken 127 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
|
180 | || istringEqual(humidityConditionType, "WetBulbProfileMultiplierSchedule") |
| 80 |
8/12✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 10 times.
✓ Branch 7 taken 1 time.
✓ Branch 9 taken 11 times.
✓ Branch 10 taken 147 times.
✓ Branch 11 taken 11 times.
✓ Branch 12 taken 147 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
|
180 | || istringEqual(humidityConditionType, "WetBulbProfileDifferenceSchedule") |
| 81 |
12/17✓ Branch 1 taken 158 times.
✓ Branch 3 taken 31 times.
✓ Branch 4 taken 127 times.
✓ Branch 6 taken 10 times.
✓ Branch 9 taken 10 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 10 times.
✓ Branch 13 taken 10 times.
✓ Branch 14 taken 148 times.
✓ Branch 16 taken 10 times.
✓ Branch 17 taken 148 times.
✓ Branch 18 taken 11 times.
✓ Branch 19 taken 147 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
357 | || istringEqual(humidityConditionType, "WetBulbProfileDefaultMultipliers")) { |
| 82 |
2/3✓ Branch 1 taken 148 times.
✓ Branch 3 taken 148 times.
✗ Branch 4 not taken.
|
296 | if (boost::optional<double> wetBulbOrDewPointAtMaximumDryBulb = modelObject.wetBulbOrDewPointAtMaximumDryBulb()) { |
| 83 | // units for this field are C | ||
| 84 |
2/2✓ Branch 1 taken 148 times.
✓ Branch 4 taken 148 times.
|
148 | idfObject.setDouble(SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb, wetBulbOrDewPointAtMaximumDryBulb.get()); |
| 85 | } | ||
| 86 | } | ||
| 87 | |||
| 88 | // Humidity Ratio at Maximum Dry-Bulb | ||
| 89 |
3/4✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 158 times.
|
316 | if (istringEqual(humidityConditionType, "HumidityRatio")) { |
| 90 | ✗ | if (boost::optional<double> humidityRatioAtMaximumDryBulb = modelObject.humidityRatioAtMaximumDryBulb()) { | |
| 91 | // units for this field are kgWater/kgDryAir | ||
| 92 | ✗ | idfObject.setDouble(SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb, humidityRatioAtMaximumDryBulb.get()); | |
| 93 | } | ||
| 94 | } | ||
| 95 | |||
| 96 | // Enthalpy at Maximum Dry-Bulb | ||
| 97 |
4/4✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 7 taken 10 times.
✓ Branch 8 taken 148 times.
|
316 | if (istringEqual(humidityConditionType, "Enthalpy")) { |
| 98 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (boost::optional<double> enthalpyAtMaximumDryBulb = modelObject.enthalpyAtMaximumDryBulb()) { |
| 99 | // units for this field are J/kg | ||
| 100 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | idfObject.setDouble(SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb, enthalpyAtMaximumDryBulb.get()); |
| 101 | } | ||
| 102 | } | ||
| 103 | |||
| 104 | // Daily Wet-Bulb Temperature Range | ||
| 105 |
3/9✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 158 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
|
474 | if (istringEqual(humidityConditionType, "WetbulbProfileMultiplierSchedule") |
| 106 |
8/17✓ Branch 1 taken 158 times.
✓ Branch 3 taken 158 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 158 times.
✓ Branch 9 taken 158 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 158 times.
✓ Branch 13 taken 158 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 158 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 158 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
632 | || istringEqual(humidityConditionType, "WetBulbProfileDefaultMultipliers")) { |
| 107 | ✗ | if (OptionalDouble d = modelObject.dailyWetBulbTemperatureRange()) { | |
| 108 | ✗ | idfObject.setDouble(SizingPeriod_DesignDayFields::DailyWetBulbTemperatureRange, *d); | |
| 109 | } else { | ||
| 110 | ✗ | LOG(Error, "Daily Wet Bulb Temperature Range field is required but not found"); | |
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | // Barometric Pressure | ||
| 115 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setDouble(SizingPeriod_DesignDayFields::BarometricPressure, modelObject.barometricPressure()); |
| 116 | |||
| 117 | // Site Wind Speed | ||
| 118 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setDouble(SizingPeriod_DesignDayFields::WindSpeed, modelObject.windSpeed()); |
| 119 | |||
| 120 | // Site Wind Direction | ||
| 121 |
2/2✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
|
158 | idfObject.setDouble(SizingPeriod_DesignDayFields::WindDirection, modelObject.windDirection()); |
| 122 | |||
| 123 | // Rain Indicator | ||
| 124 |
3/3✓ Branch 1 taken 158 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 157 times.
|
158 | if (modelObject.rainIndicator()) { |
| 125 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(SizingPeriod_DesignDayFields::RainIndicator, "Yes"); |
| 126 | } else { | ||
| 127 |
2/2✓ Branch 1 taken 157 times.
✓ Branch 4 taken 157 times.
|
314 | idfObject.setString(SizingPeriod_DesignDayFields::RainIndicator, "No"); |
| 128 | } | ||
| 129 | |||
| 130 | // Snow Indicator | ||
| 131 |
3/3✓ Branch 1 taken 158 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 157 times.
|
158 | if (modelObject.snowIndicator()) { |
| 132 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(SizingPeriod_DesignDayFields::SnowIndicator, "Yes"); |
| 133 | } else { | ||
| 134 |
2/2✓ Branch 1 taken 157 times.
✓ Branch 4 taken 157 times.
|
314 | idfObject.setString(SizingPeriod_DesignDayFields::SnowIndicator, "No"); |
| 135 | } | ||
| 136 | |||
| 137 | // Site Daylight Saving Time Status | ||
| 138 |
3/3✓ Branch 1 taken 158 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 157 times.
|
158 | if (modelObject.daylightSavingTimeIndicator()) { |
| 139 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, "Yes"); |
| 140 | } else { | ||
| 141 |
2/2✓ Branch 1 taken 157 times.
✓ Branch 4 taken 157 times.
|
314 | idfObject.setString(SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, "No"); |
| 142 | } | ||
| 143 | |||
| 144 | // Solar Model Indicator | ||
| 145 |
1/1✓ Branch 1 taken 158 times.
|
158 | std::string solarModelIndicator = modelObject.solarModelIndicator(); |
| 146 |
1/1✓ Branch 1 taken 158 times.
|
158 | idfObject.setString(SizingPeriod_DesignDayFields::SolarModelIndicator, solarModelIndicator); |
| 147 | |||
| 148 | // Beam Solar Day Schedule Name and Site Diffuse Solar Radiation Rate per Area Day Schedule Name | ||
| 149 |
4/4✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 157 times.
|
316 | if (istringEqual(solarModelIndicator, "Schedule")) { |
| 150 | |||
| 151 | 1 | boost::optional<IdfObject> idfSchedule; | |
| 152 | |||
| 153 | // Beam Solar Day Schedule Name | ||
| 154 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ScheduleDay> schedule = modelObject.beamSolarDaySchedule()) { |
| 155 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfSchedule = translateAndMapModelObject(*schedule); |
| 156 | 1 | } | |
| 157 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (idfSchedule) { |
| 158 |
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(SizingPeriod_DesignDayFields::BeamSolarDayScheduleName, idfSchedule->name().get()); |
| 159 | } else { | ||
| 160 | ✗ | LOG(Error, "Beam Solar Day Schedule Name field is required but not found"); | |
| 161 | } | ||
| 162 | |||
| 163 | 1 | idfSchedule.reset(); | |
| 164 | |||
| 165 | // Site Diffuse Solar Radiation Rate per Area Day Schedule Name | ||
| 166 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ScheduleDay> schedule = modelObject.diffuseSolarDaySchedule()) { |
| 167 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfSchedule = translateAndMapModelObject(*schedule); |
| 168 | 1 | } | |
| 169 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (idfSchedule) { |
| 170 |
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(SizingPeriod_DesignDayFields::DiffuseSolarDayScheduleName, idfSchedule->name().get()); |
| 171 | } else { | ||
| 172 | ✗ | LOG(Error, "Site Diffuse Solar Radiation Rate per Area Day Schedule Name field is required but not found"); | |
| 173 | } | ||
| 174 | 1 | } | |
| 175 | |||
| 176 |
15/26✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 6 taken 117 times.
✓ Branch 7 taken 41 times.
✓ Branch 9 taken 117 times.
✓ Branch 12 taken 117 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 117 times.
✓ Branch 16 taken 117 times.
✓ Branch 17 taken 41 times.
✓ Branch 19 taken 117 times.
✓ Branch 20 taken 41 times.
✓ Branch 21 taken 158 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 158 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 41 times.
✓ Branch 27 taken 117 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
708 | if (istringEqual(solarModelIndicator, "ASHRAETau") || istringEqual(solarModelIndicator, "ASHRAETau2017")) { |
| 177 | // ASHRAE Clear Sky Optical Depth for Beam Irradiance (taub) | ||
| 178 |
2/2✓ Branch 1 taken 41 times.
✓ Branch 4 taken 41 times.
|
41 | idfObject.setDouble(SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforBeamIrradiance_taub_, |
| 179 | modelObject.ashraeClearSkyOpticalDepthForBeamIrradiance()); | ||
| 180 | |||
| 181 | // ASHRAE Clear Sky Optical Depth for Diffuse Irradiance (taud) | ||
| 182 |
2/2✓ Branch 1 taken 41 times.
✓ Branch 4 taken 41 times.
|
41 | idfObject.setDouble(SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforDiffuseIrradiance_taud_, |
| 183 | modelObject.ashraeClearSkyOpticalDepthForDiffuseIrradiance()); | ||
| 184 | } | ||
| 185 | |||
| 186 | // Sky Clearness | ||
| 187 |
15/26✓ Branch 1 taken 158 times.
✓ Branch 4 taken 158 times.
✓ Branch 6 taken 42 times.
✓ Branch 7 taken 116 times.
✓ Branch 9 taken 42 times.
✓ Branch 12 taken 42 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 42 times.
✓ Branch 16 taken 42 times.
✓ Branch 17 taken 116 times.
✓ Branch 19 taken 42 times.
✓ Branch 20 taken 116 times.
✓ Branch 21 taken 158 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 158 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 116 times.
✓ Branch 27 taken 42 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
|
558 | if (istringEqual(solarModelIndicator, "ASHRAEClearSky") || istringEqual(solarModelIndicator, "ZhangHuang")) { |
| 188 |
2/2✓ Branch 1 taken 116 times.
✓ Branch 4 taken 116 times.
|
116 | idfObject.setDouble(SizingPeriod_DesignDayFields::SkyClearness, modelObject.skyClearness()); |
| 189 | } | ||
| 190 | |||
| 191 | // Maximum Number Warmup Days | ||
| 192 |
3/3✓ Branch 1 taken 158 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 157 times.
|
316 | if (boost::optional<int> maximumNumberWarmupDays = modelObject.maximumNumberWarmupDays()) { |
| 193 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setInt(SizingPeriod_DesignDayFields::MaximumNumberWarmupDays, maximumNumberWarmupDays.get()); |
| 194 | } | ||
| 195 | |||
| 196 | // Begin Environment Reset Mode | ||
| 197 |
1/1✓ Branch 1 taken 158 times.
|
158 | std::string beginEnvironmentResetMode = modelObject.beginEnvironmentResetMode(); |
| 198 |
1/1✓ Branch 1 taken 158 times.
|
158 | idfObject.setString(SizingPeriod_DesignDayFields::BeginEnvironmentResetMode, beginEnvironmentResetMode); |
| 199 | |||
| 200 |
1/1✓ Branch 1 taken 158 times.
|
158 | m_idfObjects.push_back(idfObject); |
| 201 | |||
| 202 |
1/1✓ Branch 1 taken 158 times.
|
316 | return boost::optional<IdfObject>(idfObject); |
| 203 | 158 | } | |
| 204 | |||
| 205 | } // namespace energyplus | ||
| 206 | |||
| 207 | } // namespace openstudio | ||
| 208 |