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

Method getDesignFlowRate

src/model/SpaceInfiltrationDesignFlowRate.cpp:396–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 }
395
396 double SpaceInfiltrationDesignFlowRate_Impl::getDesignFlowRate(double floorArea, double exteriorSurfaceArea, double exteriorWallArea,
397 double airVolume) const {
398 std::string method = designFlowRateCalculationMethod();
399
400 if (method == "Flow/Space") {
401 return designFlowRate().get();
402 } else if (method == "Flow/Area") {
403 return flowperSpaceFloorArea().get() * floorArea;
404 } else if (method == "Flow/ExteriorArea") {
405 return flowperExteriorSurfaceArea().get() * exteriorSurfaceArea;
406 } else if (method == "Flow/ExteriorWallArea") {
407 return flowperExteriorWallArea().get() * exteriorWallArea;
408 } else if (method == "AirChanges/Hour") {
409 return convert(airChangesperHour().get() * airVolume, "m^3/h", "m^3/s").get();
410 }
411
412 OS_ASSERT(false);
413 return 0.0;
414 }
415
416 double SpaceInfiltrationDesignFlowRate_Impl::getFlowPerSpaceFloorArea(double floorArea, double exteriorSurfaceArea, double exteriorWallArea,
417 double airVolume) const {

Callers 1

Calls 2

convertFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected