include/pops/physics/fluids/euler.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
|
euler.hpp
Go to the documentation of this file.
Definition amr_hierarchy.hpp:29
@ Primitive
@ Conservative
@ VelocityY
@ VelocityX
@ Energy
@ Density
@ MomentumX
@ Pressure
@ MomentumY
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
2D compressible Euler for an ideal gas: HYPERBOLIC brick (HyperbolicModel concept).
Definition euler.hpp:34
POPS_HD State eigenvalues(const State &u, const Aux &, int dir) const
Full spectrum in direction dir: (v_dir - c, v_dir, v_dir, v_dir + c).
Definition euler.hpp:105
POPS_HD Real max_wave_speed(const State &u, const Aux &, int dir) const
Maximum wave speed |v_dir| + c (Rusanov estimate), computed in primitive variables.
Definition euler.hpp:118
static VariableSet conservative_vars()
Variable descriptor (hyperbolic model contract; host introspection metadata).
Definition euler.hpp:126
POPS_HD Prim to_primitive(const State &u) const
Conservative -> primitive: (rho, rho u, rho v, E) -> (rho, u, v, p).
Definition euler.hpp:52
POPS_HD State to_conservative(const Prim &p) const
Primitive -> conservative: (rho, u, v, p) -> (rho, rho u, rho v, E).
Definition euler.hpp:62
POPS_HD Real sound_speed(const State &u) const
Sound speed c = sqrt(gamma p / rho).
Definition euler.hpp:49
POPS_HD void wave_speeds(const State &u, const Aux &, int dir, Real &smin, Real &smax) const
Extreme signed wave speeds in direction dir: v_dir - c and v_dir + c.
Definition euler.hpp:82
POPS_HD Real pressure(const State &u) const
Ideal-gas pressure p = (gamma-1)(E - 1/2 rho |v|^2).
Definition euler.hpp:43
POPS_HD State flux(const State &u, const Aux &, int dir) const
Compressible convective flux in direction dir.
Definition euler.hpp:91
A model's variable set: kind (cons/prim), names, size, canonical roles (optional, parallel to names; ...
Definition variables.hpp:58
Base scalar types and the POPS_HD macro (host+device portability).
Descriptor of a model's variables (Vars).
Generated by