Lesson 10 of 16

Viscosity and Shear Stress

Viscosity and Shear Stress

Viscosity is a fluid's resistance to shear deformation — its internal "stickiness". Honey is highly viscous; water is only mildly so; air has very low viscosity.

Newton's Law of Viscosity

For a Newtonian fluid, shear stress τ\tau is proportional to the velocity gradient perpendicular to the flow:

τ=μdudy\tau = \mu \frac{du}{dy}

where:

  • τ\tau — shear stress (Pa)
  • μ\mudynamic viscosity (Pa·s), also written mPa·s or cP
  • du/dydu/dy — velocity gradient (s⁻¹); how fast velocity changes across the fluid layer

The shear force on an area AA is simply:

F=τA=μdudyAF = \tau A = \mu \frac{du}{dy} A

Kinematic Viscosity

Kinematic viscosity ν\nu normalises dynamic viscosity by density:

ν=μρ\nu = \frac{\mu}{\rho}

Units: m²/s (also written as cSt, where 1 cSt = 10⁻⁶ m²/s). It appears naturally in the Reynolds number Re=vL/νRe = vL/\nu.

Temperature Dependence

FluidTT (°C)μ\mu (Pa·s)
Water201.002×1031.002 \times 10^{-3}
Water803.54×1043.54 \times 10^{-4}
Air201.81×1051.81 \times 10^{-5}

Liquids become less viscous as temperature rises (thermal agitation breaks intermolecular bonds). Gases become more viscous as temperature rises (more molecular collisions transfer momentum).

Your Task

Implement:

  • shear_stress(mu, du_dy) — returns shear stress τ=μ(du/dy)\tau = \mu \cdot (du/dy) in Pa
  • kinematic_viscosity(mu, rho) — returns ν=μ/ρ\nu = \mu / \rho in m²/s
  • shear_force(mu, du_dy, A) — returns shear force F=μ(du/dy)AF = \mu \cdot (du/dy) \cdot A in N
Python runtime loading...
Loading...
Click "Run" to execute your code.