Otto cycle - Calculating the efficiency of the cycle and generating P - V Diagram
Objective: I am going to write a program in python to simulate the Otto cycle. I will be calculating the thermal efficiency of the engine and be generating the P - V diagram. Problem Setup and geometric parameters:1. Gamma is set to `1.4`.2. The pressure at state point `1` is set to `101325` bars.3. The temperature…