include/pops/numerics/elliptic/eb/cut_fraction.hpp Source FileΒΆ
|
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
|
cut_fraction.hpp
Go to the documentation of this file.
POPS_HD CutFraction cut_fraction(const LevelSet &ls, Real xc, Real yc, Real dx, Real dy)
Computes the cut geometry of an ACTIVE cell (center (xc, yc) with ls < 0) from a level-set ls evaluat...
Definition cut_fraction.hpp:76
POPS_HD ShortleyWellerWeights shortley_weller(const CutFraction &cf)
Definition cut_fraction.hpp:102
POPS_HD Real cut_distance(Real lc, Real ln, Real h)
Cut distance of ONE face along a direction, starting from the active center (ls < 0).
Definition cut_fraction.hpp:33
Definition amr_hierarchy.hpp:29
Geometric result of crossing a cut cell: 4 cut distances per face, the 4 apertures alpha_f normalized...
Definition cut_fraction.hpp:52
Real axm
cut distance of face x- (toward i-1), in [1e-3*dx, dx]
Definition cut_fraction.hpp:53
Real aym
cut distance of face y- (toward j-1)
Definition cut_fraction.hpp:55
Real alpha_yp
aperture of face y+ = ayp / dy
Definition cut_fraction.hpp:60
Real kappa
volume fraction of the cell (share in the active domain), in (0, 1]
Definition cut_fraction.hpp:61
Real ayp
cut distance of face y+ (toward j+1)
Definition cut_fraction.hpp:56
Real alpha_xm
aperture of face x- = axm / dx, in [1e-3, 1]
Definition cut_fraction.hpp:57
Real alpha_xp
aperture of face x+ = axp / dx
Definition cut_fraction.hpp:58
Real alpha_ym
aperture of face y- = aym / dy
Definition cut_fraction.hpp:59
Real axp
cut distance of face x+ (toward i+1)
Definition cut_fraction.hpp:54
Shortley-Weller weights (5-point cut-cell stencil) from the 4 cut distances.
Definition cut_fraction.hpp:98
Base scalar types and the POPS_HD macro (host+device portability).
Generated by