示例#1
0
        public double GetMeanSpecificHeatOfDryGas(double t1, double t2)
        {
            double cp;

            if (Math.Abs(t1 - t2) > 1.0e-4)
            {
                cp = ThermalPropCalculator.CalculateMeanGasHeatCapacity1(t1, t2, gasCpCoeffs);
            }
            else
            {
                cp = ThermalPropCalculator.CalculateGasHeatCapacity1(t1, gasCpCoeffs);
            }
            return(cp / molarWeight);
        }
示例#2
0
        public double GetMeanSpecificHeatOfVapor(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.CalculateMeanGasHeatCapacity1(t1, t2, gasCpCoeffs);
                cp = cp / molarWeight;
            }
            return(cp);
        }