public class braytontest4
{
  public static void main(String arg[])
  {
	  double mhava=1; // kg/s air inlet temperature	
	  double T1=300.0; //degree K air inlet temperature
	  double T3=300.0; //degree K air inlet temperature
	  double P1=1.1;// bar air inlet pressure
	  double P2=4.062019202;//bar air inlet pressure
	  double P4=15.0;// compressed air pressure
	  double T6=1300.0; //degree K turbine inlet temperature
	  //natural gas fuel
	  // ch4 0.906
      // c2h6 0.056
      // c3h8 8e-4
      // c4h10 2e-4
      // co2 0.017
      // n2  0.011
      String s[]={"ch4","c2h6","c3h8","c4h10","co2","n2"};
      double N[]={0.906,0.056,8.0e-4,2.0e-4,0.017,0.011};
      double a_f=1.0;	
      double T8=1500.0;         // degree K turbine inlet temperature
	  double dT=150.0;          // degree K heat exchanfer temperature difference
	  double etakompressor=0.9; // compressor isentropic efficiency
	  double etaturbine=0.9;    // turbine isentropic efficiency    
      brayton4 bry1=new brayton4(s,N,mhava,T1,P1,T1,P2,P4,T3,T6,dT,etakompressor,etakompressor,etaturbine,etaturbine);
      System.out.println(bry1.toString());
      bry1.plot();
}}
