Mathematical studies of phase transition and alloy solidification (PhD project)