A numerical model of the Boltzmann equation related to the discontinuous Galerkin method