|
OpenImpala
Image-based parallel transport property solver
|
Namespaces | |
| namespace | bc_detail |
Classes | |
| class | BoundaryCondition |
| Abstract base class for boundary conditions. More... | |
| struct | CathodeParams |
| Structure to hold cathode material and electrode parameters. More... | |
| class | CathodeWrite |
| A writer for generating cathode parameter files for battery models. More... | |
| class | ConnectedComponents |
| Labels connected components of a phase using parallel flood-fill. More... | |
| class | DatReader |
| Reads and provides access to raw image data from specific DAT files. More... | |
| class | DirichletExternalBC |
| Applies Dirichlet BC at domain boundary faces perpendicular to the flow direction. More... | |
| class | DirichletPhaseBoundaryBC |
| Applies Dirichlet BC at active cells adjacent to inactive cells near the domain boundary. More... | |
| class | EffectiveDiffusivityHypre |
| Solves the cell problem ∇_ξ ⋅ (D ∇_ξ χ_k) = -∇_ξ ⋅ (D ê_k) for a corrector function χ_k. More... | |
| class | HDF5Reader |
| Reads 3D image/scalar field data from a specified dataset within an HDF5 file directly into AMReX MultiFabs, suitable for large datasets. More... | |
| class | HypreStructSolver |
| Base class for HYPRE structured-grid solvers. More... | |
| struct | ImageData |
| Result of loading and thresholding a 3D image file. More... | |
| struct | MacroGeometry |
| Macro-geometric parameters derived from the AMReX Geometry. More... | |
| class | NeumannBC |
| Zero-flux Neumann BC — no stencil modification needed. More... | |
| class | ParticleSizeDistribution |
| Computes equivalent sphere radii from connected component volumes. More... | |
| class | PercolationCheck |
| Checks whether a phase percolates across the domain in a given direction. More... | |
| class | PeriodicBC |
| Periodic BC — requires HYPRE periodic grid setup. More... | |
| struct | PhysicsConfig |
| class | RawReader |
| Reads and provides access to data from raw binary files where metadata (dimensions, data type, endianness) is provided externally. More... | |
| class | ResultsJSON |
| struct | REVConfig |
| Configuration for an REV study. More... | |
| class | SpecificSurfaceArea |
| Computes the specific surface area between two phases in an iMultiFab. More... | |
| class | ThroughThicknessProfile |
| Computes a through-thickness volume fraction profile. More... | |
| class | TiffReader |
| Reads 3D image data from single/multi-directory TIFFs or file sequences. Performs parallel, chunked reading directly into AMReX iMultiFab. More... | |
| class | Tortuosity |
| Abstract base class for computing the tortuosity of a structure. More... | |
| class | TortuosityDirect |
| Computes tortuosity using a simple iterative Finite Volume solver for the Poisson equation. More... | |
| class | TortuosityHypre |
| class | TortuosityMLMG |
| Computes tortuosity using AMReX's native matrix-free MLMG solver. More... | |
| class | TortuositySolverBase |
| Shared base class for all tortuosity solvers. More... | |
| class | VolumeFraction |
| Computes the volume fraction of a specific phase within an amrex::iMultiFab. More... | |
Typedefs | |
| using | Real = amrex::Real |
Enumerations | |
| enum class | BCType { DirichletExternal , DirichletPhaseBoundary , Neumann , Periodic } |
| Boundary condition types for transport solvers. More... | |
| enum class | CellType { BLOCKED = 0 , FREE = 1 , BOUNDARY_X_LO = 2 , BOUNDARY_X_HI = 3 , BOUNDARY_Y_LO = 4 , BOUNDARY_Y_HI = 5 , BOUNDARY_Z_LO = 6 , BOUNDARY_Z_HI = 7 } |
| Cell types identifying the role of a cell within the domain. More... | |
| enum class | Direction { X = 0 , Y = 1 , Z = 2 } |
| Defines cardinal directions for calculations. More... | |
| enum class | PhysicsType { Diffusion , ElectricalConductivity , ThermalConductivity , DielectricPermittivity , MagneticPermeability } |
| enum class | PrecondType { SMG , PFMG } |
| Preconditioner type for HYPRE Krylov solvers. More... | |
| enum class | RawDataType { UNKNOWN , UINT8 , INT8 , INT16_LE , INT16_BE , UINT16_LE , UINT16_BE , INT32_LE , INT32_BE , UINT32_LE , UINT32_BE , FLOAT32_LE , FLOAT32_BE , FLOAT64_LE , FLOAT64_BE } |
| Specifies the expected primitive data type and endianness of voxels within a raw binary data file. More... | |
| enum class | SolverType { Jacobi , GMRES , FlexGMRES , PCG , BiCGSTAB , SMG , PFMG } |
| Specifies the HYPRE structured solver algorithm to use. More... | |
| enum | StencilIdx : int { STN_C = 0 , STN_MX = 1 , STN_PX = 2 , STN_MY = 3 , STN_PY = 4 , STN_MZ = 5 , STN_PZ = 6 , NSTENCIL = 7 } |
| Stencil indices (0-based, matching HYPRE_StructStencilSetElement order). More... | |
Functions | |
| void | calculateDeffTensor (amrex::Real Deff_tensor[3][3], const amrex::MultiFab &mf_chi_x, const amrex::MultiFab &mf_chi_y, const amrex::MultiFab &mf_chi_z, const amrex::iMultiFab &active_mask, const amrex::Geometry &geom, int verbose=0, const amrex::MultiFab *mf_diff_coeff=nullptr) |
| Assembles the effective diffusivity tensor from periodic corrector fields. | |
| void | collectBoundarySeeds (const amrex::iMultiFab &phaseFab, int phaseID, int dir, const amrex::Geometry &geom, amrex::Vector< amrex::IntVect > &inletSeeds, amrex::Vector< amrex::IntVect > &outletSeeds) |
| Collect boundary seeds on inlet/outlet faces of a phase. | |
| void | computeFaceFluxes (const amrex::Box &bx, const amrex::Array4< amrex::Real > &fx, const amrex::Array4< amrex::Real > &fy, const amrex::Array4< amrex::Real > &fz, const amrex::Array4< const amrex::Real > &sol, const amrex::Real *dxinv) |
| Compute face fluxes using finite differences on a cell-centred solution. | |
| std::unique_ptr< BoundaryCondition > | createBC (BCType type) |
| Create a BoundaryCondition object from a BCType enum. | |
| void | 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. | |
| SolverType | effDiffSolverType (const std::string &solver_str) |
| Backward-compatible alias for parseSolverType(). | |
| void | forwardEulerUpdate (const amrex::Box &bx, const amrex::Array4< const amrex::Real > &p_arr, const amrex::Array4< amrex::Real > &n_arr, const amrex::Array4< const amrex::Real > &fx, const amrex::Array4< const amrex::Real > &fy, const amrex::Array4< const amrex::Real > &fz, const amrex::Real *dxinv, amrex::Real dt) |
| Forward Euler update: phi_new = phi_old + dt * div(flux). | |
| void | integrateBoundaryFluxes (const amrex::Box &cell_bx, const amrex::Array4< const amrex::Real > &fx, const amrex::Array4< const amrex::Real > &fy, const amrex::Array4< const amrex::Real > &fz, const amrex::Box &fxbox, const amrex::Box &fybox, const amrex::Box &fzbox, int dir, amrex::Real &flux_in, amrex::Real &flux_out) |
| Sum fluxes on the inlet (low) and outlet (high) domain faces. | |
| ImageData | loadImage (const std::filesystem::path &filepath, const std::string &hdf5_dataset, amrex::Real threshold_val, int box_size, int verbose=1) |
| Loads a 3D image from file and thresholds it into a binary phase field. | |
| void | parallelFloodFill (amrex::iMultiFab &reachabilityMask, const amrex::iMultiFab &phaseFab, int phaseID, const amrex::Vector< amrex::IntVect > &seedPoints, const amrex::Geometry &geom, int verbose=0, int label=FLOOD_ACTIVE) |
| GPU-compatible parallel flood fill on an iMultiFab. | |
| BCType | parseBCType (const std::string &bc_str) |
| Convert a case-insensitive string to BCType. | |
| Direction | parseDirection (const std::string &dir_str) |
| Convert a case-insensitive direction string to Direction enum. | |
| SolverType | parseSolverType (const std::string &solver_str) |
| Convert a case-insensitive solver name to SolverType. | |
| void | removeIsolatedCells (int *q, const int *q_lo, const int *q_hi, int, const int *bxlo, const int *bxhi, const int *domlo, const int *domhi) |
| Remove isolated single cells by checking 6-connectivity. | |
| void | runREVStudy (const amrex::Geometry &geom_full, const amrex::BoxArray &ba_full, const amrex::DistributionMapping &dm_full, const amrex::iMultiFab &mf_phase_full, const REVConfig &config) |
| Runs an REV convergence study on the given full-domain phase field. | |
| void | 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 | 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. | |
| SolverType | tortuositySolverType (const std::string &solver_str) |
| Backward-compatible alias for parseSolverType(). | |
Variables | |
| constexpr int | CELL_ACTIVE = 1 |
| constexpr int | CELL_INACTIVE = 0 |
| Mask values. | |
| constexpr int | CELL_PINNED = 2 |
| Pinned active cell marker (chi = 0 Dirichlet pin for per-component nullspace removal). | |
| constexpr int | CELL_TYPE_BLOCKED = 0 |
| Cell-type constants (matching Tortuosity.H conventions). | |
| constexpr int | CELL_TYPE_FREE = 1 |
| constexpr int | FLOOD_ACTIVE = 1 |
| constexpr int | FLOOD_INACTIVE = 0 |
| Marker values used in reachability masks. | |
| constexpr int | NEIGHBOR_OUTSIDE = -1 |
| Sentinel value for neighbors outside the physical domain. | |
| constexpr amrex::Real | SMALL_REAL = 1.0e-15 |
| Small tolerance for floating-point comparisons. | |
| using OpenImpala::Real = amrex::Real |
|
strong |
Boundary condition types for transport solvers.
|
strong |
Cell types identifying the role of a cell within the domain.
Used by solver kernels to identify cells near boundaries or blocked regions, potentially aiding in applying specific boundary conditions or skipping calculations.
|
strong |
|
strong |
|
strong |
Preconditioner type for HYPRE Krylov solvers.
SMG is the default because its point-based smoothing handles the decoupled rows that arise from masked cells (inactive cells have A_ii=1, b_i=0, which PFMG's semicoarsening fails to coarsen meaningfully — symptom: PCG+PFMG hits max iterations without converging on porous-media inputs). PFMG is the more scalable choice for fully active grids (no masked-out regions). Both have full GPU support in HYPRE 2.31 when HYPRE_SetMemoryLocation(HYPRE_MEMORY_DEVICE) is active (see HypreStructSolver::createMatrixAndVectors).
| Enumerator | |
|---|---|
| SMG | Semicoarsening multigrid — robust default, handles masked rows |
| PFMG | Parallel semicoarsening multigrid — scales better on full grids |
|
strong |
Specifies the expected primitive data type and endianness of voxels within a raw binary data file.
Endianness (Little Endian - LE, Big Endian - BE) must be specified for multi-byte data types (16-bit, 32-bit, 64-bit) to ensure correct interpretation on different machine architectures.
|
strong |
Specifies the HYPRE structured solver algorithm to use.
Shared by TortuosityHypre and EffectiveDiffusivityHypre.
| Enumerator | |
|---|---|
| Jacobi | HYPRE_StructJacobi |
| GMRES | HYPRE_StructGMRES |
| FlexGMRES | HYPRE_StructFlexGMRES |
| PCG | HYPRE_StructPCG |
| BiCGSTAB | HYPRE_StructBiCGSTAB |
| SMG | HYPRE_StructSMG |
| PFMG | HYPRE_StructPFMG |
| enum OpenImpala::StencilIdx : int |
| void OpenImpala::calculateDeffTensor | ( | amrex::Real | Deff_tensor[3][3], |
| const amrex::MultiFab & | mf_chi_x, | ||
| const amrex::MultiFab & | mf_chi_y, | ||
| const amrex::MultiFab & | mf_chi_z, | ||
| const amrex::iMultiFab & | active_mask, | ||
| const amrex::Geometry & | geom, | ||
| int | verbose = 0, | ||
| const amrex::MultiFab * | mf_diff_coeff = nullptr ) |
Assembles the effective diffusivity tensor from periodic corrector fields.
Integrates conservative harmonic face fluxes across all +x, +y, +z faces in the periodic domain, preserving exact discrete Onsager symmetry and Voigt/Reuss bounds.
| [out] | Deff_tensor | 3x3 output tensor (row-major: Deff_tensor[row][col]). |
| [in] | mf_chi_x | Corrector field for x-direction (1 component, >= 1 ghost cell). |
| [in] | mf_chi_y | Corrector field for y-direction (1 component, >= 1 ghost cell). |
| [in] | mf_chi_z | Corrector field for z-direction (1 component, >= 1 ghost cell). |
| [in] | active_mask | Integer mask: 1 = active cell, 0 = inactive (>= 0 ghost cells). |
| [in] | geom | Periodic AMReX Geometry defining cell sizes and periodicity. |
| [in] | verbose | Verbosity level (0 = silent). |
| [in] | mf_diff_coeff | Optional cell-centred diffusivity MultiFab (defaults to 1.0 on active cells). |
| void OpenImpala::collectBoundarySeeds | ( | const amrex::iMultiFab & | phaseFab, |
| int | phaseID, | ||
| int | dir, | ||
| const amrex::Geometry & | geom, | ||
| amrex::Vector< amrex::IntVect > & | inletSeeds, | ||
| amrex::Vector< amrex::IntVect > & | outletSeeds ) |
Collect boundary seeds on inlet/outlet faces of a phase.
Scans the lo and hi faces of the domain in direction dir for cells matching phaseID, gathers them across MPI ranks via Allgatherv, and returns deduplicated seed vectors.
| [in] | phaseFab | Phase data. |
| [in] | phaseID | Phase ID to seed. |
| [in] | dir | Flow direction (determines which faces to scan). |
| [in] | geom | AMReX Geometry. |
| [out] | inletSeeds | Seeds on the low face (populated on return). |
| [out] | outletSeeds | Seeds on the high face (populated on return). |
|
inline |
Compute face fluxes using finite differences on a cell-centred solution.
Sets flux to zero if either adjacent cell is blocked. Uses AMReX Array4 for clean multi-dimensional indexing.
| bx | Valid cell-centred box defining the region. |
| fx | X-face flux (output), Array4<Real>. |
| fy | Y-face flux (output), Array4<Real>. |
| fz | Z-face flux (output), Array4<Real>. |
| sol | Solution field with component 0 = phi, component 1 = cell type. |
| dxinv | Inverse cell sizes [1/dx, 1/dy, 1/dz]. |
|
inline |
Create a BoundaryCondition object from a BCType enum.
| type | The BC type to create. |
|
inline |
Fill HYPRE matrix for the effective-diffusivity cell problem.
| [out] | a_out | Flattened stencil array, size npts*7. |
| [out] | rhs_out | RHS vector, size npts. |
| [out] | xinit_out | Initial guess, size npts. |
| [in] | npts | Number of cells in this box. |
| [in] | active_mask | 3-D cell-state mask (0=inactive, 1=active, 2=pinned active). |
| [in] | mask_lo | Lower bounds of mask (3 ints). |
| [in] | mask_hi | Upper bounds of mask (3 ints). |
| [in] | diff_coeff | 3-D cell-centred diffusion coefficients. |
| [in] | dc_lo | Lower bounds of diff_coeff (3 ints). |
| [in] | dc_hi | Upper bounds of diff_coeff (3 ints). |
| [in] | bxlo | Lower corner of valid box (3 ints). |
| [in] | bxhi | Upper corner of valid box (3 ints). |
| [in] | domlo | Domain lower corner (3 ints). |
| [in] | domhi | Domain upper corner (3 ints). |
| [in] | cell_sizes | Grid spacing [dx, dy, dz]. |
| [in] | dir_k | Direction of unit vector e_k (0=X, 1=Y, 2=Z). |
| [in] | verbose | Debug print level. |
| [in] | pin_scale | Diagonal scale for decoupled inactive and pinned cells. |
|
inline |
Backward-compatible alias for parseSolverType().
|
inline |
Forward Euler update: phi_new = phi_old + dt * div(flux).
Only updates component 0 (phi). Cell type (component 1) is untouched.
| bx | Valid cell-centred box. |
| p_arr | Old solution (input), Array4<const Real>. |
| n_arr | New solution (output), Array4<Real>. |
| fx | X-face flux (input). |
| fy | Y-face flux (input). |
| fz | Z-face flux (input). |
| dxinv | Inverse cell sizes [1/dx, 1/dy, 1/dz]. |
| dt | Time step / relaxation parameter. |
|
inline |
Sum fluxes on the inlet (low) and outlet (high) domain faces.
| cell_bx | Cell-centred valid box for this FAB. |
| fx | X-face flux Array4 (const). |
| fy | Y-face flux Array4 (const). |
| fz | Z-face flux Array4 (const). |
| fxbox | Allocated memory box for fx (to check face ownership). |
| fybox | Allocated memory box for fy. |
| fzbox | Allocated memory box for fz. |
| dir | Flow direction (0=X, 1=Y, 2=Z). |
| flux_in | (output) accumulated flux entering through the low face. |
| flux_out | (output) accumulated flux exiting through the high face. |
| ImageData OpenImpala::loadImage | ( | const std::filesystem::path & | filepath, |
| const std::string & | hdf5_dataset, | ||
| amrex::Real | threshold_val, | ||
| int | box_size, | ||
| int | verbose = 1 ) |
Loads a 3D image from file and thresholds it into a binary phase field.
Detects the file format from the extension (.tif/.tiff, .h5/.hdf5, .dat), reads the image using the appropriate reader class, and applies a threshold to produce a binary phase field (0/1).
The resulting geometry uses periodic boundary conditions, consistent with the homogenization cell-problem formulation.
| filepath | Full path to the input image file. |
| hdf5_dataset | HDF5 dataset name (only used for .h5/.hdf5 files). |
| threshold_val | Threshold value: voxels > threshold → phase 1, else → phase 0. |
| box_size | Maximum grid box size for AMReX BoxArray decomposition. |
| verbose | Verbosity level (0=silent, 1+=progress output). |
| std::runtime_error | if the file cannot be read or has unsupported format. |
| void OpenImpala::parallelFloodFill | ( | amrex::iMultiFab & | reachabilityMask, |
| const amrex::iMultiFab & | phaseFab, | ||
| int | phaseID, | ||
| const amrex::Vector< amrex::IntVect > & | seedPoints, | ||
| const amrex::Geometry & | geom, | ||
| int | verbose = 0, | ||
| int | label = FLOOD_ACTIVE ) |
GPU-compatible parallel flood fill on an iMultiFab.
Marks all cells of phaseID that are 6-connected to any seed point as FLOOD_ACTIVE in reachabilityMask. Uses iterative wavefront expansion with FillBoundary for MPI ghost exchange.
The inner expansion loop uses amrex::ParallelFor, which maps to GPU kernels when AMReX is built with CUDA/HIP, and to OpenMP threads on CPU builds. Early termination uses a device-compatible atomic flag.
| [out] | reachabilityMask | iMultiFab to fill (1 comp, >=1 ghost). Set to label for reachable cells. |
| [in] | phaseFab | Phase data (1 comp, >=1 ghost). |
| [in] | phaseID | Phase ID to flood through. |
| [in] | seedPoints | Initial seed cell coordinates. |
| [in] | geom | AMReX Geometry for FillBoundary periodicity. |
| [in] | verbose | Verbosity (0=silent, >1 prints iteration count). |
| [in] | label | Integer label to write into reachable cells. Default FLOOD_ACTIVE (1). ConnectedComponents passes a unique label per component. |
|
inline |
|
inline |
|
inline |
Convert a case-insensitive solver name to SolverType.
| solver_str | Solver name (e.g. "FlexGMRES", "pcg", "BiCGSTAB"). |
|
inline |
Remove isolated single cells by checking 6-connectivity.
For each cell in bxlo:bxhi, if none of the 6 face-connected neighbours share the same phase, the cell's phase is flipped (0<->1).
| [in,out] | q | Pointer to integer phase data (first component). |
| [in] | q_lo | Lower bounds of q array (3 ints, includes ghosts). |
| [in] | q_hi | Upper bounds of q array (3 ints, includes ghosts). |
| [in] | ncomp | Number of components (only component 0 is used). |
| [in] | bxlo | Lower corner of valid box to iterate (3 ints). |
| [in] | bxhi | Upper corner of valid box to iterate (3 ints). |
| [in] | domlo | Physical domain lower corner (3 ints). |
| [in] | domhi | Physical domain upper corner (3 ints). |
| void OpenImpala::runREVStudy | ( | const amrex::Geometry & | geom_full, |
| const amrex::BoxArray & | ba_full, | ||
| const amrex::DistributionMapping & | dm_full, | ||
| const amrex::iMultiFab & | mf_phase_full, | ||
| const REVConfig & | config ) |
Runs an REV convergence study on the given full-domain phase field.
For each target size and sample, extracts a random sub-volume from the full domain, solves the cell problem in 3 directions using EffectiveDiffusivityHypre, assembles the D_eff tensor, and appends the result to a CSV file.
| geom_full | Geometry of the full domain. |
| ba_full | BoxArray of the full domain. |
| dm_full | DistributionMapping of the full domain. |
| mf_phase_full | Phase field of the full domain. |
| config | REV study configuration. |
|
inline |
Fill HYPRE matrix coefficients for the tortuosity solve (interior stencil only).
Discretises div(D grad(phi)) = 0 on a 7-point stencil with harmonic-mean face coefficients. Inactive cells are decoupled (A_ii=1, A_ij=0, b=0). Sets a linear initial guess along the flow direction.
| [out] | a | Flattened stencil array, size nval*7 (C,W,E,S,N,B,T). |
| [out] | rhs | Right-hand side, size nval. |
| [out] | xinit | Initial guess, size nval. |
| [in] | nval | Number of cells in this box. |
| [in] | active_mask | 3-D activity mask (1=active, 0=inactive), with ghosts. |
| [in] | mask_lo | Lower bounds of active_mask (3 ints). |
| [in] | mask_hi | Upper bounds of active_mask (3 ints). |
| [in] | diff_coeff | 3-D cell-centred diffusion coefficients, with ghosts. |
| [in] | dc_lo | Lower bounds of diff_coeff (3 ints). |
| [in] | dc_hi | Upper bounds of diff_coeff (3 ints). |
| [in] | bxlo | Lower corner of valid box (3 ints). |
| [in] | bxhi | Upper corner of valid box (3 ints). |
| [in] | domlo | Domain lower corner (3 ints). |
| [in] | domhi | Domain upper corner (3 ints). |
| [in] | dxinv | Inverse grid spacing squared: [1/dx^2, 1/dy^2, 1/dz^2]. |
| [in] | vlo | Dirichlet BC value on the low face. |
| [in] | vhi | Dirichlet BC value on the high face. |
| [in] | dir | Flow direction (0=X, 1=Y, 2=Z). |
| [in] | verbose | Debug print level. |
|
inline |
Fill HYPRE matrix coefficients with configurable boundary conditions.
Builds the interior stencil via tortuosityFillMatrix(), then applies inlet/outlet and lateral boundary conditions via BoundaryCondition objects.
| bc_inlet_outlet | BC strategy for domain faces perpendicular to flow direction. |
| bc_sides | BC strategy for domain faces parallel to flow direction (lateral). |
All other parameters are identical to the interior-only overload.
|
inline |
Backward-compatible alias for parseSolverType().
|
constexpr |
|
constexpr |
Mask values.
|
constexpr |
Pinned active cell marker (chi = 0 Dirichlet pin for per-component nullspace removal).
|
constexpr |
Cell-type constants (matching Tortuosity.H conventions).
|
constexpr |
|
constexpr |
|
constexpr |
Marker values used in reachability masks.
|
constexpr |
Sentinel value for neighbors outside the physical domain.
|
constexpr |
Small tolerance for floating-point comparisons.