RadLib
Loading...
Searching...
No Matches
rad Class Referenceabstract

#include <rad.h>

Inheritance diagram for rad:
[legend]

Public Member Functions

virtual void get_k_a (std::vector< double > &kabs, std::vector< double > &awts, const double T, const double P, const double fvsoot, const double xH2O, const double xCO2, const double xCO=0, const double xCH4=0)=0
 ABSTRACT BASE CLASS.
 
virtual 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=0, const double xCH4=0)=0
 ABSTRACT BASE CLASS.
 
int get_nGG ()
 
int get_nGGa ()
 
 rad (const int p_nGG, const int p_nGGa)
 
virtual ~rad ()
 

Static Public Attributes

static constexpr double sigma = 5.670367E-8
 Stephan-Boltzmann constant.
 

Protected Attributes

int nGG
 number of gray gases, not including the clear gas
 
int nGGa
 number of grey gases including the clear gas
 

Detailed Description

Class implementing rad object. Abstract base class upon which specific radiation property models are built. get_k_a, and get_k_a_oneband are the primary interfaces.

Definition at line 20 of file rad.h.

Constructor & Destructor Documentation

◆ rad()

rad::rad ( const int  p_nGG,
const int  p_nGGa 
)
inline

Definition at line 69 of file rad.h.

◆ ~rad()

virtual rad::~rad ( )
inlinevirtual

Definition at line 74 of file rad.h.

Member Function Documentation

◆ get_k_a()

virtual void rad::get_k_a ( std::vector< double > &  kabs,
std::vector< double > &  awts,
const double  T,
const double  P,
const double  fvsoot,
const double  xH2O,
const double  xCO2,
const double  xCO = 0,
const double  xCH4 = 0 
)
pure virtual

ABSTRACT BASE CLASS.

Parameters
kabsabsorption coefficient (1/m)
awtsgas weight (sum to one)
Tgas temperature (K)
Pgas pressure (Pa)
fvsootvolume fraction soot (not ppmv)
xH2Omole fraction h2o
xCO2mole fraction co2
xCOmole fraction co
xCH4mole fraction ch4

Implemented in rad_planck_mean, rad_rcslw, and rad_wsgg.

Here is the caller graph for this function:

◆ get_k_a_oneband()

virtual void rad::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 = 0,
const double  xCH4 = 0 
)
pure virtual

ABSTRACT BASE CLASS.

Parameters
kabsabsorption coefficient (1/m)
awtsgas weight (sum to one)
ibandband/gas to get k_a for
Tgas temperature (K)
Pgas pressure (Pa)
fvsootvolume fraction soot (not ppmv)
xH2Omole fraction h2o
xCO2mole fraction co2
xCOmole fraction co
xCH4mole fraction ch4

Implemented in rad_planck_mean, rad_wsgg, and rad_rcslw.

Here is the caller graph for this function:

◆ get_nGG()

int rad::get_nGG ( )
inline

Definition at line 62 of file rad.h.

◆ get_nGGa()

int rad::get_nGGa ( )
inline

Definition at line 63 of file rad.h.

Here is the caller graph for this function:

Member Data Documentation

◆ sigma

constexpr double rad::sigma = 5.670367E-8
staticconstexpr

Stephan-Boltzmann constant.

Definition at line 27 of file rad.h.

◆ nGG

int rad::nGG
protected

number of gray gases, not including the clear gas

Definition at line 31 of file rad.h.

◆ nGGa

int rad::nGGa
protected

number of grey gases including the clear gas

Definition at line 32 of file rad.h.


The documentation for this class was generated from the following file: