Air standard cycle
Objective: Code : %Plotting PV diagram of Otto cycle and Calculating thermal efficiency %Inputs: t1 = 400; p1 = 101325; gamma = 1.4; t3 = 2200; %Engine dimesions bore = 0.1; stroke = 0.15; con_rod = 0.2; cr = 8; %Swept and Clearance volume v_swept = pi/4*bore^2*stroke; v_clearance = v_swept/(cr-1); v1= v_swept+v_clearance;…