ShortleyWellerWeights Struct ReferenceΒΆ
|
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
|
pops::detail::ShortleyWellerWeights Struct Reference
Shortley-Weller weights (5-point cut-cell stencil) from the 4 cut distances. More...
#include <cut_fraction.hpp>
Collaboration diagram for pops::detail::ShortleyWellerWeights:Public Attributes | |
| Real | w_xm |
| Real | w_xp |
| Real | w_ym |
| Real | w_yp |
| Real | w_diag |
Detailed Description
Shortley-Weller weights (5-point cut-cell stencil) from the 4 cut distances.
Returns EXACTLY the 5 coefficients that GeometricMG writes into its coef field (components 0..4): w_xm = 2 / (axm (axm + axp)), w_xp = 2 / (axp (axm + axp)), w_ym = 2 / (aym (aym + ayp)), w_yp = 2 / (ayp (aym + ayp)), w_diag = 2 / (axm axp) + 2 / (aym ayp). Centralizes the formula so the elliptic assembly stays the single source of cut-cell truth.
Member Data Documentation
◆ w_diag
| Real pops::detail::ShortleyWellerWeights::w_diag |
◆ w_xm
| Real pops::detail::ShortleyWellerWeights::w_xm |
◆ w_xp
| Real pops::detail::ShortleyWellerWeights::w_xp |
◆ w_ym
| Real pops::detail::ShortleyWellerWeights::w_ym |
◆ w_yp
| Real pops::detail::ShortleyWellerWeights::w_yp |
The documentation for this struct was generated from the following file:
- include/pops/numerics/elliptic/eb/cut_fraction.hpp
Generated by