We utilize the Metropolis algorithm to obtain statistical averages of the domain wall length in a FePt granular structure after remagnetization is performed by an ultrashort polarized laser impulse. We propose and check the cluster-size-based order parameter, which along with magnetization, shows the domain wall length, and as a consequence, the average cluster size in the system. We treat the inverse Faraday effect as an external directed magnetic field and show impulse time- and laser power- dependent estimates within the Heisenberg model.