chombo-discharge
CD_ItoPlasmaPhotoReactionImplem.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 // Our includes
13 #ifndef CD_ItoPlasmaPhotoReactionImplem_H
14 #define CD_ItoPlasmaPhotoReactionImplem_H
15 
17 #include <CD_NamespaceHeader.H>
18 
19 using namespace Physics::ItoPlasma;
20 
21 inline ItoPlasmaPhotoReaction::ItoPlasmaPhotoReaction(const size_t a_source, const std::list<size_t> a_targets) noexcept
22 {
23  this->define(a_source, a_targets);
24 }
25 
27 
28 inline void
29 ItoPlasmaPhotoReaction::define(const size_t a_source, const std::list<size_t> a_targets) noexcept
30 {
31 
32  m_source = a_source;
33  m_targets = a_targets;
34 }
35 
36 inline const size_t&
38 {
39  return m_source;
40 }
41 
42 inline const std::list<size_t>&
44 {
45  return m_targets;
46 }
47 
48 #include <CD_NamespaceFooter.H>
49 
50 #endif
Declaration of a class for holding photoionization reaction types in ito_plasma physics.
size_t m_source
Source photon index.
Definition: CD_ItoPlasmaPhotoReaction.H:71
std::list< size_t > m_targets
Plasma product indices.
Definition: CD_ItoPlasmaPhotoReaction.H:76
const std::list< size_t > & getTargetSpecies() const noexcept
Get the photon target products.
Definition: CD_ItoPlasmaPhotoReactionImplem.H:43
const size_t & getSourcePhoton() const noexcept
Get the photon source.
Definition: CD_ItoPlasmaPhotoReactionImplem.H:37
ItoPlasmaPhotoReaction()=default
Allowed, but you need to call the define function afterwards.
virtual ~ItoPlasmaPhotoReaction() noexcept
Destructor.
Definition: CD_ItoPlasmaPhotoReactionImplem.H:26
void define(const size_t a_source, const std::list< size_t > a_targets) noexcept
Define function.
Definition: CD_ItoPlasmaPhotoReactionImplem.H:29