示例#1
0
        public double GetSaturationTemperature(double pressure)
        {
            double temperature = 1.0e-10;

            //if (moisture.Name.Equals("Water")) {
            //   temperature = ThermalPropCalculator.CalculateWaterSaturationTemperature(pressure);
            //}
            //else {
            //   temperature = ThermalPropCalculator.CalculateSaturationTemperature(pressure, moisture);
            //}
            temperature = thermalPropCalculator.CalculateSaturationTemperature(pressure, moisture);

            return(temperature);
        }
示例#2
0
        public double GetSaturationTemperature(double pressure)
        {
            double temperature = 1.0e-10;

            if (moisture.Name.Equals("Water"))
            {
                temperature = ThermalPropCalculator.CalculateWaterSaturationTemperature(pressure);
            }
            else
            {
                temperature = ThermalPropCalculator.CalculateSaturationTemperature(pressure, vapPressureCoeffs);
            }
            return(temperature);
        }