Numerical simulation of small-scale thermal convection in the atmosphere