Two elastic disks, a and b, bouncing in a square : a variant of the gas of Szilard.

The initial conditions are clearly apparent from the following figure (Arbitrary units) :

szilard_1.gif

szilard_2.gif

szilard_3.gif

Time evolution : each collision (one wall or the other disk) is named an “event” (9 possibilities).  Events are labeled by integer j.  Multiple collisions are forbidden (The program halts prematurely).  Cible[j] is an integer (∈{1,...,9}) memorizing the type of event.

szilard_4.gif

szilard_5.gif

Checking the conservation of energy :

szilard_6.gif

szilard_7.gif

szilard_8.gif

50000 events have been calculated, 36 are displayed here :

szilard_9.gif

szilard_10.gif

szilard_11.gif

Histogram of the kinetic energy ratio, szilard_12.gif : the maximum corresponds to the equipartition.

szilard_13.gif

szilard_14.gif

szilard_15.gif

Mean time between two collisions (a and b) :

szilard_16.gif

szilard_17.gif

szilard_18.gif

szilard_19.gif

szilard_20.gif

szilard_21.gif

szilard_22.gif

szilard_23.gif

szilard_24.gif

szilard_25.gif

szilard_26.gif

szilard_27.gif

szilard_28.gif

szilard_29.gif

szilard_30.gif

szilard_31.gif

szilard_32.gif

szilard_33.gif

szilard_34.gif

Spikey Created with Wolfram Mathematica 8.0