I need a clear explanation of the parameters of the heat release rate calculation equation for a turbocharged diesel engine. Do I need in-cylinder volume for every crank angle degree? Can anyone help me in this regard? Is there any available matlab code for engine HRR calculation?