writing up phase-field