Smoothed Particle Hydrodynamics And Its Application Towards Extrusion Based Additive Manufacturing