Applicability of Beer's law in particulate system from random to regular arrangement: A numerical evaluation