Calculation of the aggregation and electrodynamic effects in granular systems