Otto engine Thermal efficiency
Objective: 1)Program to show how volume changes during compression and expansion stroke: function [V]=Volume(bore,stroke,con_rod,cr,startcrank,endcrank) a=stroke/2 R=con_rod/a vs=pi*bore^2*0.25*stroke vc=vs/(cr-1) theta=linspace(startcrank,endcrank,100) term1=0.5*(cr-1) term2=R+1-cosd(theta) term3=(R^2-sind(theta).^2).^0.5 V=(1+term1*(term2-term3)).*vc…