molecalculator

Moles & Molar Mass

Pressure-Based vs Density-Based Solvers in CFD

Guide 01-2083 · Updated · Step by step

In computational fluid dynamics (CFD), pressure-based and density-based solvers are two approaches for solving the coupled equations of fluid flow. Pressure-based methods are widely used for incompressible and low-speed flows, while density-based methods are often effective for compressible flows with strong density changes, including high-speed and shock-dominated cases; neither is universally better.

What the two solver names mean

Both methods seek a numerical solution to conservation of mass, momentum, and energy, along with an appropriate relationship between pressure, density, and temperature. They divide a flow domain into cells and approximate how these quantities vary across space and time. The distinction is primarily how the equations are arranged and coupled during each computational iteration—not a different set of physical laws.

Pressure-based solvers are organized around pressure and velocity. This is a natural fit for incompressible flow, where density is approximately constant and pressure must adjust so the velocity field satisfies continuity. Density-based solvers advance density, momentum, and usually energy as a coupled set of conserved variables. Pressure and other properties can then be obtained from those variables using an equation of state.

How a pressure-based solver works

For incompressible flow, pressure does not have a separate transport equation in the same way density does. Instead, a pressure correction or pressure–velocity coupling procedure is used to make the velocity field conserve mass. Common algorithm families include SIMPLE and PISO, as well as coupled pressure–velocity methods.

A typical segregated calculation solves one group of variables at a time: momentum equations provide provisional velocities, a pressure-related equation corrects pressure and velocity, and the process repeats. Energy, turbulence, and species equations may also be solved as separate transport equations. “Segregated” does not mean that the physics is unrelated; it describes how the numerical system is solved.

This approach is useful across a broad range of applications, including natural convection, ventilation, liquid flow, and many low-Mach-number gas flows. Pressure-based methods have also been extended to compressible flow, so “pressure-based” does not mean “incompressible only.”

How a density-based solver works

A density-based formulation solves conservation equations for quantities such as density, momentum, and total energy together or in a closely coupled manner. Pressure is linked to density and temperature through an equation of state. For a calorically perfect ideal gas, for example, pressure, density, and temperature are related by the ideal-gas law.

Because the conserved variables are coupled, density-based methods can represent rapid interactions between pressure waves, velocity, and thermodynamic properties. They are commonly used for compressible flows in which density changes substantially, such as supersonic nozzles, external aerodynamics at high speed, and flows containing shocks. Flux schemes and numerical dissipation matter: shocks are discontinuities in the idealized solution, and a numerical method must capture them without producing unstable oscillations.

Density-based formulations are not automatically the best choice for every compressible problem. At low Mach numbers, pressure disturbances and velocity scales can differ greatly, which may make a straightforward density-based calculation inefficient or poorly conditioned. Low-Mach treatments and preconditioning can address this difficulty, but their availability and implementation depend on the solver.

Choosing a solver for a CFD case

Start with the flow physics, then check what the software supports and how the numerical setup behaves. A practical first guide is the Mach number, the ratio of flow speed to the local speed of sound. In many engineering contexts, compressibility effects are small at Mach numbers well below about 0.3, but that is a rule of thumb, not a universal cutoff. Heating, acoustic effects, high pressure variations, and the quantity of interest can make density changes important even at lower speeds.

  • Nearly incompressible liquid or low-speed flow: a pressure-based solver is a common starting point.
  • Compressible flow with shocks or strong density variation: a density-based solver is often a natural starting point.
  • Low-Mach gas flow with heat transfer: either formulation may be appropriate; consider whether density variation from temperature matters and whether the method handles low-Mach behavior well.
  • Transient flow or difficult coupling: compare the available coupled and segregated options, time-step requirements, and convergence behavior rather than relying on the solver label alone.

These are selection clues, not guarantees. A good choice also depends on boundary conditions, mesh quality, turbulence and material models, discretization schemes, and the outputs that need to be accurate. When possible, compare against an analytical solution, experimental data, or a trusted benchmark.

Convergence, accuracy, and common misconceptions

A calculation that reports convergence is not necessarily accurate. Residuals measure aspects of the numerical equation imbalance, but a small residual alone does not establish that mass and energy are balanced sufficiently, that the mesh resolves important gradients, or that the result is independent of grid and time-step size. Check quantities such as inlet–outlet mass flow, forces, pressure drop, and heat transfer, as appropriate to the case.

Common problems include using an unsuitable compressibility model, starting with poor initial conditions, choosing an overly large time step, or relying on a coarse mesh near a boundary layer or shock. For a density-based calculation, shock-capturing settings and appropriate boundary conditions are especially important. For a pressure-based calculation, pressure–velocity coupling and under-relaxation may affect stability and convergence.

A frequent misconception is that one solver is inherently more accurate. Accuracy depends on the governing equations, physical models, discretization, mesh, boundary conditions, and verification. Another is that a solver’s name tells you whether the case is compressible: modern implementations may offer multiple formulations and operating regimes. Read the software documentation for the specific algorithm, limitations, and recommended settings.

Frequently Asked Questions

Which solver is faster?
There is no reliable universal winner. Runtime depends on the flow regime, mesh, equation coupling, hardware, settings, and how many iterations or time steps are needed to reach a useful solution. Compare total time to an adequately verified result, not just the cost of one iteration.

Can a pressure-based solver handle compressible flow?
Yes. Many pressure-based solvers support compressible formulations. Check that the chosen model includes the necessary density–pressure relationship, energy equation, and relevant compressibility effects.

Can a density-based solver model incompressible flow?
Some can, but a basic density-based formulation may be inefficient for very low-Mach flows because pressure and velocity scales are poorly matched numerically. Low-Mach corrections or preconditioning may be available.

Is Mach 0.3 a strict boundary between the methods?
No. It is a commonly used approximation for when compressibility effects may become noticeable, not a hard physical dividing line. Heat transfer, pressure changes, acoustic behavior, and required accuracy also matter.

Does choosing the right solver guarantee a correct CFD result?
No. Solver choice is only one part of a credible analysis. Verify conservation, assess convergence, check mesh and time-step sensitivity, and compare results with suitable independent evidence.

Bottom line

Choose a pressure-based method as a sensible starting point for incompressible and many low-speed flows; consider a density-based method for strongly compressible, high-speed, or shock-containing flows. For borderline or specialized cases, solver capabilities and verification matter more than the label. The defensible choice is the one that represents the relevant physics and produces stable, checked results for the specific problem.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →