Numerical modeling of Kelvin-Helmholtz instability using smoothed particle hydrodynamics