Phase growth of smart materials in a magnetic field