|
OpenImpala
Image-based parallel transport property solver
|
C++ kernel for filling HYPRE structured-grid matrix coefficients for the tortuosity (flow-through) solve: div(D grad(phi)) = 0. More...
#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 "BoundaryCondition.H"#include <cmath>#include <cstdio>Go to the source code of this file.
Namespaces | |
| namespace | OpenImpala |
Enumerations | |
| enum | OpenImpala::StencilIdx : int { OpenImpala::STN_C = 0 , OpenImpala::STN_MX = 1 , OpenImpala::STN_PX = 2 , OpenImpala::STN_MY = 3 , OpenImpala::STN_PY = 4 , OpenImpala::STN_MZ = 5 , OpenImpala::STN_PZ = 6 , OpenImpala::NSTENCIL = 7 } |
| Stencil indices (0-based, matching HYPRE_StructStencilSetElement order). More... | |
Functions | |
| void | OpenImpala::tortuosityFillMatrix (amrex::Real *a, amrex::Real *rhs, amrex::Real *xinit, int nval, 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 *dxinv, amrex::Real vlo, amrex::Real vhi, int dir, int verbose) |
| Fill HYPRE matrix coefficients for the tortuosity solve (interior stencil only). | |
| void | OpenImpala::tortuosityFillMatrix (amrex::Real *a, amrex::Real *rhs, amrex::Real *xinit, int nval, 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 *dxinv, amrex::Real vlo, amrex::Real vhi, int dir, int verbose, const BoundaryCondition *bc_inlet_outlet, const BoundaryCondition *bc_sides) |
| Fill HYPRE matrix coefficients with configurable boundary conditions. | |
Variables | |
| constexpr int | OpenImpala::CELL_ACTIVE = 1 |
| constexpr int | OpenImpala::CELL_INACTIVE = 0 |
| Mask values. | |
| constexpr amrex::Real | OpenImpala::SMALL_REAL = 1.0e-15 |
| Small tolerance for floating-point comparisons. | |
C++ kernel for filling HYPRE structured-grid matrix coefficients for the tortuosity (flow-through) solve: div(D grad(phi)) = 0.
Replaces the legacy Fortran kernel TortuosityHypreFill.F90. Uses a 7-point stencil with harmonic-mean face coefficients and supports configurable BCs via the BoundaryCondition abstraction.