Exemplo n.º 1
0
    public static double x_given_ph(double p, double h) //ONLY USE IN VAPOR DOME
    {
        double ret_val;

        try
        {
            ret_val = IF97.Q_phmass(p / 1000000.0, h / 1000.0); //UNIT CONVERSION UNTESTED!
            return(ret_val);
        }
        catch (Exception ex)
        {
            Debug.Log(String.Format("Got an exception: {0}\nReturning {1}", ex.Message, x_neutral));
            got_error = true;
            return(x_neutral);
        }
        //return IF97.Q_phmass(p/1000000.0,h/1000.0); //UNIT CONVERSION UNTESTED!
    }