Presets
Playback
Valve timing
The four crank-angle events that set overlap, charge trapping and effective compression.
Cam and valves
Lift, lobe shape, base circle and valve head diameters (one equivalent valve per port).
Engine and gas
Speed, manifold pressure, back-pressure, compression ratio and combustion.
Valve train and animation
Valve mass and spring for the float limit; animation speed only changes how fast the crank is drawn.
Layers
Model checks
The science
What the valves decide
In a four-stroke engine the piston travels four strokes per cycle (720 degrees of crank): expansion, exhaust, intake and compression. The valves are opened by a camshaft that turns at half the crank speed, so a cam angle is half a crank angle. The timing numbers on this page are the four classic events: intake opens before TDC (IVO), intake closes after BDC (IVC), exhaust opens before BDC (EVO) and exhaust closes after TDC (EVC). Both valves are open together around the gas-exchange TDC for overlap = IVO + EVC degrees. Late intake closing lets the piston push charge back out when the engine is slow but lets inertia keep filling when it is fast; the closing angle also sets the effective compression ratio, V(IVC)/V_c, which is lower than the geometric ratio when IVC is late (the idea behind Atkinson and Miller cycles).
Geometry and cam
The piston depth below TDC is the exact slider-crank result x(theta) = r(1 - cos theta) + l - sqrt(l^2 - r^2 sin^2 theta) and the cylinder volume is V = V_c + (pi/4) B^2 x. Each valve lifts as h = L sin(pi x)^(2m) with x the fraction of its open window (m = 1 is a harmonic lobe, larger m a peakier one); its integral has the closed form L D Gamma(m + 1/2) / (sqrt(pi) Gamma(m + 1)). For a flat tappet the cam profile is the envelope P(psi) = s n + s' t with s = r_b + h; it stays convex only while r_b + h + h'' > 0, otherwise the nose would be a cusp, and that is why a big lift in a short duration needs a bigger base circle. The follower acceleration is h'' (omega_crank/2)^2; the spring (preload F0 plus rate k times lift) must supply m a on the closing flank, so the valve-train floats when F0 + k h < m |h''| omega_cam^2. The float speed shown is the lowest speed for which that happens at some point of the lobe.
Gas exchange and cycle
The cylinder is a single well-mixed zone with mass m and temperature T of an ideal gas (gamma = 1.35). Each valve is an orifice with area C_d min(pi d h, 0.85 pi d^2/4) and a signed compressible mass flow driven by the pressure ratio (choked below 0.528): mdot = A p_up / sqrt(R T_up) sqrt(2 gamma/(gamma-1) (r^(2/gamma) - r^((gamma+1)/gamma))). The first law gives m c_v dT/dt = sum (h_flow - c_v T) mdot - p dV/dt + Qdot_comb - Qdot_wall, with h_flow the enthalpy of the gas coming from the port (or of the cylinder gas when it flows out). Combustion releases the fuel energy with a Wiebe burn of 55 degrees starting at the spark; wall loss uses a heat-transfer coefficient that grows with piston speed. Volumetric efficiency is the fresh charge trapped at intake closing divided by the manifold density times the swept volume. Indicated work is W = integral p dV split into the compression-expansion loop (gross) and the gas-exchange loop (pumping); BMEP subtracts an illustrative friction mean effective pressure 0.4 + 0.09 S_p + 0.0045 S_p^2 bar.
Numerical checks on this page
(1) The exact slider-crank piston position is compared with its two-term series, the swept volume with pi/4 B^2 S from integrating the piston speed, and the cam lift area with the Gamma-function closed form. (2) In the quasi-static limit (huge valves, 120 rpm, instantaneous valve action, no combustion or heat loss) the first law predicts that the charge gained between intake opening and closing is p_in (V_ivc - V_c)/(R T_in), independent of the hot residual; the full solver reproduces it to a small fraction of a per cent. (3) With the valves shut and no heat exchange the pressure ratio of compression equals (V_ivc/V_c)^gamma, and halving the crank step eight-fold leaves volumetric efficiency and IMEP unchanged within a per cent. The 2D page adds (4) Green's theorem: the polygon area of the recorded p-V loop equals the work integrated inside the solver.
Honest simplifications
This is a zero-dimensional model. It has no intake or exhaust pressure waves, so none of the ram or tuned-pipe effects that real engines use to fill better at one speed: the optimum closing angle found here is mostly a trade between backflow and flow choking, and it usually comes earlier than on a real engine at high speed. Valve discharge coefficients are constants; one equivalent valve per port stands for the usual two; the charge is a perfect mixed gas with constant gamma (no dissociation, no knock, no cycle-to-cycle variation, no crevice or blow-by loss, one temperature for the whole cylinder) so indicated efficiency comes out optimistic. Valve float is reported but does not change the gas flow. The valve train is a rigid follower with a linear spring (no spring surge or cam elasticity). Friction is an illustrative curve. Literature values quoted from memory: street engines run an overlap of 0 to 30 degrees, race engines 60 to 100; a typical indicated efficiency of a spark-ignition engine is 30 to 38 per cent and peak volumetric efficiency of a naturally aspirated engine 0.85 to 1.05 with tuned intake. The page teaches the mechanism and is not an engine-design tool.
What to try
- Load Big overlap at idle (backflow): with 40 degrees each side at 1000 rpm and a throttled manifold the exhaust gas flows back into the intake (negative flow in the flow graph), residual gas rises and the net IMEP collapses. Then load Same cam at 7000 rpm: the same overlap now scavenges and helps.
- Drag the crank angle slider through the intake stroke and watch the cam nose push the tappet down while the gas volume turns from grey (burnt residual) to cyan (fresh charge).
- Load Part throttle: the manifold pressure falls to 0.35 bar and the pumping loop of the p-V diagram opens into a large counter-clockwise area, the pumping loss.
- Press Experiment: best intake-closing angle; click on the map (2D page) to see how the best closing angle moves with engine speed.
- Raise the valve lift above 12 mm with the base circle at 24 mm and read the cam-nose warning: the lobe would be a cusp. Then raise the speed past the float speed and watch the contact force in the valve-train graph drop below zero.
- Shrink the valve diameters (Small valves, high lift) and compare the volumetric efficiency curve against the quasi-static limit line: the gap is the loss from flow choking.