Interface WaterVaporPressureProvider

  • All Known Implementing Classes:
    CIPM2007, NbsNrcSteamTable, Wang1988

    public interface WaterVaporPressureProvider
    Interface for converting between relative humidity and water vapor pressure.
    Since:
    12.1
    Author:
    Luc Maisonobe
    • Method Detail

      • waterVaporPressure

        double waterVaporPressure​(double p,
                                  double t,
                                  double rh)
        Compute water vapor pressure.
        Parameters:
        p - pressure (Pa)
        t - temperature (Kelvin)
        rh - relative humidity, as a ratio (50% → 0.5)
        Returns:
        water vapor pressure (Pa)
      • relativeHumidity

        default double relativeHumidity​(double p,
                                        double t,
                                        double e)
        Compute relative humidity.
        Parameters:
        p - pressure (Pa)
        t - temperature (Kelvin)
        e - water vapor pressure (Pa)
        Returns:
        relative humidity, as a ratio (50% → 0.5)
      • waterVaporPressure

        <T extends CalculusFieldElement<T>> T waterVaporPressure​(T p,
                                                                 T t,
                                                                 T rh)
        Compute water vapor pressure.
        Type Parameters:
        T - type of the field elements
        Parameters:
        p - pressure (Pa)
        t - temperature (Kelvin)
        rh - relative humidity, as a ratio (50% → 0.5)
        Returns:
        water vapor pressure (Pa)
      • relativeHumidity

        default <T extends CalculusFieldElement<T>> T relativeHumidity​(T p,
                                                                       T t,
                                                                       T e)
        Compute relative humidity.
        Type Parameters:
        T - type of the field elements
        Parameters:
        p - pressure (Pa)
        t - temperature (Kelvin)
        e - water vapor pressure (Pa)
        Returns:
        relative humidity, as a ratio (50% → 0.5)