//Initial pressure(in bar) p1=1; //Compression ratio r=16; //Cutoff ratio rc=2; //Ratio of specific heats y=1.4;