Ejemplo n.º 1
0
    public static void Init()
    {
        got_error = false;
        IF97.initRegions();

        //Pa
        p_min       = IF97.get_Pmin() * 1000000.0; // 611.213
        p_max       = IF97.get_Pmax() * 1000000.0; // 100000000
        p_neutral   = 101325.0;
        p_smallstep = 1.0;

        //Pa
        psat_min = IF97.get_ptrip() * 1000000.0; //TODO: comment actual value for quick reference
        psat_max = IF97.get_pcrit() * 1000000.0; //TODO: comment actual value for quick reference

        //M^3/kg
        v_min       = 1.0 / 3000;  // 0.0003
        v_max       = 1.0 / 0.001; // 1000
        v_neutral   = 0.001;
        v_smallstep = 0.00001;

        //K
        t_min       = IF97.get_Tmin(); // 273.15
        t_max       = IF97.get_Tmax(); // 1073.15
        t_neutral   = 293.0;
        t_smallstep = 0.001;

        //J/kg
        u_min       = 0.0;        //TODO:find actual min
        u_max       = 9999999999; //TODO:find actual max
        u_neutral   = 83.28;
        u_smallstep = 0.0;        //TODO: find

        //J/kgK
        //s_min = IF97.Smin; //TODO: comment actual value for quick reference //I don't think this is correct
        //s_max = IF97.Smax; //11.9210548250511 //I don't think this is correct...
        s_min       = 0.0;            //TODO: actually find something coherent
        s_max       = 999999999999.0; //TODO: actually find something coherent
        s_neutral   = 294.322;
        s_smallstep = 0.0;            //TODO: find

        //J/kg
        //h_? = ; //experimentally derived- room temp water
        //h_min = IF97.Hmin(s_min); //TODO: I don't think this is correct...
        //h_max = IF97.Hmax(s_max); //4171.65498424024 given s_max 11.9... //TODO: I don't think this is correct...
        h_min       = 0.0;       //TODO: actually come up with something coherent
        h_max       = 9999999.0; //TODO: actually come up with something coherent
        h_neutral   = 83377.0;
        h_smallstep = 0.0;       //TODO: find

        //%
        x_min       = 0.0;
        x_max       = 1.0;
        x_neutral   = 0;
        x_smallstep = 0.00001;

        //DEBUG INFO:
        //IF97.print_tables();
        //IAPWS95.print_tables();
        //compare_impls();
    }