Study on simulation of statistical damage in the full process of rock failure