Education

Navier Stokes Equation

16 Sep 2023 | 3 min read | by Dasa

Newtons second law states that

F=maF = ma

F=m×dvdtF = m \times \frac{dv}{dt}

If the mass is changing with time

F=d(mv)dtF = \frac{d(mv)}{dt}

The above equation can be written for three dimensions

fx=d(mvx)dt;fy=d(mvy)dt;fz=d(mvz)dtf_x = \frac{d(mv_x)}{dt}; f_y = \frac{d(mv_y)}{dt}; f_z = \frac{d(mv_z)}{dt}

The above three terms can be combined and written as

F=DDt(mV)F = \frac{D}{Dt} (mV)

Divide this equation by volume

f=DDt(ρU)f = \frac{D}{Dt} (\rho U)

Consider a specific cell (finite volume) in a fluid domain (example: Nozzle flow), who’s property under goes following changes

  • changing its location with respect time (t\frac{\partial}{\partial t})
  • momentum change in spacial location (xux+yuy+zuz\frac{\partial}{\partial x} u_x + \frac{\partial}{\partial y} u_y + \frac{\partial}{\partial z} u_z)

So total change in any property with respect to time is

DDt=t+xux+yuy+zuz\frac{D}{Dt} = \frac{\partial}{\partial t} + \frac{\partial}{\partial x} u_x + \frac{\partial}{\partial y} u_y + \frac{\partial}{\partial z} u_z

Using dot product rule

DDt=t+.U\frac{D}{Dt} = \frac{\partial}{\partial t} + \nabla . U

Multiply the above equation by ρU\rho U

DDt(ρU)=t(ρU)+.(ρUU)\frac{D}{Dt} (\rho U) = \frac{\partial}{\partial t} (\rho U) + \nabla . (\rho U U)

Applying the Newton’s relation

t(ρU)+.(ρUU)=f\frac{\partial}{\partial t} (\rho U) + \nabla . (\rho U U) = f

And the external forces are the pressure, shear stress, and the gravity. And the same can be return as

f=p+.τ+ρgf = -\nabla p + \nabla . \tau + \rho g