14#ifndef CHEMISTRY_RADIATION_H
15#define CHEMISTRY_RADIATION_H
17#include <Kokkos_Core.hpp>
31 const double z = 1000.0 / T;
32 return -0.23093 + z * (-1.12390 + z * (9.41530 + z * (-2.99880 + z * (0.51382 + z * -1.86840e-5))));
35 const double z = 1000.0 / T;
36 return 18.741 + z * (-121.310 + z * (273.500 + z * (-194.050 + z * (56.310 + z * -5.8169))));
39 if (T <= 750.0)
return 4.7869 + T * (-0.06953 + T * (2.95775e-4 + T * (-4.25732e-7 + T * 2.02894e-10)));
40 return 10.09 + T * (-0.01183 + T * (4.7753e-6 + T * (-5.87209e-10 + T * -2.5334e-14)));
42 return 6.6334 + T * (-0.0035686 + T * (1.6682e-8 + T * (2.5611e-10 + T * -2.6558e-14)));
54 Kokkos::Array<int32_t, N_RADIATING_SPECIES>
index{-1, -1, -1, -1};
55 Kokkos::Array<double, N_RADIATING_SPECIES>
inv_W{};
59 template <
typename F_rho>
64 if (
index[
s] < 0)
continue;
67 const double T2 = T * T;
KOKKOS_INLINE_FUNCTION rtype dot(const rtype *a, const rtype *b)
Compute the dot product of two arrays.
Definition common_math.h:32
Gas-phase mechanisms read from Cantera YAML files.
constexpr double ONE_ATM
Definition mechanism.h:28
RadiatingSpecies
Definition radiation.h:23
constexpr double GAS_CONSTANT
Definition mechanism.h:26
constexpr int N_RADIATING_SPECIES
Definition radiation.h:24
constexpr double STEFAN_BOLTZMANN
Definition radiation.h:47
KOKKOS_INLINE_FUNCTION double planck_mean_absorption(const RadiatingSpecies s, const double T)
Planck-mean absorption coefficient, 1 / (m atm), of species s at T (fits valid over 300-2500 K).
Definition radiation.h:28
Optically thin radiative loss q = 4 sigma sum_i p_i a_i(T) (T^4 - T_amb^4), p_i the partial pressures...
Definition radiation.h:53
Kokkos::Array< double, N_RADIATING_SPECIES > inv_W
Definition radiation.h:55
KOKKOS_INLINE_FUNCTION double loss(const double T, const F_rho &rho_k) const
Power lost per unit volume [W/m^3] at T, rho_k(k) the partial densities [kg/m^3].
Definition radiation.h:60
double T_ambient4
Definition radiation.h:56
Kokkos::Array< int32_t, N_RADIATING_SPECIES > index
Definition radiation.h:54