Multi-physics modeling of laser solid freeform fabrication