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
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 , , and 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
CFMultiphaseOldroydBstrategy - 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.