public double flashEstimate(double temperature,double pressure){
		double vF = 0.5;
		flashEstimateLiquidFractions(temperature, pressure);
		
		double tolerance  = 1e-4;
        HashMap<Compound,Double> K;           
        HashMap<Compound,Double> x_;

        HashMap<Compound,Double> y_;
           
	    K = flashEstimateEquilibriumRelations(temperature, pressure);
	   // error = calculateError(pressure, temperature);
	    vF = rachfordRice(K, vF,tolerance);
	    x_=x_( K, vF);

	    getLiquid().setFractions(newFractions(x_));

	    y_ = y_(x_, K);
	    getVapor().setFractions(newFractions(y_));  
        return  vF;
    }
public double flashEstimate ( double temperature , double pressure ) { double vF = 0.5 ; flashEstimateLiquidFractions ( temperature , pressure ) ; double tolerance = 1e-4 ; HashMap < Compound , Double > K ; HashMap < Compound , Double > x_ ; HashMap < Compound , Double > y_ ; K = flashEstimateEquilibriumRelations ( temperature , pressure ) ; vF = rachfordRice ( K , vF , tolerance ) ; x_ = x_ ( K , vF ) ; getLiquid ( ) . setFractions ( newFractions ( x_ ) ) ; y_ = y_ ( x_ , K ) ; getVapor ( ) . setFractions ( newFractions ( y_ ) ) ; return vF ; }
}