|
OpenImpala
Image-based parallel transport property solver
|
Checks whether a phase percolates across the domain in a given direction. More...
#include <PercolationCheck.H>
Public Member Functions | |
| amrex::Real | activeVolumeFraction () const |
| Returns the volume fraction of the percolating (active) subset of the phase. | |
| bool | percolates () const |
| Returns true if the phase percolates in the specified direction. | |
| PercolationCheck (const amrex::Geometry &geom, const amrex::BoxArray &ba, const amrex::DistributionMapping &dm, const amrex::iMultiFab &mf_phase, int phase_id, OpenImpala::Direction dir, int verbose=0) | |
| Construct a percolation checker. | |
| void | run (const amrex::iMultiFab &mf_phase, int phase_id, OpenImpala::Direction dir) |
Static Public Member Functions | |
| static std::string | directionString (OpenImpala::Direction dir) |
| Returns a human-readable direction string ("X", "Y", or "Z"). | |
Checks whether a phase percolates across the domain in a given direction.
Uses a parallel flood fill algorithm (6-connectivity) to determine if a connected path exists from the inlet face (low boundary) to the outlet face (high boundary) in the specified direction. This is a lightweight check that does not require any solver setup (no HYPRE dependency).
| OpenImpala::PercolationCheck::PercolationCheck | ( | const amrex::Geometry & | geom, |
| const amrex::BoxArray & | ba, | ||
| const amrex::DistributionMapping & | dm, | ||
| const amrex::iMultiFab & | mf_phase, | ||
| int | phase_id, | ||
| OpenImpala::Direction | dir, | ||
| int | verbose = 0 ) |
Construct a percolation checker.
| geom | AMReX Geometry (should be non-periodic in the check direction). |
| ba | BoxArray for the domain decomposition. |
| dm | DistributionMapping for processor assignments. |
| mf_phase | iMultiFab containing phase IDs (>=1 ghost cell required). |
| phase_id | The phase ID to check percolation for. |
| dir | Direction to check (X, Y, or Z). |
| verbose | Verbosity level (0=silent, 1=basic, 2=detailed). Default 0. |
|
inline |
Returns the volume fraction of the percolating (active) subset of the phase.
|
static |
Returns a human-readable direction string ("X", "Y", or "Z").
|
inline |
Returns true if the phase percolates in the specified direction.
| void OpenImpala::PercolationCheck::run | ( | const amrex::iMultiFab & | mf_phase, |
| int | phase_id, | ||
| OpenImpala::Direction | dir ) |