flowfield CFD REFERENCE

Navier–Stokes and Euler

The conservation laws behind most aerodynamic flow solvers.

Run the momentum lab to see how pressure, viscosity and wall motion shape a velocity profile.

Governing equations

Ansys CFX formulates the unsteady Navier–Stokes equations as conservation laws. To see the transport terms clearly, start with a constant-density Newtonian fluid with constant dynamic viscosity. Mass conservation gives ∇⋅u=0\nabla\cdot\mathbf u=0. The momentum balance for velocity component uku_k is

∂(ρuk)∂t+∂∂xi(ρuiuk−μ∂uk∂xi)=−∂p∂xk+Fk.\frac{\partial(\rho u_k)}{\partial t} +\frac{\partial}{\partial x_i} \left(\rho u_i u_k-\mu\frac{\partial u_k}{\partial x_i}\right) =-\frac{\partial p}{\partial x_k}+F_k.
  • uku_k is the velocity component whose momentum is being transported. Write one equation for each direction kk.
  • uiu_i is the velocity component carrying momentum in direction ii. The repeated index ii is summed over the three spatial directions.
  • ρ\rho is density, μ\mu is dynamic viscosity, and pp is pressure. The pressure gradient −∂p/∂xk-\partial p/\partial x_k gives the pressure force per unit volume in direction kk.
  • FkF_k is a body force per unit volume, such as ρgk\rho g_k for gravity.

The terms on the left describe local accumulation and net flux. Inside the flux, ρuiuk\rho u_i u_k is advection and −μ ∂uk/∂xi-\mu\,\partial u_k/\partial x_i is viscous diffusion for these assumptions.

General transport equation

The same accumulation–flux–source structure can describe transport of a scalar ϕ\phi, for example a species mass fraction when the diffusive flux is modeled with a scalar coefficient.

∂(ρϕ)∂t+∇⋅(ρuϕ−Γϕ∇ϕ)=Sϕ.\frac{\partial(\rho\phi)}{\partial t} +\nabla\cdot\left(\rho\mathbf u\phi-\Gamma_\phi\nabla\phi\right) =S_\phi.

Here u\mathbf u is the velocity vector, Γϕ\Gamma_\phi is the diffusion coefficient in this flux form, and SϕS_\phi is the net source per unit volume. The divergence acts on the full vector flux. In index form the flux in direction ii is ρuiϕ−Γϕ ∂ϕ/∂xi\rho u_i\phi-\Gamma_\phi\,\partial\phi/\partial x_i.

For a steady solution the local accumulation term is zero.

∂(ρϕ)∂t=0.\frac{\partial(\rho\phi)}{\partial t}=0.

The flux and source terms can still vary with position. A steady RANS calculation applies this steady assumption to the averaged equations. The underlying turbulent flow can still fluctuate.

Allow density and temperature to change

For compressible flow, retain the full viscous stress tensor in the momentum equation. Without body forces or external heating, the conservation equations in vector form are

∂tρ+∇⋅(ρu)=0,∂t(ρu)+∇⋅(ρu⊗u+pI)=∇⋅σv,∂t(ρE)+∇⋅[(ρE+p)u]=∇⋅(σv⋅u−q).\begin{aligned} \partial_t\rho+\nabla\cdot(\rho\mathbf u)&=0,\\ \partial_t(\rho\mathbf u)+\nabla\cdot(\rho\mathbf u\otimes\mathbf u+p\mathbf I)&=\nabla\cdot\boldsymbol\sigma_v,\\ \partial_t(\rho E)+\nabla\cdot[(\rho E+p)\mathbf u]&=\nabla\cdot(\boldsymbol\sigma_v\cdot\mathbf u-\mathbf q). \end{aligned}

E=e+∣u∣2/2E=e+|\mathbf u|^2/2 is total energy per unit mass, σv\boldsymbol\sigma_v is viscous stress and q\mathbf q is heat flux. Close the thermodynamics with an equation of state, for example p=(γ−1)ρep=(\gamma-1)\rho e for a calorically perfect gas, and specify material and transport laws. Compressible equations are particularly important when shocks or significant density changes enter the design question.

The inviscid limit

The compressible Euler equations follow by dropping viscous stress and heat conduction. They can represent shocks and inviscid pressure loading. Predictions that depend on skin friction, transition or boundary-layer separation require additional physics. Potential flow goes further by assuming irrotational flow and is useful for some preliminary loading estimates.

How the rest of the library connects

RANS averages the equations, LES filters them, and DNS resolves their turbulent scales directly. Finite volume, finite element and related schemes are ways to discretize equations. A CFD package can offer several combinations of physics and numerics.

Sources