예제 #1
0
        public double GetSaturationPressure(double temperature)
        {
            if (temperature < minimumTemperature || temperature > criticalTemperature)
            {
                throw new IllegalVarValueException("Temperature out of range");
            }

            double pSaturation = 1.0;

            //if (moisture.Name.Equals("Water")) {
            //   pSaturation = ThermalPropCalculator.CalculateWaterSaturationPressure(temperature);
            //}
            //else {
            //   pSaturation = ThermalPropCalculator.CalculateSaturationPressure(temperature, moisture);
            //}
            pSaturation = thermalPropCalculator.CalculateSaturationPressure(temperature, moisture);

            return(pSaturation);
        }