An automatic granular structure generation and finite element analysis of heterogeneous semi-solid materials. (11th August 2015)