src/model/SurfacePropertyOtherSideCoefficients.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 "SurfacePropertyOtherSideCoefficients.hpp" | ||
| 7 | #include "SurfacePropertyOtherSideCoefficients_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Schedule.hpp" | ||
| 10 | #include "Schedule_Impl.hpp" | ||
| 11 | |||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | #include <utilities/idd/OS_SurfaceProperty_OtherSideCoefficients_FieldEnums.hxx> | ||
| 14 | |||
| 15 | #include "../utilities/units/Unit.hpp" | ||
| 16 | |||
| 17 | #include "../utilities/core/Assert.hpp" | ||
| 18 | |||
| 19 | namespace openstudio { | ||
| 20 | namespace model { | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | 6 | SurfacePropertyOtherSideCoefficients_Impl::SurfacePropertyOtherSideCoefficients_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 25 | 6 | bool keepHandle) | |
| 26 | 6 | : ResourceObject_Impl(idfObject, model, keepHandle) { | |
| 27 |
4/6✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 6 times.
✗ Branch 13 not taken.
|
6 | OS_ASSERT(idfObject.iddObject().type() == SurfacePropertyOtherSideCoefficients::iddObjectType()); |
| 28 | 6 | } | |
| 29 | |||
| 30 | ✗ | SurfacePropertyOtherSideCoefficients_Impl::SurfacePropertyOtherSideCoefficients_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 31 | ✗ | Model_Impl* model, bool keepHandle) | |
| 32 | ✗ | : ResourceObject_Impl(other, model, keepHandle) { | |
| 33 | ✗ | OS_ASSERT(other.iddObject().type() == SurfacePropertyOtherSideCoefficients::iddObjectType()); | |
| 34 | ✗ | } | |
| 35 | |||
| 36 | ✗ | SurfacePropertyOtherSideCoefficients_Impl::SurfacePropertyOtherSideCoefficients_Impl(const SurfacePropertyOtherSideCoefficients_Impl& other, | |
| 37 | ✗ | Model_Impl* model, bool keepHandle) | |
| 38 | ✗ | : ResourceObject_Impl(other, model, keepHandle) {} | |
| 39 | |||
| 40 | ✗ | const std::vector<std::string>& SurfacePropertyOtherSideCoefficients_Impl::outputVariableNames() const { | |
| 41 | ✗ | static const std::vector<std::string> result{"Surface Other Side Coefficients Exterior Air Drybulb Temperature"}; | |
| 42 | ✗ | return result; | |
| 43 | ✗ | } | |
| 44 | |||
| 45 | ✗ | IddObjectType SurfacePropertyOtherSideCoefficients_Impl::iddObjectType() const { | |
| 46 | ✗ | return SurfacePropertyOtherSideCoefficients::iddObjectType(); | |
| 47 | } | ||
| 48 | |||
| 49 | ✗ | std::vector<ScheduleTypeKey> SurfacePropertyOtherSideCoefficients_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 50 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 51 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 52 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 53 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 54 | ✗ | if (std::find(b, e, OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureScheduleName) != e) { | |
| 55 | ✗ | result.push_back(ScheduleTypeKey("SurfacePropertyOtherSideCoefficients", "Constant Temperature")); | |
| 56 | } | ||
| 57 | ✗ | return result; | |
| 58 | ✗ | } | |
| 59 | |||
| 60 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients_Impl::combinedConvectiveRadiativeFilmCoefficient() const { | |
| 61 | ✗ | return getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::CombinedConvective_RadiativeFilmCoefficient, true); | |
| 62 | } | ||
| 63 | |||
| 64 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::constantTemperature() const { | |
| 65 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperature, true); | |
| 66 | ✗ | OS_ASSERT(value); | |
| 67 | ✗ | return value.get(); | |
| 68 | } | ||
| 69 | |||
| 70 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isConstantTemperatureDefaulted() const { | |
| 71 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperature); | |
| 72 | } | ||
| 73 | |||
| 74 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::constantTemperatureCoefficient() const { | |
| 75 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureCoefficient, true); | |
| 76 | ✗ | OS_ASSERT(value); | |
| 77 | ✗ | return value.get(); | |
| 78 | } | ||
| 79 | |||
| 80 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isConstantTemperatureCoefficientDefaulted() const { | |
| 81 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureCoefficient); | |
| 82 | } | ||
| 83 | |||
| 84 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::externalDryBulbTemperatureCoefficient() const { | |
| 85 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ExternalDryBulbTemperatureCoefficient, true); | |
| 86 | ✗ | OS_ASSERT(value); | |
| 87 | ✗ | return value.get(); | |
| 88 | } | ||
| 89 | |||
| 90 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isExternalDryBulbTemperatureCoefficientDefaulted() const { | |
| 91 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::ExternalDryBulbTemperatureCoefficient); | |
| 92 | } | ||
| 93 | |||
| 94 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::groundTemperatureCoefficient() const { | |
| 95 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::GroundTemperatureCoefficient, true); | |
| 96 | ✗ | OS_ASSERT(value); | |
| 97 | ✗ | return value.get(); | |
| 98 | } | ||
| 99 | |||
| 100 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isGroundTemperatureCoefficientDefaulted() const { | |
| 101 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::GroundTemperatureCoefficient); | |
| 102 | } | ||
| 103 | |||
| 104 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::windSpeedCoefficient() const { | |
| 105 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::WindSpeedCoefficient, true); | |
| 106 | ✗ | OS_ASSERT(value); | |
| 107 | ✗ | return value.get(); | |
| 108 | } | ||
| 109 | |||
| 110 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isWindSpeedCoefficientDefaulted() const { | |
| 111 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::WindSpeedCoefficient); | |
| 112 | } | ||
| 113 | |||
| 114 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::zoneAirTemperatureCoefficient() const { | |
| 115 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ZoneAirTemperatureCoefficient, true); | |
| 116 | ✗ | OS_ASSERT(value); | |
| 117 | ✗ | return value.get(); | |
| 118 | } | ||
| 119 | |||
| 120 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isZoneAirTemperatureCoefficientDefaulted() const { | |
| 121 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::ZoneAirTemperatureCoefficient); | |
| 122 | } | ||
| 123 | |||
| 124 | ✗ | boost::optional<Schedule> SurfacePropertyOtherSideCoefficients_Impl::constantTemperatureSchedule() const { | |
| 125 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureScheduleName); | |
| 126 | } | ||
| 127 | |||
| 128 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::sinusoidalVariationofConstantTemperatureCoefficient() const { | |
| 129 | boost::optional<std::string> value = | ||
| 130 | ✗ | getString(OS_SurfaceProperty_OtherSideCoefficientsFields::SinusoidalVariationofConstantTemperatureCoefficient, true); | |
| 131 | ✗ | OS_ASSERT(value); | |
| 132 | ✗ | return openstudio::istringEqual(value.get(), "Yes"); | |
| 133 | ✗ | } | |
| 134 | |||
| 135 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isSinusoidalVariationofConstantTemperatureCoefficientDefaulted() const { | |
| 136 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::SinusoidalVariationofConstantTemperatureCoefficient); | |
| 137 | } | ||
| 138 | |||
| 139 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::periodofSinusoidalVariation() const { | |
| 140 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::PeriodofSinusoidalVariation, true); | |
| 141 | ✗ | OS_ASSERT(value); | |
| 142 | ✗ | return value.get(); | |
| 143 | } | ||
| 144 | |||
| 145 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isPeriodofSinusoidalVariationDefaulted() const { | |
| 146 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::PeriodofSinusoidalVariation); | |
| 147 | } | ||
| 148 | |||
| 149 | ✗ | double SurfacePropertyOtherSideCoefficients_Impl::previousOtherSideTemperatureCoefficient() const { | |
| 150 | ✗ | boost::optional<double> value = getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::PreviousOtherSideTemperatureCoefficient, true); | |
| 151 | ✗ | OS_ASSERT(value); | |
| 152 | ✗ | return value.get(); | |
| 153 | } | ||
| 154 | |||
| 155 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::isPreviousOtherSideTemperatureCoefficientDefaulted() const { | |
| 156 | ✗ | return isEmpty(OS_SurfaceProperty_OtherSideCoefficientsFields::PreviousOtherSideTemperatureCoefficient); | |
| 157 | } | ||
| 158 | |||
| 159 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients_Impl::minimumOtherSideTemperatureLimit() const { | |
| 160 | ✗ | return getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::MinimumOtherSideTemperatureLimit, true); | |
| 161 | } | ||
| 162 | |||
| 163 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients_Impl::maximumOtherSideTemperatureLimit() const { | |
| 164 | ✗ | return getDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::MaximumOtherSideTemperatureLimit, true); | |
| 165 | } | ||
| 166 | |||
| 167 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setCombinedConvectiveRadiativeFilmCoefficient(double combinedConvectiveRadiativeFilmCoefficient) { | |
| 168 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::CombinedConvective_RadiativeFilmCoefficient, | |
| 169 | combinedConvectiveRadiativeFilmCoefficient); | ||
| 170 | ✗ | return result; | |
| 171 | } | ||
| 172 | |||
| 173 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetCombinedConvectiveRadiativeFilmCoefficient() { | |
| 174 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::CombinedConvective_RadiativeFilmCoefficient, ""); | |
| 175 | ✗ | OS_ASSERT(result); | |
| 176 | ✗ | } | |
| 177 | |||
| 178 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setConstantTemperature(double constantTemperature) { | |
| 179 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperature, constantTemperature); | |
| 180 | ✗ | return result; | |
| 181 | } | ||
| 182 | |||
| 183 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetConstantTemperature() { | |
| 184 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperature, ""); | |
| 185 | ✗ | OS_ASSERT(result); | |
| 186 | ✗ | } | |
| 187 | |||
| 188 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setConstantTemperatureCoefficient(double constantTemperatureCoefficient) { | |
| 189 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureCoefficient, constantTemperatureCoefficient); | |
| 190 | ✗ | return result; | |
| 191 | } | ||
| 192 | |||
| 193 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetConstantTemperatureCoefficient() { | |
| 194 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureCoefficient, ""); | |
| 195 | ✗ | OS_ASSERT(result); | |
| 196 | ✗ | } | |
| 197 | |||
| 198 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setExternalDryBulbTemperatureCoefficient(double externalDryBulbTemperatureCoefficient) { | |
| 199 | bool result = | ||
| 200 | ✗ | setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ExternalDryBulbTemperatureCoefficient, externalDryBulbTemperatureCoefficient); | |
| 201 | ✗ | return result; | |
| 202 | } | ||
| 203 | |||
| 204 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetExternalDryBulbTemperatureCoefficient() { | |
| 205 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::ExternalDryBulbTemperatureCoefficient, ""); | |
| 206 | ✗ | OS_ASSERT(result); | |
| 207 | ✗ | } | |
| 208 | |||
| 209 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setGroundTemperatureCoefficient(double groundTemperatureCoefficient) { | |
| 210 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::GroundTemperatureCoefficient, groundTemperatureCoefficient); | |
| 211 | ✗ | return result; | |
| 212 | } | ||
| 213 | |||
| 214 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetGroundTemperatureCoefficient() { | |
| 215 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::GroundTemperatureCoefficient, ""); | |
| 216 | ✗ | OS_ASSERT(result); | |
| 217 | ✗ | } | |
| 218 | |||
| 219 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setWindSpeedCoefficient(double windSpeedCoefficient) { | |
| 220 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::WindSpeedCoefficient, windSpeedCoefficient); | |
| 221 | ✗ | return result; | |
| 222 | } | ||
| 223 | |||
| 224 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetWindSpeedCoefficient() { | |
| 225 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::WindSpeedCoefficient, ""); | |
| 226 | ✗ | OS_ASSERT(result); | |
| 227 | ✗ | } | |
| 228 | |||
| 229 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setZoneAirTemperatureCoefficient(double zoneAirTemperatureCoefficient) { | |
| 230 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::ZoneAirTemperatureCoefficient, zoneAirTemperatureCoefficient); | |
| 231 | ✗ | return result; | |
| 232 | } | ||
| 233 | |||
| 234 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetZoneAirTemperatureCoefficient() { | |
| 235 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::ZoneAirTemperatureCoefficient, ""); | |
| 236 | ✗ | OS_ASSERT(result); | |
| 237 | ✗ | } | |
| 238 | |||
| 239 | 1 | bool SurfacePropertyOtherSideCoefficients_Impl::setConstantTemperatureSchedule(Schedule& schedule) { | |
| 240 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureScheduleName, |
| 241 | "SurfacePropertyOtherSideCoefficients", "Constant Temperature", schedule); | ||
| 242 | 1 | return result; | |
| 243 | } | ||
| 244 | |||
| 245 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetConstantTemperatureSchedule() { | |
| 246 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::ConstantTemperatureScheduleName, ""); | |
| 247 | ✗ | OS_ASSERT(result); | |
| 248 | ✗ | } | |
| 249 | |||
| 250 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setSinusoidalVariationofConstantTemperatureCoefficient( | |
| 251 | bool sinusoidalVariationofConstantTemperatureCoefficient) { | ||
| 252 | ✗ | bool result = false; | |
| 253 | ✗ | if (sinusoidalVariationofConstantTemperatureCoefficient) { | |
| 254 | ✗ | result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::SinusoidalVariationofConstantTemperatureCoefficient, "Yes"); | |
| 255 | } else { | ||
| 256 | ✗ | result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::SinusoidalVariationofConstantTemperatureCoefficient, "No"); | |
| 257 | } | ||
| 258 | ✗ | return result; | |
| 259 | } | ||
| 260 | |||
| 261 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetSinusoidalVariationofConstantTemperatureCoefficient() { | |
| 262 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::SinusoidalVariationofConstantTemperatureCoefficient, ""); | |
| 263 | ✗ | OS_ASSERT(result); | |
| 264 | ✗ | } | |
| 265 | |||
| 266 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setPeriodofSinusoidalVariation(double periodofSinusoidalVariation) { | |
| 267 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::PeriodofSinusoidalVariation, periodofSinusoidalVariation); | |
| 268 | ✗ | return result; | |
| 269 | } | ||
| 270 | |||
| 271 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetPeriodofSinusoidalVariation() { | |
| 272 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::PeriodofSinusoidalVariation, ""); | |
| 273 | ✗ | OS_ASSERT(result); | |
| 274 | ✗ | } | |
| 275 | |||
| 276 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setPreviousOtherSideTemperatureCoefficient(double previousOtherSideTemperatureCoefficient) { | |
| 277 | bool result = | ||
| 278 | ✗ | setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::PreviousOtherSideTemperatureCoefficient, previousOtherSideTemperatureCoefficient); | |
| 279 | ✗ | return result; | |
| 280 | } | ||
| 281 | |||
| 282 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetPreviousOtherSideTemperatureCoefficient() { | |
| 283 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::PreviousOtherSideTemperatureCoefficient, ""); | |
| 284 | ✗ | OS_ASSERT(result); | |
| 285 | ✗ | } | |
| 286 | |||
| 287 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setMinimumOtherSideTemperatureLimit(double minimumOtherSideTemperatureLimit) { | |
| 288 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::MinimumOtherSideTemperatureLimit, minimumOtherSideTemperatureLimit); | |
| 289 | ✗ | return result; | |
| 290 | } | ||
| 291 | |||
| 292 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetMinimumOtherSideTemperatureLimit() { | |
| 293 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::MinimumOtherSideTemperatureLimit, ""); | |
| 294 | ✗ | OS_ASSERT(result); | |
| 295 | ✗ | } | |
| 296 | |||
| 297 | ✗ | bool SurfacePropertyOtherSideCoefficients_Impl::setMaximumOtherSideTemperatureLimit(double maximumOtherSideTemperatureLimit) { | |
| 298 | ✗ | bool result = setDouble(OS_SurfaceProperty_OtherSideCoefficientsFields::MaximumOtherSideTemperatureLimit, maximumOtherSideTemperatureLimit); | |
| 299 | ✗ | return result; | |
| 300 | } | ||
| 301 | |||
| 302 | ✗ | void SurfacePropertyOtherSideCoefficients_Impl::resetMaximumOtherSideTemperatureLimit() { | |
| 303 | ✗ | bool result = setString(OS_SurfaceProperty_OtherSideCoefficientsFields::MaximumOtherSideTemperatureLimit, ""); | |
| 304 | ✗ | OS_ASSERT(result); | |
| 305 | ✗ | } | |
| 306 | |||
| 307 | } // namespace detail | ||
| 308 | |||
| 309 | 6 | SurfacePropertyOtherSideCoefficients::SurfacePropertyOtherSideCoefficients(const Model& model) | |
| 310 | 6 | : ResourceObject(SurfacePropertyOtherSideCoefficients::iddObjectType(), model) { | |
| 311 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()); |
| 312 | 6 | } | |
| 313 | |||
| 314 | 7610 | IddObjectType SurfacePropertyOtherSideCoefficients::iddObjectType() { | |
| 315 |
1/1✓ Branch 1 taken 7610 times.
|
7610 | return {IddObjectType::OS_SurfaceProperty_OtherSideCoefficients}; |
| 316 | } | ||
| 317 | |||
| 318 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients::combinedConvectiveRadiativeFilmCoefficient() const { | |
| 319 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->combinedConvectiveRadiativeFilmCoefficient(); | |
| 320 | } | ||
| 321 | |||
| 322 | ✗ | double SurfacePropertyOtherSideCoefficients::constantTemperature() const { | |
| 323 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->constantTemperature(); | |
| 324 | } | ||
| 325 | |||
| 326 | ✗ | bool SurfacePropertyOtherSideCoefficients::isConstantTemperatureDefaulted() const { | |
| 327 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isConstantTemperatureDefaulted(); | |
| 328 | } | ||
| 329 | |||
| 330 | ✗ | double SurfacePropertyOtherSideCoefficients::constantTemperatureCoefficient() const { | |
| 331 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->constantTemperatureCoefficient(); | |
| 332 | } | ||
| 333 | |||
| 334 | ✗ | bool SurfacePropertyOtherSideCoefficients::isConstantTemperatureCoefficientDefaulted() const { | |
| 335 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isConstantTemperatureCoefficientDefaulted(); | |
| 336 | } | ||
| 337 | |||
| 338 | ✗ | double SurfacePropertyOtherSideCoefficients::externalDryBulbTemperatureCoefficient() const { | |
| 339 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->externalDryBulbTemperatureCoefficient(); | |
| 340 | } | ||
| 341 | |||
| 342 | ✗ | bool SurfacePropertyOtherSideCoefficients::isExternalDryBulbTemperatureCoefficientDefaulted() const { | |
| 343 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isExternalDryBulbTemperatureCoefficientDefaulted(); | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | double SurfacePropertyOtherSideCoefficients::groundTemperatureCoefficient() const { | |
| 347 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->groundTemperatureCoefficient(); | |
| 348 | } | ||
| 349 | |||
| 350 | ✗ | bool SurfacePropertyOtherSideCoefficients::isGroundTemperatureCoefficientDefaulted() const { | |
| 351 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isGroundTemperatureCoefficientDefaulted(); | |
| 352 | } | ||
| 353 | |||
| 354 | ✗ | double SurfacePropertyOtherSideCoefficients::windSpeedCoefficient() const { | |
| 355 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->windSpeedCoefficient(); | |
| 356 | } | ||
| 357 | |||
| 358 | ✗ | bool SurfacePropertyOtherSideCoefficients::isWindSpeedCoefficientDefaulted() const { | |
| 359 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isWindSpeedCoefficientDefaulted(); | |
| 360 | } | ||
| 361 | |||
| 362 | ✗ | double SurfacePropertyOtherSideCoefficients::zoneAirTemperatureCoefficient() const { | |
| 363 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->zoneAirTemperatureCoefficient(); | |
| 364 | } | ||
| 365 | |||
| 366 | ✗ | bool SurfacePropertyOtherSideCoefficients::isZoneAirTemperatureCoefficientDefaulted() const { | |
| 367 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isZoneAirTemperatureCoefficientDefaulted(); | |
| 368 | } | ||
| 369 | |||
| 370 | ✗ | boost::optional<Schedule> SurfacePropertyOtherSideCoefficients::constantTemperatureSchedule() const { | |
| 371 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->constantTemperatureSchedule(); | |
| 372 | } | ||
| 373 | |||
| 374 | ✗ | bool SurfacePropertyOtherSideCoefficients::sinusoidalVariationofConstantTemperatureCoefficient() const { | |
| 375 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->sinusoidalVariationofConstantTemperatureCoefficient(); | |
| 376 | } | ||
| 377 | |||
| 378 | ✗ | bool SurfacePropertyOtherSideCoefficients::isSinusoidalVariationofConstantTemperatureCoefficientDefaulted() const { | |
| 379 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isSinusoidalVariationofConstantTemperatureCoefficientDefaulted(); | |
| 380 | } | ||
| 381 | |||
| 382 | ✗ | double SurfacePropertyOtherSideCoefficients::periodofSinusoidalVariation() const { | |
| 383 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->periodofSinusoidalVariation(); | |
| 384 | } | ||
| 385 | |||
| 386 | ✗ | bool SurfacePropertyOtherSideCoefficients::isPeriodofSinusoidalVariationDefaulted() const { | |
| 387 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isPeriodofSinusoidalVariationDefaulted(); | |
| 388 | } | ||
| 389 | |||
| 390 | ✗ | double SurfacePropertyOtherSideCoefficients::previousOtherSideTemperatureCoefficient() const { | |
| 391 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->previousOtherSideTemperatureCoefficient(); | |
| 392 | } | ||
| 393 | |||
| 394 | ✗ | bool SurfacePropertyOtherSideCoefficients::isPreviousOtherSideTemperatureCoefficientDefaulted() const { | |
| 395 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->isPreviousOtherSideTemperatureCoefficientDefaulted(); | |
| 396 | } | ||
| 397 | |||
| 398 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients::minimumOtherSideTemperatureLimit() const { | |
| 399 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->minimumOtherSideTemperatureLimit(); | |
| 400 | } | ||
| 401 | |||
| 402 | ✗ | boost::optional<double> SurfacePropertyOtherSideCoefficients::maximumOtherSideTemperatureLimit() const { | |
| 403 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->maximumOtherSideTemperatureLimit(); | |
| 404 | } | ||
| 405 | |||
| 406 | ✗ | bool SurfacePropertyOtherSideCoefficients::setCombinedConvectiveRadiativeFilmCoefficient(double combinedConvectiveRadiativeFilmCoefficient) { | |
| 407 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setCombinedConvectiveRadiativeFilmCoefficient( | |
| 408 | ✗ | combinedConvectiveRadiativeFilmCoefficient); | |
| 409 | } | ||
| 410 | |||
| 411 | ✗ | void SurfacePropertyOtherSideCoefficients::resetCombinedConvectiveRadiativeFilmCoefficient() { | |
| 412 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetCombinedConvectiveRadiativeFilmCoefficient(); | |
| 413 | ✗ | } | |
| 414 | |||
| 415 | ✗ | bool SurfacePropertyOtherSideCoefficients::setConstantTemperature(double constantTemperature) { | |
| 416 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setConstantTemperature(constantTemperature); | |
| 417 | } | ||
| 418 | |||
| 419 | ✗ | void SurfacePropertyOtherSideCoefficients::resetConstantTemperature() { | |
| 420 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetConstantTemperature(); | |
| 421 | ✗ | } | |
| 422 | |||
| 423 | ✗ | bool SurfacePropertyOtherSideCoefficients::setConstantTemperatureCoefficient(double constantTemperatureCoefficient) { | |
| 424 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setConstantTemperatureCoefficient(constantTemperatureCoefficient); | |
| 425 | } | ||
| 426 | |||
| 427 | ✗ | void SurfacePropertyOtherSideCoefficients::resetConstantTemperatureCoefficient() { | |
| 428 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetConstantTemperatureCoefficient(); | |
| 429 | ✗ | } | |
| 430 | |||
| 431 | ✗ | bool SurfacePropertyOtherSideCoefficients::setExternalDryBulbTemperatureCoefficient(double externalDryBulbTemperatureCoefficient) { | |
| 432 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setExternalDryBulbTemperatureCoefficient( | |
| 433 | ✗ | externalDryBulbTemperatureCoefficient); | |
| 434 | } | ||
| 435 | |||
| 436 | ✗ | void SurfacePropertyOtherSideCoefficients::resetExternalDryBulbTemperatureCoefficient() { | |
| 437 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetExternalDryBulbTemperatureCoefficient(); | |
| 438 | ✗ | } | |
| 439 | |||
| 440 | ✗ | bool SurfacePropertyOtherSideCoefficients::setGroundTemperatureCoefficient(double groundTemperatureCoefficient) { | |
| 441 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setGroundTemperatureCoefficient(groundTemperatureCoefficient); | |
| 442 | } | ||
| 443 | |||
| 444 | ✗ | void SurfacePropertyOtherSideCoefficients::resetGroundTemperatureCoefficient() { | |
| 445 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetGroundTemperatureCoefficient(); | |
| 446 | ✗ | } | |
| 447 | |||
| 448 | ✗ | bool SurfacePropertyOtherSideCoefficients::setWindSpeedCoefficient(double windSpeedCoefficient) { | |
| 449 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setWindSpeedCoefficient(windSpeedCoefficient); | |
| 450 | } | ||
| 451 | |||
| 452 | ✗ | void SurfacePropertyOtherSideCoefficients::resetWindSpeedCoefficient() { | |
| 453 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetWindSpeedCoefficient(); | |
| 454 | ✗ | } | |
| 455 | |||
| 456 | ✗ | bool SurfacePropertyOtherSideCoefficients::setZoneAirTemperatureCoefficient(double zoneAirTemperatureCoefficient) { | |
| 457 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setZoneAirTemperatureCoefficient(zoneAirTemperatureCoefficient); | |
| 458 | } | ||
| 459 | |||
| 460 | ✗ | void SurfacePropertyOtherSideCoefficients::resetZoneAirTemperatureCoefficient() { | |
| 461 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetZoneAirTemperatureCoefficient(); | |
| 462 | ✗ | } | |
| 463 | |||
| 464 | 1 | bool SurfacePropertyOtherSideCoefficients::setConstantTemperatureSchedule(Schedule& schedule) { | |
| 465 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setConstantTemperatureSchedule(schedule); |
| 466 | } | ||
| 467 | |||
| 468 | ✗ | void SurfacePropertyOtherSideCoefficients::resetConstantTemperatureSchedule() { | |
| 469 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetConstantTemperatureSchedule(); | |
| 470 | ✗ | } | |
| 471 | |||
| 472 | ✗ | bool SurfacePropertyOtherSideCoefficients::setSinusoidalVariationofConstantTemperatureCoefficient( | |
| 473 | bool sinusoidalVariationofConstantTemperatureCoefficient) { | ||
| 474 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setSinusoidalVariationofConstantTemperatureCoefficient( | |
| 475 | ✗ | sinusoidalVariationofConstantTemperatureCoefficient); | |
| 476 | } | ||
| 477 | |||
| 478 | ✗ | void SurfacePropertyOtherSideCoefficients::resetSinusoidalVariationofConstantTemperatureCoefficient() { | |
| 479 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetSinusoidalVariationofConstantTemperatureCoefficient(); | |
| 480 | ✗ | } | |
| 481 | |||
| 482 | ✗ | bool SurfacePropertyOtherSideCoefficients::setPeriodofSinusoidalVariation(double periodofSinusoidalVariation) { | |
| 483 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setPeriodofSinusoidalVariation(periodofSinusoidalVariation); | |
| 484 | } | ||
| 485 | |||
| 486 | ✗ | void SurfacePropertyOtherSideCoefficients::resetPeriodofSinusoidalVariation() { | |
| 487 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetPeriodofSinusoidalVariation(); | |
| 488 | ✗ | } | |
| 489 | |||
| 490 | ✗ | bool SurfacePropertyOtherSideCoefficients::setPreviousOtherSideTemperatureCoefficient(double previousOtherSideTemperatureCoefficient) { | |
| 491 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setPreviousOtherSideTemperatureCoefficient( | |
| 492 | ✗ | previousOtherSideTemperatureCoefficient); | |
| 493 | } | ||
| 494 | |||
| 495 | ✗ | void SurfacePropertyOtherSideCoefficients::resetPreviousOtherSideTemperatureCoefficient() { | |
| 496 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetPreviousOtherSideTemperatureCoefficient(); | |
| 497 | ✗ | } | |
| 498 | |||
| 499 | ✗ | bool SurfacePropertyOtherSideCoefficients::setMinimumOtherSideTemperatureLimit(double minimumOtherSideTemperatureLimit) { | |
| 500 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setMinimumOtherSideTemperatureLimit(minimumOtherSideTemperatureLimit); | |
| 501 | } | ||
| 502 | |||
| 503 | ✗ | void SurfacePropertyOtherSideCoefficients::resetMinimumOtherSideTemperatureLimit() { | |
| 504 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetMinimumOtherSideTemperatureLimit(); | |
| 505 | ✗ | } | |
| 506 | |||
| 507 | ✗ | bool SurfacePropertyOtherSideCoefficients::setMaximumOtherSideTemperatureLimit(double maximumOtherSideTemperatureLimit) { | |
| 508 | ✗ | return getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->setMaximumOtherSideTemperatureLimit(maximumOtherSideTemperatureLimit); | |
| 509 | } | ||
| 510 | |||
| 511 | ✗ | void SurfacePropertyOtherSideCoefficients::resetMaximumOtherSideTemperatureLimit() { | |
| 512 | ✗ | getImpl<detail::SurfacePropertyOtherSideCoefficients_Impl>()->resetMaximumOtherSideTemperatureLimit(); | |
| 513 | ✗ | } | |
| 514 | |||
| 515 | /// @cond | ||
| 516 | 10 | SurfacePropertyOtherSideCoefficients::SurfacePropertyOtherSideCoefficients(std::shared_ptr<detail::SurfacePropertyOtherSideCoefficients_Impl> impl) | |
| 517 |
1/1✓ Branch 3 taken 10 times.
|
10 | : ResourceObject(std::move(impl)) {} |
| 518 | /// @endcond | ||
| 519 | |||
| 520 | } // namespace model | ||
| 521 | } // namespace openstudio | ||
| 522 |