RadLib
Loading...
Searching...
No Matches
rad.h
Go to the documentation of this file.
1
4
5#ifndef RAD_H
6#define RAD_H
7
8#pragma once
9
10#include <vector>
11
19
20class rad {
21
22
24
25 public:
26
27 constexpr static double sigma = 5.670367E-8;
28
29 protected:
30
31 int nGG;
32 int nGGa;
33
34
36
37 public:
38
39 virtual void get_k_a(std::vector<double> &kabs,
40 std::vector<double> &awts,
41 const double T,
42 const double P,
43 const double fvsoot,
44 const double xH2O,
45 const double xCO2,
46 const double xCO=0,
47 const double xCH4=0)
48 = 0;
49
50 virtual void get_k_a_oneband(double &kabs,
51 double &awts,
52 const int iband,
53 const double T,
54 const double P,
55 const double fvsoot,
56 const double xH2O,
57 const double xCO2,
58 const double xCO=0,
59 const double xCH4=0)
60 = 0;
61
62 int get_nGG(){ return nGG; }
63 int get_nGGa(){return nGGa; }
64
66
67 public:
68
69 rad(const int p_nGG, const int p_nGGa) {
70 nGG = p_nGG;
71 nGGa = p_nGGa;
72 }
73
74 virtual ~rad(){}
75
76};
77
78#endif //RADLIB_H
Definition rad.h:20
virtual ~rad()
Definition rad.h:74
int nGGa
number of grey gases including the clear gas
Definition rad.h:32
int nGG
number of gray gases, not including the clear gas
Definition rad.h:31
rad(const int p_nGG, const int p_nGGa)
Definition rad.h:69
static constexpr double sigma
Stephan-Boltzmann constant.
Definition rad.h:27
int get_nGG()
Definition rad.h:62
int get_nGGa()
Definition rad.h:63
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.
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.