SMS: Fundamentals of metal deposition