SUMMARY: This paper introduces a general mathematical model for compression ignition internal combustion engines driven by diesel, biodiesel, and/or biogas. The model is written for dynamic and steady state operation and combines principles of classical thermodynamics and heat transfer, with the use of empirical and theoretical correlations for simplicity, in order to quickly assess the potent…