MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / hardSize

Method hardSize

src/model/ZoneMixing.cpp:322–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 9

spaceMethod · 0.95
designFlowRateMethod · 0.95
flowRateperFloorAreaMethod · 0.95
setDesignFlowRateMethod · 0.95
flowRateperPersonMethod · 0.95
airChangesperHourMethod · 0.95
floorAreaMethod · 0.45
numberOfPeopleMethod · 0.45
volumeMethod · 0.45

Tested by

no test coverage detected