Pressure makes the spring. For sealed air compressed slowly or quickly, this model uses a polytropic relation:
P Vn = constant
Textbook constants: room pressure 101.325 kPa and the dry-air heat-capacity ratio γ = 1.40. The exponent uses γ to interpolate between the isothermal and adiabatic limits.
The exponent is n = 1 + 0.4 × insulation. It moves from isothermal compression (n = 1) to the ideal adiabatic limit for air (n = 1.4). The live pressure follows:
dP/dt = n P A v / V − (P − Patm)/τ
The piston follows Newton's second law: m a = Fhand − A(P − Patm) − c v. A small end-stop prevents the plunger from crossing the end of the barrel. The equations are integrated with fixed-step RK4.
Simplifications: the air is uniform in temperature and pressure; the barrel is rigid; the seal leak is represented by a pressure-relaxation time; and the plunger has linear damping. The model omits sound waves, turbulence, detailed heat flow, friction changes and humidity.
Illustrative: the syringe dimensions, plunger mass, hand force, insulation setting, damping and leak strength are adjustable teaching values, not measurements of a particular product. The temperature is an ideal-gas estimate. Readouts are rounded.
Drag the scene to move your view. Dragging right moves the syringe right.