src/model/SteamEquipmentDefinition.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 "SteamEquipmentDefinition.hpp" | ||
| 7 | #include "SteamEquipmentDefinition_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/IddFactory.hxx> | ||
| 10 | |||
| 11 | #include <utilities/idd/OS_SteamEquipment_Definition_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | #include "../utilities/core/Assert.hpp" | ||
| 15 | #include "../utilities/core/Compare.hpp" | ||
| 16 | |||
| 17 | namespace openstudio { | ||
| 18 | namespace model { | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | 6 | SteamEquipmentDefinition_Impl::SteamEquipmentDefinition_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 23 | 6 | : SpaceLoadDefinition_Impl(idfObject, model, keepHandle) { | |
| 24 |
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() == SteamEquipmentDefinition::iddObjectType()); |
| 25 | 6 | } | |
| 26 | |||
| 27 | ✗ | SteamEquipmentDefinition_Impl::SteamEquipmentDefinition_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 28 | ✗ | bool keepHandle) | |
| 29 | ✗ | : SpaceLoadDefinition_Impl(other, model, keepHandle) { | |
| 30 | ✗ | OS_ASSERT(other.iddObject().type() == SteamEquipmentDefinition::iddObjectType()); | |
| 31 | ✗ | } | |
| 32 | |||
| 33 | 3 | SteamEquipmentDefinition_Impl::SteamEquipmentDefinition_Impl(const SteamEquipmentDefinition_Impl& other, Model_Impl* model, bool keepHandle) | |
| 34 | 3 | : SpaceLoadDefinition_Impl(other, model, keepHandle) {} | |
| 35 | |||
| 36 | ✗ | const std::vector<std::string>& SteamEquipmentDefinition_Impl::outputVariableNames() const { | |
| 37 | ✗ | static const std::vector<std::string> result; | |
| 38 | // Not appropriate: output is listed in SteamEquipment instead | ||
| 39 | ✗ | return result; | |
| 40 | } | ||
| 41 | |||
| 42 | ✗ | IddObjectType SteamEquipmentDefinition_Impl::iddObjectType() const { | |
| 43 | ✗ | return SteamEquipmentDefinition::iddObjectType(); | |
| 44 | } | ||
| 45 | |||
| 46 | 7 | std::string SteamEquipmentDefinition_Impl::designLevelCalculationMethod() const { | |
| 47 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_SteamEquipment_DefinitionFields::DesignLevelCalculationMethod, true); |
| 48 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 49 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 50 | 7 | } | |
| 51 | |||
| 52 | 9 | boost::optional<double> SteamEquipmentDefinition_Impl::designLevel() const { | |
| 53 | 9 | return getDouble(OS_SteamEquipment_DefinitionFields::DesignLevel, true); | |
| 54 | } | ||
| 55 | |||
| 56 | 8 | boost::optional<double> SteamEquipmentDefinition_Impl::wattsperSpaceFloorArea() const { | |
| 57 | 8 | return getDouble(OS_SteamEquipment_DefinitionFields::WattsperSpaceFloorArea, true); | |
| 58 | } | ||
| 59 | |||
| 60 | 8 | boost::optional<double> SteamEquipmentDefinition_Impl::wattsperPerson() const { | |
| 61 | 8 | return getDouble(OS_SteamEquipment_DefinitionFields::WattsperPerson, true); | |
| 62 | } | ||
| 63 | |||
| 64 | 6 | double SteamEquipmentDefinition_Impl::fractionLatent() const { | |
| 65 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_SteamEquipment_DefinitionFields::FractionLatent, true); |
| 66 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 67 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 68 | } | ||
| 69 | |||
| 70 | 3 | bool SteamEquipmentDefinition_Impl::isFractionLatentDefaulted() const { | |
| 71 | 3 | return isEmpty(OS_SteamEquipment_DefinitionFields::FractionLatent); | |
| 72 | } | ||
| 73 | |||
| 74 | 6 | double SteamEquipmentDefinition_Impl::fractionRadiant() const { | |
| 75 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_SteamEquipment_DefinitionFields::FractionRadiant, true); |
| 76 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 77 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 78 | } | ||
| 79 | |||
| 80 | 3 | bool SteamEquipmentDefinition_Impl::isFractionRadiantDefaulted() const { | |
| 81 | 3 | return isEmpty(OS_SteamEquipment_DefinitionFields::FractionRadiant); | |
| 82 | } | ||
| 83 | |||
| 84 | 7 | double SteamEquipmentDefinition_Impl::fractionLost() const { | |
| 85 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_SteamEquipment_DefinitionFields::FractionLost, true); |
| 86 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 87 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 88 | } | ||
| 89 | |||
| 90 | 3 | bool SteamEquipmentDefinition_Impl::isFractionLostDefaulted() const { | |
| 91 | 3 | return isEmpty(OS_SteamEquipment_DefinitionFields::FractionLost); | |
| 92 | } | ||
| 93 | |||
| 94 | 12 | bool SteamEquipmentDefinition_Impl::setDesignLevel(boost::optional<double> designLevel) { | |
| 95 | 12 | bool result = false; | |
| 96 |
2/2✓ Branch 0 taken 10 times.
✓ Branch 1 taken 2 times.
|
12 | if (designLevel) { |
| 97 | 10 | result = setDouble(OS_SteamEquipment_DefinitionFields::DesignLevel, designLevel.get()); | |
| 98 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | if (result) { |
| 99 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | result = setString(OS_SteamEquipment_DefinitionFields::DesignLevelCalculationMethod, "EquipmentLevel"); |
| 100 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 101 |
1/1✓ Branch 2 taken 10 times.
|
10 | result = setWattsperSpaceFloorArea(boost::none); |
| 102 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 103 |
1/1✓ Branch 2 taken 10 times.
|
10 | result = setWattsperPerson(boost::none); |
| 104 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 105 | } | ||
| 106 | } else { | ||
| 107 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
6 | result = setString(OS_SteamEquipment_DefinitionFields::DesignLevel, ""); |
| 108 | } | ||
| 109 | 12 | return result; | |
| 110 | } | ||
| 111 | |||
| 112 | 12 | bool SteamEquipmentDefinition_Impl::setWattsperSpaceFloorArea(boost::optional<double> wattsperSpaceFloorArea) { | |
| 113 | 12 | bool result = false; | |
| 114 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 11 times.
|
12 | if (wattsperSpaceFloorArea) { |
| 115 | 1 | result = setDouble(OS_SteamEquipment_DefinitionFields::WattsperSpaceFloorArea, wattsperSpaceFloorArea.get()); | |
| 116 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (result) { |
| 117 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | result = setString(OS_SteamEquipment_DefinitionFields::DesignLevelCalculationMethod, "Watts/Area"); |
| 118 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 119 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setDesignLevel(boost::none); |
| 120 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 121 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setWattsperPerson(boost::none); |
| 122 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 123 | } | ||
| 124 | } else { | ||
| 125 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
33 | result = setString(OS_SteamEquipment_DefinitionFields::WattsperSpaceFloorArea, ""); |
| 126 | } | ||
| 127 | 12 | return result; | |
| 128 | } | ||
| 129 | |||
| 130 | 12 | bool SteamEquipmentDefinition_Impl::setWattsperPerson(boost::optional<double> wattsperPerson) { | |
| 131 | 12 | bool result = false; | |
| 132 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 11 times.
|
12 | if (wattsperPerson) { |
| 133 | 1 | result = setDouble(OS_SteamEquipment_DefinitionFields::WattsperPerson, wattsperPerson.get()); | |
| 134 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (result) { |
| 135 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | result = setString(OS_SteamEquipment_DefinitionFields::DesignLevelCalculationMethod, "Watts/Person"); |
| 136 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 137 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setDesignLevel(boost::none); |
| 138 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 139 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setWattsperSpaceFloorArea(boost::none); |
| 140 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 141 | } | ||
| 142 | } else { | ||
| 143 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
33 | result = setString(OS_SteamEquipment_DefinitionFields::WattsperPerson, ""); |
| 144 | } | ||
| 145 | 12 | return result; | |
| 146 | } | ||
| 147 | |||
| 148 | 3 | bool SteamEquipmentDefinition_Impl::setFractionLatent(double fractionLatent) { | |
| 149 | |||
| 150 | 3 | double fractionRadiantAndLost = fractionRadiant() + fractionLost(); | |
| 151 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
|
3 | if ((fractionLatent + fractionRadiantAndLost) > 1.0) { |
| 152 |
9/9✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
|
1 | LOG(Error, "Radiant Fraction and Lost Fraction sum to " << fractionRadiantAndLost << " and you supplied a Latent Fraction of " |
| 153 | << fractionLatent << " which would result in a sum greater than 1.0"); | ||
| 154 | 1 | return false; | |
| 155 | } | ||
| 156 | 2 | bool result = setDouble(OS_SteamEquipment_DefinitionFields::FractionLatent, fractionLatent); | |
| 157 | 2 | return result; | |
| 158 | } | ||
| 159 | |||
| 160 | ✗ | void SteamEquipmentDefinition_Impl::resetFractionLatent() { | |
| 161 | ✗ | bool result = setString(OS_SteamEquipment_DefinitionFields::FractionLatent, ""); | |
| 162 | ✗ | OS_ASSERT(result); | |
| 163 | ✗ | } | |
| 164 | |||
| 165 | 3 | bool SteamEquipmentDefinition_Impl::setFractionRadiant(double fractionRadiant) { | |
| 166 | |||
| 167 | 3 | double fractionLatentAndLost = fractionLatent() + fractionLost(); | |
| 168 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
|
3 | if ((fractionRadiant + fractionLatentAndLost) > 1.0) { |
| 169 |
9/9✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
|
1 | LOG(Error, "Latent Fraction and Lost Fraction sum to " << fractionLatentAndLost << " and you supplied a Radiant Fraction of " |
| 170 | << fractionRadiant << " which would result in a sum greater than 1.0"); | ||
| 171 | 1 | return false; | |
| 172 | } | ||
| 173 | 2 | bool result = setDouble(OS_SteamEquipment_DefinitionFields::FractionRadiant, fractionRadiant); | |
| 174 | 2 | return result; | |
| 175 | } | ||
| 176 | |||
| 177 | ✗ | void SteamEquipmentDefinition_Impl::resetFractionRadiant() { | |
| 178 | ✗ | bool result = setString(OS_SteamEquipment_DefinitionFields::FractionRadiant, ""); | |
| 179 | ✗ | OS_ASSERT(result); | |
| 180 | ✗ | } | |
| 181 | |||
| 182 | 2 | bool SteamEquipmentDefinition_Impl::setFractionLost(double fractionLost) { | |
| 183 | |||
| 184 | 2 | double fractionLatentAndRadiant = fractionLatent() + fractionRadiant(); | |
| 185 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if ((fractionLost + fractionLatentAndRadiant) > 1.0) { |
| 186 |
9/9✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
|
1 | LOG(Error, "Latent Fraction and Radiant Fraction sum to " << fractionLatentAndRadiant << " and you supplied a Lost Fraction of " |
| 187 | << fractionLost << " which would result in a sum greater than 1.0"); | ||
| 188 | 1 | return false; | |
| 189 | } | ||
| 190 | 1 | bool result = setDouble(OS_SteamEquipment_DefinitionFields::FractionLost, fractionLost); | |
| 191 | 1 | return result; | |
| 192 | } | ||
| 193 | |||
| 194 | ✗ | void SteamEquipmentDefinition_Impl::resetFractionLost() { | |
| 195 | ✗ | bool result = setString(OS_SteamEquipment_DefinitionFields::FractionLost, ""); | |
| 196 | ✗ | OS_ASSERT(result); | |
| 197 | ✗ | } | |
| 198 | |||
| 199 | ✗ | double SteamEquipmentDefinition_Impl::getDesignLevel(double floorArea, double numPeople) const { | |
| 200 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 201 | |||
| 202 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 203 | ✗ | return designLevel().get(); | |
| 204 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 205 | ✗ | return wattsperSpaceFloorArea().get() * floorArea; | |
| 206 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 207 | ✗ | return wattsperPerson().get() * numPeople; | |
| 208 | } | ||
| 209 | |||
| 210 | ✗ | OS_ASSERT(false); | |
| 211 | ✗ | return 0.0; | |
| 212 | ✗ | } | |
| 213 | |||
| 214 | ✗ | double SteamEquipmentDefinition_Impl::getPowerPerFloorArea(double floorArea, double numPeople) const { | |
| 215 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 216 | |||
| 217 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 218 | ✗ | return designLevel().get() / floorArea; | |
| 219 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 220 | ✗ | return wattsperSpaceFloorArea().get(); | |
| 221 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 222 | ✗ | return wattsperPerson().get() * numPeople / floorArea; | |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | OS_ASSERT(false); | |
| 226 | ✗ | return 0.0; | |
| 227 | ✗ | } | |
| 228 | |||
| 229 | ✗ | double SteamEquipmentDefinition_Impl::getPowerPerPerson(double floorArea, double numPeople) const { | |
| 230 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 231 | |||
| 232 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 233 | ✗ | return designLevel().get() / numPeople; | |
| 234 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 235 | ✗ | return wattsperSpaceFloorArea().get() * floorArea / numPeople; | |
| 236 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 237 | ✗ | return wattsperPerson().get(); | |
| 238 | } | ||
| 239 | |||
| 240 | ✗ | OS_ASSERT(false); | |
| 241 | ✗ | return 0.0; | |
| 242 | ✗ | } | |
| 243 | |||
| 244 | ✗ | bool SteamEquipmentDefinition_Impl::setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople) { | |
| 245 | ✗ | if (openstudio::istringEqual("equipmentlevel", method)) { | |
| 246 | ✗ | return setDesignLevel(getDesignLevel(floorArea, numPeople)); | |
| 247 | ✗ | } else if (openstudio::istringEqual("watts/area", method)) { | |
| 248 | ✗ | return setWattsperSpaceFloorArea(getPowerPerFloorArea(floorArea, numPeople)); | |
| 249 | ✗ | } else if (openstudio::istringEqual("watts/person", method)) { | |
| 250 | ✗ | return setWattsperPerson(getPowerPerPerson(floorArea, numPeople)); | |
| 251 | } | ||
| 252 | |||
| 253 | ✗ | return false; | |
| 254 | } | ||
| 255 | |||
| 256 | ✗ | std::vector<EMSActuatorNames> SteamEquipmentDefinition_Impl::emsActuatorNames() const { | |
| 257 | ✗ | std::vector<EMSActuatorNames> actuators{{"SteamEquipment", "District Heating Power Level"}}; | |
| 258 | ✗ | return actuators; | |
| 259 | ✗ | } | |
| 260 | |||
| 261 | ✗ | std::vector<std::string> SteamEquipmentDefinition_Impl::emsInternalVariableNames() const { | |
| 262 | ✗ | std::vector<std::string> types{"Process Steam District Heat Design Level"}; | |
| 263 | ✗ | return types; | |
| 264 | ✗ | } | |
| 265 | |||
| 266 | } // namespace detail | ||
| 267 | |||
| 268 | 6 | SteamEquipmentDefinition::SteamEquipmentDefinition(const Model& model) : SpaceLoadDefinition(SteamEquipmentDefinition::iddObjectType(), model) { | |
| 269 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::SteamEquipmentDefinition_Impl>()); |
| 270 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDesignLevel(0.0); |
| 271 | 6 | } | |
| 272 | |||
| 273 | 7740 | IddObjectType SteamEquipmentDefinition::iddObjectType() { | |
| 274 |
1/1✓ Branch 1 taken 7740 times.
|
7740 | IddObjectType result(IddObjectType::OS_SteamEquipment_Definition); |
| 275 | 7740 | return result; | |
| 276 | } | ||
| 277 | |||
| 278 | ✗ | std::vector<std::string> SteamEquipmentDefinition::validDesignLevelCalculationMethodValues() { | |
| 279 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SteamEquipment_DefinitionFields::DesignLevelCalculationMethod); | |
| 280 | } | ||
| 281 | |||
| 282 | 7 | std::string SteamEquipmentDefinition::designLevelCalculationMethod() const { | |
| 283 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->designLevelCalculationMethod(); |
| 284 | } | ||
| 285 | |||
| 286 | 9 | boost::optional<double> SteamEquipmentDefinition::designLevel() const { | |
| 287 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->designLevel(); |
| 288 | } | ||
| 289 | |||
| 290 | 8 | boost::optional<double> SteamEquipmentDefinition::wattsperSpaceFloorArea() const { | |
| 291 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->wattsperSpaceFloorArea(); |
| 292 | } | ||
| 293 | |||
| 294 | 8 | boost::optional<double> SteamEquipmentDefinition::wattsperPerson() const { | |
| 295 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->wattsperPerson(); |
| 296 | } | ||
| 297 | |||
| 298 | 1 | double SteamEquipmentDefinition::fractionLatent() const { | |
| 299 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->fractionLatent(); |
| 300 | } | ||
| 301 | |||
| 302 | 3 | bool SteamEquipmentDefinition::isFractionLatentDefaulted() const { | |
| 303 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->isFractionLatentDefaulted(); |
| 304 | } | ||
| 305 | |||
| 306 | 1 | double SteamEquipmentDefinition::fractionRadiant() const { | |
| 307 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->fractionRadiant(); |
| 308 | } | ||
| 309 | |||
| 310 | 3 | bool SteamEquipmentDefinition::isFractionRadiantDefaulted() const { | |
| 311 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->isFractionRadiantDefaulted(); |
| 312 | } | ||
| 313 | |||
| 314 | 1 | double SteamEquipmentDefinition::fractionLost() const { | |
| 315 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->fractionLost(); |
| 316 | } | ||
| 317 | |||
| 318 | 3 | bool SteamEquipmentDefinition::isFractionLostDefaulted() const { | |
| 319 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->isFractionLostDefaulted(); |
| 320 | } | ||
| 321 | |||
| 322 | 10 | bool SteamEquipmentDefinition::setDesignLevel(double designLevel) { | |
| 323 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setDesignLevel(designLevel); |
| 324 | } | ||
| 325 | |||
| 326 | 1 | bool SteamEquipmentDefinition::setWattsperSpaceFloorArea(double wattsperSpaceFloorArea) { | |
| 327 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setWattsperSpaceFloorArea(wattsperSpaceFloorArea); |
| 328 | } | ||
| 329 | |||
| 330 | 1 | bool SteamEquipmentDefinition::setWattsperPerson(double wattsperPerson) { | |
| 331 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setWattsperPerson(wattsperPerson); |
| 332 | } | ||
| 333 | |||
| 334 | 3 | bool SteamEquipmentDefinition::setFractionLatent(double fractionLatent) { | |
| 335 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setFractionLatent(fractionLatent); |
| 336 | } | ||
| 337 | |||
| 338 | ✗ | void SteamEquipmentDefinition::resetFractionLatent() { | |
| 339 | ✗ | getImpl<detail::SteamEquipmentDefinition_Impl>()->resetFractionLatent(); | |
| 340 | ✗ | } | |
| 341 | |||
| 342 | 3 | bool SteamEquipmentDefinition::setFractionRadiant(double fractionRadiant) { | |
| 343 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setFractionRadiant(fractionRadiant); |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | void SteamEquipmentDefinition::resetFractionRadiant() { | |
| 347 | ✗ | getImpl<detail::SteamEquipmentDefinition_Impl>()->resetFractionRadiant(); | |
| 348 | ✗ | } | |
| 349 | |||
| 350 | 2 | bool SteamEquipmentDefinition::setFractionLost(double fractionLost) { | |
| 351 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setFractionLost(fractionLost); |
| 352 | } | ||
| 353 | |||
| 354 | ✗ | void SteamEquipmentDefinition::resetFractionLost() { | |
| 355 | ✗ | getImpl<detail::SteamEquipmentDefinition_Impl>()->resetFractionLost(); | |
| 356 | ✗ | } | |
| 357 | |||
| 358 | ✗ | double SteamEquipmentDefinition::getDesignLevel(double floorArea, double numPeople) const { | |
| 359 | ✗ | return getImpl<detail::SteamEquipmentDefinition_Impl>()->getDesignLevel(floorArea, numPeople); | |
| 360 | } | ||
| 361 | |||
| 362 | ✗ | double SteamEquipmentDefinition::getPowerPerFloorArea(double floorArea, double numPeople) const { | |
| 363 | ✗ | return getImpl<detail::SteamEquipmentDefinition_Impl>()->getPowerPerFloorArea(floorArea, numPeople); | |
| 364 | } | ||
| 365 | |||
| 366 | ✗ | double SteamEquipmentDefinition::getPowerPerPerson(double floorArea, double numPeople) const { | |
| 367 | ✗ | return getImpl<detail::SteamEquipmentDefinition_Impl>()->getPowerPerPerson(floorArea, numPeople); | |
| 368 | } | ||
| 369 | |||
| 370 | ✗ | bool SteamEquipmentDefinition::setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople) { | |
| 371 | ✗ | return getImpl<detail::SteamEquipmentDefinition_Impl>()->setDesignLevelCalculationMethod(method, floorArea, numPeople); | |
| 372 | } | ||
| 373 | |||
| 374 | /// @cond | ||
| 375 | 7 | SteamEquipmentDefinition::SteamEquipmentDefinition(std::shared_ptr<detail::SteamEquipmentDefinition_Impl> impl) | |
| 376 |
1/1✓ Branch 3 taken 7 times.
|
7 | : SpaceLoadDefinition(std::move(impl)) {} |
| 377 | /// @endcond | ||
| 378 | |||
| 379 | } // namespace model | ||
| 380 | } // namespace openstudio | ||
| 381 |