GravityCoupling 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::GravityCoupling Struct Reference
Self-consistent coupling f = sign * 4piG * (rho - rho0). More...
#include <elliptic.hpp>
Collaboration diagram for pops::GravityCoupling:Public Member Functions | |
| template<class State > | |
| POPS_HD Real | rhs (const State &u) const |
Public Attributes | |
| Real | sign = 1 |
| Real | four_pi_G = 1 |
| Real | rho0 = 1 |
| int | c_rho = 0 |
Detailed Description
Self-consistent coupling f = sign * 4piG * (rho - rho0).
CONTRACT: pointwise ELLIPTIC brick, device-callable (POPS_HD), no global state. sign = +1 gravity (standard Poisson), sign = -1 plasma (Gauss sign). rho0 = background.
ROLE-AWARE (audit sec.5): c_rho member, default = component 0, resolved by model_factory via the Density role of the transport. Canonical == default -> bit-identical. See ChargeDensity.
Member Function Documentation
◆ rhs()
Member Data Documentation
◆ c_rho
| int pops::GravityCoupling::c_rho = 0 |
◆ four_pi_G
| Real pops::GravityCoupling::four_pi_G = 1 |
◆ rho0
| Real pops::GravityCoupling::rho0 = 1 |
◆ sign
| Real pops::GravityCoupling::sign = 1 |
The documentation for this struct was generated from the following file:
- include/pops/physics/bricks/elliptic.hpp
Generated by