The scripts for the order parameter calculation