|
OpenImpala
Image-based parallel transport property solver
|
Computes the specific surface area between two phases in an iMultiFab. More...
#include <SpecificSurfaceArea.H>
Public Member Functions | |
| void | directionFaceCounts (amrex::Array< long long, 3 > &dir_faces, long long &total_count, bool local=false) const |
| Compute interface face counts along each coordinate direction and total cells. | |
| SpecificSurfaceArea & | operator= (const SpecificSurfaceArea &)=delete |
| SpecificSurfaceArea & | operator= (SpecificSurfaceArea &&)=default |
| SpecificSurfaceArea (const amrex::Geometry &geom, const amrex::iMultiFab &fm, int phase_a=0, int phase_b=1, int comp=0, int boundary_padding=0) | |
| Construct a SpecificSurfaceArea calculator. | |
| SpecificSurfaceArea (const SpecificSurfaceArea &)=delete | |
| SpecificSurfaceArea (SpecificSurfaceArea &&)=default | |
| void | value (long long &face_count, long long &total_count, bool local=false) const |
| Compute the raw interface face count and total cell count. | |
| amrex::Real | value_corrected (bool local=false) const |
| Corrected SSA = (2/3) * raw SSA (Cauchy-Crofton correction). | |
| amrex::Real | value_physical (bool local=false) const |
| Physical specific surface area accounting for potentially anisotropic cell sizes: SSA_raw = (1 / total_count) * sum_d (dir_faces[d] / dx[d]). | |
| amrex::Real | value_physical_corrected (bool local=false) const |
| Cauchy-Crofton (2/3) corrected physical specific surface area. | |
| amrex::Real | value_ssa (bool local=false) const |
| Raw SSA = face_count / total_count (no stereological correction). | |
| virtual | ~SpecificSurfaceArea ()=default |
Computes the specific surface area between two phases in an iMultiFab.
Counts voxel faces where adjacent cells belong to different specified phases. Raw SSA = total_interface_faces / total_cells. With unit voxel spacing each face has area 1 and each cell has volume 1.
The raw face count systematically overestimates the true geometric surface area because curved/diagonal interfaces are represented as axis-aligned staircases on the voxel grid (the "laddering effect"). The corrected SSA applies the Cauchy-Crofton factor of 2/3, which is exact for isotropic surfaces (Ohser & Muecklich, 2000).
An optional boundary padding parameter excludes the outermost N voxel layers from the computation, mitigating artifacts from truncated features at domain boundaries.
| OpenImpala::SpecificSurfaceArea::SpecificSurfaceArea | ( | const amrex::Geometry & | geom, |
| const amrex::iMultiFab & | fm, | ||
| int | phase_a = 0, | ||
| int | phase_b = 1, | ||
| int | comp = 0, | ||
| int | boundary_padding = 0 ) |
Construct a SpecificSurfaceArea calculator.
| geom | AMReX Geometry describing the domain. |
| fm | iMultiFab containing phase IDs. |
| phase_a | First phase ID (default 0). |
| phase_b | Second phase ID (default 1). |
| comp | Component index within fm (default 0). |
| boundary_padding | Number of voxel layers to exclude from all domain faces (default 0). Both face counting and cell counting are restricted to the interior padded region. |
|
delete |
|
default |
|
virtualdefault |
| void OpenImpala::SpecificSurfaceArea::directionFaceCounts | ( | amrex::Array< long long, 3 > & | dir_faces, |
| long long & | total_count, | ||
| bool | local = false ) const |
Compute interface face counts along each coordinate direction and total cells.
| [out] | dir_faces | Number of interface faces normal to each direction (X=0, Y=1, Z=2). |
| [out] | total_count | Total number of cells in the (padded) domain. |
| [in] | local | If true, skip MPI reduction (default false). |
|
delete |
|
default |
| void OpenImpala::SpecificSurfaceArea::value | ( | long long & | face_count, |
| long long & | total_count, | ||
| bool | local = false ) const |
Compute the raw interface face count and total cell count.
Both counts are restricted to the padded interior region if boundary_padding > 0.
| [out] | face_count | Number of faces at the phase_a/phase_b interface. |
| [out] | total_count | Total number of cells in the (padded) domain. |
| [in] | local | If true, skip MPI reduction (default false). |
|
inline |
Corrected SSA = (2/3) * raw SSA (Cauchy-Crofton correction).
For a surface with isotropic orientation distribution, the expected number of axis-aligned voxel face intersections is 3/2 times the true surface area per unit volume. The 2/3 factor corrects for this bias.
| local | If true, compute locally (default false). |
| amrex::Real OpenImpala::SpecificSurfaceArea::value_physical | ( | bool | local = false | ) | const |
Physical specific surface area accounting for potentially anisotropic cell sizes: SSA_raw = (1 / total_count) * sum_d (dir_faces[d] / dx[d]).
|
inline |
Cauchy-Crofton (2/3) corrected physical specific surface area.
|
inline |
Raw SSA = face_count / total_count (no stereological correction).
This value is exact for axis-aligned planar interfaces but overestimates for curved or diagonal surfaces due to the voxel laddering effect.
| local | If true, compute locally (default false). |