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 . The momentum balance for velocity component is
- is the velocity component whose momentum is being transported. Write one equation for each direction .
- is the velocity component carrying momentum in direction . The repeated index is summed over the three spatial directions.
- is density, is dynamic viscosity, and is pressure. The pressure gradient gives the pressure force per unit volume in direction .
- is a body force per unit volume, such as for gravity.
The terms on the left describe local accumulation and net flux. Inside the flux, is advection and is viscous diffusion for these assumptions.
General transport equation
The same accumulation–flux–source structure can describe transport of a scalar , for example a species mass fraction when the diffusive flux is modeled with a scalar coefficient.
Here is the velocity vector, is the diffusion coefficient in this flux form, and is the net source per unit volume. The divergence acts on the full vector flux. In index form the flux in direction is .
For a steady solution the local accumulation term is zero.
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
is total energy per unit mass, is viscous stress and is heat flux. Close the thermodynamics with an equation of state, for example 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.