For further analysis of sufficiently discrete systems, such as an assembly of particles, statistical thermodynamics must be used. Additionally, description of devices operating near limit of de Broglie waves, e.g. photovoltaic cells, have to be consistent with quantum statistics.