include/pops/runtime/config/model_spec.hpp Source FileΒΆ

adc_cpp: include/pops/runtime/config/model_spec.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
model_spec.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
12
13namespace pops {
14
27struct ModelSpec {
28 std::string transport;
29 std::string source = "none";
31 std::string elliptic;
32
33 double B0 = 1.0;
34 double gamma = 1.4;
35 double cs2 = 0.5;
36 double vacuum_floor = 0.0;
41 double qom = 1.0;
42 double q = 1.0;
43 double alpha = 1.0;
44 double n0 = 0.0;
45 double sign = 1.0;
46 double four_pi_G = 1.0;
47 double rho0 = 1.0;
48};
49
50} // namespace pops
Definition amr_hierarchy.hpp:29
Brick composition of a block plus parameters.
Definition model_spec.hpp:27
double rho0
GravityCoupling: background.
Definition model_spec.hpp:47
double qom
PotentialForce / MagneticLorentzForce: q/m (sign included)
Definition model_spec.hpp:41
double n0
BackgroundDensity: neutralizing background.
Definition model_spec.hpp:44
std::string source
"none" (default, neutral: no force) | "potential" | "gravity"
Definition model_spec.hpp:29
std::string elliptic
REQUIRED (unset): "charge" | "background" | "gravity".
Definition model_spec.hpp:31
double gamma
CompressibleFlux: adiabatic index.
Definition model_spec.hpp:34
std::string transport
REQUIRED (unset): "exb" | "compressible" | "isothermal".
Definition model_spec.hpp:28
double cs2
IsothermalFlux: sound speed squared.
Definition model_spec.hpp:35
double four_pi_G
GravityCoupling: coupling intensity.
Definition model_spec.hpp:46
double vacuum_floor
IsothermalFlux: quasi-vacuum density floor for u=m/max(rho,floor) (ADC-77).
Definition model_spec.hpp:36
double q
ChargeDensity: charge q.
Definition model_spec.hpp:42
double alpha
BackgroundDensity: Poisson coupling.
Definition model_spec.hpp:43
double sign
GravityCoupling: +1 gravity, -1 electrostatic.
Definition model_spec.hpp:45
double B0
ExBVelocity: magnetic field.
Definition model_spec.hpp:33