# AMR Multiphase Fluid Solver ## Docs - [AMR Multiphase Fluid Solver](https://bindi-nagda-amr-multiphase.mintlify.app/index.md): A C++ library for simulating two-phase viscoelastic mixture flows on adaptively refined grids with second-order accuracy. - [Build & install](https://bindi-nagda-amr-multiphase.mintlify.app/building.md): Install dependencies and compile the AMR Multiphase library and example executables with CMake. - [Quickstart](https://bindi-nagda-amr-multiphase.mintlify.app/quickstart.md): Run the four-roll-mill example end-to-end: compile, configure, execute, and visualize your first multiphase simulation. - [Multiphase model](https://bindi-nagda-amr-multiphase.mintlify.app/concepts/multiphase-model.md): The two-fluid mixture equations that govern network and solvent phase dynamics, including momentum coupling and incompressibility. - [Adaptive Mesh Refinement](https://bindi-nagda-amr-multiphase.mintlify.app/concepts/amr.md): How the solver uses gradient-based AMR to concentrate resolution near sharp interfaces while coarsening the grid elsewhere. - [Numerical methods](https://bindi-nagda-amr-multiphase.mintlify.app/concepts/numerical-methods.md): Staggered-grid (MAC) discretization, time-stepping schemes, the saddle-point linear system, and the FAC multigrid preconditioner. - [Viscoelastic fluids](https://bindi-nagda-amr-multiphase.mintlify.app/concepts/viscoelastic-fluids.md): The Oldroyd-B conformation tensor model for non-Newtonian network phases, including how to enable and configure it. - [Input parameters](https://bindi-nagda-amr-multiphase.mintlify.app/configuration/input-parameters.md): Reference for all parameters in the simulation input file, including grid setup, fluid properties, initial conditions, and output controls. - [Boundary conditions](https://bindi-nagda-amr-multiphase.mintlify.app/configuration/boundary-conditions.md): How to configure periodic and Dirichlet boundary conditions for velocity and volume fraction fields using RobinBcCoefStrategy and muParserRobinBcCoefs. - [Solver settings](https://bindi-nagda-amr-multiphase.mintlify.app/configuration/solver-settings.md): Configure the Krylov solver, FAC multigrid preconditioner, time-stepping scheme, advection–diffusion integrator, and performance timers. - [Four roll mill](https://bindi-nagda-amr-multiphase.mintlify.app/examples/four-roll-mill.md): Simulate a blob of network fluid deforming in a four-roll mill flow on an adaptively refined grid. - [Convergence testing](https://bindi-nagda-amr-multiphase.mintlify.app/examples/convergence-testing.md): Verify second-order accuracy of the solver by comparing coarse and fine hierarchy solutions. - [Physical boundary conditions](https://bindi-nagda-amr-multiphase.mintlify.app/examples/physical-bc.md): Three examples demonstrating how to apply, solve with, and time-integrate non-periodic boundary conditions. - [MultiphaseStaggeredHierarchyIntegrator](https://bindi-nagda-amr-multiphase.mintlify.app/api/multiphase-staggered-hierarchy-integrator.md): Staggered-grid solver for the incompressible two-fluid Stokes equations on an AMR patch hierarchy. - [MultiphaseStaggeredStokesOperator](https://bindi-nagda-amr-multiphase.mintlify.app/api/multiphase-staggered-stokes-operator.md): Linear operator that applies the coupled two-fluid staggered Stokes system on an AMR hierarchy. - [MultiphaseConvectiveManager](https://bindi-nagda-amr-multiphase.mintlify.app/api/multiphase-convective-manager.md): Encapsulates the momentum convective operator approximation for the two-fluid multiphase equations. - [FullFACPreconditioner](https://bindi-nagda-amr-multiphase.mintlify.app/api/full-fac-preconditioner.md): FAC multigrid preconditioner optimised as a single-pass preconditioner for the two-fluid Stokes system. - [MultiphaseStaggeredStokesBoxRelaxationFACOperator](https://bindi-nagda-amr-multiphase.mintlify.app/api/multiphase-staggered-stokes-box-relaxation-fac-operator.md): FAC preconditioner strategy implementing box-relaxation smoothing for the two-fluid staggered Stokes system. - [CFMultiphaseOldroydB](https://bindi-nagda-amr-multiphase.mintlify.app/api/cf-multiphase-oldroyd-b.md): Oldroyd-B viscoelastic constitutive model for two-phase flows on AMR patch hierarchies. - [MultiphaseParameters](https://bindi-nagda-amr-multiphase.mintlify.app/api/multiphase-parameters.md): Plain data struct that collects all fluid parameters for the two-phase Stokes operator. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.