OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
EffDiffFillMtx.H File Reference

C++ kernel for filling HYPRE structured-grid matrix coefficients for the effective-diffusivity cell problem: div(D grad(chi_k)) = -div(D e_k). More...

#include "TortuosityHypreFill.H"
#include <AMReX_BLassert.H>
#include <AMReX_REAL.H>
#include <AMReX_Print.H>
#include <AMReX_Array4.H>
#include <AMReX_GpuLaunch.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_Math.H>
#include <cmath>
#include <cstdio>
Include dependency graph for EffDiffFillMtx.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OpenImpala

Functions

void OpenImpala::effDiffFillMatrix (amrex::Real *a_out, amrex::Real *rhs_out, amrex::Real *xinit_out, int npts, const int *active_mask, const int *mask_lo, const int *mask_hi, const amrex::Real *diff_coeff, const int *dc_lo, const int *dc_hi, const int *bxlo, const int *bxhi, const int *domlo, const int *domhi, const amrex::Real *cell_sizes, int dir_k, int verbose, amrex::Real pin_scale=1.0)
 Fill HYPRE matrix for the effective-diffusivity cell problem.

Variables

constexpr int OpenImpala::CELL_PINNED = 2
 Pinned active cell marker (chi = 0 Dirichlet pin for per-component nullspace removal).

Detailed Description

C++ kernel for filling HYPRE structured-grid matrix coefficients for the effective-diffusivity cell problem: div(D grad(chi_k)) = -div(D e_k).

Replaces the legacy Fortran kernel EffDiffFillMtx.F90. Uses a 7-point stencil with harmonic-mean face coefficients, internal Neumann BCs at pore-solid interfaces, and a central- difference source term for the RHS.