Smoothed Particle Hydrodynamics In Materials Processing: Code Development And Applications