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); }
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); }