RESUMO
A system of ideal gas is switched from an initial equilibrium state to a final state not necessarily in equilibrium, by varying a macroscopic control variable according to a well-defined protocol. The distribution of work performed during the switching process is obtained. The equilibrium free energy difference, ΔF, is determined from the work fluctuation relation. Some of the work values in the ensemble shall be less than ΔF. We term these as ones that "violate" the second law of thermodynamics. A fluctuating lattice Boltzmann model has been employed to carry out the simulation of the switching experiment. Our results show that the probability of violation of the second law increases with the increase of switching time (τ) and tends to one-half in the reversible limit of τâ∞.