Text this: Two-dimensional model of intermetallic synthesis accounting melting