Study on Rock Damage Process Based on Least Energy Consumption Principle