Text this: Three-Scale Structure Analysis Code and Thin Film Generation of a New Biocompatible Piezoelectric Material MgSiO3