OpenFOAM has many solvers, and several can simulate the same physical problem using different assumptions, numerical methods, or levels of complexity.
The trick is not to choose a solver based only on the geometry. Choose it based on the physics you need to simulate:
- Is the flow steady or time-dependent?
- Is the fluid incompressible or compressible?
- Are you simulating water only, or water and air together?
- Is the flow turbulent?
- Are there heat transfer, chemical reactions, particles, or cavitation?
- Do you need free-surface movement, such as a river or a falling water jet?
I’ll focus on practical engineering applications, including open-channel hydraulics, hydropower, pipes, and water structures, and distinguish solvers that overlap.
Main solver comparison
The following table covers widely used OpenFOAM solver families. Names can vary between OpenFOAM Foundation and OpenCFD releases, so verify the solver names available in your installed version.
| Solver | Main purpose | When to use it | Concrete example | Overlap / limitation |
|---|---|---|---|---|
simpleFoam | Steady, incompressible flow | When the flow can be approximated as time-independent | Flow distribution through a pipe junction | Overlaps with pimpleFoam if the final flow is steady; cannot directly resolve moving free surfaces |
pimpleFoam | Transient, incompressible, single-phase flow | When velocity and pressure change with time | Starting a pump or flow developing through a bend | Can approach a steady solution; overlaps with simpleFoam |
icoFoam | Transient, incompressible, laminar flow | Low-Reynolds-number flows where turbulence is negligible | Slow flow between plates | Overlaps with pimpleFoam; typically intended for simpler laminar cases |
simpleFoam + turbulence model | Steady turbulent flow | Engineering flows with a stable mean flow | Head loss through a manifold | Same solver can use different turbulence models, such as \(k\!-\!\omega\) SST |
interFoam | Transient, two immiscible incompressible fluids, VOF | When a water–air interface moves or deforms | A partially filled canal, a dam-break wave, or a falling water sheet entering a reservoir | Overlaps with interIsoFoam and other VOF solvers |
interIsoFoam | Transient, two-phase VOF with an isoAdvector interface treatment | When a sharp, well-resolved interface is important | A water jet plunging into a tank | Overlaps strongly with interFoam; availability depends on distribution/version |
multiphaseEulerFoam | Multiple interpenetrating fluid phases | Gas–liquid flows with substantial dispersed bubbles or droplets | Bubble-column reactor or aerated flow | Not a direct replacement for VOF when the exact shape of a large free surface matters |
compressibleInterFoam | Compressible two-phase flow | When compressibility of the phases is important | High-speed compressible gas–liquid interaction | Overlaps with incompressible VOF for some cases, but has different governing assumptions |
rhoPimpleFoam | Transient, compressible single-phase flow | When density changes significantly with pressure or temperature | High-speed gas flow through a nozzle | Overlaps with rhoSimpleFoam for steady-flow objectives |
rhoSimpleFoam | Steady, compressible flow | Steady gas dynamics | Flow through a compressible nozzle | Overlaps with rhoPimpleFoam |
sonicFoam | Transient, compressible flow, including sonic effects | Shock waves and high-speed gas dynamics | Supersonic flow over a wedge | Overlaps with other compressible solvers; check the specific solver’s formulation and version |
buoyantSimpleFoam | Steady buoyant heat-transfer flow | Natural convection in a stable configuration | Air circulation in a heated room | Overlaps with transient buoyant solvers |
buoyantPimpleFoam | Transient buoyant heat-transfer flow | Time-dependent natural convection | Cooling of a hot enclosure | Overlaps with buoyantSimpleFoam when a steady state is eventually reached |
chtMultiRegionFoam | Conjugate heat transfer | Simultaneous heat transfer in solids and fluids | Heat conducted through a pipe wall into flowing water | More specialized than a single-region thermal solver |
solidDisplacementFoam | Solid deformation | Mechanical deformation of a solid under loads | Deflection of a loaded plate | Solid mechanics rather than ordinary fluid flow; availability and capabilities vary by version |
potentialFoam | Potential-flow initialization or approximate flow | Generating an initial velocity field for some incompressible cases | Initializing flow through a pipe before a more complete simulation | Not a general substitute for Navier–Stokes solvers; does not resolve ordinary viscous flow physics |
laplacianFoam | Diffusion-type scalar equation | Simple diffusion and educational test cases | Temperature or concentration diffusion under a suitable scalar model | A scalar transport solver, not a general-purpose flow solver |
More specialized solvers
| Solver | When to use it | Concrete example | Overlap / important distinction |
|---|---|---|---|
pisoFoam | Transient incompressible turbulent flow using PISO | Flow fluctuations through a pipe bend | Overlaps with pimpleFoam; PISO and PIMPLE differ in pressure–velocity correction strategy |
shallowWaterFoam | Shallow-water equations, depth-averaged flow | Flood propagation across a floodplain | Much cheaper than 3D CFD, but cannot resolve detailed vertical velocity or local turbulence |
potentialFreeSurfaceFoam | Free-surface flow using a simplified surface-height formulation | Some wave and surface-flow problems | Overlaps with VOF approaches but does not resolve the interface in the same way |
cavitatingFoam | Cavitation using a mixture model | Vapor formation in a hydraulic turbine or valve | Different from VOF free-surface flow; solver availability depends on the distribution |
interPhaseChangeFoam | Two-phase interface tracking with phase change | Cavitation or vapor formation with a VOF interface | Overlaps with cavitation solvers, but its interface-capturing formulation differs |
driftFluxFoam | Two-phase mixture with relative phase drift | Gas bubbles rising in a liquid | More economical than resolving every bubble individually |
twoPhaseEulerFoam | Two interpenetrating phases with a dispersed phase | Gas bubbles dispersed through water | Overlaps with multiphaseEulerFoam; phase count and models differ |
multiphaseInterFoam | Multiple immiscible fluids with resolved interfaces | Three immiscible liquid layers | Overlaps with interFoam, which is aimed at two phases |
nonNewtonianIcoFoam | Transient laminar non-Newtonian flow | A shear-dependent fluid flowing through a channel | Overlaps with other non-Newtonian-capable solvers, depending on version and model support |
DPMFoam | Particle-laden flow with coupled particle effects | Solid particles carried by a gas or liquid | Overlaps with other Lagrangian-particle solvers; not the same as resolving each particle’s surface |
MPPICFoam | Particle-laden flow using the multiphase particle-in-cell approach | Dense particle transport | Overlaps with DPMFoam; particularly useful for dense particle systems |
sprayFoam | Gas flow containing a spray of liquid droplets | Fuel injection or atomized liquid sprays | Overlaps with other particle and multiphase approaches; designed for spray physics |
reactingFoam | Flow with chemical reactions | Combustion in a burner | Overlaps with other reacting solvers, depending on compressibility and chemistry requirements |
fireFoam | Fire and reacting-flow applications | Fire spread and smoke movement in an enclosure | More specialized than a general reacting-flow solver |
chtMultiRegionSimpleFoam | Steady conjugate heat transfer | Heat transfer from a hot pipe to surrounding solids | Overlaps with chtMultiRegionFoam, which is transient |
solidEquilibriumDisplacementFoam | Steady linear-elastic solid deformation | Deformation of a loaded structure | Overlaps with transient solid mechanics solvers |
The most important overlaps
simpleFoam vs pimpleFoam
Both can model incompressible turbulent flow.
- Use
simpleFoamwhen you want the converged, steady mean flow. - Use
pimpleFoamwhen time-dependent effects matter, such as an oscillating jet or flow startup.
If the physical flow is genuinely unsteady, forcing a steady solution may hide important behavior.
interFoam vs interIsoFoam
Both represent two immiscible fluids, commonly water and air, with a VOF method.
interFoamis the conventional starting point for a moving water surface.interIsoFoamuses the isoAdvector interface treatment, which can improve interface sharpness in suitable meshes and cases.
Neither automatically guarantees an accurate result. Mesh resolution, time step, interface transport and boundary conditions still matter.
interFoam vs shallowWaterFoam
interFoamresolves the 3D water–air interface and can calculate vertical flow structure.shallowWaterFoamsolves depth-averaged equations and is suited to large-area flood routing.
The second is generally more economical for large flood domains; the first is more suitable for local hydraulic structures where vertical motion is important.
rhoSimpleFoam vs rhoPimpleFoam
Both model compressible flow.
rhoSimpleFoam: steady compressible flow.rhoPimpleFoam: transient compressible flow.
For ordinary low-speed water flow, compressibility is usually not the reason to choose between them.
Some guides for solver
This is the practical decision table I’d use for hydraulic engineering.
| Your engineering problem | Recommended starting solver | Why |
|---|---|---|
| Water flowing in a completely full pipe | simpleFoam | Steady, incompressible flow |
| Flow developing after opening a valve | pimpleFoam | Time-dependent flow |
| Water flowing in a canal with a moving free surface | interFoam | Captures water and air |
| Water falling 5 m into a reservoir | interFoam | Resolves the plunging water and reservoir free surface |
| Water jet entering a tank, with a sharp interface important | interIsoFoam if available | Alternative VOF interface treatment |
| Flooding over a wide, shallow area | shallowWaterFoam | Depth-averaged calculation |
| Pressure-induced cavitation inside a pipe or turbine | A suitable cavitation solver, such as cavitatingFoam where available | Models liquid–vapor phase change |
| Air bubbles dispersed in water | multiphaseEulerFoam or twoPhaseEulerFoam | Eulerian dispersed-phase modelling |
| Suspended sediment transported by water | A suitable particle or multiphase model | Choice depends on particle concentration, settling and coupling |
| Water flowing through a hot pipe | A suitable thermal solver, or chtMultiRegionFoam if wall conduction matters | Includes the required thermal physics |
| Flow around a rotating turbine runner | A suitable rotating-frame or dynamic-mesh solver | Accounts for rotating machinery |
#this post was written with assisted AI





