Micro-mechanical study of sand fabric during earthquake