molecalculator

Moles & Molar Mass

Fluent Pressure-Based or Density-Based Solver?

Guide 01-2082 · Updated · Step by step

In ANSYS Fluent, the pressure-based solver is the usual starting point for low-speed and incompressible flows, while the density-based solver is designed for compressible flows with strong pressure–velocity coupling, especially at high speeds. Neither is universally more accurate: choose according to the physics and operating conditions, then verify that the model and numerical settings resolve the flow.

What the two solver types mean

Fluent offers pressure-based and density-based approaches to solve the governing conservation equations for fluid flow: mass, momentum, and, when enabled, energy and other transported quantities. Both can be used for steady or time-dependent calculations and can model a broad range of fluid phenomena. The distinction is how the solver handles the relationship between pressure, velocity, and density while iterating toward a solution.

Pressure is not obtained from a separate, independent conservation equation in the usual incompressible-flow formulation. Instead, pressure corrections help enforce mass conservation and make the velocity field consistent with continuity. The density-based formulation solves conservation equations together in a coupled manner, with density among the flow variables. This is advantageous when changes in density are central to the flow, such as in shocks or rapid compressions.

How the pressure-based solver works

The pressure-based approach calculates a velocity field and adjusts pressure so the resulting flow satisfies mass conservation. Fluent provides segregated and coupled pressure-based formulations. In a segregated method, equations for variables such as velocity and pressure are solved in sequence, with corrections exchanged between them. In the coupled option, pressure and velocity are more tightly linked in the equation solution.

This approach is commonly used for liquids and low-speed gas flows. It is often efficient for applications such as water in a pipe, ventilation, external airflow around a vehicle at modest speed, or heat transfer in equipment. It can also handle compressible flow; “pressure-based” does not mean “incompressible only.” For compressible cases, the energy equation and suitable density relationships must be included, and the setup must represent the relevant physics.

For a low-speed liquid calculation, density changes are usually negligible, so a pressure-based solver can enforce continuity without needing shock-capturing behavior. For a gas at appreciable Mach number, density variations become important, but that alone does not automatically rule out a pressure-based approach. Fluent’s pressure-based methods can be applied to compressible cases, though a density-based formulation may be more natural for strongly coupled high-speed behavior.

How the density-based solver works

The density-based solver advances the conservation equations in a coupled form. Density, momentum, energy, and any additional transport equations are treated together through the solver’s formulation. This can be effective when compressibility strongly affects the flow and when pressure waves, expansion, compression, or shocks dominate.

Typical examples include supersonic nozzles, high-speed inlets, and flows with shock waves. In such cases, the density-based solver can capture sharp changes in flow properties when the mesh, physical models, and numerical schemes are appropriate. It is not a guarantee of a correct shock location or a converged answer: the grid and boundary conditions still matter.

The density-based solver is not restricted to one type of compressible calculation, nor is it inherently more accurate for every gas flow. For a low-speed flow with little density variation, its coupled treatment may offer no practical benefit and can be less convenient than a pressure-based setup. Solver performance depends on the case and settings rather than on the solver name alone.

How to choose for a Fluent case

Start with the expected flow regime and the role of density changes. Mach number is a useful guide for gas flows, but it is not the only consideration: heat transfer, large temperature changes, pressure waves, and local accelerations can also make density variation important. Use the physical model that matches the case, rather than choosing only from a single Mach-number threshold.

  • Pressure-based is a sensible first choice for most incompressible liquid flows, low-speed ventilation, and many routine internal-flow or heat-transfer cases.
  • Density-based is worth considering for transonic or supersonic flows, shock-dominated cases, and problems where strong compressibility couples the governing equations.
  • Compare alternatives when the regime is mixed or uncertain. A case may have low-speed regions and locally accelerated or compressible regions; test suitable formulations and compare physical quantities of interest.
  • Check the whole setup. Boundary conditions, material properties, energy treatment, mesh quality, turbulence and other physical models can matter more than the solver-family choice.

There is no universal rule that every flow below Mach 0.3 must use one solver or that every flow above it must use the other. Mach 0.3 is often used as a rough indicator that compressibility effects may become relevant in many gas-flow situations, not as a hard Fluent switch. The relevant decision is whether density variation affects the answer you need, and whether your selected formulation and models represent it.

Convergence, accuracy, and common problems

A residual decrease is useful evidence that the equation solution is settling, but residuals alone do not establish that the result is physically correct. Monitor quantities that matter to the application, such as pressure drop, mass flow, lift, temperature, or outlet uniformity. Check mass balance and, where appropriate, energy balance. A stable monitor and small conservation errors are stronger evidence of a usable result than a residual target by itself.

If a calculation diverges or stalls, do not assume switching solvers will fix it. First check for common setup issues:

  • Confirm that inlet, outlet, and wall conditions are consistent with the intended flow direction and operating conditions.
  • Inspect mesh quality and resolution, especially near walls, narrow passages, and shock regions.
  • Check material properties, reference values, units, and whether the energy equation is needed.
  • Use appropriate discretization and relaxation or time-step settings; aggressive settings can destabilize an otherwise valid case.
  • Review mass imbalance, monitored outputs, and contour plots for nonphysical values or unintended recirculation.

Accuracy is also tied to grid independence. Refine the mesh and compare quantities of interest to see whether the answer changes materially. For unsteady flows, time-step sensitivity matters too. In shock-containing cases, numerical diffusion and insufficient resolution can smear sharp gradients even when the solution appears converged.

Does changing solvers change the physics?

The solver family is a numerical approach, not a substitute for the physical model. Selecting density-based does not automatically add real-gas behavior, turbulence physics, combustion, or a correct equation of state. Likewise, selecting pressure-based does not automatically make a gas incompressible. Material models, energy treatment, boundary conditions, and other enabled models determine which physics the calculation represents.

For a fair comparison, keep the physical assumptions, mesh, boundary conditions, and convergence checks consistent as far as possible. Compare the outputs that matter, not just iteration counts. One solver may converge faster for a particular case, while another may be more robust or convenient. Performance is case-dependent, so a solver comparison is best treated as a numerical sensitivity check rather than a universal ranking.

Frequently Asked Questions

Which Fluent solver should I use for incompressible flow?
Usually start with the pressure-based solver. It is widely suited to incompressible liquids and low-speed flows, but still check the model assumptions, boundary conditions, and convergence.

Can the pressure-based solver handle compressible flow?
Yes. Fluent’s pressure-based formulation can be used for compressible cases when the relevant models and settings are enabled. For strong compressibility or shock-dominated flow, compare it with the density-based approach.

Is the density-based solver always better for supersonic flow?
It is commonly a natural choice because it solves the flow equations in a coupled form suited to strong compressibility. It does not guarantee accuracy; mesh resolution, boundary conditions, physical models, and convergence checks remain essential.

Can I switch solver types after starting a Fluent case?
Fluent permits solver changes in some workflows, but the available choices and implications depend on the case setup and software version. Review the model settings after a change and reconfirm convergence and conservation rather than assuming the existing solution remains valid.

Does a lower residual mean the answer is accurate?
No. Residuals measure equation imbalance during iteration. Also check monitored outputs, mass and energy balance where relevant, mesh sensitivity, and whether the result makes physical sense.

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 →