Finite element analysis of solidification in rapid freeze prototyping