| 320 | } |
| 321 | |
| 322 | bool ZoneMixing_Impl::hardSize() { |
| 323 | boost::optional<Space> space = this->space(); |
| 324 | if (!space) { |
| 325 | return false; |
| 326 | } |
| 327 | |
| 328 | if (this->designFlowRate()) { |
| 329 | return true; |
| 330 | } |
| 331 | |
| 332 | if (boost::optional<double> flowRateperFloorArea = this->flowRateperFloorArea()) { |
| 333 | return this->setDesignFlowRate(*flowRateperFloorArea * space->floorArea()); |
| 334 | } |
| 335 | |
| 336 | if (boost::optional<double> flowRateperPerson = this->flowRateperPerson()) { |
| 337 | return this->setDesignFlowRate(*flowRateperPerson * space->numberOfPeople()); |
| 338 | } |
| 339 | |
| 340 | if (boost::optional<double> airChangesperHour = this->airChangesperHour()) { |
| 341 | return this->setDesignFlowRate(*airChangesperHour * space->volume() / 3600.0); |
| 342 | } |
| 343 | |
| 344 | return false; |
| 345 | } |
| 346 | |
| 347 | bool ZoneMixing_Impl::setDeltaTemperature(double deltaTemperature) { |
| 348 | bool result = setDouble(OS_ZoneMixingFields::DeltaTemperature, deltaTemperature); |
nothing calls this directly
no test coverage detected