# Internal Combustion Engine ModelΒΆ

The internal combustion engine model in CanSen is included to enable simulations of a reciprocating internal combustion engine. The equation of motion for the piston follows from Heywood [1], Ch. 2.

Assuming the piston roughly appears as:

where \(s\) is distance from the crank axis to the piston pin axis, \(\ell\) is the connecting rod length, \(a\) is the crank radius, \(\theta\) is the crank angle, with \(0^{\circ}\) at the top of the crank, \(L\) is the stroke length, \(B\) is the cylinder bore, \(V_d\) is the swept, or displacement, volume, \(V_c\) is the clearance volume, and TDC and BDC are top dead center and bottom dead center respectively (i.e., the top and bottom of the stroke).

The compression ratio of the cylinder is defined as:

The swept volume can either be specified directly, or can be calculated from the cylinder bore and stroke length:

The initial volume of the cylinder (the volume at BDC) is:

The distance from the crank center to the piston pin is given by:

Cantera expects a moving wall to be given a velocity, so we find the piston velocity by differentiating with respect to time:

Defining \(\frac{d\theta}{dt}\), the angular velocity of the crank, as \(\omega\), and using the definition of the stroke length \(L\) and the connecting rod length to crank radius ratio \(R\):

the equation for the velocity can be simplified to:

In CanSen, the angular velocity of the crank is input in revolutions per minute, so it must be converted to radians per second:

By default, the starting crank angle is \(180^{\circ}\), or BDC, \(0^{\circ}\) is TDC and the piston reaches BDC again at \(-180^{\circ}\). The starting crank angle can be set with the DEG0 keyword, so \(\theta\) is calculated as a function of time by:

[1] | John B. Heywood. Internal Combustion Engine Fundamentals.
New York: McGraw Hill, 1988. Print. |