The effect of free energy on pattern selection in alloy solidification: A phase-field study