Definition of viscosity in fluid mechanics