Air standard cycles calculating thermal efficiencies and generating P-V diagram of OTTO cycle
Objective: I have written a code below for calculating thermal efficiency of an OTTO cycle and plotting its P-V diagram. clear all close all clc %input gamma=1.4; t3=2300; t4=860; %state variables p1=101325; t1=500; %engine geometric parameters bore=0.1; stroke=0.1; con_rod=0.15; cr=12; %calculating the swept volume and the…