RadLib
|
#include <rad_wsgg.h>
Public Member Functions | |
void | get_k_a (std::vector< double > &kabs, std::vector< double > &awts, const double T_dmb, const double P, const double fvsoot, const double xH2O, const double xCO2, const double xCO_not_used, const double xCH4_not_used) |
| |
void | get_k_a_oneband (double &kabs, double &awts, const int iband, const double T, const double P, const double fvsoot, const double xH2O, const double xCO2, const double xCO_not_used, const double xCH4_not_used) |
rad_wsgg () | |
virtual | ~rad_wsgg () |
![]() | |
int | get_nGG () |
int | get_nGGa () |
rad (const int p_nGG, const int p_nGGa) | |
virtual | ~rad () |
Static Protected Attributes | |
static const double | cCoefs [] |
map to [i,j,k] of size ni,nj,nk = 4,5,5 | |
static const double | dCoefs [] |
static const double | bco2 [] |
| |
static const double | bh2o [] |
| |
static const double | kco2 [] ={0.000000e+000, 3.388079e-002, 4.544269e-001, 4.680226e+000, 1.038439e+002} |
| |
static const double | kh2o [] ={0.000000e+000, 7.703541e-002, 8.242941e-001, 6.854761e+000, 6.593653e+001} |
| |
Additional Inherited Members | |
![]() | |
static constexpr double | sigma = 5.670367E-8 |
Stephan-Boltzmann constant. | |
![]() | |
int | nGG |
number of gray gases, not including the clear gas | |
int | nGGa |
number of grey gases including the clear gas | |
Class implementing rad_wsgg object. Radiation properties for the WSGG model (Bordbar 2020). Four gray gases and one clear gas are assumed. This is somewhat less accurate than the RCSLW model, but less computationally expensive. get_k_a, and get_k_a_oneband are the primary interfaces.
Definition at line 19 of file rad_wsgg.h.
|
inline |
Definition at line 61 of file rad_wsgg.h.
|
inlinevirtual |
Definition at line 64 of file rad_wsgg.h.
|
virtual |
absorption coefficients for pure h2o (size 5 = nGGa)
This is the class interface function Given the gas state, set the k and a vectors. These can then be accessed by the user. return through arg list the local gray gas coefficients (kabs) and the local weights (awts).
kabs | output: absorption coefficients (1/m) for nGG+1 (nGG gray gases + clear gas) |
awts | output: weights (unitless; sums to 1) for nGG+1 (nGG gray gases + clear gas) |
T_dmb | input: gas temperature (K) |
P | input: pressure (Pa) |
fvsoot | input: soot volume fraction = rho*Ysoot/rhosoot |
xH2O | input: mole fraction H2O |
xCO2 | input: mole fraction CO2 |
xCO_not_used | input: mole fraction CO HERE FOR THE INTERFACE, NOT USED (... pass in 0.0) |
xCH4_not_used | input: mole fraction CH4 HERE FOR THE INTERFACE, NOT USED (... pass in 0.0) |
See documentation for rad_rcslw::F_albdf_soot for details about the soot absorption coefficient.
\(k_{soot} = F_s fv_{soot}T\), where \(F_s = 3.72 c_{soot}/C_2\), where \(C_2 = 0.014388\, m\cdot K\) and \(c_{soot} = 36\pi n k/[(n^2 - k^2 +2)^2 + 4 (n k)^2],\) where \(k\) is the real part of the complex refractive index, and \(n\) is the imaginary part. Using Shaddix's model for \(k\), \(n\): \(k=1.03\), \(n = 1.75\), giving \(F_s = 1817\, K^{-1}m^{-1}\). Reference: Williams, Shaddix, et al. Int. J. Heat and Mass Transfer 50:1616-1630 (2007),
Note, combining the WSGG model with four gray gases and one clear gas with a single gray soot component. The soot absorption coefficient is added to that for each gas (including the clear gas, since the soot absorption spectrum is "full"). The weights don't need to be changed. In the limit of no soot, we recover gas only, and in the limit of only soot, we recover the expected behavior.
\(dI_j/ds = (kg_j + ks)I_j + (kg_j+ks)a_jIb\)
This soot addition was suggested by H. Bordbar.
Implements rad.
Definition at line 270 of file rad_wsgg.cc.
|
virtual |
This is the class interface function Given the gas state, set the k and a vectors. These can then be accessed by the user. return through arg list the local gray gas coefficients (kabs) and the local weights (awts).
kabs | output: absorption coefficient (1/m) for band/gas iband: ranges from 0 to nGG inclusive |
awts | output: weight (unitless; total sums to 1) for band/gas iband: ranges from 0 to nGG inclusive |
iband | input: which band to compute |
T_dmb | input: gas temperature (K) |
P | input: pressure (Pa) |
fvsoot | input: soot volume fraction = rho*Ysoot/rhosoot |
xH2O | input: mole fraction H2O |
xCO2 | input: mole fraction CO2 |
xCO_not_used | input: mole fraction CO HERE FOR THE INTERFACE, NOT USED (... pass in 0.0) |
xCH4_not_used | input: mole fraction CH4 HERE FOR THE INTERFACE, NOT USED (... pass in 0.0) |
See documentation for rad_rcslw::F_albdf_soot for details about the soot absorption coefficient.
\(k_{soot} = F_s fv_{soot}T\), where \(F_s = 3.72 c_{soot}/C_2\), where \(C_2 = 0.014388\, m\cdot K\) and \(c_{soot} = 36\pi n k/[(n^2 - k^2 +2)^2 + 4 (n k)^2],\) where \(k\) is the real part of the complex refractive index, and \(n\) is the imaginary part. Using Shaddix's model for \(k\), \(n\): \(k=1.03\), \(n = 1.75\), giving \(F_s = 1817\, K^{-1}m^{-1}\). Reference: Williams, Shaddix, et al. Int. J. Heat and Mass Transfer 50:1616-1630 (2007),
Note, combining the WSGG model with four gray gases and one clear gas with a single gray soot component. The soot absorption coefficient is added to that for each gas (including the clear gas, since the soot absorption spectrum is "full"). The weights don't need to be changed. In the limit of no soot, we recover gas only, and in the limit of only soot, we recover the expected behavior.
\(dI_j/ds = (kg_j + ks)I_j + (kg_j+ks)a_jIb\)
This soot addition was suggested by H. Bordbar.
Implements rad.
Definition at line 93 of file rad_wsgg.cc.
|
staticprotected |
map to [i,j,k] of size ni,nj,nk = 4,5,5
Definition at line 14 of file rad_wsgg.h.
|
staticprotected |
Definition at line 35 of file rad_wsgg.h.
|
staticprotected |
map to [i,k] of size ni,nk = 4,5
Definition at line 42 of file rad_wsgg.h.
|
staticprotected |
map to [i,j] of size ni,nj = 4,5
Definition at line 47 of file rad_wsgg.h.
|
staticprotected |
map to [i,j] of size ni,nj = 4,5
Definition at line 52 of file rad_wsgg.h.
|
staticprotected |
absorption coefficients for pure co2 (size 5 = nGGa)
Definition at line 54 of file rad_wsgg.h.