include/pops/physics/bricks/source.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
|
source.hpp
Go to the documentation of this file.
3#include <pops/core/model/physical_model.hpp> // aux_comps<>: propagates the aux channel of a composite source
109 // canonical layout (m_x=1, m_y=2), resolved by model_factory via the transport roles. Canonical
Definition amr_hierarchy.hpp:29
POPS_HD constexpr int aux_comps()
Width of the aux channel a model CONSUMES.
Definition physical_model.hpp:67
C++20 concepts defining the contract of the physics layer.
Pointwise types of the physics layer: StateVec<N> (conserved state) and Aux (auxiliary fields from th...
POINTWISE auxiliary fields shared with the physics: single coupling channel.
Definition state.hpp:123
SUM of two source bricks: S(U, aux) = A.apply(U, aux) + B.apply(U, aux).
Definition source.hpp:136
POPS_HD State apply(const State &u, const Aux &ax) const
Definition source.hpp:141
POPS_HD State apply(const State &u, const Aux &a) const
Definition source.hpp:76
MAGNETIC Lorentz force q (v x B) on momentum, field B = B_z z_hat out of plane.
Definition source.hpp:104
POPS_HD State apply(const State &u, const Aux &a) const
Definition source.hpp:113
Electrostatic potential force (q/m) rho E on momentum (+ work on energy if 4 variables).
Definition source.hpp:47
POPS_HD State apply(const State &u, const Aux &a) const
Definition source.hpp:51
Base scalar types and the POPS_HD macro (host+device portability).
Generated by