BackgroundDensity Struct ReferenceΒΆ

adc_cpp: pops::BackgroundDensity 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::BackgroundDensity Struct Reference

Neutralizing background f = alpha (n - n0). More...

#include <elliptic.hpp>

+ Collaboration diagram for pops::BackgroundDensity:

Public Member Functions

template<class State >
POPS_HD Real rhs (const State &u) const
 

Public Attributes

Real alpha = 1
 
Real n0 = 0
 
int c_rho = 0
 

Detailed Description

Neutralizing background f = alpha (n - n0).

Models a fixed neutralization background of density n0.

CONTRACT: pointwise ELLIPTIC brick, device-callable (POPS_HD), no global state. Reads only the density. alpha = effective charge of the background; n0 = density of the neutral 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()

template<class State >
POPS_HD Real pops::BackgroundDensity::rhs ( const State &  u) const
inline

Member Data Documentation

◆ alpha

Real pops::BackgroundDensity::alpha = 1

◆ c_rho

int pops::BackgroundDensity::c_rho = 0

◆ n0

Real pops::BackgroundDensity::n0 = 0

The documentation for this struct was generated from the following file: