예제 #1
0
        public double GetMeanSpecificHeatOfLiquid(double t1, double t2)
        {
            //this correlation comes from Perry's Chemical Engineers Handbook
            //double cp = 2.7637e5 - 2.0901e3 * temperature + 8.125 * temperature * temperature
            //            -1.4116e-2 * Math.Pow(temperature, 3) + 9.3701e-6 * Math.Pow(temperature, 4);
            double cp = ThermalPropCalculator.CalculateMeanLiquidHeatCapacity1(t1, t2, liqCpCoeffs);

            return(cp / molarWeight);
        }
예제 #2
0
        public double GetMeanSpecificHeatOfLiquid(double p, double t1, double t2)
        {
            double cp;

            if (moisture.Name.Equals("Water"))
            {
                if (Math.Abs(t1 - t2) > 1.0e-4)
                {
                    cp = ThermalPropCalculator.CalculateWaterMeanHeatCapacity(p, t1, t2);
                }
                else
                {
                    cp = ThermalPropCalculator.CalculateWaterMeanHeatCapacity(p, t1, t1 + 1);
                }
            }
            else
            {
                cp = ThermalPropCalculator.CalculateMeanLiquidHeatCapacity1(t1, t2, gasCpCoeffs);
                cp = cp / molarWeight;
            }
            return(cp);
        }