A phase field model with thermal memory governed by the entropy balance