Model for an optically thick torus in local thermodynamic equilibrium around a black hole