A Smoothed Particle Hydrodynamics-Based Fluid Model With a Spatially Dependent Viscosity