Canoe
Comprehensive Atmosphere N' Ocean Engine
correlatedk_absorber.hpp
Go to the documentation of this file.
1
#ifndef SRC_OPACITY_CORRELATEDK_ABSORBER_HPP_
2
#define SRC_OPACITY_CORRELATEDK_ABSORBER_HPP_
3
4
// C/C++
5
#include <string>
6
#include <vector>
7
8
// opacity
9
#include "
absorber.hpp
"
10
11
class
CorrelatedKAbsorber
:
public
Absorber
{
12
public
:
13
CorrelatedKAbsorber
(std::string name) :
Absorber
(name) {}
14
virtual
~CorrelatedKAbsorber
() {}
15
void
LoadCoefficient
(std::string fname,
size_t
bid)
override
;
16
// Real ckAbsorptionCoefficient(int mw, int mg, Real const prim[]) const;
17
Real
GetAttenuation
(Real g1, Real g2,
AirParcel
const
& var)
const override
;
18
19
protected
:
20
size_t
len_
[3];
21
std::vector<Real>
axis_
;
22
std::vector<Real>
kcoeff_
;
23
};
24
25
#endif
// SRC_OPACITY_CORRELATEDK_ABSORBER_HPP_
absorber.hpp
Absorber
base class of all absorbers
Definition:
absorber.hpp:25
AirParcel
Definition:
air_parcel.hpp:17
CorrelatedKAbsorber
Definition:
correlatedk_absorber.hpp:11
CorrelatedKAbsorber::~CorrelatedKAbsorber
virtual ~CorrelatedKAbsorber()
Definition:
correlatedk_absorber.hpp:14
CorrelatedKAbsorber::axis_
std::vector< Real > axis_
Definition:
correlatedk_absorber.hpp:21
CorrelatedKAbsorber::LoadCoefficient
void LoadCoefficient(std::string fname, size_t bid) override
Load absorption coefficient from file.
Definition:
correlatedk_absorber.cpp:27
CorrelatedKAbsorber::len_
size_t len_[3]
Definition:
correlatedk_absorber.hpp:20
CorrelatedKAbsorber::GetAttenuation
Real GetAttenuation(Real g1, Real g2, AirParcel const &var) const override
Get attenuation coefficient [1/m].
Definition:
correlatedk_absorber.cpp:55
CorrelatedKAbsorber::kcoeff_
std::vector< Real > kcoeff_
Definition:
correlatedk_absorber.hpp:22
CorrelatedKAbsorber::CorrelatedKAbsorber
CorrelatedKAbsorber(std::string name)
Definition:
correlatedk_absorber.hpp:13
src
opacity
correlatedk_absorber.hpp
Generated by
1.9.1