Ejemplo n.º 1
0
  double OtherEquipmentDefinition_Impl::getDesignLevel(double floorArea, double numPeople) const {
    std::string method = designLevelCalculationMethod();

    if (method == "EquipmentLevel") {
      return designLevel().get();
    }
    else if (method == "Watts/Area") {
      return wattsperSpaceFloorArea().get() * floorArea;
    }
    else if (method == "Watts/Person") {
      return wattsperPerson().get() * numPeople;
    }

    OS_ASSERT(false);
    return 0.0;
  }
Ejemplo n.º 2
0
  double LightsDefinition_Impl::getLightingPower(double floorArea, double numPeople) const {
    std::string method = designLevelCalculationMethod();

    if (method == "LightingLevel") {
      return lightingLevel().get();
    }
    else if (method == "Watts/Area") {
      return wattsperSpaceFloorArea().get() * floorArea;
    }
    else if (method == "Watts/Person") {
      return wattsperPerson().get() * numPeople;
    }

    OS_ASSERT(false);
    return 0.0;
  }
Ejemplo n.º 3
0
  double InternalMassDefinition_Impl::getSurfaceArea(double floorArea, double numPeople) const {
    std::string method = designLevelCalculationMethod();

    if (method == "SurfaceArea") {
      return surfaceArea().get();
    }
    else if (method == "SurfaceArea/Area") {
      return surfaceAreaperSpaceFloorArea().get() * floorArea;
    }
    else if (method == "SurfaceArea/Person") {
      return surfaceAreaperPerson().get() * numPeople;
    }

    OS_ASSERT(false);
    return 0.0;
  }
Ejemplo n.º 4
0
  double LightsDefinition_Impl::getPowerPerPerson(double floorArea, double numPeople) const {
    std::string method = designLevelCalculationMethod();

    if (method == "LightingLevel") {
      if (equal(numPeople,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return lightingLevel().get() / numPeople;
    }
    else if (method == "Watts/Area") {
      if (equal(numPeople,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return wattsperSpaceFloorArea().get() * floorArea / numPeople;
    }
    else if (method == "Watts/Person") {
      return wattsperPerson().get();
    }

    OS_ASSERT(false);
    return 0.0;
  }
  double ElectricEquipmentDefinition_Impl::getPowerPerFloorArea(double floorArea, 
                                                                     double numPeople) const
  {
    std::string method = designLevelCalculationMethod();

    if (method == "EquipmentLevel") {
      if (equal(floorArea,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return designLevel().get() / floorArea;
    }
    else if (method == "Watts/Area") {
      return wattsperSpaceFloorArea().get();
    }
    else if (method == "Watts/Person") {
      if (equal(floorArea,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return wattsperPerson().get() * numPeople / floorArea;
    }

    OS_ASSERT(false);
    return 0.0;
  }
Ejemplo n.º 6
0
  double InternalMassDefinition_Impl::getSurfaceAreaPerPerson(double floorArea, 
                                                              double numPeople) const
  {
    std::string method = designLevelCalculationMethod();

    if (method == "SurfaceArea") {
      if (equal(numPeople,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return surfaceArea().get() / numPeople;
    }
    else if (method == "SurfaceArea/Area") {
      if (equal(numPeople,0.0)) {
        LOG_AND_THROW("Calculation would require division by zero.");
      }
      return surfaceAreaperSpaceFloorArea().get() * floorArea / numPeople;
    }
    else if (method == "SurfaceArea/Person") {
      return surfaceAreaperPerson().get();
    }

    OS_ASSERT(false);
    return 0.0;
  }