The statistical mechanics of granular systems composed of elongated grains