bool BoilerSteam_Impl::setSizingFactor(const Quantity& sizingFactor) {
   OptionalDouble value = getDoubleFromQuantity(OS_Boiler_SteamFields::SizingFactor,sizingFactor);
   if (!value) {
     return false;
   }
   return setSizingFactor(value.get());
 }
ChillerAbsorption::ChillerAbsorption(const Model& model)
  : WaterToWaterComponent(ChillerAbsorption::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::ChillerAbsorption_Impl>());
  autosizeNominalCapacity();
  autosizeNominalPumpingPower();
  setMinimumPartLoadRatio(0.15);
  setMaximumPartLoadRatio(1.0);
  setOptimumPartLoadRatio(0.65);
  setDesignCondenserInletTemperature(35.0);
  autosizeDesignChilledWaterFlowRate();
  autosizeDesignCondenserWaterFlowRate();
  setCoefficient1oftheHotWaterorSteamUsePartLoadRatioCurve(0.03303);
  setCoefficient2oftheHotWaterorSteamUsePartLoadRatioCurve(0.6852);
  setCoefficient3oftheHotWaterorSteamUsePartLoadRatioCurve(0.2818);
  setCoefficient1ofthePumpElectricUsePartLoadRatioCurve(1.0);
  setCoefficient2ofthePumpElectricUsePartLoadRatioCurve(0);
  setCoefficient3ofthePumpElectricUsePartLoadRatioCurve(0);
  setChilledWaterOutletTemperatureLowerLimit(5);
  setChillerFlowMode("NotModulated");
  setGeneratorHeatSourceType("Steam");
  autosizeDesignGeneratorFluidFlowRate();
  setDegreeofSubcoolinginSteamGenerator(1.0);
  setSizingFactor(1.0);
}
EvaporativeFluidCoolerSingleSpeed::EvaporativeFluidCoolerSingleSpeed(const Model& model)
  : StraightComponent(EvaporativeFluidCoolerSingleSpeed::iddObjectType(),model)
{
  BOOST_ASSERT(getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>());
 
  autosizeDesignAirFlowRate();
  autosizeFanPoweratDesignAirFlowRate();
  setDesignSprayWaterFlowRate(0.03);
  setPerformanceInputMethod("UFactorTimesAreaAndDesignWaterFlowRate");
  resetStandardDesignCapacity();
  autosizeUfactorTimesAreaValueatDesignAirFlowRate();
  autosizeDesignWaterFlowRate();
  resetUserSpecifiedDesignCapacity();
  resetDesignEnteringWaterTemperature();
  resetDesignEnteringAirTemperature();
  resetDesignEnteringAirWetbulbTemperature();
  setCapacityControl("FanCycling");
  setSizingFactor(1.0);
  setEvaporationLossMode("SaturatedExit");
  setDriftLossPercent(0.008);
  setBlowdownCalculationMode("ConcentrationRatio");
  setBlowdownConcentrationRatio(3.0);
  resetBlowdownMakeupWaterUsageSchedule();
  setString(OS_EvaporativeFluidCooler_SingleSpeedFields::SupplyWaterStorageTankName,"");
}
Exemple #4
0
BoilerHotWater::BoilerHotWater(const Model& model)
  : StraightComponent(BoilerHotWater::iddObjectType(),model)
{
  BOOST_ASSERT(getImpl<detail::BoilerHotWater_Impl>());

  setWaterOutletUpperTemperatureLimit(99.0);

  setBoilerFlowMode("ConstantFlow");

  setParasiticElectricLoad(0.0);

  setSizingFactor(1.0);
}
HeatExchangerFluidToFluid::HeatExchangerFluidToFluid(const Model& model)
  : WaterToWaterComponent(HeatExchangerFluidToFluid::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::HeatExchangerFluidToFluid_Impl>());

  autosizeLoopDemandSideDesignFlowRate();
  autosizeLoopSupplySideDesignFlowRate();
  setHeatExchangeModelType("Ideal");
  autosizeHeatExchangerUFactorTimesAreaValue();
  setControlType("UncontrolledOn");
  setMinimumTemperatureDifferencetoActivateHeatExchanger(0.01);
  setHeatTransferMeteringEndUseType("LoopToLoop");
  setComponentOverrideCoolingControlTemperatureMode("Loop");
  setSizingFactor(1.0);
  setOperationMinimumTemperatureLimit(0.0);
  setOperationMaximumTemperatureLimit(100.0);
}
BoilerSteam::BoilerSteam(const Model& model)
  : StraightComponent(BoilerSteam::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::BoilerSteam_Impl>());

  setFuelType("NaturalGas");
  setMaximumOperatingPressure(160000);
  setTheoreticalEfficiency(0.8);
  setDesignOutletSteamTemperature(115);
  autosizeNominalCapacity();
  setMinimumPartLoadRatio(0.00001);
  setMaximumPartLoadRatio(1.0);
  setOptimumPartLoadRatio(0.2);
  setCoefficient1ofFuelUseFunctionofPartLoadRatioCurve(0.8);
  setCoefficient2ofFuelUseFunctionofPartLoadRatioCurve(0.1);
  setCoefficient3ofFuelUseFunctionofPartLoadRatioCurve(0.1);
  setSizingFactor(1.0);
}
ChillerAbsorptionIndirect::ChillerAbsorptionIndirect(const Model& model)
  : WaterToWaterComponent(ChillerAbsorptionIndirect::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::ChillerAbsorptionIndirect_Impl>());

  autosizeNominalCapacity();
  autosizeNominalPumpingPower();
  setMinimumPartLoadRatio(0.15);
  setMaximumPartLoadRatio(1.0);
  setOptimumPartLoadRatio(0.65);
  setDesignCondenserInletTemperature(35.0);
  setCondenserInletTemperatureLowerLimit(10.0);
  setChilledWaterOutletTemperatureLowerLimit(5.0);
  autosizeDesignChilledWaterFlowRate();
  autosizeDesignCondenserWaterFlowRate();
  setChillerFlowMode("NotModulated");
  setGeneratorHeatSourceType("Steam");
  autosizeDesignGeneratorFluidFlowRate();
  setTemperatureLowerLimitGeneratorInlet(30.0);
  setDegreeofSubcoolinginSteamGenerator(2.0);
  setDegreeofSubcoolinginSteamCondensateLoop(12.0);
  setSizingFactor(1.0);

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(0.18892);
    curve.setCoefficient2x(0.968044);
    curve.setCoefficient3xPOW2(1.119202);
    curve.setCoefficient4xPOW3(-0.5034);
    curve.setMinimumValueofx(0.15);
    curve.setMaximumValueofx(1.0);
    setGeneratorHeatInputFunctionofPartLoadRatioCurve(curve);
  }

  {
    CurveQuadratic curve(model);
    curve.setCoefficient1Constant(1.0);
    curve.setCoefficient2x(0.0);
    curve.setCoefficient3xPOW2(0.0);
    curve.setMinimumValueofx(0.15);
    curve.setMaximumValueofx(1.0);
    setPumpElectricInputFunctionofPartLoadRatioCurve(curve);
  }

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(0.245507);
    curve.setCoefficient2x(0.023614);
    curve.setCoefficient3xPOW2(0.0000278);
    curve.setCoefficient4xPOW3(0.000013);
    curve.setMinimumValueofx(7.0);
    curve.setMaximumValueofx(25.0);
    setCapacityCorrectionFunctionofCondenserTemperatureCurve(curve);
  }

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(1.0);
    curve.setCoefficient2x(0.0);
    curve.setCoefficient3xPOW2(0.0);
    curve.setCoefficient4xPOW3(0.0);
    curve.setMinimumValueofx(0.0);
    curve.setMaximumValueofx(100.0);
    setCapacityCorrectionFunctionofGeneratorTemperatureCurve(curve);
  }

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(0.690571);
    curve.setCoefficient2x(0.065571);
    curve.setCoefficient3xPOW2(-0.00289);
    curve.setCoefficient4xPOW3(0.0);
    curve.setMinimumValueofx(4.0);
    curve.setMaximumValueofx(10.0);
    setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(curve);
  }

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(0.712019);
    curve.setCoefficient2x(-0.00478);
    curve.setCoefficient3xPOW2(0.000864);
    curve.setCoefficient4xPOW3(-0.000013);
    curve.setMinimumValueofx(7.0);
    curve.setMaximumValueofx(30.0);
    setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(curve);
  }

  {
    CurveCubic curve(model);
    curve.setCoefficient1Constant(0.995571);
    curve.setCoefficient2x(0.046821);
    curve.setCoefficient3xPOW2(-0.01099);
    curve.setCoefficient4xPOW3(0.000608);
    curve.setMinimumValueofx(4.0);
    curve.setMaximumValueofx(10.0);
    setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(curve);
  }
}