Create a Function for the viscosity field.