Multiphysics modeling and numerical simulation in computer-aided manufacturing processes