//Swept volume(in m^3) Vs=300*10^-6; //Compression ratio of the engine r=10; //Speed of the engine(in rpm) N=3000; //Power output(in kW) P=40; //Pressure at inlet(in bar) p1=1; //Temperature a inlet(in K) T1=300; //Specific heat at constant volume(in kJ/kgK) Cv=0.717; //Specific heat at constant pressure(in kJ/kg) Cp=1.004; //No of cylinders k=4; //Gas constant(in J/kgK) R=287;