To caluclate Thermal efficiency of otto engine
Objective: % To caluclate thermal efficiency of the otto engine clear all close all clc %inputs gamma = 1.4 t3 = 2100 %state variables p1=101325 t1=450 %Engine geometric parameters bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 12; % caluclating the swept volume and the clearence volume v_swept = (pi/4)*bore^2*stroke; v_clearance…