Numerical investigation into the dependence of the Allen–Cahn equation on the free energy