This JS application allows you to simulate the evolution of a monoatomic perfect gas, contained in a cubic volume, throughout successive states of themodynamic equilibrium, to show this evolution by a graphic animation, to produce the graphs of the relations between volume, pressure and temperature, to produce the tables of the values of some parameters related to the represented states.

The functions of the application can be selected from the main menu:

The user can modify the parameters of the simulations by selecting proper values in the following selectors:

The user can set on or set off the graphic animation.


volume

In these simulations the volume occupied by the gas is that of a cube with variable edge.

In the animations the cube is seen from the front so it appears as a square. The user can write in proper input fields the initial side and the final side.

The measures of the side are expressed in millimeters: in the graphics every millimeter is represented by a pixel.

In the output fields and in the tables the volume is measured in litres.


perfect (or ideal) gas

In these simulations the gas is a system formed by a fixed number of particles which are thinked to be punctiform and having only translational kinetic energy.

Every particle has its own position and its own velocity. All the particles have identical mass.

The initial positions of the particles are randomly generated within the volume.

The velocities are generated with random directions. The squares of their values are disposed with gaussian distribution around a mean value depending on the initial temperature of the system. Because of this random initialization, the initial temperature of the system, related to its mean molecular kinetic energy, is often near but does not coincide with that written in the input field init. temp.

In the simulations, to obtain perceptible values of the pressure using few slow particles, the masses of the particles must be enormous with respect to the realistic ones. They can be only multiple values of 1010 u.m.a. So the number in the input field molecular mass must represent this multiple.

At the same temperature, the greater is the mass of a particle, the slower it is.

A particle do not interact with other particles. It interact only with the walls of the container by elastic collisions. In the simulations the pressure of the gas is measured calculating the variation of the momentum of every particle in these collisions.


pressure

The pressure of the gas on the walls is evaluated by the average variation of the momentum in the unit of time.

To produce graphs with visible values of the pressure, the unit of measure of the pressure in the output fields is the decielectronvolt per litre (deV/l).


Transformations

This applet simulates the thermodynamic transformations starting from the initial state and reaching the final one through a prefixed number of intermediate stationary states. The user must write this number in the input field steps.
Every state of the system is analyzed for a duration specified by the inputted number of frames.
The permanence of the representation of every frame of the graphic animations is fixed, in milliseconds, in the field delay.

The applet allows simulations of the following transformations.


Cycles

A series of transformations ending when the system returns to its initial state is called thermodynamic cycle.
This applet allows simulations of the following cycles.

Every transformation composing a cycle is divided in a number of steps corresponding to the number written in the input field steps.

The last two cycles require a big difference between Tmax and Tmin.


Graphs

The function Graph of the main menu can produce three diagrams for every simulated transformation or cycle:

The measure units used on the axes are the same used within the tables.


Tables

At every step of the simulated transformations or cycles, the applet writes the values of the following quantities: