Skip to main content
AMR Multiphase is a high-performance C++ solver for incompressible two-phase fluid flows. It uses Adaptive Mesh Refinement (AMR) to efficiently resolve sharp gradients in the solution — automatically refining grids where needed and coarsening them elsewhere. The solver supports both Newtonian and non-Newtonian (viscoelastic Oldroyd-B) fluid models, and is second-order accurate in L1L^1, L2L^2, and L∞L^\infty norms.

Build & Install

Install dependencies and compile the library with CMake

Quickstart

Run your first multiphase simulation in minutes

Concepts

Understand the physical model and numerical methods

API Reference

Explore the full C++ API surface

What this library solves

AMR Multiphase implements a staggered-grid (MAC) discretization of the incompressible two-fluid mixture equations. Each fluid phase — a network phase and a solvent phase — carries its own velocity field and volume fraction. The two phases interact through a drag coupling term.

Multiphase model

The two-fluid mixture equations and physical parameters

Adaptive Mesh Refinement

How AMR reduces cost by focusing resolution where it matters

Numerical methods

Staggered-grid discretization, time stepping, and the multigrid preconditioner

Viscoelastic fluids

The Oldroyd-B conformation tensor model for non-Newtonian flows

Getting started

1

Build IBAMR and dependencies

Install IBAMR and its dependencies. You can use autoibamr for an automated build.
2

Compile the library

Configure with CMake pointing to your IBAMR installation, then build the MultiphaseLib target and any example executables.
3

Configure your simulation

Create an input file specifying grid geometry, fluid parameters, time stepping settings, and solver configuration.
4

Run and visualize

Execute the compiled binary with your input file. Visualize results with VisIt.

Key features

  • Second-order accuracy — verified in L1L^1, L2L^2, and L∞L^\infty norms for all solution variables
  • Adaptive Mesh Refinement — gradient-based tagging automatically refines near sharp interfaces
  • Multigrid preconditioner — efficient FAC preconditioner solves the coupled saddle-point system
  • Viscoelastic support — Oldroyd-B conformation tensor model via the CFMultiphaseOldroydB strategy
  • Multiple limiters — UPWIND, CUI, FBICS, and MGAMMA convective operator limiters
  • Parallel-ready — built on IBAMR/SAMRAI/PETSc for MPI-parallel computation
For full mathematical details and simulation results, see the companion paper: Adaptive Mesh Refinement for Two-Phase Viscoelastic Fluid Mixture Models.