Kinetic-molecular model of an ideal gas