Thermodynamics, Gibbs Method and Statistical Physics of Elec