Gas-Driven Piston Stroke (2D): p-V Diagram, Gas Cooling and Work Ledger
The same gas-driven piston rig as a cutaway side view: the gas inside the cylinder is coloured by temperature, the p-V diagram sits below with the adiabatic and isothermal limits, and the work ledger shows where the energy goes. Same shared model and checks as the 3D version.
Open a valve and let compressed air in a tank expand behind a piston that pushes a sliding load block along rails until a rubber cushion stops it. The gas follows the first law with wall heat exchange and the ideal-gas law (RK4, 20 microsecond steps), the load obeys Newton with seal friction and the room pressure. Compare the live p-V path with the adiabatic and isothermal limits, watch the gas cool during the fast stroke, and see where the work goes: kinetic energy, the room, friction heat and wall heat. Blender-built tank, valve, gauge, glass cylinder, rod, load block and cushion; seven independent checks (adiabatic invariant, closed-form work, isothermal work, first law, energy ledger, equation of state, constant-pressure speed). A generic pneumatic actuator model with a captive load, for teaching expansion work.
The same gas-driven piston rig as a cutaway side view: the gas inside the cylinder is coloured by temperature, the p-V diagram sits below with the adiabatic and isothermal limits, and the work ledger shows where the energy goes. Same shared model and checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install