//Mass flow m=1; M=29; //Gas constant(in J/kmolK) R=8314; //Initial temperature(in K) T1=310; //Compression ratio r=6; //Initial pressure(in bar) p1=1; //Peak pressure(in bar) p3=30; //Ratio of specific heats y=1.4;