WARPXM v1.10.0
Loading...
Searching...
No Matches
mhd.h
Go to the documentation of this file.
1#pragma once
2
3// wxm includes
5
27real get_p(real gas_gamma, real rho, real E, real V2, real B2);
28
43real get_E(real gas_gamma, real rho, real p, real V2, real B2);
44
45
47 const real* aux,
48 real* grad_pressure,
49 const real gas_gamma,
50 const real rho_min = std::numeric_limits<real>::epsilon());
51
53
54void calculate_grad_T(const real* q,
55 const real* aux,
56 real* grad_T,
57 const real gas_gamma,
58 const real Ai = 1.0,
59 const real Zi = 1.0,
60 const real rho_min = std::numeric_limits<real>::epsilon(),
61 const real press_min = std::numeric_limits<real>::epsilon());
62
63void ensure_floor_density(const real* q, real num_q, real density_floor, real* mod_q);
64
66 real num_q,
67 real gas_gamma,
68 real pressure_floor,
69 real* mod_q);
70
86 const real rho_min = std::numeric_limits<real>::epsilon());
87
109 const real gas_gamma,
110 const real rho_min = std::numeric_limits<real>::epsilon(),
111 const real press_min = std::numeric_limits<real>::epsilon());
112
143 const real gas_gamma,
144 const real Ai = 1.0,
145 const real Zi = 1.0,
146 const real rho_min = std::numeric_limits<real>::epsilon(),
147 const real press_min = std::numeric_limits<real>::epsilon());
real getTemperatureFloored(const real *q, const real gas_gamma, const real Ai=1.0, const real Zi=1.0, const real rho_min=std::numeric_limits< real >::epsilon(), const real press_min=std::numeric_limits< real >::epsilon())
Get the temperature from MHD variables using floors for pressure and density.
real getPressureFloored(const real *q, const real gas_gamma, const real rho_min=std::numeric_limits< real >::epsilon(), const real press_min=std::numeric_limits< real >::epsilon())
Get the pressure from MHD variables using floors for pressure and density.
real get_p(real gas_gamma, real rho, real E, real V2, real B2)
Calculate pressure from MHD total energy.
void calculate_grad_pressure(const real *q, const real *aux, real *grad_pressure, const real gas_gamma, const real rho_min=std::numeric_limits< real >::epsilon())
real get_temperature(real p, real rho, real Ai, real Zi)
void ensure_floor_pressure(const real *q, real num_q, real gas_gamma, real pressure_floor, real *mod_q)
void calculate_grad_T(const real *q, const real *aux, real *grad_T, const real gas_gamma, const real Ai=1.0, const real Zi=1.0, const real rho_min=std::numeric_limits< real >::epsilon(), const real press_min=std::numeric_limits< real >::epsilon())
void ensure_floor_density(const real *q, real num_q, real density_floor, real *mod_q)
real getRhoFloored(const real *q, const real rho_min=std::numeric_limits< real >::epsilon())
Get the floored mass density.
real get_E(real gas_gamma, real rho, real p, real V2, real B2)
Calculate MHD total energy density.
#define real
Definition: wmoclunstructuredreconstruction.h:11