chombo-discharge
CD_RtSpecies.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_RtSpecies_H
13 #define CD_RtSpecies_H
14 
15 // Std includes
16 #include <functional>
17 
18 // Chombo includes
19 #include <RealVect.H>
20 
21 // Our includes
22 #include <CD_NamespaceHeader.H>
23 
29 class RtSpecies
30 {
31 public:
35  RtSpecies();
36 
40  virtual ~RtSpecies();
41 
45  std::string
46  getName() const;
47 
52  virtual Real
53  getAbsorptionCoefficient(const RealVect a_pos) const = 0;
54 
60  virtual Real
61  getScatteringCoefficient(const RealVect a_pos) const;
62 
63 protected:
67  std::string m_name;
68 };
69 
70 #include <CD_NamespaceFooter.H>
71 
72 #endif
Declaration of a class that defines an interface to radiative transfer solvers, i....
Definition: CD_RtSpecies.H:30
virtual Real getAbsorptionCoefficient(const RealVect a_pos) const =0
Get kappa (i.e. the inverse absorption length) at physical coordinates.
std::string getName() const
Get species name.
Definition: CD_RtSpecies.cpp:26
std::string m_name
Group name.
Definition: CD_RtSpecies.H:67
RtSpecies()
Weak constructor. Sets absorption length and scattering coefficients to one.
Definition: CD_RtSpecies.cpp:16
virtual Real getScatteringCoefficient(const RealVect a_pos) const
Get scattering coefficient (i.e. the inverse scattering length) at physical coordinates.
Definition: CD_RtSpecies.cpp:32
virtual ~RtSpecies()
Weak constructor. Sets absorption length and scattering coefficients to one.
Definition: CD_RtSpecies.cpp:22