Modeling of solidification processes