Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_HypreMLABecLap.H File Reference
#include <AMReX_Config.H>
#include <AMReX_CompositeSystemUtil.H>
#include <AMReX_FabFactory.H>
#include <AMReX_Geometry.H>
#include <AMReX_HypreIJIface.H>
#include <AMReX_LO_BCTYPES.H>
#include <AMReX_MLMGBndry.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiMask.H>
#include <HYPRE_sstruct_ls.h>
#include <limits>
#include <unordered_map>
#include <utility>

Go to the source code of this file.

Classes

class  amrex::HypreMLABecLap
 Multilevel HYPRE solver that mirrors MLMG's ABecLaplacian structure. More...
struct  amrex::HypreMLABecLap::Triplets
 Per-box (row, column, value) triplets of the IJ assembly. More...

Namespaces

namespace  amrex

Enumerations

enum struct  amrex::HypreSolverID { amrex::BoomerAMG , amrex::SSAMG }

Detailed Description

Multilevel ABecLaplacian assembled into HYPRE's SStruct interface, including coarse/fine coupling and optional SSAMG GPU solver support.

In EB builds, given EB factories (EBSupport::full, at least one ghost cell) with cut cells on any level, the composite operator of MLMG with MLEBABecLap is assembled in IJ mode on all levels, except that the fluxes across coarse/fine faces are the area-weighted fine fluxes, so that the composite operator is conservative also where the EB crosses the coarse/fine boundary (MLMG's reflux treats the cells there as regular). The rows are weighted by the volume fraction, as is the right-hand side; cells covered by a finer level are the EB average of their fine cells (recomputed exactly after the solve, as MLMG averages down), and b on coarse faces covered by a finer level is the area-weighted average of the fine b, as in MLEBABecLap. The right-hand side and the initial guess are not used in EB-covered cells and in cells covered by a finer level. The factories must have the grids of the constructor.

Like MLMG with maxorder 3 and an interpolation half width of 1 (which matters in 2D only), both with and without EB; Dirichlet or Neumann domain boundaries, refinement ratios 2 and 4; phi at the cell centers (MLEBABecLap's default, not its cell centroid option) and b at the face centers (the default) or at the face centroids (setBCoeffsOnCentroids). A ghost cell outside two faces whose inner cells are off the level's grids, which MLEBABecLap::applyBC does not fill (MLMG uses the solution's ghost value there, e.g. in the EB Dirichlet stencil of a cut cell in that corner), is filled at the lowest order: outside two coarse/fine faces (a convex corner of the grids) with the coarse interpolation at the face; outside a physical boundary and the coarse/fine boundary (or in a domain corner) with the boundary value, or for Neumann the inner cell's. Untested with EB: level 0 with coarse boundary data (a_coarse_bc).

<prefix>.eb_scaling (default 1): with EB, scale the unknowns by 1/sqrt(volume fraction), so that the rows of small cut cells count in the residual norm (as in HypreMLNodeLap). The dumped system is the scaled one.