Exemplo n.º 1
0
        private double CalculateCp(double temperature)
        {
            double cp = Constants.NO_VALUE;

            if (massConcentration.HasValue && massConcentration.Value <= 1.0e-6)
            {
                if (vaporFraction.HasValue && vaporFraction.Value > 0.9999)
                {
                    cp = GetGasCp(temperature);
                }
                else if (temperature != Constants.NO_VALUE && pressure.HasValue)
                {
                    if (temperature < GetBoilingPoint(pressure.Value))
                    {
                        cp = MoistureProperties.GetSpecificHeatOfLiquid(temperature);
                    }
                    else if (temperature > GetBoilingPoint(pressure.Value))
                    {
                        cp = MoistureProperties.GetSpecificHeatOfVapor(temperature);
                    }
                }
            }
            //   else if (massConcentration.Value > 1.0e-6 && specificHeatDryBase.HasValue) {
            //      //double cm = specificHeatAbsDry.Value + moistureContentDryBase.Value * liquidCp;
            //      cp = specificHeatDryBase.Value / (1.0 + moistureContentDryBase.Value);
            //   }
            //}
            else if (DryingMaterial.MaterialType == MaterialType.GenericFood)
            {
                //if (DryingMaterial.MaterialType == MaterialType.GenericFood) {
                cp = GenericFoodPropCalculator.GetCp(materialComponents.Components, temperature);
            }
            else if (DryingMaterial.MaterialType == MaterialType.SpecialFood && massConcentration.HasValue)
            {
                cp = SpecialFoodPropCalculator.GetCp(DryingMaterial.Name, massConcentration.Value, temperature);
            }

            if (cp == Constants.NO_VALUE && moistureContentDryBase.HasValue)
            {
                EvaporationAndDryingSystem mySystem  = this.unitOpSystem as EvaporationAndDryingSystem;
                DryingMaterial             dryingMat = mySystem.DryingMaterial;
                if (dryingMat.SpecificHeatOfAbsoluteDryMaterial != Constants.NO_VALUE)
                {
                    double moistureLiquidCp = MoistureProperties.GetSpecificHeatOfLiquid(temperature);
                    cp = dryingMat.SpecificHeatOfAbsoluteDryMaterial + moistureContentDryBase.Value * moistureLiquidCp;
                    cp = cp / (1.0 + moistureContentDryBase.Value);
                }
            }

            return(cp);
        }
Exemplo n.º 2
0
        private void CalculateCpOfPureMoisture()
        {
            double cp        = Constants.NO_VALUE;
            double tempValue = temperature.Value;

            if (vaporFraction.HasValue && vaporFraction.Value >= 0.999999)
            {
                //tempValue += 0.001;
                cp = MoistureProperties.GetSpecificHeatOfVapor(tempValue);
            }
            else if (vaporFraction.HasValue && vaporFraction.Value <= 0.000001)
            {
                //tempValue -= 0.001;
                cp = MoistureProperties.GetSpecificHeatOfLiquid(tempValue);
            }
            Calculate(specificHeat, cp);
        }
Exemplo n.º 3
0
        private double CalculateCp(double temperature)
        {
            double cp = Constants.NO_VALUE;

            if (massConcentration.HasValue && massConcentration.Value <= TOLERANCE)
            {
                if (vaporFraction.HasValue && vaporFraction.Value > 0.9999)
                {
                    cp = GetGasCp(temperature);
                }
                else if (temperature != Constants.NO_VALUE && pressure.HasValue)
                {
                    if (temperature < GetBoilingPoint(pressure.Value))
                    {
                        cp = MoistureProperties.GetSpecificHeatOfLiquid(temperature);
                    }
                    else if (temperature > GetBoilingPoint(pressure.Value))
                    {
                        cp = MoistureProperties.GetSpecificHeatOfVapor(temperature);
                    }
                }
            }
            else if (DryingMaterial.MaterialType == MaterialType.GenericFood)
            {
                //if (DryingMaterial.MaterialType == MaterialType.GenericFood) {
                cp = GenericFoodPropCalculator.GetCp(materialComponents.Components, temperature);
            }
            else if (DryingMaterial.MaterialType == MaterialType.SpecialFood && massConcentration.HasValue)
            {
                cp = SpecialFoodPropCalculator.GetCp(DryingMaterial.Name, massConcentration.Value, temperature);
            }

            if (cp == Constants.NO_VALUE && moistureContentDryBase.HasValue)
            {
                if (DryingMaterial.SpecificHeatOfAbsoluteDryMaterial != Constants.NO_VALUE)
                {
                    double moistureLiquidCp = MoistureProperties.GetSpecificHeatOfLiquid(temperature);
                    cp = DryingMaterial.SpecificHeatOfAbsoluteDryMaterial + moistureContentDryBase.Value * moistureLiquidCp;
                    cp = cp / (1.0 + moistureContentDryBase.Value);
                }
            }

            return(cp);
        }
Exemplo n.º 4
0
        internal override double GetGasCp(double tempValue)
        {
            double cp = MoistureProperties.GetSpecificHeatOfVapor(tempValue);

            return(cp);
        }